r/CodingForBeginners • • 9d ago

Day 4 of learning c++

3 Upvotes

Today was mostly theory part , not included coding

Learnt Keywords and naming identifiers

Whitespace and basic formatting

Nothing much

Btw should I keep posting here it or should I stop?


r/CodingForBeginners • • 9d ago

Are there any videos out there on YouTube that take a game and talk about it’s (open source or decompiled) code and break down parts of it?

1 Upvotes

I haven’t really learned much yet and want to self teach myself after getting a job and setup. I know there’s tutorials and everything but I was wondering if there’s also videos that show how other games tackled things like damage, ui, rng, etc


r/CodingForBeginners • • 9d ago

help with my code

1 Upvotes

im trying to make a code where 3 arrows bounce off the walls and when the colide they swithcndirection and each arrow has to have an id number on top of it like ass a text and im really strugling if anyone could help me that would be great this is what i have so far

class Arrows //definition of new custom type

PImage upLeft;

PImage downLeft;

PImage downRight;

PImage upRight;

}

void setup()

{

arrow1 = loadImage("upLeft.png");

arrow2 = loadImage("downLeft.png");

arrow3 = loadImage("downRight.png");

arrow4 = loadImage("upRight.png");

}

void draw()

{

background(250,250,250);

image (currentImage);

}


r/CodingForBeginners • • 10d ago

I made practical site for company interns to learn technical tasks fast

7 Upvotes

I’m a Computer Science student and I created Intern.dev for interns who are already working in a company and need to learn a technical task quickly.

Instead of long courses or copying everything from AI, the site gives a hands-on guide. Every path includes the explanation of what you should do, the libraries you need, and a copy-paste project. All based around the same Task Management API.

FastAPI – Create the API

Docker & CI/CD – Containerise and automate the API

Authentication – Add users, JWT and roles

API Testing – Cover passing and failing test cases

A simple chatbot is included. It only helps with the basic tasks. It does not replace reading the path and adjusting the code yourself.

Preview:

https://intern-dev-7-clean.vercel.app/docs

This is a temporary link. I will move the site to a proper domain soon


r/CodingForBeginners • • 10d ago

My first project

3 Upvotes

Hello! I've started learning python abt 2 weeks ago ( I know my progress rate is slow)and till now, I just know the basics. I've created my very first project on my own (I only asked ChatGPT for project ideas but the rest was on me) and this is what I've done in abt an hour.

I'd like you guys to tell me how can I get better. I know many things are may be missing regarding calculations and operators.

print("===========================================")
print()
print()
print("     BASIC & ENGINEERING CALCULATOR   ")
print()
print()
print("===========================================")
calc_type = input("What type of calculator do you want to use?: Basic, Engineering ").capitalize().strip()
if calc_type =="Basic":
    operator = input("Enter the operator (+, -, *, /, ^):")
    num1 = float(input("Enter the first number:"))
    num2 = float(input("Enter the second number:"))
    if operator == '+':
        result = num1 + num2
        print(f"The result of adding {num1} and {num2} is: {round(result,2)}")
    elif operator == '-':
        result = num1 - num2
        print(f"The result of subtracting {num1} and {num2} is: {round(result,2)}")
    elif operator == '*':
        result = num1 * num2
        print(f"The result of multiplying {num1} by {num2} is: {round(result,2)}")
    elif operator == '/':
        result = num1 / num2
        print(f"The result of dividing {num1} by {num2} is: {round(result,2)}")
    elif operator == '^':
        result = num1 ** num2
        print(f"The result of raising {num1} to {num2} is: {round(result,2)}")
    else: 
        print("Enter a valid operator!")
elif calc_type == "Engineering":
    calculations=input("What do you want to calculate?: Force, Density, Speed ").capitalize().strip()
    if calculations == "Force":
        mass= float(input("Enter the mass value: "))
        acceleration= float(input("Enter the acceleration value: "))
        Force = mass * acceleration
        print(f"The Force is equal to {round(Force,2)} N.")
    elif calculations == "Density":
        mass= float(input("Enter the mass value: "))
        volume= float(input("Enter the volume value: "))
        Density = mass/volume
        print(f"The Density value is {round(Density,2)} kg/m^3 ")
    elif calculations == "Speed":
        distance = float(input("Enter the distance travelled: "))
        time = float(input("Enter the time in seconds:"))
        Speed = distance/time
        print(f"The Speed is {Speed} m/s")
    else: 
        print("Enter a valid calculation type!")
else:
    print("We only offer Basic & Engineering calculations")

r/CodingForBeginners • • 10d ago

what to learn as a beginner?

11 Upvotes

C or Python? I have started C but left it in between same with python.

Im thinking of restarting ans learning from scratch

which one is better


r/CodingForBeginners • • 10d ago

Systems thinking outlasts frameworks: lessons from 19 years of switching stacks

Thumbnail
leaddev.com
4 Upvotes

r/CodingForBeginners • • 10d ago

Day 3 of learning c++

2 Upvotes

Day 2 was almost 10 days ago

I fell into the abyss wasn't doing anything for this long time due to loneliness idk I feel weird day by day

Still started today

Completed introduction to IOStream, uninitialised variable and undefined variables

Finding cpp interesting wel yeah ik the big dawgs are waiting for me still

Atleast did something fruitful after so much long


r/CodingForBeginners • • 11d ago

Should I peruse a future in coding? (Game / web development)

10 Upvotes

I am a young teen who loves coding so much, and I had thought of perusing it as a degree. I am not very good at coding right now, but it’s one of my three main passions, and the one I’m most passionate about. I have always had a dream I would get to work on development projects, wether it be web, or game, our anything. coding is just so magical. watching what you poured your heart into break again and again, just for you to realize you forgot to capitalize the name of a variable is a feeling like no other. but seriously, like I said it was a dream, and I need to get serious about my future. For my age I like to think I am pretty good, or around average, then again, something keeps me from my dream.

AI. I hate AI with every bone in my soul. If the word hate was printed on every nano-angstrom of my cell-thin walls, it would not even begin to describe a billionth of the hate I feel for AI this second. but seriously again this is really discouraging me to persue a future, let alone a degree. I hate AI but I have to face facts. AI is better at coding than me. AI is cheaper than me. AI is quicker than me. AI is so much better for companies, and many coders are losing their jobs cause of it. It makes me so very nervous. This is all just like one big nightmare. It feels like vibecoding is stopping me from having a future doing something I love.

which Is why I am here. To ask you people of Reddit, if you have persued coring, what happed, and should I follow suit? Thanks.


r/CodingForBeginners • • 11d ago

How can I start learning C?

12 Upvotes

Hello guys. I want to learn about Embedded Systems Engineering and I'm starting with C language. I don't want to be a vibe coder that makes ai rust slop. Where can I start? And how do you guys do something very complicated on your own? I don't think I have that skill but I want to do that too. Anyway I have the basics but that's all. I'm waiting for your recommendations :)


r/CodingForBeginners • • 11d ago

Brand new

5 Upvotes

Hi, it's my first Post, just starting my Coding Journey.

I have a really basic understanding of Code, but now I'm learning Python.

I know its not much, but its my first own Code! :))

print("Hello beautiful people of the Internet! A new Challenger has Approached!")

Im ready for a great but also painfull path to Coding Knowledge.

If you have any tips, I will appreciate the most slightest hint :D

Have a wonderfull Morning/Day/Night


r/CodingForBeginners • • 11d ago

Brand new

3 Upvotes

Hi, it's my first Post, just starting my Coding Journey.

I have a really basic understanding of Code, but now I'm learning Python.

Im ready for a great but also painfull path to Coding Knowledge.

If you have any tips, I will appreciate the most slightest hint :D

Have a wonderfull Morning/Day/Night


r/CodingForBeginners • • 12d ago

Which programming language is best to start my learning?

4 Upvotes

Is it java, js or python?


r/CodingForBeginners • • 12d ago

Hi guys

3 Upvotes

I am really interested in is it worth to learn any programming language in 2026 ? I went robotics course about 1 year and I won first place in my country. But after this winning. I had to leave robotics because of my university entrance exam. Right now I dont know how can i start again. i am interested in cybersecurity and robotics does someone help me?


r/CodingForBeginners • • 13d ago

We Built a Password-Protected Safe with micro:bit – 3 Wrong Attempts and You're Locked Out! 🔐

4 Upvotes

We wanted to build something a little more interesting than a regular box made from building blocks, so we turned one into a small password-protected safe.

The idea is simple: use the A and B buttons on a micro:bit as the keys, enter the correct combination, and let a motor open the door. But we also wanted it to behave a bit more like an actual safe, so we added a few extra rules.

The default password is AABB. Each time a button is pressed, the micro:bit records the input and displays how many characters have been entered on its 5×5 LED matrix. It only shows the number of characters, not the actual password.

Once all four characters have been entered, the program waits five seconds and checks the combination automatically. There's no separate submit button needed. If the password is correct, a check mark appears and a PlanetX Smart Brick Motor connected to port M1 on the Nezha Pro rotates 90 degrees counterclockwise to open the door.

Of course, getting the password wrong is part of the fun.

The first two incorrect attempts show a cross on the LED display, giving the user another chance. But make three consecutive mistakes, and the safe gets a little less friendly: the display flashes a warning, then starts a 10-second lockout countdown. During this time, button inputs are ignored. Once the countdown finishes, "TRY AGAIN" scrolls across the display and the safe is ready for another attempt.

We also added a couple of useful controls. Pressing A+B while entering a password clears the current input, so there's no need to start over if you accidentally press the wrong button. After the door opens, A+B rotates the motor 90 degrees clockwise to close it again.

The mechanical part was just as important as the code. We used the Nezha Pro Sport Kit to build the safe body, hinged door, and motor linkage. The door needs to move freely, and the motor's starting position needs to match the fully closed position. Otherwise, even a perfectly correct password won't help if the door gets stuck!

The project uses a micro:bit, a Nezha Pro Breakout Board, and one PlanetX Smart Brick Motor. We used the Nezha Pro's angle-based motor control to make the opening and closing movements 90-degree rotations, rather than simply running the motor for a set amount of time.

It's a small project, but it combines quite a few ideas: button input, variables, timing, conditional logic, error handling, and mechanical movement.

Now I'm wondering what would make this safe more interesting. Maybe a longer password, a different combination system, or even a second condition before the door unlocks?

Would you trust a building-block safe to protect your snacks? 😄


r/CodingForBeginners • • 13d ago

How to do programming with proper logics in which I get stuck always.

10 Upvotes

Whenever I wish to learn programming i always get stuck on logics and what logic to use and how it works, then only my motivation drops and i fail everytime.

Can anyone suggest some things so that it helps me this time

I also want to make good stuff and learn good skills.

I am 25 but still I get stuck everytime in programming.

I want to overcome this fear of logics and fear of failing in programming.


r/CodingForBeginners • • 13d ago

How to do programming with proper logics in which I get stuck always.

7 Upvotes

Whenever I wish to learn programming i always get stuck on logics and what logic to use and how it works, then only my motivation drops and i fail everytime.

Can anyone suggest some things so that it helps me this time

I also want to make good stuff and learn good skills.

I am 25 but still I get stuck everytime in programming.

I want to overcome this fear of logics and fear of failing in programming.


r/CodingForBeginners • • 13d ago

How to choose domain

7 Upvotes

Okay so I am a sophomore in btech and I have learned c++ and python now I want to do something but don't wanna follow a typical roadmap of building scripted typical projects I want to build something but how do I decide a domain for myself so that I can dig in and learn some more to build cwazzy fuckin things like for example I had this random project idea and for that I learned lil bit socket programming something like that how do I decide which domain should I stick with


r/CodingForBeginners • • 13d ago

Roadmap for learning languages and doing projects and all. And everything else that I should do??

3 Upvotes

I'm in first sem of cse. Two months completed and I will be completing c language (not c++) from code with Harry channel in two to three days.Now what do I need to do after this. And what things I need to study and do . Plz someone who can guide for this. Also very demotivated seeing people making apps or talking about startup and going for hackathons in first sem while I have just started learning things. How to excel in this field??


r/CodingForBeginners • • 13d ago

Beginner here, just finished intermediate. Need advice on where to start and whether coding is worth it as a career

0 Upvotes

Hey everyone,

So I just finished my intermediate and I want to get into coding, but honestly I’m a bit lost. I’ve started Python and I’m still on the basics (loops, lists, functions, that kind of stuff) I’ve also heard people talk about DSA and I don’t know when I should actually start it.

I’m also confused about whether I should pursue this as a career or just learn it as a skill. I don’t really know what the job side looks like yet, so any honest opinions would help.

A few things I’d love your input on

Is Python a good first language, or should I start with something else?

What basics should I really nail before moving on?

Which websites do you recommend for learning and practice? Free ones especially.

Which YouTube channels explain things well for beginners?

When should I start DSA without getting overwhelmed?

How did you decide that coding was the right career for you?

If you’ve got any mistakes to avoid or a roadmap you wish you’d had earlier I’d really appreciate it

Thanks a lot


r/CodingForBeginners • • 13d ago

how to start learning the code.

1 Upvotes

Which language should I learn first. My goal is pretty confuse right now. because i don't know which way leading to those path.
my goal.(can be change into one of these path)

  1. Do something about the cyber security.?
  2. game dev?
  3. programmer for some company?
  4. or any other path more than these.

r/CodingForBeginners • • 14d ago

What is the best way to learn system-level programming?

5 Upvotes

I had some experience with C during my college days, but I never really did any projects that are worth mentioning. I know AI can write code, but I want to understand what is happening at the system level. As of now, Rust is too overwhelming for me, so I'm thinking of restarting with C. Any advices?


r/CodingForBeginners • • 14d ago

I wanna learn hardware , pls help

16 Upvotes

hi ,im a highschool student. i always found hardware so fascinating , and i wanna build cool stuff myself too . i have almost zero prior coding experience , i did learn basic python loops and conditional statements in python a few years back thats all i know .

what language should i learn ?

what tutorials should i follow ?

is there a roadmap ?

hope anyone helps .


r/CodingForBeginners • • 14d ago

This seems like a good forum to post in c:

1 Upvotes

This is the program. I built it off of a couple for loops and some array tinkering Although, it is working properly, I'd like to be able to type the suit of the card along with the number. AI has helped me a little bit, but the idea of how the cards are displayed in the array is my idea.

import java.util.Scanner;
import java.util.ArrayList;
import java.util.Collections;

public class Main {
public static void main(String[] args) {

Scanner scanner = new Scanner(System.in);

// creation of the deck

ArrayList<String> deck = new ArrayList<>();

String[] suits = {"Hearts", "Diamonds", "Clubs", "Spades"};
String[] ranks = {
"A", "2", "3", "4", "5", "6", "7", "8", "9", "10", "J", "Q", "K"
};

//Generation of the 52 cards

for (int i = 0; i < suits.length; i++) {
for (int j = 0; j < ranks.length; j++) {
deck.add(ranks[j] + " of " + suits[i]);

}
}

// Shuffle the deck

Collections.shuffle(deck);

// creaation of the card grid

//2D array

String[][] cards = new String[3][3];
String table[][] = {

{"?", "?", "?"},
{"?", "?", "?"},
{"?", "?", "?"}};
boolean[][] drawn = new boolean[3][3];

// Place 9 random cards into the grid
int cardIndex = 0;

for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
cards[i][j] = deck.get(cardIndex);
cardIndex++;

}
}
int totalDraws = 0;
System.out.print("=== DRAW A CARD GAME ===");

// Game Loop
while (totalDraws < 9) {
System.out.println("\nYour card table:");

//Display the table\
for (int i = 0; i < 3; i++) {
for (int j = 0; j < 3; j++) {
System.out.print(table[i][j] + "\t");
}
System.out.println();
}
System.out.print("\nChoose a card (1-9 and put the suit)");

int choice = scanner.nextInt();

// Validate choice

if (choice < 1 || choice > 9) {
System.out.println("Choose a number between 1 nd 9!");
}
// Convert choice into row and column

int row = (choice - 1) / 3;
int column = (choice - 1) % 3;

// Check if card was already drawn

if (drawn[row][column]) {
System.out.println("You already drew that card!");
continue;
}
// Reveal the card
table[row][column] = cards[row][column];

drawn[row][column] = true;

totalDraws++;

System.out.println("You drew: " + cards[row][column]);
}
System.out.println("\n===== Game Over ======");
System.out.println(("You drew all 9 cards"));

scanner.close();
}
}

Original code looks a little bit like this; there was some more to it, but that's the jist of it.

import java.util.Scanner;

public class Main {

    public static void main(String[] args) {

        String[][] twoDarray = {
                {"x", "x", "x"},
                {"x", "x", "x"},
                {"x", "x", "x"}
        };

        Scanner scanner = new Scanner(System.
in
);

        System.
out
.print("Enter something: ");
        String userinput = scanner.nextLine();

        twoDarray[0][0] = userinput;

        for (int i = 0; i < 3; i++) {
            for (int j = 0; j < 3; j++) {
                System.
out
.print(twoDarray[i][j] + "  ");
            }

            System.
out
.println();
        }

        scanner.close();
    }
}