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?

  • emb@lemmy.world
    link
    fedilink
    arrow-up
    2
    ·
    edit-2
    10 days ago

    Don’t sweat it if you don’t remember syntax stuff right away.

    The building blocks will repeat so much - your if statements, loops, variable initialization - that some will stick in your head eventually.

    But even when you get it, every once in a while you’ll get a brain blip and have to look it up. Don’t hesitate to have the language manual readily available. (As a next step, try working from that kind of language reference instead of copying direct from the tutorial.)

    Most of the time in you won’t even have to know it - in larger projects, you’ll find a similar bit of code in an existing file and copy it, then make your modifications. Or depending on your dev environment, the IDE’s intellisense stuff will act as a guide rail.