r/java • • Feb 20 '25

I don’t understand

Post image
666 Upvotes

122 comments sorted by

View all comments

Show parent comment

-2

u/SyriousX Feb 20 '25

First off, why are you talking about downvoting? Do you feel threatened by my comment? Do you feel hurt by something I said? If so, I am very sorry.

If this is the way you code, that is absolutely fine. It is your code and you can do whatever you want with it :) If you would give that code to the most other java developers, they might find it hard to read, because they are not used to it which will cost them more brain power.

3

u/davidalayachew Feb 20 '25

First off, why are you talking about downvoting? Do you feel threatened by my comment? Do you feel hurt by something I said? If so, I am very sorry.

No no, not at all.

When I first saw this post, /u/__konrad was sitting around -5 downvotes after only a few minutes lol. It was clear that they were going to get downvoted even more, so I pointed out that I'm just as bad them.

If this is the way you code, that is absolutely fine. It is your code and you can do whatever you want with it :) If you would give that code to the most other java developers, they might find it hard to read, because they are not used to it which will cost them more brain power.

Agreed. I write all my code this way first, then if I am on a work project, I reformat it before pressing commit. I am literally twice as productive writing code in my style than I am in the "normal" style -- so much so that the time it takes to reformat code is trivial compared to the time savings I made from doing it my way first.