• 1 Post
  • 23 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.







  • I hated this in GTA (mainly 3 and SA). You’re doing an escort mission and suddenly 6 guys start shooting at you with AKs from nowhere because you pissed them off in an unrelated quest.

    I prefer a Morrowind-like approach where enemies don’t scale and you have to take care not to venture too deep into some crazy gang’s territory early on.

    But it’s much much harder to make this work properly, and scaling enemies have become an expectation by players at this point.


  • I played Milon’s Secret Castle on the NES as a kid. The game is pretty much unplayable if you don’t have an infinite amount of time and patience, or a guide. There are hidden doors and items in unexpected places that are required to make progress, some rooms are dead ends that soft lock you, there are hidden exits that you have to find by pushing on a random pillar etc.

    Once I accidentally didn’t push the cartridge in all the way and the game started out in a random room and full of glitches. This lead me down a rabbithole of searching for hidden stuff, maybe even beat the game, but most of the time it just failed to start.

    Another one was San Andreas. I played it when it came out and I read online about myths like bigfoot, the meeting place of the Epsilon Program, ghosts in the desert, aliens etc. I must have spent hundreds of hours searching for these.