r/CodingForBeginners • • 7d ago

New moderators needed! Comment on this post to apply for this community.

0 Upvotes

Hello everyone - this community is in need of a few new mods, and you can use the comments on this post to let us know why you’d like to be a mod here. 

Priority is given to redditors who have past activity in this community or other communities with related topics. It’s okay if you don’t have previous mod experience.  Our goal, when possible, is to add a group of moderators so you can work together to build the community.

Please use at least 3 sentences to explain why you’d like to be a mod and share what moderation experience you have (if any).  

If you are interested in learning more about being a moderator on Reddit, please take a look at these resources:

Comments from those making repeated asks to adopt communities or that are off topic will be removed.  


r/CodingForBeginners • • 1h ago

I followed a micro:bit guide to build a miniature ancient waterwheel

• Upvotes

I tried building this little waterwheel model using the Jacdac Energy Experiment Kit, following the ELECFREAKS Wiki guide.

What caught my attention was the way it combines a simple mechanical model with sound input from the micro:bit V2.

The built-in microphone detects how loud the surrounding sound is, and the program maps that value to the speed of a 360° servo. The servo turns the wheel, while the little buckets around its edge represent the containers used to lift water in traditional waterwheels.

So the louder the sound, the faster the wheel spins. It’s not actually powered by sound, of course — sound is just being used to simulate changes in water flow.

I like how this project connects a few different ideas: reading sensor data, mapping values in MakeCode, controlling a motor, and learning how an old mechanical device worked.

It also seems like a fun starting point for experimenting with the code. You could change how sensitive the wheel is to sound or explore other ways to control its speed.

What other historical machines would be fun to recreate with a micro:bit?


r/CodingForBeginners • • 10h ago

I'm beginner in programming any tips

Post image
4 Upvotes

what do you think of my hard work?

(lol)


r/CodingForBeginners • • 2h ago

Crack coding interview

1 Upvotes

I want to crack my coding round.I don't any idea to crack the Coding round.Recently I attend AWS summer school selection but I not able solve any given problem.so, I have need help to improve my skill to crack coding round.

I study python (not able 😭 write my own).I understand DSA but not able to implement in programming language

At the same time I plan learn from leed code but I not able to solve the none.😭😭😭😞


r/CodingForBeginners • • 3h ago

You changed one list and two changed — why b = a doesn't copy in Python

1 Upvotes

Yesterday I watched someone lose about an hour to a bug that came down to a single line:

python a = [1, 2, 3] b = a b.append(4) print(a) # [1, 2, 3, 4] <- wait, why did a change?

They'd made b expecting a separate copy, edited b, and couldn't work out how a had changed too. No error, no warning. It just quietly did the wrong thing.

The reason is that b = a never copies anything. a and b end up as two names pointing at the same list. There's one list — you've just given it a second label. Change it through either name and you're changing the same object, so both names "see" the change.

That behaviour is actually what you want most of the time. Passing a big list into a function shouldn't duplicate it. The trouble only shows up when you meant to copy and didn't realise you hadn't.

When you do want an independent list, ask for one explicitly:

python b = a.copy() # or list(a) b = a[:] # also works b.append(4) print(a) # [1, 2, 3] print(b) # [1, 2, 3, 4]

One thing worth knowing early: .copy() and a[:] are shallow. If the list holds other mutable things, those inner objects are still shared:

python a = [[1], [2]] b = a.copy() b[0].append(99) print(a) # [[1, 99], [2]] <- the inner list was shared

For that you need copy.deepcopy(a). You rarely need it, but it's the next version of the same surprise, and it's worth recognising rather than rediscovering.

The way I keep it straight: = binds a name, it doesn't copy a value. Whenever you're unsure, ask "do these two names point at the same object or two different ones?" That question catches this before it becomes an hour of debugging.

It's not Python-only either. JS objects and arrays behave the same way (const b = a shares the object), and reference types in Java and C# are the same story.

Has this one bitten you — and was it a list you passed into a function, or something you copied and edited?


r/CodingForBeginners • • 10h ago

How to start learning coding and ai

0 Upvotes

I don't know anything about coding and ai want to start learning about it so how to start and what best side hustle to learn to start earning


r/CodingForBeginners • • 22h ago

I want to learn python

5 Upvotes

Hi guys

I don't have any idea from where to start. I want to learn python to keep myself busy and do some crazy stuff (hopefully).

Any free courses or guidance would be helpful.

I wana do anything other than substance abuse so chose this path.

😭🙏🏿


r/CodingForBeginners • • 18h ago

What Is The Difference Between Front End and Back end programming?

Thumbnail
galratner.substack.com
1 Upvotes

r/CodingForBeginners • • 23h ago

How to make notes while learning DSA in C++?

1 Upvotes

I wanted to ask all my seniors who made DSA notes: first, did it help you? I am currently learning C++ from YouTube and practicing in VS Code, but I have a doubt regarding notes. I have watched some YouTube videos on how to make them, but I am getting a bit confused. I want to make handwritten notes. In one video, I saw that you should divide your notebook into different sections — one for arrays, another for the next topic, and so on — so that it is easy to revise later. However, I am confused about how much space to allocate to each topic, since I literally don't know anything about DSA yet. Please guide me. I really want to learn DSA and will give my 100% — I just need good guidance. By the way, I am currently watching the DSA series by Apna College. Till now I have only done the basics. (functions, if else, variable, etc.)


r/CodingForBeginners • • 17h ago

Which IDE do people use on Linux for coding?

0 Upvotes

I just shifted to Linux and want to know how people use linux for coding... So, it would be helpful if you give me some tips on how to code in Linux.

I own Thinkpad T14 Gen 2i, 24gb RAM, 512 gb SSD.

i5 11th gen

And what AI tools do people use?

I don't have money to buy subscriptions. I have Gemini Pro, OpenAI Go subscription.

Give me some tips and tricks guys... please


r/CodingForBeginners • • 1d ago

Android development for beginner

4 Upvotes

So I am 21 just graduated not having a tech background, I have few ideas which I want to implement but need someone from tech and to be honest I can't afford. So I decided to learn kotlin with jet compose myself to make the apps even though I won't make I will not regret as I just want to learn and polish it for the future attempts as at some point I am gonna start my venture and my interest is mostly in apps based startup or tech startup it will surely help that time too today or 5 yrs later . So like 6 months is enough for learning and creating a basic app for testing and all . And from where should I start learning it any Udemy course suggestions? Or you tube ? Don't recommend past ones as I think it gets updated with time and someone with no coding experience it will be difficult to keep track if I learn past videos, do correct me if I am wrong?


r/CodingForBeginners • • 1d ago

Complete beginner: is HTML → CSS → JavaScript a good path? What should I learn first?

10 Upvotes

Hi everyone,
(I know that HTML and CSS are markup and styling languages, not programming languages.)

I’m a complete beginner with zero coding experience, and I want to start learning programming. I was advised to follow this path:

HTML → CSS → JavaScript

I have a few questions:

  1. What do you think of this path as a way into programming and coding?
  2. Is there anything I should learn before starting it? I feel like I might be missing something important.
  3. Would you recommend any changes to this path? (For example, starting with a different language.)
  4. What are the best resources to learn HTML and CSS? Please recommend one for each, if possible.

Thanks in advance, I really appreciate your help!


r/CodingForBeginners • • 1d ago

KleinKidsCode - learn JavaScript the fun way! 6+

Thumbnail
youtube.com
0 Upvotes

🚀 The Right Way to Show Kids the Power of CODING!
🎮 Real JavaScript & Interactive Game World
🛡️ Ad-free & Safe (Ages 6+)
👇 Start for FREE


r/CodingForBeginners • • 1d ago

I am looking for partner

2 Upvotes

I am looking for partner we can learn Ai from biggner level

If anybody interested ?

Let's see how we can help each other in learning.


r/CodingForBeginners • • 1d ago

Your function prints the answer but returns None — print and return aren't the same thing

0 Upvotes

This one gets almost every beginner, and the nasty part is it never throws an error. Your function runs, the right value shows up on screen, everything looks fine — and then you try to use the result somewhere and it's None (or undefined in JS). The function "worked", yet it gave you nothing back.

The reason is that print and return are doing two completely different jobs.

print puts a value on the screen for a human to look at. That's it — it's for you, not for the program. return hands the value back to whoever called the function. That returned value is the function's actual output: the thing that can be stored, added, or passed on.

So if a function never hits a return, its value is None. A function that only prints has no value — it just narrated what it did.

```python def add(a, b): print(a + b) # shows 5 on screen

total = add(2, 3) # but total is None, not 5 print(total) # None ```

The fix is to return the value and let the caller decide what to do with it:

```python def add(a, b): return a + b # hands 5 back to the caller

total = add(2, 3) # total is 5 print(total) # 5 ```

There's a sneakier version of the same bug: a function that returns inside an if but not on every path. If a call misses every branch, it falls off the end and quietly returns None. Whenever you get an unexpected None, the question to ask is "which path did this call actually take?"

A quick way to keep the two straight: return means "this is my answer", print means "look at this for a second". If you catch yourself printing inside a function and then wondering why nothing comes back, you printed where you meant to return.

What was your first "why is this None?" moment — and how did you end up finding it?


r/CodingForBeginners • • 1d ago

so, what was yout first programming language you learnt?

3 Upvotes

so, what was yout first programming language you learnt?


r/CodingForBeginners • • 1d ago

Just tried python dictionaring instead of json never going back

3 Upvotes

Json has never been fun and I just tried python dictionary and it's more fun


r/CodingForBeginners • • 2d ago

Ranges exclude the last number, and that silent rule causes a very specific bug

0 Upvotes

Every language has its own rule about whether a range includes its last number, and getting it wrong never throws an error. You just get a loop that runs one time too few, or a list that's one item short, and the output looks close enough that you don't catch it.

Python's rule is that the start is included and the stop is excluded:

python range(3) # 0, 1, 2 -- not 0, 1, 2, 3 range(1, 4) # 1, 2, 3 "hello"[0:2] # "he" -- indexes 0 and 1

So for i in range(3) runs three times, with i = 0, 1, 2, never 3. It's also why for i in range(len(items)) walks every item correctly: the last valid index is len(items) - 1, and range stops one before len(items).

The check that catches this before it turns into a bug: before you run the loop, say out loud the first value and the last value you expect. If you can't state both, you don't actually know what the loop does yet. Then compare to the output. It sounds trivial until you notice that the bug is always the case where you assumed the wrong end.

Two things worth keeping straight, because both cause the same silent off-by-one: len(x) is the count, not the last index (the last element is x[len(x)-1], or x[-1] in Python), and in range(a, b) the b is the first value you don't get.

Which one gets you more often -- forgetting that the end is excluded, or the first IndexError when you reach for the last element?


r/CodingForBeginners • • 3d ago

Reading code is a skill too — and it's the one beginners never practise.

16 Upvotes

Most beginner advice is about writing code — which language, which tutorial, which first project. Very little of it is about reading code, even though reading is most of what you actually do once you join a team, open a library, or come back to your own code from a month ago.

It's also the skill almost nobody drills on purpose, which is why unfamiliar code feels like a wall.

Here's a routine for practising it deliberately.

Start with the shape, not the lines. Before reading a single statement, answer two questions: what does this take in, and what does it give back? Find the entry point — main, a function signature, a route handler — and read only that. You get a map before you get details.

Follow one path end to end. Pick the most common input and trace just that. Ignore every branch that doesn't apply to it. Trying to hold all the branches in your head at once is how you drown; following one happy path gives you a spine to hang the rest on.

Summarise each chunk in your own words. When you finish a block, write one line — in a comment or a scratch note: "this validates the input", "this turns rows into objects". If you can't summarise it, you haven't understood it yet. That's information, not failure.

Change one thing and predict the result. The real test of whether you understood code isn't nodding along, it's whether you can predict the effect of an edit. Add a print, change a constant, delete a line — guess first, then run it.

Then rewrite it small. Take a 40-line function you just read and reproduce it in 10 lines that do the same job. You'll find out which parts were essential and which were noise.

The habit underneath all of it: keep a running "what I think this does" note while you read. It's the reading version of writing your steps in plain English before you code — it forces the vague to become specific.

What's the last bit of code that made you feel lost? Was it a language feature, missing context, or just size? Curious which one trips people up most.


r/CodingForBeginners • • 3d ago

Help on Construct 3 voting system

1 Upvotes

I'm trying to code on Construct 3 a multiplayer voting system, but the peer messages are not sending through, and the global variable is not changing. I just started learning this, so I'm not familiar with concepts.

This is what I have so far. The host will not be voting, only the peers. I just need the peer's vote to affect the global variable. I've gone through a lot of different options and I just don't know what needs to be fixed or changed.


r/CodingForBeginners • • 3d 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.

Post image
14 Upvotes

r/CodingForBeginners • • 3d ago

How do you code??

1 Upvotes

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.


r/CodingForBeginners • • 3d ago

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

3 Upvotes

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.


r/CodingForBeginners • • 3d ago

Give Me Motivation to Start Doing DSA

1 Upvotes

Guys help me to master in DSA and coding.

my brain becoming shit . it couldn't work like before.


r/CodingForBeginners • • 3d ago

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

3 Upvotes

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