• 0 Posts
  • 8 Comments
Joined 1 year ago
cake
Cake day: July 1st, 2023

help-circle
  • gornius@lemmy.worldto196@lemmy.blahaj.zonerule
    link
    fedilink
    arrow-up
    1
    ·
    10 months ago

    Java used to lack many features to make the stuff you wanted it to do, so most Java programmers adapted design patterns to solve these problems.

    Honestly, older versions of Java are utter garbage DX. The only reason it got so popular was because of aggressive enterprise marketing and it worked. How can a language lack such an essential feature as default parameters?

    So, anyway after the great hype Java lost its marketshare, and developers were forced to learn another technologies. And of course, instead of looking for language-native way of solving problems, they just used same design patterns.

    And thus MoveAdapterStrategyFactoryFactories were in places where simple lambda function would do the same thing, just not abstracted away three layers above. Obviously used once in the entire codebase.

    Imo the only really good thing about Java was JVM, while it was not perfect, it actually delivered what it promised.


  • English is not my first not language. When I write something down in my first language (polish), it feels more like I’m transcribing things I silently say to myself, while with english I’m actually thinking about every word I type.

    The funny thing is, the better I am getting at English, making those types of mistakes is getting easier for me.

    But idk, this is just my experience.






  • Actually “natural” gets a pass from me. It doesn’t feel right just because we got used to the opposite.

    Imagine a paper scroll on rolls. If you slide the top of the roll upwards - the paper goes up, and you can see more bottom content. The exact opposite happens when you scroll the mouse wheel with default config.


  • It is better than in most languages with exceptions, except from languages like Java, that require you to declare that certain method throws certain error.

    It’s more tedious in Go, but at the end of the day it’s the same thing.

    When I use someone else’s code I want to be sure if that thing can throw an error so I can decide what to do with it.