• 1 Post
  • 283 Comments
Joined 2 years ago
cake
Cake day: June 16th, 2023

help-circle
  • == has essentially no use unless you remember some completely arbitrary rules

    If you make sure the types match, like by explicitly converting things on the same line on that example, then you can use it just like if it was ===.

    In fact, there are people that defend that if your code behaves differently when you switch those two operators, your code is wrong. (Personally, I defend that JS it a pile of dogshit, and you should avoid going to dig there.)








  • The “active” status.

    Any project with it set is active, any project with it not set isn’t. And you set them all to active when you create the toggle.

    If the users complain, you make them tell you an specific rule that can you can use to auto-change a subset of the projects in a cron job. Expecting anything like this to have a complete objective definition is delusional.







  • I think there’s a very large correlation between people that decide to use electron and people that write unusable, broken, tortoise-speed software.

    Because it really doesn’t need to be slow for user-interacting software. In fact, I don’t think any platform exists that is so bloated that it can make modern computers slow for user-interaction.