madeindjs

joined 8 months ago
[–] [email protected] 3 points 2 days ago

My top 3 (as mainly JS dev) would be:

  1. Number overflow. It happens when you're backend send big number ID serialized in a JSON. The solution is to wrap the number into a string when you know that can happens.
JSON.parse('{"n": 123456789123456789012.0}').n
// => 123456789123456800000
  1. Mutating an Object by ref (now I use Object.freeze a lot). Something like:
const CONFIGURATION = { conf: { enabled: false } }
// setup a "copy"
let currentConfiguration = { ...CONFIGURATION }
currentConfiguration.conf.enabled  = true
// try to reset the conf
currentConfiguration = { ...CONFIGURATION }
// => { conf: { enabled: true } }
  1. Assignation instead of comparison (now my IDE warn me)
if (foo = false) {
  // do something
}
[–] [email protected] 4 points 2 days ago

I tried Helix but my muscle memory around Vim movements was a non - starter for me. Also , Helix wasn't working out of the box with Vue.JS (it needs to be tweaked a bit.

So I gave a try to LazyVIM and everything works almost as is. I'll never look back.

[–] [email protected] 2 points 4 days ago

I'm in the same situation. I have a One Plus 8, and when I try to update using the updater app on Android, my phone reboot a dozen of time but finally boot without updating Lineage OS. I tried twice and finally gave up...

[–] [email protected] 4 points 4 days ago (1 children)

The video mentions some "de facto" standard libraries like Lodash or Underscore. But there is also Bun which try to promote their standard library like their test runner, their HTTP server, etc..

I like Deno's approach, since they try to make their “Standard library” also available for other platform. But only few of them are compatible with Node.js.

For instance, @std/cli is only available for Deno. So I'll stick with commander which is more standard for CLI tools, and it works with Deno, Bun & Node.js.

[–] [email protected] 1 points 5 days ago

Just by curiosity, why Blender isn't adapted for this use case ?

[–] [email protected] 2 points 6 days ago

Because I'm lazy haha. I found this one for Firefox which is perfect !

[–] [email protected] 1 points 1 week ago (2 children)

Do you know if a browser extension allow to fill Signup form with fake data ?

[–] [email protected] 2 points 1 week ago (1 children)

Really helpful, thanks. Just curios, does this list apply also for LineageOS + MicroG ?

[–] [email protected] 1 points 1 week ago (1 children)

Do you refer to this?

[–] [email protected] 3 points 1 week ago (1 children)

Congrat. How long did it take to build this game ?

view more: next ›