this post was submitted on 15 Jul 2026
21 points (95.7% liked)

Programming

27709 readers
474 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 3 years ago
MODERATORS
 

I'm a beginner in programming, and I found out I cannot even reproduce a simple number guessing program I have earlier copied from a book.

Is it a beginner issue, or there is more than just continuing to learn to be able to code without hints?

you are viewing a single comment's thread
view the rest of the comments
[–] Glitchvid@lemmy.world 4 points 2 hours ago* (last edited 1 hour ago)

It sort of depends on what you mean by can't reproduce without looking at hints.

Like, even now if you asked me to write a number guessing game in a language I've had to use a lot (Java) I couldn't do it straight from memory. I haven't needed to read stdin manually for a long time so I'd have to look at the class and docs to see the best way to pull in a line and parse it into a number, I don't remember the specifics of the Random class either, so I'd need to double check the methods available and if they produce inclusive or exclusive ranges.

To me that's normal; I understand the program flow and what needs to be accomplished, but the specific classes and methods are something I don't keep with detail in my head, using the docs and keeping the language reference handy is normal, in my experience.