Mine is that the useState hook is an actual plague on the entire React ecosystem. Regardless of your opinions of React, if you wanna use something then use it right.

  • nightlily@leminal.space
    link
    fedilink
    English
    arrow-up
    2
    ·
    2 hours ago

    It’s a bit of a kitchen sink language now. I haven’t used it professionally in quite a while but using it for Godot (anything but gdscript) has me scratching my head over some of the architectural decisions. It seems to be led by „if people do a certain form often enough, add a shorthand to the language“, which is one way of cutting boilerplate, but does lead to something very hard-to-parse if you’re not familiar with it.

    • Valmond@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      1
      ·
      50 minutes ago

      Heey Godot for the win! And yeah no gdscript please!

      C# is like a script language wanting to be a C++ contender (let’s switch everything around to show how different we are, sigh).

      They do have one thing right though, true & false aren’t True or TRUE etc. But man all the new() whatever all the time 😓.

      public int A {get; private set;} = 0;

      Beautiful eh 😐