SmarterCoding (@SmarterCoding) header
SmarterCoding (@SmarterCoding) profile picture

Helping you become a better and more productive developer - follow for regular code, tooling & web dev tipps.

Joined May 2020
Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)Photo by SmarterCoding (@SmarterCoding)
Just discovered a bug in a legacy script by simply renaming the file from .js to .ts 🤯 #typescript #javascript
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
3
1
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
8
7
If have fallen for this trap a hundred times.
"Filter" is a hopeless name for a function. Does it filter out or filter in?
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
1
2
Law of Software Development: The first time you think you are finished, you are never finished. #100DaysOfCode #softwareengineer
2
4
Our marketing slides: "... very lightweight app, running on any phone ..." Dependency count according to 'yarn list': 6152 #javascript
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
7
2
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.
Performance improvements almost always provides value. It is almost never the highest ROI activity.
Replying to @SandraCoding
Even after >10 years professional experience. I am genuinely surprised if any non-trivial code change just works the first time.
1
1
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…
3
1
🔸 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?
2
4
In case you did not know yet: With 'fetch' there is a native way to make async requests in the browser (*)
2
1
Regular reminder to be careful when doing arithmetic with floats in #javascript
1
4
1
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/…
One remarkable thing about JavaScript: You could come back to the same basic question on SO every year and still find new answers.
1
1
Not sure who needs to hear this: Performance improvements almost always provide value. It is almost never the highest ROI activity. #webdevelopment
A good developer delivers as specified. A great developer questions the specification. Do you agree? #100DaysOfCode #development
3
6
"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
1
1
About inline code comments: Before adding, pause and think if there is a way to make the code speak for itself.
1
1