Moin

  • 15 Posts
  • 166 Comments
Joined 2 years ago
cake
Cake day: March 11th, 2024

help-circle

  • A good question, as I like it and don’t like it. It is without a doubt better than dynamic types.

    On the pro side it removes redundant writing the type again and again. On the con side it is almost impossible to see what type with what functions the variable in front of you has without an IDE (which you don’t have without cloning the repo) or without an already deep knowledge of the code.

    Same with extension functions (free functions which can be added to a type almost anywhere in the codebase). Very useful (Kotlin is a great example for this) but also confusing when you want to hunt down where this piece of code is coming from.


  • I really don’t like comparing languages by Hello World complexity. You could use a lang which needs 3 chars to print it but sucks at everything else but it would still look better at first glance.

    As for this specific comparison: let the project grow to only midsize and you will crave for static types and well separated classes.


  • @[email protected] Was ich an diesen Systemen auch unintuitiv finde, istbdass ein Stern für sich ja auch irgendwie was Postives sein kann. In etwa “nicht gut, aber besser als nichts”. Daher weiß ich immer nicht, wo bei solchen Skalen die neutrale Mitte sein soll.
    Ich würde mir lieber ein System mit 0 als Neutal und dann Werten von < 0 bis > 0 wünschen.