this post was submitted on 25 Nov 2023
185 points (97.0% liked)
Technology
59402 readers
4094 users here now
This is a most excellent place for technology news and articles.
Our Rules
- Follow the lemmy.world rules.
- Only tech related content.
- Be excellent to each another!
- Mod approved content bots can post up to 10 articles per day.
- Threads asking for personal tech support may be deleted.
- Politics threads may be removed.
- No memes allowed as posts, OK to post as comments.
- Only approved bots from the list below, to ask if your bot can be added please contact us.
- Check for duplicates before posting, duplicates may be removed
Approved Bots
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Java is a good language if you're a beginner, but if you've already coded before in other languages, it's going to suck.
Especially for beginners its a bad language. You have the understand artificial concepts about classes, objects, abstract states before you re able to learn the important stuff like if/else, looping etc pp.
I would always give beginners a language which is at least in their way as possible.
You don't really have to.
You can just handwave
public static void main
, and only deal with primitives, then static functions, before introducing objects.That's what they did at my high school. It's weird, and there's much better ways and languages to introduce procedural programming, but it's possible.
They should've just picked Kotlin.
It also encourages good basic habits, such as not making a variable mutable unless you specifically need to (
val
is way more common thanvar
, the IDE makes them very visually distinct).