this post was submitted on 29 Aug 2023
210 points (100.0% liked)
Programming
426 readers
6 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities !webdev@programming.dev
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Java placed way better than I expected
You can write concise Java. Just like you can write readable Haskell. It’s just not idiomatic to do so.
It is always dismissed as too verbose, while in go’s case it is never mentioned, when in fact the latter is way more verbose.. People’s bias show.
I will gladly complain any day about go being terribly verbose.
Maybe also bias by the number / experience of people using it.
1st semester students getting shocked by
public static void main(String args)
and meming it on the internet.Go on the other hand likely isn't a common choice / option for a first language.
They weren't writing enterprise Java or they'd need a dozen factories and a few factory factories and probably a factory factory factory just to be safe.
Code Golf rules allow people to submit an anonymous function instead of a full program, which eliminates a lot of the boilerplate.
I don’t know the specifics of the golf problems, but I’m mostly in c#, also notorious for “having too much boilerplate,” and it looks like it’s 3rd by char count.
My guess is that languages with comprehensive standard libraries can do more with less custom code. As you should expect.
Yes, but it looks like it is already I think more than twice as verbose as Python.
What's interesting to me is how differently C# scored vs Java.