r/CodingForBeginners

How do you code??

I want to make a 3d horror game named "Ice_Breaker", but I'm only 13, and have NO IDEA how to code at all.

I need genuine advice and programs that'll help me learn, especially for free since I know my parents won't fund this.

I already have the idea in mind, along with characters and possible designs; I'm just stuck on coding right now. I'm seriously dedicated to this, can you help?

Any advice is appreciated, especially about free coding programs/3d model makers.

reddit.com
u/_YUJUN_ — 3 days ago

What programming language should I learn or master in order to start this career? Because I'm afraid to learn a language and not benefit from its information at all.

u/SpinachAromatic4961 — 4 days ago

Help me my phyton code dosen't work propoerly and for sure isn't efficent

Hello, this is my first ever actual Python program, I want it to give Info about numbers.

Firstly I want to ask what do you think about the labeling that I've doen, someone told me it is a good practice.

First of all the programm prints (on every number that i checked) that it is not prime, the reason is that if prime number is divisble by prime number it says that it is not one, I don't know how to fix this.

I also don't know if this is the besgt way to do this, just writeing down a bunch of prime numbers and dividing the user number by them?

Thank you for your anwsers :-)

Here is the code:

user_number = 0 # The programm creates a value for the number, which will be inputed by the user


# Input section


print("----------Number Info----------\n")
user_number = input("Input a whole number, the programm will show you information about it:\n >") # Asks the user to input the number and saves it as user_number


print(f"\nYour number is {user_number}. Here is the info: \n")


# even or odd


if int(user_number) % 2 == 0: # % gives back the remainder after the devison, the program checks, if it is 0
    print("It is even") # If it is 0 it prints: It is even
else:
    print("It is odd") # If it isn't 0 it prints: It is odd


# prime or not


if int(user_number) % 2 == 0:   # Programm divides number by some prime numbers and chceks the remainder,
    print("Is is not prime")    # if it isn't divisble by any of them it prints that it is a prime number,
elif int(user_number) % 3 == 0: #otherwise it prints that it isn't one
    print("Is is not prime")
elif int(user_number) % 5 == 0:
    print("Is is not prime")
elif int(user_number) % 7 == 0:
    print("Is is not prime")
elif int(user_number) % 11 == 0:
    print("Is is not prime")
elif int(user_number) % 13 == 0:
    print("Is is not prime")
else:
    print("It is not prime")
reddit.com
u/Interested737 — 3 days ago

How much should AI be involved in an into to programming course?

I am considering pitching a class as an adjunct professor at my local college. I want to teach introduction to programming (JavaScript) while teaching students how to automate Google Sheets.

I want the course to help my students build software that could change their life or view of what's possible in the world, while also giving them some real skills.

How much should AI be involved? I see three levels:

  1. **No AI at all.** This is how I learned to do it, and I know writing the code out by hand yourself is really important for teaching you how to think like a computer. However, there are serious downsides to this, especially since it is clear that AI is the future of programming.

  2. **Use AI a lot, but no coding harness.** This is kind of like vibecoing before claude and cursor, just learn how to give the AI assistant context and ask the right questions, but you still end up pasting the code in your own editor, and you do not have the tight integration that is available now. On the bright side, there are lots of these AI assistants that are free for students.

  3. **All in on AI: Claude Code or Codex.** This is how I actually write software today, and it is the most useful, but I worry how much a student would actually learn with a tool this powerful. On the other hand, maybe it is the right place to start because this where they will eventually end up anyway, and we can build really useful things the fastest with this setup.

Of all the options, I am leaning towards option 2 myself (goldilocks option), but let me know what you think.

reddit.com
u/promise_resolved — 4 days ago

Coders I need your help,Drop yourr suggestions what to do

I am confused between a 75% layout keyboard and a 65% layout keyboard

I personally don't know which layout is suitable for Coding

The 65% layout only lacks physical fn keys and 75% do have fn keys

Help me figure this thing

Thanks

reddit.com
u/Muted_Processor — 5 days ago

You're probably skipping the error message. Read it in this order instead.

Half the bugs people get stuck on here aren't actually mysterious — the error already told them what was wrong. What's missing is the habit of reading it properly before touching the code. Most of us (me included) see red text and immediately start changing random lines, which is how one small bug quietly turns into three.

Here's the order that actually works.

Read the whole message, top to bottom, before doing anything. The first line says what kind of problem it is. The last line usually says where — a file and a line number. Treat that line number as the address of the bug, not a hint.

Open that line, and the line just above it. A crash reported on line 40 is very often line 39 handing it bad data.

Put the message into plain words. TypeError: cannot read properties of undefined (reading 'name') is really just "you tried to read something that doesn't exist yet." In plain words, you can start guessing why.

Change one thing at a time, then run it again. If you edit five lines and it suddenly works, you've learned nothing and the next bug will eat you alive. One change, one run, tells you what actually fixed it.

Two smaller habits that save a lot of time: print the values right before the line that breaks (half of debugging is the gap between what you assumed a variable holds and what it actually holds), and shrink the problem — delete code until you're left with the smallest version that still fails. A bug in ten lines is far easier to see than the same bug buried in two hundred.

And the part nobody says out loud: an error isn't a verdict on you. It's the computer telling you exactly where it got confused. Read it like a note, not a red card.

What error took you the longest to figure out? Drop it below and I'll help you read it.

reddit.com
u/NoDepartment772 — 4 days ago

Working on a gameproject and would really need a programming buddy/mentor

I work on a Gameproject for my Bachelor and am struggeling heavily. My expertise lies in idea development, not programming...i tried getting some blocking done in unreal today and nearly burst into tears from frustration.

All i need is somebody who knows what they are doing to guide me. I don't speak the maschine language well. And before anyone says "just use AI", i want to actually learn how to do this, so i'm going the "old fashioned" way.

I'm a beginner in every way

My timezone is GMT+2

I plan to code visually in unreal (which would be c++ if written out)

And the project is a vehicle focused, retro game

reddit.com
u/Anomaly_Entity_Zion — 4 days ago

Idk what to put in title

I'm currently learning c++ as my first programming language, it's turned into somewhat of a hobby for me but I have my final exams coming up and can't really figure out how much time i should spend in coding each day without it having a negative effect on my studies and stuff ( and without pissing my mom off). What do guys recommend?

reddit.com
u/Ghostie_7532 — 4 days ago
▲ 3 r/CodingForBeginners+1 crossposts

Coding activity books?

Hi all, my son who is 12 is into coding. He knows how to do some basic stuff. I don’t know the first thing about it. I’m looking to see if there are any good books that have things for him to create or projects and stuff to do with coding. I looked but couldn’t find anything yet that seems good or have good reviews.

reddit.com
u/PaintingFormal6463 — 5 days ago

Stuck because you understand the syntax but don't know where to start? Write the steps in plain English first.

A wall I see described here a lot (and it's a really common one): you get functions, variables, loops — but hand yourself an empty problem and your mind goes blank. That gap usually isn't about syntax. It's about decomposition: turning "make X work" into an ordered list of small actions.

Here's the routine that closes it:

  1. Before writing any code, write the solution as numbered steps in plain English. One action per line. No syntax, no language, just what needs to happen, in order.
  2. Say what goes in and what comes out. Input, output, and the transformation between them. A lot of "I don't know where to start" is really "I haven't decided what the thing takes and returns yet."
  3. Translate one line at a time. Each English step becomes a few lines of code. If a step needs more than ~5 lines, it isn't small enough — split it.
  4. Trace it by hand with the smallest possible input before you run it. Most logic bugs show up on paper.

Tiny example — "check if a number is even":

  • English: (1) get the number, (2) divide by 2 and look at the remainder, (3) if the remainder is 0 print even, otherwise print odd.
  • The code is now almost mechanical, and if it breaks you know exactly which step to look at.

The deliberate-practice part: for the next week, when you get a problem, force yourself to spend the first few minutes ONLY writing the numbered steps. No editor. It feels slow and pointless at first — which is exactly why most people skip it and stay stuck.

Curious what clicked for others: pseudocode, flowcharts, or something else? And if you're stuck on a specific problem right now, drop it in the comments and I'll help break it down.

reddit.com
u/NoDepartment772 — 5 days ago

Why do I struggle with knowing what to code, even when I understand the code itself?

I’ve noticed that my biggest problem with learning programming isn’t really understanding the code itself.

For example, I understand what a function is and how it works. I understand variables, conditions, etc. But when I’m given a problem to solve, I often don’t know what needs to happen first, second, third before I even start writing code.

A simple example: if I need to read an input from an HTML page, I might understand the syntax once I see it, but I wouldn’t necessarily think on my own, “First I need a variable to store/read this value, then I need to do X, then Y.”

I guess I’m trying to learn how to think like a programmer before actually writing the code.

Is this a specific skill I should be practicing? Are there any websites, games, exercises, or methods that specifically teach this kind of problem-solving rather than just programming syntax?

reddit.com
u/Flkhuo — 11 days ago

Zero knowledge of coding

I'm in my 3rd year CSE degree and I don't know anything about coding so can anyone tell how I should start to get a job after my final year?

reddit.com
u/Grim_0009 — 11 days ago

Real world projects rather than just predicting or basic chatbots

Hey everyone I want to build a real world applicable and useful in today's market like project.

I searched on the internet for this kind but mostly ended up for any chatbots using rag or predictions of some kind of things, so guys please help me to pick a good project idea where I can also learn lot of things.

reddit.com
u/angry_bird445 — 11 days ago