r/programmingcirclejerk • u/fat_apollo I've never used generics and I’ve never missed it. • Apr 16 '21
This cannot be understated: Java simply feels good to write
https://jackson.sh/posts/2021-04-java-underrated/[removed] — view removed post
59
u/tesch34 Apr 16 '21
Java is criminally underhyped
Is this jerk?
30
u/muntaxitome in open defiance of the Gopher Values Apr 16 '21
Probably just a youngster that missed a full decade of java hype by two decades.
15
u/0dyl There's really nothing wrong with error handling in Go Apr 16 '21
pub const Unjerk = struct {In the about me OP describes themselves as a "4th year computer science student." So, yeah.
};
43
Apr 16 '21
Nominal typing saves time
lol?
Type guards are my least favorite TypeScript feature. They're essentially duck typing that you have to implement yourself and trust that they're implemented correctly.
As we know, no Java program uses reflection to simulate duck typing.
There's something about declaring a type AND having to write validation logic for said type that really rubs me the wrong way.
As we know, no Java program uses instanceof and upcasting to do basically the same thing as in the example (that's called flow-sensitive typing btw).
Turns out statically typed languages are slightly better than webshit with a linter like TypeScript and Python, who would have thought!
33
u/mizzu704 uncommon eccentric person Apr 16 '21
The perspective of an ignorant computer science undergrad
There's literally rules against this
20
Apr 16 '21
Rules in this sub or rules in life? Who knows, this guy could be the next 10xer at your job
34
u/VeganVagiVore what is pointer :S Apr 16 '21
Vote no on letting children exist
4
u/PthariensFlame uncommon eccentric person Apr 17 '21
Ah, I see you’re part of the Arkansas state legislature.
26
u/xigoi log10(x) programmer Apr 16 '21 edited Apr 16 '21
When consuming third-party libraries in Java, you always know exactly what types need to be passed to a method. Most importantly, incorrect usage of a function will result in red squigglies in your editor. Given that heavy library usage is in, I think more people should be excited about Java.
This just in: Java is the only statically typed language in the world.
When a developer has to refer back to the implementation of a method to figure out which types to pass it, that's a waste of time.
Documentation? I've never heard that word.
How many languages can you think of that meet the following conditions?
Quality package manager and build system (I 💚 Maven)
Nominal typing
Large community
Hands-off optimization
You know you want to say the R-word.
15
14
6
18
u/Hueho LUMINARY IN COMPUTERSCIENCE Apr 16 '21
Hi! My name is Jackson Roberts. I'm a 4th year computer science student at the University of Colorado Boulder.
17
8
u/hernytan What’s a compiler? Is it like a transpiler? Apr 16 '21
As jerkable as this is, this violates the rule of enthusiastic youngsters.
8
4
126
u/alibix Apr 16 '21 edited Apr 16 '21
I love Java's verbosity. It makes code very easy to read and makes it clear what is happening. Consider the following examples:
Rust (🤮)
Java (😍)
Notice how the Java version's verbosity lets a programmer know exactly what is going on. There is no hidden ivory tower implicit magic like in the Rust code! With Java, what you see is what you get.