[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Why does Java code look so fucking ugly?

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 27
Thread images: 4

File: bd7c954c9980de9cedd6873b1272a82b.jpg (163KB, 1280x720px) Image search: [Google]
bd7c954c9980de9cedd6873b1272a82b.jpg
163KB, 1280x720px
Why does Java code look so fucking ugly?
>>
because you're supposed to write more than a hello world in it
>>
>>60806709
A problem with verbosity that creeps into every nook and cranny in the language, even in the way the keywords are used.
>>
>>60806709
because it has shit IDEs
>>
>>60806709
Because it's meant to be written in a bloated IDE that will generate 99% of it for you anyway. It's also great for jobs because your boss sees you wrote 2000 lines today even though it does fucking nothing and 1500 of them were generated by the IDE.
>>
>>60806742
there's no better ide than intellij
>>
>public static final int

Holy..wtf
>>
>>60806764
We thank Java for being so awful to develop in so that there was a high enough demand for a quality ide the same way we thank war for the technological advancement it brings. Java development = literal wartime.
>>
Why does Java code look so fucking sexy?

>>60806817
wow, you somehow managed to turn a language being by the greatest programming IDE ever created into a disadvantage. some top tier eristic right there
>>
>>60806709
Because camelCase
>>
i wish Elixir was suitable for desktop applications
>>
>>60806709
It's way too verbose
>>
>tfw Cfags will NEVER know the feeling of writing "public static final int"
>>
>>60806709
Because I'm too concerned with the end result than being autistic over syntax.
>>
File: java-design-patterns.png (38KB, 373x221px) Image search: [Google]
java-design-patterns.png
38KB, 373x221px
Use a better IDE and learn about your design patterns senpai
>>
>>60806709
>>60806817
>>60806941
webdev confirmed
>>
>>60806709
ffs you're not even doing it right
>>
>Getters and setters
>No compile-time type inference, like the "auto" keyword in C++.
>One class per file, yet it's not enough to go off the file name, you have to declare the class and indent all of its contents.
>Must declare private and public per item. No way to group them.

Whenever Java had a choice, they always went for the option that was more verbose. You are a programmer, but the language designers had to assume you are stupid, you see, so they wanted to save you from yourself.
>>
>>60808656
>>One class per file, yet it's not enough to go off the file name, you have to declare the class and indent all of its contents.
wat - you haven't written any java
>>
>>60808667
I've written Java full time since 1998. It would have been quite enough to just say "class Whatever;" at the top of the file and have it apply from the top of the file on down. But hey, that might have confused developers new to the language for all of sixty seconds or so, so instead they went for the more "correct", verbose solution.
>>
>>60808656
>One class per file, yet it's not enough to go off the file name, you have to declare the class and indent all of its contents.

Why does nobody on /g/ actually know how to code?
>>
>>60808656
>Getters and setters
lombok
>No compile-time type inference, like the "auto" keyword in C++.
http://openjdk.java.net/jeps/286
>One class per file, yet it's not enough to go off the file name, you have to declare the class and indent all of its contents.
kek
>Must declare private and public per item. No way to group them.
I get that you like C++ but this is a non-issue
>>
>>60808656
>they wanted to save you from yourself.
Honestly I don't mind that. They've decided they want their language to be very verbose and explicit and that's not a bad thing.

I have a friend who's teaching himself programming and he had me look at his code. It was a mess. None of it made sense or followed any pattern. He had no idea what scope was and made everything global to avoid "not defined" errors (even his 'i' variable in a for loop was global). If he had decided to use Java instead of his made up babby's first language he would have learned to program better simply because of the way the language forces you to be explicit and verbose.
>>
>>60806709
Because brackets in new lines instead of at the end (violates Sun's Java Coding Convention), and because of not using lambdas for the runnable. The try-catch is useless I think.
>>
>>60809062

I can understand the appeal. if you're working in a large group, you're going to have a lot of cretins writing a lot of shit code. Java helps it have some structure.
>>
>>60806873
Someone rewrite this in Clojure.
>>
>>60809129

>because of not using lambdas for the runnable.
This, mainly.
Thread posts: 27
Thread images: 4


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.