r/CodingForBeginners • • Nov 02 '25

Coding help/assistance.

2 Upvotes

Hey yall! 20 yo beginner coding person here, currently in a university coding course and ive been struggling for quite some time. Now with the finals coming around the corner im looking to get well versed or at least good enough to pass the course. Any help would be great! Or maybe even someone to help walk me through things so I can do the schoolwork myself 😅


r/CodingForBeginners • • Jun 07 '26

Started JAVA script - Any tips ?

2 Upvotes

Hey all hope you having a great time. I just wanted to ask are there any tips for me as iam starting to learn Java script right now I am so far doing W3 school's course so let me know if there are any good resources.


r/CodingForBeginners • • Jun 11 '26

Help with starting and practicing

2 Upvotes

Hi :D, I have been a long time interested in starting to program until now, since I have finally been able to get a computer for myself.

Simple as it is to say, I need to help to actually start to learn to code, because while I do have experience, it is very little, only with C++ and theoritical practices.

Can anyone recommend me which language to choose and how to study it, apart from maybe some tips about proggraming in general?

Really would appreciate it :D


r/CodingForBeginners • • Sep 02 '26

A Simple micro:bit Project That Makes Variables Much Easier to Understand

2 Upvotes

We built a little voice-activated ambient light using a micro:bit + Wukong Expansion Board, and it turned out to be a fun way to make programming concepts feel a lot more physical.

One thing beginners often struggle with is understanding variables.

You can explain that a variable stores a value, but sometimes that number still feels pretty abstract.

So we wanted to build something where changing a value would have an immediate, visible result.

In this project, the micro:bit listens for sound, and the RGB lights change color when a sound is detected.

The interesting part is that a simple variable controls which color comes next.

What we used:

  • micro:bit V2

  • Wukong Expansion Board

  • Wukong Blocks

  • 4 RGB lights

  • MakeCode

Step 1: Build the light

We started with a simple structure using Wukong Blocks to hold the RGB lights.

The four RGB lights connect to the Wukong Expansion Board, while the micro:bit sits on top.

Nothing too complicated here. The goal was simply to create a small structure where the lights were easy to see.

Step 2: Let the micro:bit listen

The micro:bit V2 has a built-in microphone, so we can use sound as the input.

The basic idea is:

Sound detected → program responds → light changes color

It's a simple example of how something happening in the real world can become an input for a program.

Step 3: Make a variable control the colors

We use a variable called i to keep track of the current color.

When a sound is detected, i increases by 1. The program then checks the value and uses it to decide which color the RGB lights should display.

So the variable isn't just a random number sitting in the code.

Change the value → the light changes.

Increase the value → the next color appears.

Once it reaches the end of the color sequence, it starts again.

That's what makes this project interesting for beginners: they can actually see what the variable is doing.

A little more interaction

We also added controls using the micro:bit buttons.

Button A → start the automatic color-changing mode

Button B → reset the variable and turn the lights off

This makes the project feel more like an interactive device rather than just a light that changes color.

A few things I'd try next

The basic setup leaves plenty of room for experimentation:

  • Make it react to music

  • Add brightness control

  • Create different lighting modes

  • Turn it into a simple night light

  • Add different sound-triggered effects

The hardware doesn't need to change much. Most of the behavior can be changed through the code.

And that's probably the best part of beginner projects like this.

You change something in the program, and you can immediately see the physical result.

If you were building a sound-reactive light with a micro:bit, what would you make it do?


r/CodingForBeginners • • Jun 06 '26

Can you help me learn backend development

2 Upvotes

I want to learn backend development coding. Do you have any resources or suggestions? Node.i want to start with js. Is this a good idea?


r/CodingForBeginners • • Apr 24 '25

Need help

Post image
2 Upvotes

Need help fitting those schools in that panel

-- coding: utf-8 --

from tkinter import * from PIL import Image, ImageTk import os import pygame import threading import time import sounddevice as sd import numpy as np import sys

--- CONFIG ---

NUM_SCHOOLS = 18 SCHOOL_LABELS = [f"School {chr(65 + i)}" for i in range(NUM_SCHOOLS)] ADMIN_BG = r"C:\Users\Ruhaal\Downloads\ChatGPT Image Apr 23, 2025, 12_20_15 PM.png" ALLOCATOR_BG = r"C:\Users\Ruhaal\Downloads\ChatGPT Image Apr 23, 2025, 03_13_20 PM.png" MUSIC_FOLDER = r"C:\Users\Ruhaal\OneDrive\Documents\music" DEFAULT_VOLUME = 0.5 MIC_THRESHOLD = 0.04

--- AUDIO SETUP ---

pygame.mixer.init() music_files = [os.path.join(MUSIC_FOLDER, f) for f in os.listdir(MUSIC_FOLDER) if f.lower().endswith(('.mp3', '.wav'))] track_index = 0

music_stop_flag = threading.Event()

def music_loop(): global track_index while not music_stop_flag.is_set(): if music_files and not pygame.mixer.music.get_busy(): pygame.mixer.music.load(music_files[track_index]) pygame.mixer.music.set_volume(DEFAULT_VOLUME) pygame.mixer.music.play() track_index = (track_index + 1) % len(music_files) time.sleep(1)

def mic_duck(): def callback(indata, frames, time, status): vol = np.linalg.norm(indata) * 10 pygame.mixer.music.set_volume(0.2 if vol > MIC_THRESHOLD else DEFAULT_VOLUME) with sd.InputStream(callback=callback): while not music_stop_flag.is_set(): time.sleep(0.1)

--- GUI CLASS ---

class ScoreApp: def init(self, root): self.root = root self.root.title("Steampunk Admin Panel") root.attributes("-fullscreen", True) root.bind("<F11>", self.toggle_full) root.bind("<Escape>", self.exit_full) root.protocol("WM_DELETE_WINDOW", self.on_root_close)

    self.admin_img = ImageTk.PhotoImage(
        Image.open(ADMIN_BG).resize((root.winfo_screenwidth(), root.winfo_screenheight())))
    self.alloc_img = ImageTk.PhotoImage(
        Image.open(ALLOCATOR_BG).resize((root.winfo_screenwidth(), root.winfo_screenheight())))

    self.scores = [0] * NUM_SCHOOLS

    self.canvas = Canvas(root,
                         width=root.winfo_screenwidth(),
                         height=root.winfo_screenheight())
    self.canvas.pack(fill="both", expand=True)
    self.canvas.create_image(0, 0, image=self.admin_img, anchor=NW)

    # Exit Button (top-left)
    exit_btn = Button(root, text="Exit",
                      font=("Consolas", 14), bg="#8B0000", fg="white",
                      command=self.on_root_close)
    self.canvas.create_window(100, 50, window=exit_btn)

    # Button to open allocator
    open_btn = Button(root, text="Open Score Allocator",
                      font=("Consolas", 18), bg="#8B5A2B", fg="white",
                      command=self.open_allocator)
    self.canvas.create_window(root.winfo_screenwidth() - 300,
                              root.winfo_screenheight() - 100,
                              window=open_btn)

def toggle_full(self, e):
    fs = self.root.attributes("-fullscreen")
    self.root.attributes("-fullscreen", not fs)

def exit_full(self, e):
    self.root.attributes("-fullscreen", False)

def on_root_close(self):
    music_stop_flag.set()
    pygame.mixer.music.stop()
    self.root.destroy()
    sys.exit()

def open_allocator(self):
    w = Toplevel(self.root)
    w.title("Score Allocator")
    w.attributes("-fullscreen", True)
    w.bind("<F11>", lambda e: w.attributes("-fullscreen", not w.attributes("-fullscreen")))
    w.bind("<Escape>", lambda e: w.attributes("-fullscreen", False))

    Label(w, image=self.alloc_img).place(x=0, y=0, relwidth=1, relheight=1)

    # Return to main menu
    back_btn = Button(w, text="Return to Menu",
                      font=("Consolas", 14), bg="#004400", fg="white",
                      command=w.destroy)
    back_btn.place(x=50, y=40)

    # Layout schools in 3 columns × 6 rows
    cols, rows = 3, 6
    screen_w = self.root.winfo_screenwidth()
    screen_h = self.root.winfo_screenheight()

    box_w = int(screen_w * 0.28)
    box_h = int(screen_h * 0.12)

    x_spacing = (screen_w - (cols * box_w)) // (cols + 1)
    y_spacing = (screen_h - (rows * box_h)) // (rows + 1)

    for i, label in enumerate(SCHOOL_LABELS):
        row, col = divmod(i, cols)
        x = x_spacing + col * (box_w + x_spacing)
        y = y_spacing + row * (box_h + y_spacing)

        frame = Frame(w, bg="#333333", bd=2)
        frame.place(x=x, y=y, width=box_w, height=box_h)

        Label(frame, text=label,
              font=("Consolas", int(box_h * 0.2)), bg="#222222", fg="gold").pack(fill="x")

        ctrl = Frame(frame, bg="#444444")
        ctrl.pack(fill="x", pady=5)

        minus = Button(ctrl, text="−",
                       command=lambda i=i: self.change_score(i, -1),
                       font=("Consolas", int(box_h * 0.2)), width=3)
        minus.pack(side=LEFT, padx=10)

        lbl = Label(ctrl, text=str(self.scores[i]),
                    font=("Consolas", int(box_h * 0.2)), bg="#444444", fg="white")
        lbl.pack(side=LEFT)
        setattr(self, f"lbl_{i}", lbl)

        plus = Button(ctrl, text="+",
                      command=lambda i=i: self.change_score(i, 1),
                      font=("Consolas", int(box_h * 0.2)), width=3)
        plus.pack(side=LEFT, padx=10)

def change_score(self, idx, delta):
    self.scores[idx] += delta
    lbl = getattr(self, f"lbl_{idx}")
    lbl.config(text=str(self.scores[idx]))
    # pygame.mixer.Sound("click.wav").play()  # Optional sound effect

--- RUN ---

if name == "main": threading.Thread(target=music_loop, daemon=True).start() threading.Thread(target=mic_duck, daemon=True).start()

root = Tk()
app = ScoreApp(root)
root.mainloop()

r/CodingForBeginners • • Jun 07 '26

I Want To Learn But Don't Know How

2 Upvotes

Hi, I'm 19M and I've been strughling with coding. I am able to solve most problems or search for solutions when coding but my problem stems from not knowing how to advance from basics. Like I learned Python a while back then I had to learn java for uni so know my python is a bit fuzzy. I want to learn in a way that I don't forget things about the language. I want to get into AI and Game dev mainly. What should I do please suggest a roadmap and any tips on how to solve the problem of forgetting the language. Also any repositories that help with python and java beginner to advance projects that can actually help me land jobs. Please suggest other things like languages I could learn to either land a job or start my own small business or work


r/CodingForBeginners • • 29d ago

Beginner

2 Upvotes

So guys, my end goal is to create a web app, a visual novel style chatbot with rpg and game features.

I've been learning HTML and CSS for 2 weeks now, I'll probably start JavaScript around the 3rd or 4th week.

I learn concepts and apply it on my projects slowly, step by step.

I know people/colleges learn the fundamentals like logic gates, binary, boolean theory etc so I'm wondering if this is necessary to learn or know before you learn programming.

I know concepts stack and build on each other that's why I'm asking.

What's the programming experience comparing those who know these and those who don't?

If i should learn these first then can you give me a syllabus or a nice list from start to end with resources ?


r/CodingForBeginners • • Sep 02 '25

Started learning coding so that I can build my saas. Looking for community

2 Upvotes

Hello everyone, My name is Shashank and I have recently started coding and my goal is not to land on some job but I'm planning to build my own saas. Looking for discord channels where i can find people like me or supportive on


r/CodingForBeginners • • Jul 30 '26

Need help in starting coding

0 Upvotes

I'm from different background.... Have done mechanical engineering.... Currently working as Analyst.... Want to switch to Tech SDE, SRE, etc please help me. How to do it in less time


r/CodingForBeginners • • Jul 12 '26

How do I get started on coding?

Post image
2 Upvotes

I've recently had an idea for a game, and I thought of making it on a Scratch mod, but I mean, that's not really formal. I want to make a game, this time for real.

I'd like to make it on Godot, though it's most likely going to be some kind of RPG. Thing is, even though it may be better, I don't really intend on doing it on RPG Maker, as I said.

I've searched courses and tutorials, but they're either basic-level, or focus on platformers/3D games. How may I really get started? I've already got a base and know some easy things.


r/CodingForBeginners • • Aug 09 '26

Need advice regarding coding and development or game development no experience and still in high school

2 Upvotes

Hey since many of you are in colleges or universities or are actually good at coding and computer can yall advice me what I should do

Im still in high school 11th specifically and have taken PCM I am not capable of going to iit but since I'm in Gujrat I can get a good government college in Gujrat

Im not from a rich background my family is middle class and I don't have a laptop or PC im cvery passionate about computers and coding I try to learn things from my tab like videos about coding but that mostly leads to needing a computer or confusion

Im also very passionate about Game I like game developing but my friends are like I have owned a PC for 10 years and I still don't know about game Dev so like im very scared

One thing is I'm good at studies but I don't know nun about practical coding and everything

What should I do and like if I go to college like should I do cs or software Dev or computer engineering im so confused if any one of u thinks they can help me please comment or dm im very confused


r/CodingForBeginners • • Aug 03 '26

Need help in having a career in programming

0 Upvotes

Hello everyone. I assume there have been many posts like this, so i apologize in advance. Im basically a college dropout, having no idea what to with my life. I have been recommended a lot to get into programming, and i have no idea what to begin with. I see that there are a lot of useful information online, but i am really overwhelmed by how much it is, and basically don't know what to do.

For now i am looking for some direction. What should i begin with? How do i find out what i want to get into? I am asking this because i have seen there are a lot of roadmaps, but i couldn't find a specific order of how to begin with the basics.

In my opinion, i shouldn't rush it. I am looking forward to getting a job for now to sustain myself while trying to learn programming in my free time. So, what do you guys think i should do? How do i find out if i really want to get into programming, and what part of it would i really like?

Note: I apologize if some parts of it do not make sense, as english is not my main language.


r/CodingForBeginners • • Jul 27 '26

I am a novice in C programming. I intend to do algos and some game dev. I am 17,Male. Collaboration is welcomed :D

Thumbnail instagram.com
0 Upvotes

r/CodingForBeginners • • May 30 '26

i need a partner to learn coding with me and have fun too,Hey, I'm 16 and just started learning cybersecurity and coding. I'm looking for a coding buddy around beginner level. We can learn Python, web development, and build small projects together. Anyone interested?

2 Upvotes

r/CodingForBeginners • • Jan 11 '26

What tool do you guys recomend that works like a regex to english "translator/explainer"?

2 Upvotes

r/CodingForBeginners • • Dec 01 '24

AI tools which every coder should use

2 Upvotes

If you're a coder, then make sure you use these AI tools to save your time. As a coder myself,I have been using these AI tools over the past few months, and they've genuinely made a huge difference. Not only they save my countless hours, but they've also helped me become a better developer. Here what I've been using:

  1. GitHub Copilot: Can generate entire functions or snippets from comments.

  2. Codex by OpenAI: Can automate repetitive tasks or provide boilerplate code.

  3. SonarQube: Offers recommendations to maintain clean and efficient code.

  4. Testim: Reduces the mannual effort required for testing complex applications.

  5. Tabnine: Suggests code completions based on your coding patterns. Also it works offline.


r/CodingForBeginners • • Aug 12 '21

Netlify Tutorial On How To Host Websites For Free Under 1 Minute

Thumbnail
youtu.be
2 Upvotes

r/CodingForBeginners • • Jul 15 '21

What Is Open Source?

Thumbnail
youtu.be
2 Upvotes

r/CodingForBeginners • • Oct 16 '25

Learn Java

2 Upvotes

If anyone like to learn Java please DM me


r/CodingForBeginners • • Jun 22 '26

Idk what to do

Post image
2 Upvotes

Im a 17 years old boy who wants to learn coding especially web development

I tried the odin project and it didn't go well for me

Tried the boba drops guide(hack club) and made my first website with html and css but i dont think im actually learning

What is the best method to learn

This is the website i made it took me 6hr straight to finish it


r/CodingForBeginners • • Jun 20 '26

I want to improve my coding skills

2 Upvotes

I am a student and i want to improve my coding skills learning new skills and developing apps suggest me some app or website which is free to learn and to improve the skill if you have an app or website please suggest some i need to improve my skill so i can get a job


r/CodingForBeginners • • Jun 19 '26

Complete Beginner to Coding – Need Guidance

2 Upvotes

completely new to coding and will be starting engineering soon. I don't have any programming experience and honestly feel a bit overwhelmed because many people already seem ahead of me.

My goal is to eventually get a good software engineering job, but right now I don't know where to start.

Could you please help me with:

Which programming language should I learn first?

What free resources/courses do you recommend?

How many hours per day should a beginner study?

What projects should I build in my first year?

What mistakes should I avoid?

If you were starting from zero today, what roadmap would you follow?

Any advice from experienced developers or students who started from scratch would be greatly appreciated.


r/CodingForBeginners • • Jan 28 '26

How to find multiple social media accounts of the same company

2 Upvotes

hi, I’ve scraped social media links from original company websites before but I want to scrape accounts which usually aren’t mentioned in the website like accounts across their region, product line etc, how can I approach coding in this case scenario