• 0 Posts
  • 31 Comments
Joined 1 year ago
cake
Cake day: June 14th, 2023

help-circle












  • Aurenkin@sh.itjust.workstoProgrammer Humor@lemmy.mlC++ Moment
    link
    fedilink
    arrow-up
    17
    arrow-down
    1
    ·
    9 months ago

    I think it’s pretty useful, be interested to hear your hangups with it though because it’s definitely not perfect.

    If something goes wrong and I have a stack trace, that plus the type of exception will almost always be enough for me to figure out what’s wrong at least as a starting point. I’ve worked mostly with JVM languages in my career though so maybe I just don’t know how bad it actually is.






  • I don’t know if this is the proper definition but I think of boilerplate as the code that’s not directly related to business logic. An example I can think of in Java that’s a lot nicer in Kotlin is setting all the instance variables in the constructor.

    The names and types of the variables are important and useful for understanding the business logic but the actual constructor definition doesn’t tell you anything if it’s just assigning the constructor parameters.