[–] 6 points 1 year ago* (1 child)

Your context solution seems fine to me, if you use that value in multiple places. If you only use a context in a child, than I would just pass the value and the setter as a parameter to that child. Definitely not all shared state has to have a context around it.

  • source
  • [–] [S] 7 points 1 year ago

    PS: Hope this is the right place to ask! I don't have a Stackoverflow account, and it's not like I have actual problems with this method either. I'd just like to know if there's problems with it that I don't know about πŸ˜†
    I used to mainly develop in Delphi before my company said "You're doing React now, congrats!" and just sent me and other non-React developers off to build a whole new codebase by ourselves. Very interesting project and lots of lessons learned, but to this day there still are very few people at my company that actually know React, and even fewer people that know HTML. So there isn't really anyone who'd see the code and could say "Oh, don't do it like that". But that way I also don't really learn best practices, which is why I try to ask around 🫣

  • source
  • [–] 4 points 1 year ago

    Idk how true the benchmarks hold up in reality, but lets be honest you can program a server in ANY language/framework and it will be plenty fast for any of us (as long as you dont go out of your way to do stuff very wrong).

    Unless your use case is maybe very unique and or you are serving hundreds of concurrent requests (which most aren't) all day long.

    And so for my conclusion, you choose what you like (which should be Go hehe).

  • source
  • [–] 1 point 1 year ago

    I offer a compromise of using python's requests library. It's got most of the listed benefits, but I like python better than shell scripting.

    It's weird that I've been seeing job posts that list postman as a required skill. It's not great.

    I did use "Bruno" for a while to have a GUI for making requests. It was fine.

  • source
  • view more: β€Ή prev next β€Ί