16

So, learning Java at the moment.

Thoughts so far:

“This IDE is going to make me so lazy! It can write getters, setters, AND toString() for me?!”

“Oh my god, angle brackets. It’s like someone with a love of nesting was made fun of for wasting space and retaliated by crafting a language that inlined nesting data types.”

“Whoa, this would safeguard what kind of input went into the function SO MUCH.”

“DOES THIS MAKE IT EASIER TO WRITE UNIT TESTS?! *excited*

Comments
  • 2
    I always thought of java as the language u could use when u just wanna bring ur logic to life without worrying about language stuff. Plus with a good IDE, u coukd just write the name of a class and see what it can do for u with autocomplete
  • 5
    Talk about VS + ReSharper 😎
  • 2
    Honestly, the past few years java has got to the point where its on of the easier to write languages (with a good ide)
  • 2
    And yes, unit tests could even be autogenerated with some plugin
  • 6
    My soul cringes when I think back of time when I spent time to write getter/setter, toString, hashCode and constructor
  • 5
    Generating getter, setter and toString by the IDE?
    Why don't you use Lombok instead, no fuzz with regenerating any toString, equals or hashCode when you add/remove fields. Or just switch over to Kotlin giving you many more features like that.
  • 1
    Wait until you get to the point where you're playing with streams...! :-D

    ...unless you've used functional languages before of course, in which case they'll just seem incredibly limiting and verbose.
  • 2
    @dnaka91 why is there a down vote. It seems like there are people not understanding the pain of the extensive amount of boilerplate code with java. Wait until your project gets bigger or you have better understanding of design pattern. The things "wow, you can do that" turn into "oh, i will have to do that cause i now know it is better that way".
  • 0
    @AymanH don't most languages have this function preview thing?
  • 1
    @mundo03 very true i was just describing what i do for fun in a typical Friday night ... :(
  • 1
    @AI-Overlord I still cringe when generating them. So much noisy boilerplate code. I really have to check out kotlin I guess
  • 0
    @kevinye32 there was a downvote cause i misclicked
  • 0
    @ganjaman XD
  • 2
    @musician all hail @data annotation
Add Comment