Here's the post I wish I had when I first started programming.
If you know someone just beginning to code (especially students), maybe pass this along?
Would've saved me a lot of head-scratching and "why didn't anyone tell me this earlier?" moments.
https://t.co/ThoK3s6Aud
Node 22.6.0 just added TypeScript support ๐ฅ
if you're planning to use it, you'll need these two lines in your tsconfig.json.
Brief explainer in a ๐งต
@leeerob@nextjs It's no issue, but i can't find a config or something simple without writing error boundaries and stuff.
custom logs are straight forward, but logging everything nextjs logs in json logs, errors, infos, etc (for better usage in i.e. datadog) isn't.
@housecor Have you already had use cases where you had to share state between multiple tabs? What tech would you recommend for this?
And what is your opinion on RxDB for global state management?
Code smell: Setting state twice in a row
Example:
Solution: Eliminate showDialog state. Derive state instead.
If userToEdit has a value, show the dialog.
If userToEdit is null, hide the dialog.
Benefits:
-Less state to manage
-Avoids illogical combinations (it's illogical for userToEdit to be null when showDialog is true).
Tutanota is now Tuta! ๐ฅณ
All of the features you have come to know and love, now with a sleek new domain name. ๐
Threats to your privacy won't be going away, but neither are we. ๐ช
Learn more and create your new Tuta account here ๐
https://t.co/r3NwlELTX1
#privacy#email
@_georgemoller Nice approach. Looks clean but adds complexity, which can be confusing for new developers in the project. Provider hell is maybe ugly but straight forward.
Problem: You need to represent an empty number.
Hack: Use 0, -1, or "".
The real solution: Use null. That's what it's for. Null says, "This has no value".
0, -1, and "" are a lie.
Problem:
๐ซ Your project has unused files.
๐ซ It has unused npm dependencies.
๐ซ It has unused TypeScript exports.
But you haven't noticed, because these things are hard to spot.
Solution: knip
I just used knip to find and resolve dozens of issues.
https://t.co/QmN3sNlmbm
๐คฉ [1/4] Coming soon in @ChromeDevTools - You can overrides API response (Fetch/XHR) and more!
Imagine you can mock APIs in frontend without waiting for the backend changes!
Not only that...