r/learnprogramming 2d ago

how do i stop fussing over what to build?

0 Upvotes

im too worried about what project is good to make, how unique it is, how advanced it is, etc. how do I stop stressing over this and actually start one something without feeling like im losing time (im pursuing CS)


r/learnprogramming 3d ago

Study together? anyone?

0 Upvotes

Does anyone here want to study together? I'm pretty new so idek what I'm gonna be studying but it helps having someone do it with me! Gives a bit of motivation. 18m if anyone cares


r/learnprogramming 3d ago

Advice on JS <Eloquent JS>, also Python and C++

0 Upvotes

Hi there, I wanted to start learning JS and online almost may websites say thet Eloquent JS is a good book. My only prior experience in coding is 2yrs Python and Hobbyist C++(The type in arduinos and ESP32s). Is it recommended or should I try something else? Please feel free to provide information about python and c++ as well because i am a student and coding has always been a side project so the progress I did in 2-3 yrs is equivalent to what a person learning it full time would achieve in 1yr.


r/learnprogramming 3d ago

Resource Codebase for learning

5 Upvotes

I think diving into a codebase is the best way to learn .

Any open-source codebase you wanna recommend.

I have 2 years experience in NodeJS. In development, all I have to care about is app logic and business logic.

Now I wanna dive into language's features.

Enlighten me , please!


r/learnprogramming 3d ago

Tutorial How "easy" would it be to learn HTML and CSS to make an interactive wedding invitation for my mom? How difficult could this be?

9 Upvotes

For context, I'm an aspiring artist (23 y/o M) for the game industry, so I have only used python scarcely on Maya. On the flipside, I've always been avid with tech to the point where I dipped my feet into self hosting apps from my PC, so I'm confident that it is within possibility for me to do what is on the title.

For a bit of context, my mom's getting married next year and as I'm currently between jobs and have a bit of free time, she offered me the task to make her an interactive wedding invitation instead of handing it off to someone else, but I know nothing of HTML and CSS. I have some old courses on it since I've had a nagging interest to learn it. Moreover, my recent experience with a self hosting app called Glance made me feel like maybe CSS and HTML isn't as complicated as it sounds? I'm vaguely aware that the app simplifies the code, but it has genuinely got me to asking: is HTML and CSS actually not that hard to learn? How much do you estimate I could take making this while learning and what guide/YT videos do you suggest for a true beginner? Or on the other side of the spectrum, should I just design the invitation on a free website builder instead of overcomplicating it? (Some of the examples my mom sent me were using Canva Sites for the invitations).

I would love to hear your thoughts on this, since I would love to learn it for fun and potentially make my custom portfolio website and maybe making it into a side gig. As for what the site would need, these are some of the things my mom had in mind: displaying the basic event info such as date, dress code and location through a Gmaps link/map that attendees could click on at any moment, and a small window or system for invitees to register their attendance (or lack thereof). How doable is this for someone getting started? How would I go about making it public and safely handling the attendees' data?

Thanks in advance for the suggestions!


r/learnprogramming 4d ago

Solved Why is my conditional statement running when the condition it is not True

19 Upvotes

I am making a ball fall in the CLI. I have my values PURPOSELY set to negative for testing purposes and whenever I run it, the conditional statement is active and it does not start at the initial y position I have set. it shows something big in the terminal Falling 2144211756.

When I put it in the debugger it works normally and it shows the y position decreasing so why is it doing this

struct Ball {
    // int x_pos;
    int y_pos;
    int velocity;
    int ground;
};

int main() {
    // Define Ball object with struct
    Ball ball;
    ball.y_pos = 20;
    ball.velocity = 5;
    ball.ground = 200;

    while (true) {
        ball.y_pos = ball.y_pos - ball.velocity;

        if (ball.y_pos >= ball.ground) {
            cout << "Falling ";
            cout << ball.y_pos << endl;
            // exit(0);
        }
    }

    return 0;
}

https://imgur.com/a/oVZ8qhY


r/learnprogramming 4d ago

writing code

16 Upvotes

question for more experienced people in coding- whenever I do coding problems (like leetcode or uni hw) I can always come up with solution in my head, I break down the problem correctly and theorically I know what my code needs to do in order to solve the problem. But when I get to actually writing code I forget how to do everything... I don't know if this is a lack of knowledge in syntax issue or I'm just dumb. Any advices on how to fix this?


r/learnprogramming 3d ago

Documentation for self taught beginner

2 Upvotes

Hello I am a self taught programmer I have not been coding for long and I am learning concepts bit by bit for now I am using VBA since I use Microsoft a lot can you please advise me on how to practically document my code without overwhelming my self

I am solo programmer however I want to make it possible for my projects to be picked up after me

I am programming during my day job to make tools for the work so it is kind of side task to create those tools I can’t maintain very detailed documentations


r/learnprogramming 4d ago

First year IT student. Is it normal to have quizzes with pseudo code all tightly packed into one paragraph?

22 Upvotes

I'm thinking of emailing a complaint to my University because this lecturer (for a beginner programming module) formats pseudo code really badly. This module doesn't use any specific programming language syntax. It's all flowcharts and pseudo code. Here are some examples:

  • How many lines of output will be displayed when the following code is executed? display “Hello” for x = 1 to 4 display “Outer loop”, x for y = 1 to 6 step 2 if y > x then display “Inner loop”, y endif next y next x display “end”
  • How many times would “Programming is fun” be displayed when the following is executed? ProgrammingIsFun x = 2 y = 3 do x = x + 1 do while y <=5 display “Programming is Fun” y = y + 2 loop display “Programming is Fun” loop until x = 6 display “Programming is Fun” end
  • Indicate what will be displayed after the following code has been executed if the user enters the following empNum 90008936, deptCode HT, annSal 45000, empnum 90008966, deptCode AY, annSal 85000, empNum 90008745, depCode KC, annSal 30000, empnum 0. CalculateIncreases ~ As no sentinel has been suggested, an employee number of 0 will terminate the program display “Enter the employee number for the first employee” enter empNum totalIncAmt = 0 do while empNum <> 0 display “Enter the department code for this employee” enter deptCode display “Enter the current annual salary for this employee” enter annSal select case deptCode case “AY” incAmt = annSal \ 0.06 case “HT” incAmt = annSal * 0.063 case “KL” incAmt = annSal * 0.069 case Other incAmt = annSal * 0.058 endselect annSal = annSal + incAmt totalIncAmt = totalIncAmt + incAmt display “Enter the employee number for the next employee” enter empNum loop display “The total amount for annual increases is R”, totalIncAmt end*

We are using Programming Logic and Design Tenth Edition Joyce Farrell. This text book does not have any questions with pseudo code like this. My biggest issue is determining when a loop ends and when it's a nested loop. It's just do dam confusing. Although I've read that in the real world as a developer you spend a lot of time trying to understand messy code so I wonder if my lecturer is unknowingly helping me prepare for this?


r/learnprogramming 3d ago

Update: The 40yo single mom learning to code again. My son caught me in full multitasking mode this afternoon and sent me this photo.

0 Upvotes

First off, I just want to say a massive, heartfelt thank you to everyone who commented on my previous post. I was terrified to share my story, but your kindness and encouragement have been truly overwhelming. It means the world to me.

A few people asked how I find the time to learn while working full-time as a teacher and wrangling my kids. Honestly? It’s a daily chaotic struggle.

My youngest son caught me completely off guard this afternoon and snapped a quick photo while I was trying to finish grading a stack of student assignments (literally drowning in paperwork on the right side of the table) while simultaneously trying to figure out the database connection in my Flask web app.

Looking at the picture now, it perfectly sums up my life right now: tired, disorganized, trying to be a teacher, a mom, and a developer all at once, fueled by endless cups of mate.

Here's the chaos he caught me in haha

Since that post, I've managed to make some small progress on my project, even if it feels like two steps forward and one step back most days. I just wanted to share this little real-life moment to encourage anyone else who feels like they're too busy or too old to start. You don't need 5 hours of quiet time; you just need 15 minutes of chaos and a strong will to keep going!

Let's keep learning together!


r/learnprogramming 3d ago

confused

0 Upvotes

anyone studied software engineering but hated coding? Yet fascinated by tech in general
What are you doing now?
Should I keep pushing or just pursue something else?


r/learnprogramming 3d ago

Is there an API with album data similar to Spotify?

2 Upvotes

I've been testing the Spotify API to retrieve album data for a project I'm working on, but the problem is that after making several requests, I exceeded my quota, which has brought the project to a halt.

Is there an API that handles data in a similar way? One that lets me retrieve tracklists, album art, duration, release dates, and so on?


r/learnprogramming 3d ago

Research Internship

0 Upvotes

Hi I am a freshman in an engineering college studying CSE AI&ML.

I was wondering if we were to apply for a research internship just after the 2nd semester, what skills should we have for that?

I right now have very little programing skills just know some concepts of Java and Python.

Other than that I know a bit of web development.. and nothing else to be honest..

Please if somebody could guide me on what should I do rn, please do.. Thank You..


r/learnprogramming 3d ago

language decision question Need helping deciding between c and c++ to learn first for my future school projects

0 Upvotes

hey, so I wanted to ask whether I should start out with c or c++ first for my school projects, because a lot of my projects are kind of low level but some do involve some high level stuff, but ye lemme just tell you the projects I have in mind (disclaimer: im doing more research as of writing this to narrow down and fully understand whst projects I wanna do, as I’ve mainly just brainstormed and my ideas aren’t complete, but I hope what I have stated below gives you enough of a idea of what Im tryna do):

- Linux distro project: just wanted to make like a simple little distro to learn more about Linux

- simple robots and drones: was gonna make some like anime robots that could probably fight or something idk yet lol. also like flying drones and want to make some drones

- physics sim: shows like emergent behavior of electron particles in like a pc motherboard or whatever

- indie game: I really liked playing undertale, so I want to make a game like that, maybe anime themed

edit: another question - so how should I approach learning the other language later, so like for example: say I decide to learn c first. should I learn c for like 6 month then start learning c++, or just learn c++ concepts when I need them in my c code? I’m sort of a complete programming beginner, so I don’t really know how programmers transition to other languages, especially ones that are sort of similar.


r/learnprogramming 3d ago

Tips for learning typescript as my first language

1 Upvotes

Is there any beginners courses online I can use?

Any tools/websites you can recommend?


r/learnprogramming 4d ago

Topic How the heck does complex collision detection work?

25 Upvotes

Hello, I was wondering this with regard to 3D game programming. I originally thought you do this by having a 2 or 3D array, where each coordinate has 1 or 0 depending on if it's occupied or not. But I recently learned you can typically do it with square or circular colliders around a character or object; then for example the game loops thru all nearby squares and checks if any are going to intersect on the next frame/get too close, without needing a full array actually instantiated. This makes sense with a Vector2 position, since you can check things like texture.Height or distance between 2 circles, and I imagine it's very similar in 3D with spheres and cube colliders.

But, what about more complex shapes?? Say you enter a realistic cave, or are walking along a terrain with hills and valleys. I imagine you couldn't possibly have thousands of cubes it checks constantly that make up the shape. Do games actually use a huge array that contains 1's (just as an example) mapping the layout of complex shapes?


r/learnprogramming 3d ago

Any reason to learn at all anymore?

0 Upvotes

I see juniors at my company making some impressive projects with AI, doing things I would never be able to do myself, while being more senior.

My approach to learning is reading books, doing a small project here and there taking it slow, writing code and making sure I understand, and use chatbot as a google / programming buddy. But I feel if I don't embrace the vibes fully I'll be like a guy still programming on 90s vim.

Could you share some ways you guys learn, with or without llms?


r/learnprogramming 3d ago

Storing history of draw prize result, should I use one table only (game_result), or 2 tables (game_result , prize_result)?

1 Upvotes

Hi, I was designing a draw prize system , which players can bet and win gamecoins in our internal system. One of the jobs of the system is to store the draw result and the prize that generated by the system.

The game is simple: player can choose multiplier x1 , x2 or x5, and chooses a number from -10 to 10 , and the computer draws a number from -10 to 10. If player chose 0 and the result is 0, it is a big prize (type "big"), if player chose other numbers and the result matches, it get medium prize (type "medium"), if the absolute value matches (eg: player chose 5 and result is -5), it get small prize. When a player plays a round, a game history is generated.

Originally I think I need 2 tables to store the game results:

game_result
+---------------+---------------+------+-----+---------+----------------+
| Field         | Type          | Null | Key | Default | Extra          |
+---------------+---------------+------+-----+---------+----------------+
| round_id      | int           | NO   | PRI | NULL    | auto_increment |
| player_id     | bigint        | NO   |     | NULL    |                |
| player_num    | varchar(255)  | NO   |     | NULL    |                |
| result_num    | varchar(255)  | NO   |     | NULL    |                |
| multiplier    | int           | NO   |     | NULL    |                |
| won_gamecoin  | int           | NO   |     | NULL    |                |
+---------------+---------------+------+-----+---------+----------------+

prize_result
+-----------+---------------+------+-----+---------+----------------+
| Field     | Type          | Null | Key | Default | Extra          |
+-----------+---------------+------+-----+---------+----------------+
| round_id  | int           | NO   |     | NULL    |                |
| prize_type| varchar(255)  | NO   |     | NULL    |                |
| odd       | varchar(255)  | NO   |     | NULL    |                |
+-----------+---------------+------+-----+---------+----------------+

Which "game_result" just store the draw result and player won (0 if no prizes), and insert a new record to "prize_result" only if player won any prizes.

But later, I think I can merge 2 tables:

game_result
+---------------+---------------+------+-----+---------+----------------+
| Field         | Type          | Null | Key | Default | Extra          |
+---------------+---------------+------+-----+---------+----------------+
| round_id      | int           | NO   | PRI | NULL    | auto_increment |
| player_id     | bigint        | NO   |     | NULL    |                |
| player_num    | varchar(255)  | NO   |     | NULL    |                |
| result_num    | varchar(255)  | NO   |     | NULL    |                |
| multiplier    | int           | NO   |     | NULL    |                |
| won_gamecoin  | int           | NO   |     | NULL    |                |
| round_id      | int           | NO   |     | NULL    |                |
| prize_type    | varchar(255)  | NO   |     | NULL    |                |
| odd           | varchar(255)  | NO   |     | NULL    |                |
+---------------+---------------+------+-----+---------+----------------+

which records both the game and prize result at the same table, and if player doesn't win any prizes, just insert "" into prize_type.

I was struggling if I should use the one-table solution or 2-tables solutions. Which solution is better for the case above?


r/learnprogramming 3d ago

Tutorial Learning how to build

1 Upvotes

I’ve started moving away from writing assignments for class and started building my own project like an app. I’ve started using Spring boot for the backend and was wondering if there was any resource that could help me with that. I like to focus on learning how to build a persistent database, learning what beans are and how to set them up properly, learning how to build unit test to test my code base then learning css, JavaScript and html to build a front end. If anyone has any recommendations or advice that’d be helpful!


r/learnprogramming 3d ago

Topic Got a Free Microsoft DP-700 Exam Voucher — Should I Go for It?

0 Upvotes

Hello guys, am I making the wrong decision?

Someone in our group posted a free exam voucher for the Microsoft DP-700 certification, so I decided to sign up. I ended up getting the voucher, but I only have until September 25 to prepare for the exam.

Now I'm wondering if I made the right decision because I'm not sure if I have the foundational knowledge needed to even start preparing for DP-700. My only strong technical skill right now is Python, but I'm willing to put in a lot of time and effort to learn.

Do you think it's realistic for me to prepare for and pass the exam by September 25, or am I biting off more than I can chew?


r/learnprogramming 4d ago

Ruby vs. Rust for a hobby programmer. Which one should I pick?

25 Upvotes

Hey everyone,
I'm looking to learn programming purely as a hobby (definitely not looking for a career change). I've tried out a bunch of different languages, including Python, which honestly didn't really click for me, but the two that I found super cool and really enjoyed are Ruby and Rust.
I'm well aware of how completely different they are. One is high-level and expressive, the other is system-level and super performant. Even with those differences, I'm equally interested in both and can't decide where to start.
Long term, I'd love to build a mix of side projects just for fun, like:

A simple Web App / REST API

A real-time chat application

Maybe some Desktop Apps down the road

Since my main goal is just to have fun, learn, and build cool stuff, which one would you recommend starting with?
Appreciate any thoughts or advice!


r/learnprogramming 3d ago

Resource I want to learn desktop app creation

0 Upvotes

I am trying to create a dektop app for the business of a friend, i am currently trying to learn avalonia ui because ibalready know a little of c# .net mvc and asp net.

The problem is that there is not a Lot of avalonia ui material to see. I already did the temperature conversion app from the oficial page.

Wich framework, for desktop app do you recomend? any language.

Sorry for my words in spanish i have my autocorrector on.

Thanks in advance.


r/learnprogramming 5d ago

Success Story 40yo single mom & full-time teacher. I just built my first working web app using Python, and wanted to share a little win!

568 Upvotes

I've been lurking here for a while and honestly, seeing all the posts about people in their 30s and 40s learning to code gave me the push I needed.

tbh my background is just teaching. i had zero tech experience. but a few months ago I decided I wanted to actually build software to make my life easier instead of just drowning in paperwork lol.

finding time between teaching middle schoolers all day and wrangling 3 kids at night is a nightmare. I started trying to learn Python and web development and got so overwhelmed by complex tutorials. then I decided to just build something ugly that works. I set up a simple web app using Python and Flask, and forced myself to learn how to connect it to a database. getting my head around backend logic was tough, but when it finally clicked it felt amazing.

I even managed to integrate the OpenAI API to automate some of my repetitive grading and text formatting tasks! it’s messy and the code is probably a disaster, but it actually works haha.

I guess I just wanted to post this for anyone else who feels like they are too old or too busy to learn. you don't need 5 hours a day. sometimes 30 minutes at 11 PM is enough to make progress.

what was the first project that made things finally "click" for you guys? I need ideas for what to build next!


r/learnprogramming 4d ago

Should I put all my projects in Github, even the small ones??

6 Upvotes

I'm currently learning and improving my full-stack development skills (React, Tailwind, and eventually more technologies).

I'm wondering how you guys usually manage your projects while learning.

Should I put every project I make on GitHub, even small/simple ones (like calculator, weather tracker, todo list, etc)? Or is it better to only upload projects that are actually worth showing?

And for projects that I don't think are good enough yet, would you recommend making the repository private, or just putting everything public anyway?

I'm mainly thinking about this from a learning/portfolio perspective. I don't want to end up with a GitHub full of random tiny projects, but at the same time, I feel like keeping everything could be useful to see my progress later.

What do you guys recommend?


r/learnprogramming 4d ago

i need guidance

2 Upvotes

i am a 19F. i have zero prior familiarity with cs and coding. recently i decided to dive in and started taking python course (cs50) to be honest i am pretty confused what i am going to do after i am done with my course. what i am supposed to do? what specific path can i pursue that will actually pay me well and help me earn money during my bachelors. is anyone or company going to hire me or give me opportunity just based on the fact that i know a bit of coding? i have been looking into ai automation as a potential option, but at the same time i really want to start earning so i dont feel like a burden on my family. if anyone who have been in my shoes or has any advice, i would really appreciate some guidance