• 0 Posts
  • 53 Comments
Joined 1 year ago
cake
Cake day: June 12th, 2023

help-circle

  • Yes and no. They serve roughly the same purpose.

    I actually hated Powershell until I was forced to work on some automation scripts with it and realized that it’s actually pretty cool.

    Bash is good for quickly doing something in the terminal but for longer script files I prefer PS now. It feels much more modern and has a less janky syntax.

    Funnily enough the reason I had to use it was to make my scripts cross platform between osx, linux and windows.





  • Not necessarily, depending on your situation you can type the JS code yourself.

    If the team making the JS code were using jsdoc then the Typescript compiler can recognize the comments and use it for type checking.

    In some instances the compiler can infer types from JS code to do some basic validation.

    Even if the external JS code is recognized as any, your own code that’s using it still has types, so it’s better than nothing.


  • Typescript is a language, Node is a platform and framework. You can use Typescript in your Node project, they’re not mutually exclusive.

    The way I see it Typescript is more popular than ever, almost all (popular) libraries come with types and every job offer I get they use Typescript.

    And with good reason, our team recently took over a small Javascript app and there are tons of bugs that would never have existed if they were using Typescript. Things like they refactored something but missed to update a reference, or misspelled a variable name, failed to provide a required parameter to a funcrion, referenced a field that existed in another config object etc.











  • It’s not really about that, sometimes conservatives also agree that a change is needed but they disagree on how to get there.

    They see the current state as something that was built up naturally over a long period of time and everything has its place for a reason. Sometimes those reasons are not apparent immediately and making a sudden change will bite us in the long run in an unexpected way, maybe 100 years down the road.

    They might agree that the status quo is bad but they think change should come gradually in small steps, allowing things to settle down a bit, and reflect on the consequences before moving forward. They might say that at least we understand the situation and the rules of what we have now, we shouldn’t stray too far ahead into the unknown.

    For example, imagine that you live in a country under foreign rule. Should you start a war of independence and risk getting crushed or should you try to force concessions gradually over time and risk not getting anywhere? This is roughly the debate that took place in my home country in the 1800s.

    While it’s true that the extremes are that conservatives want time to stay still while progressives want to burn the world down and reform everything in a single day, but most of the time people are somewhere in between, or even change their positions depending on the issue.


  • Conservatives (with a lowercase ‘c’, I’m not talking about Republicans) prefer a series of small incremental changes over a longer period of time while progressives believe in big leaps. Both are valid viewpoints depending on the issue, sometimes we should take things slowly but other times we needed that change yesterday.

    Asking titles has been around for a long time so conservatives are ok with it. It also conforms to their existing ideas about gender and roles in society.

    Asking for pronouns is a relatively new thing and the whole debate around them is a big and sudden change (at least as far as they see), and it turns everything they believed in on its head.

    Of course, there are people who are just plain hateful but I think there’s more nuance to it than that most of the time.