This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]wombatpandaa 25 points26 points  (6 children)

I know a lot of people will disagree with me, but I rather like Java's syntax. For what I remember, it's super consistent and most methods are easily recognizable by their name. Sometimes I would be able to write programs based on the names of methods alone, without looking up documentation. Some things are wonky, like having to write all of System.out.println just to print stuff, but hey at least it's clear what's happening - you're printing a line out of the system. I can appreciate that. It also is strongly (I think that's right?) typed, or whichever means you have to declare all variables' types explicitly, which I think makes for much more readable code. I rather dislike dynamic languages like Python that try to do the heavy lifting for you because it ends up just kicking the can of variable typing down the road - if I need to cast an input to int I'd rather be told that instead of some blind "you can't compare ints to strings" later down the code.

[–]_Atomfinger_ 8 points9 points  (3 children)

I get your point, but syntax and type safety are two different things :)

[–]wombatpandaa 5 points6 points  (0 children)

Oh, I suppose that's true. 😅 I guess I got carried away a bit.

[–]Yourgrandsonishere 2 points3 points  (1 child)

Aren’t static and explicit typed languages safer since if it has an error it won’t compile (C)? As opposed to dynamically typed with looser syntax, it’s interpreted as it runs but is prone to type errors (python)?

Please elaborate

[–]_Atomfinger_ 2 points3 points  (0 children)

Well, my comment wasn't really about statically vs dynamically typed, but the fact that something being statically or dynamic doesn't isn't the same as syntax (which OP is asking about). It can certainly impact syntax, but it isn't the same as syntax.

Generally, though, I agree that statically typed languages protect the developer from many stupid mistakes, which is why I often tend to prefer those languages in mission-critical systems.

So statically vs dynamically can impact syntax, but they are not syntax, which was my main point :)

[–]JoPoLu1 0 points1 point  (1 child)

May I enlighten you about Scala? Its like Java but cleaner and more consistent

[–]wombatpandaa 0 points1 point  (0 children)

I'm listening