40 Matching Annotations
- Aug 2023
-
stackoverflow.com stackoverflow.com
-
async is a concurrency technique. If you need concurrency, async is required for node to work properly (not "better"). If you don't have concurrency, you don't need async. The point is you need to actually understand what async does for you and why. It's not inherently "better" for no reason and you don't need to memorize it as a "best practice". If the OP is writing a command line utility to alter a JSON file then exit, async complicates the code for no reason as the concurrency is not required.
-
- Jan 2023
-
-
Diet YAML is a light weight version of YAML that removes much of the complex aspects of the mainline YAML specification.
-
-
-
paranoia has some surprising behaviour (like overriding ActiveRecord's delete and destroy)
-
-
-
I've worked with and have helped maintain paranoia for a while. I'm convinced it does the wrong thing for most cases. Paranoia and acts_as_paranoid both attempt to emulate deletes by setting a column and adding a default scope on the model. This requires some ActiveRecord hackery, and leads to some surprising and awkward behaviour.
-
-
kmitov.com kmitov.com
-
The solution is pretty simple. In the MaterialsController just show all the materials that do not have a :deleted_at column set. In the MaterialsTrashController just show only the Materials with :delete_at controller. I can solve the whole problem with one simple filter that would take me like 1 minute to implement. We don’t need any of the problems above. They simply will not exist.
-
- Dec 2022
-
-
Projects like Kompose or Okteto Stacks show how the simpler Compose model can be translated into Kubernetes API payloads
-
- Apr 2022
-
-
We're moving forward by taking things out.
-
We're way overdue a correction back to simplicity for the frontend. ES6/HTTP2/Import maps looks like they'll deliver just that.
-
- Mar 2022
-
github.com github.com
-
This gem is just one concern with one scope. If you want to customize it later you can simply copy the code directly into your project.
-
- Oct 2021
-
github.com github.com
-
Because I have already had public API, I don't want to provide an extra "proxy" API by SvelkteKit.
-
- Sep 2021
-
forums.linuxmint.com forums.linuxmint.com
-
I prefer legacy to UEFI because it's easier to move the OS from the installation SSD to the mdadm RAID0
-
It seems to me (N.b. what do I know about this? Nothing!) that the best solution would be to tweak the 'Change Password' process so that it also updates the 'Passwords and Keys'>Passwords>Login folder's properties.
"I'm not an expert, but it seems to me..."
-
- Jul 2021
-
github.com github.com
-
Auto-Detect & install BigCommerce's stencil-cli Auto-Detect & install Meteor Auto-Detect & install Shopify's themekit
Simpler option: https://github.com/apollographql/apollo-server/blob/main/.envrc
-
- Jun 2021
-
github.com github.com
-
it would significantly simplify the authentication in my application
Tags
Annotators
URL
-
- Apr 2021
-
stackoverflow.com stackoverflow.com
-
There's nothing to stop you from doing initializer code in a file that lives in app/models. for example class MyClass def self.run_me_when_the_class_is_loaded end end MyClass.run_me_when_the_class_is_loaded MyClass.run_me... will run when the class is loaded .... which is what we want, right? Not sure if its the Rails way.... but its extremely straightforward, and does not depend on the shifting winds of Rails.
does not depend on the shifting winds of Rails.
-
- Mar 2021
-
stackoverflow.com stackoverflow.com
-
I don't use remote editing much so vim-dirvish is powerful enough to manage my workflow (It's actually faster than netrw ~ the author claims 2x, I feel it's faster than that - it's really instantaneous ⚡) very useful on large codebase/repositories
-
I was searching for a solution to this problem too since I actually removed netrw from being loaded in vim completely and replace it with vim-dirvish. This plugin has around 500~ LOC, compared to netrw's (11,000+ LOC).
-
-
blog.izs.me blog.izs.me
-
Simplicity is better than anything.
-
-
www.chevtek.io www.chevtek.io
-
Write modules that do one thing well. Write a new module rather than complicate an old one.
.
-
-
github.com github.com
-
Maybe it would be simple to always add that line, and always shift the source maps by 1.
-
This semi-colon is added to prevent changing the code behaviour (the famous line ending with parentheses, etc) Most people will use a JS minifier If they don't, a single extra character is unlikely to change much If I'm right about all the above: Why don't we simply always add a semi-colon regardless of what the file ends with?
-
- Feb 2021
-
github.com github.com
-
but if you were previously using regexp or proc values, they won't work at all with Sprockets 4, and if you try you'll get an exception raised that looks like NoMethodError: undefined method 'start_with?'
-
-
stackoverflow.com stackoverflow.com
-
How about just having all the output from point X be redirected to tee without having to repeat it everywhere and mess with all the sub-shells and execs
-
exec > >(exec tee -a $logfile) 2>&1
-
-
-
I find reform's implementation a bit too complicated too (lots of layers of abstraction, including going through the representable gem for a lot of things)
-
If you compare the code of Reform and the code of ActiveForm-Rails, I think the last is more simple and clear for a behavior similar (or better).
-
Finally, I really do something simple and I find the reform's implementation is a little bit too complicated for what I want. I think my code (and yours) is simple.
-
-
stackoverflow.com stackoverflow.com
-
If you're creating an actual, informational web page, stick to frameless HTML, CSS and unobstrusive JavaScripts and keep in mind that the page should still be usable with scripting disabled.
-
- Jan 2021
-
github.com github.com
-
OTOH, I'm old enough to have made the exact same error myself, i.e. trying to optimize something which really didn't need it and making the code more complicated as a result, so I am not blaming whoever had the idea for the rewrite.
-
The code is far simpler and easier to understand/verify
-
- Dec 2020
-
hacks.mozilla.org hacks.mozilla.org
-
Less developer maintenance burden: The existing (Kuma) platform is complex and hard to maintain. Adding new features is very difficult. The update will vastly simplify the platform code — we estimate that we can remove a significant chunk of the existing codebase, meaning easier maintenance and contributions.
-
- Nov 2020
-
github.com github.com
-
My focus is on make the API as simpler as possible to allows easy integration without even reading the docs but keeping and expand current features.
-
-
github.com github.com
-
However, this coalescing was very complicated, both in the specification and implementations, due to the dynamism of computed property names for accessors. Coalescing was a big source of overhead (e.g., in terms of code size) in polyfill implementations of "Stage 2" decorators.
-
- Jun 2020
-
medium.com medium.com
-
I really do not like writing templates in a file, such as #each , #if. I do not like to prefer using new approaches for which i can do it with purely in JavaScript.
-
- Apr 2020
-
docs.seattlerb.org docs.seattlerb.org
-
minitest doesn't reinvent anything that ruby already provides, like: classes, modules, inheritance, methods. This means you only have to learn ruby to use minitest and all of your regular OO practices like extract-method refactorings still apply.
-
-
github.com github.com
-
Don't use it! Writing simple assertions (and Minitest way of transforming them to expectations) is almost always a better idea anyway. Work with your favourite library authors to start with assertions and add matchers for convenience and not the other way around. Keep it simple.
-
- Mar 2020
-
www.gnu.org www.gnu.org
-
GNU gettext is designed to minimize the impact of internationalization on program sources, keeping this impact as small and hardly noticeable as possible. Internationalization has better chances of succeeding if it is very light weighted, or at least, appear to be so, when looking at program sources.
-
- Dec 2019
-
-
So many power users try dozens of complicated todo list software applications, only to go right back to their trusty todo.txt file.
How true. I've found that to be true as well.
-
-
serverfault.com serverfault.com
-
I've always thought that the Gentoo way of installing a new system (from backup or otherwise) was the best due to its simplicity.
-
-
opensource.com opensource.com
-
There are many options for performing backups. Most Linux distributions are provided with one or more open source programs specially designed to perform backups. There are many commercial options available as well. But none of those directly met my needs so I decided to use basic Linux tools to do the job.
-