SmarterCoding retweeted
Just discovered a bug in a legacy script by simply renaming the file from .js to .ts 🤯
#typescript #javascript
SmarterCoding retweeted
If you find yourself working a lot with the terminal:
Using @ohmyzsh and esp. the z & git plugins was probably the single biggest productivity boost for me in the recent years.
#zsh #dev
#100DaysOfCode
SmarterCoding retweeted
Did you try out the new Promise.allSettled()
method yet?
I just realized it is quite widely supported natively already.
"Returns a promise that resolves after all of the given promises have either fulfilled or rejected"
#100DaysOfCode #javascript
SmarterCoding retweeted
Replying to @adamsilverhq @smashingmag
It always boils down to a simple principle for me:
"Be liberal in what you accept from others"
en.wikipedia.org/wiki/Robust…
... yet, it feels like most forms in the wild are more obsessed with unnecessary strict validation logic
SmarterCoding retweeted
Law of Software Development:
The first time you think you are finished, you are never finished.
#100DaysOfCode #softwareengineer
SmarterCoding retweeted
Our marketing slides:
"... very lightweight app, running on any phone ..."
Dependency count according to 'yarn list':
6152
#javascript
SmarterCoding retweeted
There are often many solutions tackling the same problem.
Some fit to your style & preference, some do not.
Sometimes one solution fits to a specific task, while others fit different tasks better.
Such is (developers) life.
#100DaysOfCode
SmarterCoding retweeted
Today I learned the hard way:
Just because you trigger a reload via #javascript does NOT mean subsequent code is not executed anymore.
... and thus might cause weird errors in you monitoring.
SmarterCoding retweeted
Performance improvements almost always provides value.
It is almost never the highest ROI activity.
SmarterCoding retweeted
Replying to @SandraCoding
Even after >10 years professional experience.
I am genuinely surprised if any non-trivial code change just works the first time.
SmarterCoding retweeted
Replying to @blakiecodes
There so much different types of people in the field.
Have to find your own optimal working space.
hanselman.com/blog/ACoderAPr…
SmarterCoding retweeted
🔸 Make it right before you make it faster.
🔸 Make it fail-safe before you make it faster.
🔸 Make it clear before you make it faster.
— The Elements of Programming Style
We have all been there, haven't we?
SmarterCoding retweeted
In case you did not know yet:
With 'fetch' there is a native way to make async requests in the browser (*)
SmarterCoding retweeted
Regular reminder to be careful when doing arithmetic with floats in #javascript
SmarterCoding retweeted
In contrast, concept which has been remarkable stable over the years:
Regular Expressions
If you are new to coding check it. Extremely versatile and valuable skill imho.
developer.mozilla.org/en-US/…
SmarterCoding retweeted
Not sure who needs to hear this:
Performance improvements almost always provide value.
It is almost never the highest ROI activity.
#webdevelopment
SmarterCoding retweeted
A good developer delivers as specified.
A great developer questions the specification.
Do you agree?
#100DaysOfCode #development
SmarterCoding retweeted
"Prefer to be defeated in the presence of the wise than to excel among fools."
=> You might feel intimidated, but will always learn more when interacting with smarter & experienced people than you.
#100DaysOfCode










