r/learnprogramming • • Mar 26 '17

New? READ ME FIRST!

825 Upvotes

Welcome to /r/learnprogramming!

Quick start:

  1. New to programming? Not sure how to start learning? See FAQ - Getting started.
  2. Have a question? Our FAQ covers many common questions; check that first. Also try searching old posts, either via google or via reddit's search.
  3. Your question isn't answered in the FAQ? Please read the following:

Getting debugging help

If your question is about code, make sure it's specific and provides all information up-front. Here's a checklist of what to include:

  1. A concise but descriptive title.
  2. A good description of the problem.
  3. A minimal, easily runnable, and well-formatted program that demonstrates your problem.
  4. The output you expected and what you got instead. If you got an error, include the full error message.

Do your best to solve your problem before posting. The quality of the answers will be proportional to the amount of effort you put into your post. Note that title-only posts are automatically removed.

Also see our full posting guidelines and the subreddit rules. After you post a question, DO NOT delete it!

Asking conceptual questions

Asking conceptual questions is ok, but please check our FAQ and search older posts first.

If you plan on asking a question similar to one in the FAQ, explain what exactly the FAQ didn't address and clarify what you're looking for instead. See our full guidelines on asking conceptual questions for more details.

Subreddit rules

Please read our rules and other policies before posting. If you see somebody breaking a rule, report it! Reports and PMs to the mod team are the quickest ways to bring issues to our attention.


r/learnprogramming • • 18h ago

What have you been working on recently? [November 28, 2026]

3 Upvotes

What have you been working on recently? Feel free to share updates on projects you're working on, brag about any major milestones you've hit, grouse about a challenge you've ran into recently... Any sort of "progress report" is fair game!

A few requests:

  1. If possible, include a link to your source code when sharing a project update. That way, others can learn from your work!
  2. If you've shared something, try commenting on at least one other update -- ask a question, give feedback, compliment something cool... We encourage discussion!
  3. If you don't consider yourself to be a beginner, include about how many years of experience you have.

This thread will remained stickied over the weekend. Link to past threads here.


r/learnprogramming • • 6h ago

Topic [Homework] How is Go actually standardized if there's no ISO standard? (Conflicting answers)

14 Upvotes

Hi everyone,

I'm working on a homework assignment about how programming languages are standardized. Since Go isn't governed by an external body like ISO or ECMA, I've been researching what rules it actually follows, but I keep getting conflicting answers.

Some sources point to the Go Language Specification as the closest thing to a formal standard. Others emphasize that there is no independent foundation, and that the language is entirely directed by The Go Team at Google. Meanwhile, some people argue that tools like gofmt and the Go 1 Compatibility Promise are what actually normalize the ecosystem.

I'm trying to understand the big picture for my assignment. Could someone explain how these pieces actually fit together?

What is the definitive answer here? Is the Language Specification considered the official standard, or is standardization in Go achieved purely through Google's governance and community tools?

I don't need a full essay, just a clear explanation of what I should be citing as the "standard" for Go. Thanks!

TL;DR: Go isn't ISO-standardized. If you had to write an essay on how Go is standardized today, what exact documents, entities, or tools would you cite and why?


r/learnprogramming • • 19m ago

If you had 3 months off this winter, what would you focus on?

3 Upvotes

Imagine you had three months completely free this winter.
You have some experience with competitive programming, a decent foundation in math and computer science, and enjoy solving problems on LeetCode and Codeforces.
You're still learning, don't have a particular area of interest yet, but you're disciplined and enjoy challenging yourself.
How would you spend those three months to become a better programmer and software engineer? What would you focus on?


r/learnprogramming • • 7h ago

Best books to learn Python from scratch with lots of exercises and practice problems?

11 Upvotes

Hi everyone!

I want to learn Python programming from scratch and become really good at it.

I'm looking for book recommendations that

  1. Explain concepts clearly, starting from the basics.
  2. Have plenty of exercises and practice problems after each topic.
  3. Gradually increase from beginner to advanced difficulty.
  4. Focus on problem-solving and programming logic rather than just theory.
  5. Include practical projects to help apply what I've learned.

I don't mind working through lengthy books. My main goal is to practise extensively until I can write programs independently without relying on tutorials.

Which books would you recommend? Also, are there any websites or platforms with excellent Python practice problems?

I'd appreciate recommendations from people who have learned Python this way. Thank you!


r/learnprogramming • • 1d ago

Question (CS Student) Every Time I see AI code I Feel disencouraged

141 Upvotes

How is your day.
I'm currently a 2nd year CS student who genuinely enjoys learning coding. I can stay for hours studying a certain topic and usually all I need to be feel like continuing is less bugs showed by the compiler. but seeing AI being able to do the same thing I have been trying to learn for hours way faster and better than me always makes question myself. My question is...
Is it still worth it going through all of this


r/learnprogramming • • 9h ago

Question on what I should focus

7 Upvotes

I'm in my fourth semester of my Information Systems degree, but I don't know what career I want to persue. I like coding in C/C++, Rust and even Haskell, I like complex things on computing like theory of computation and I really enjoy learning networking. However, I can't decide what I really want to work with. I've thought I would like working with web development, but unfortunaly I don't find it that cool when compared with the topics I mentioned earlier.

So, what would you guys recommend me?


r/learnprogramming • • 14h ago

i feel so useless and divided

17 Upvotes

Final year CS student building embedded projects to land a real role. I genuinely love embedded systems and coding, and it feels weird right now because I barely have time to learn how to write things properly from scratch. Everything pushes you toward big, impressive projects nobody gets noticed for mastering the basics even though the basics are what actually build real understanding. Meanwhile, that understanding can feel almost pointless when AI agents can build things faster, bigger, and louder. I want to write my own code, yet I catch myself feeling stupid for wanting to actually know how to write scripts without an agent.

Do I just have to accept that coding from scratch is becoming a useless skill, that debugging on your own is a waste of time, and that being "good" now means handing that knowledge over to machines?

I don’t just want to ship demos. I want to be a real programmer like the engineers who came before me someone with genuine, deep mastery over the craft I love.

So I’m genuinely asking: what does mastery even look like in the age of AI?


r/learnprogramming • • 8h ago

Family Man With Limited Free Time: Is a Personal Offline Copy of Wyrm Wild Possible?

0 Upvotes

Hi everyone,

I currently play a game called Wyrm Wild. Because of my work schedule and family responsibilities, idle/automatic games are really the only type of games that fit into the limited free time I have.

The problem is that this game relies heavily on microtransactions. Almost every aspect of progression seems tied to spending money, and since the purchases are priced in US dollars while I earn in Brazilian reais, everything becomes very expensive for me.

So I was wondering: would it be possible to create a personal offline copy of the game just for myself, with no intention of distributing it, so I could play at my own pace and experience a sense of progression without constantly hitting paywalls?

I'm not looking to profit from it or share it with anyone, just to enjoy the gameplay offline. I'd appreciate any advice or information about whether this is technically possible and what would be involved.(i am not programmer)

Thanks!


r/learnprogramming • • 9h ago

Should I stick with Java for both backend and LeetCode if I have six months to prepare for an internship?

0 Upvotes

Hey folks, I’m a third-year CS student on the software engineering track. I have about six months to prepare for my required summer internship, and I’m aiming for a backend role.

I’ve used Java in my OOP course and I’m fairly comfortable with it, but I haven’t built a backend project yet. I also want to get better at data structures and problem solving. I’m considering two options.

  1. Stick with Java for both backend projects and LeetCode since I already know the language.
  2. Learn Python for backend and use C++ for problem solving. Python appeals to me because I’m interested in AI.

With six months to prepare, which approach would you take? How would you split your time between building a backend project and practicing data structures and algorithms?


r/learnprogramming • • 3h ago

Topic Is Python -> JS -> C++ -> Java -> C -> Assembly a good order to learn?

0 Upvotes

I'm a Python beginner planning my learning path and want to know if this order makes sense:

Python -> JavaScript -> C -> Java -> C++ -> Assembly

Is this a good path, or is it a bad idea to learn this many languages? What do you think?
Edit: Swapped C++ and C (so C -> C++ instead of C++ -> C) based on your feedback. Thanks for all the advice!


r/learnprogramming • • 15h ago

I don't know anything still.

2 Upvotes

I've been trying to learn programming, and I do open my IDE, and write up simple rpg mini-games and such, but I still don't know anything in programming, I literally don't know how to learn programming, or If I'm meant to learn it, I'm still stuck on level 0, and I'm not progressing at all, I feel stressed out because I have to land a job in IT, but it feels like a far-fetched dream, ATM I'm learning web-development using JS/CSS, I love the language, I'm enjoying my time building simple stuff, but everything feels too complex, and I'm not at good at coding as I am into other skills like art/drawing, and I'm not advancing at all.


r/learnprogramming • • 1d ago

Topic How to Develop interest in programming

21 Upvotes

Hello i am a bscs student 1st semester. I want to know how do i develop interest for programming cause all i do is play video games only i can't get out of this situation. When i was young i had a deep passion for learning rubiks cube so i used to spent day and night learning and solving it and i learnt it. How do i develop that kind of passion and obssession with this programming??

Thank you for your answer.


r/learnprogramming • • 21h ago

R advice

5 Upvotes

I’m newish to coding and learning latex and R for a project, how can I neatly display different graphs or information in a report-like style? I have my dataset I just don’t know what to do with it lol. I’m using R studio.
Anything that helped you learn or develop skills please recommend to me, I will appreciate it a lot.


r/learnprogramming • • 1d ago

Almost finished with Colt steele Web Dev course, what should I do next?

6 Upvotes

Just wanted to ask those who have finished colt steel web dev course or even any course/bootcamp in general on web development, what should be my next steps?


r/learnprogramming • • 1d ago

I think I'm fucked.

89 Upvotes

I'm a college student working toward an associate's degree in computer programming. I've had to take 2 semesters off for mental health breaks along the way, so completing my degree has taken longer than I originally expected. However, I think I've reached a point where I need to be honest about where I stand on my actual programming skills.

Due to my mental health and personal circumstances, I've relied heavily on AI throughout my coursework. I'd estimate that AI has done around 90% of the work for me, and some of my courses have even encouraged its use and are teaching us how to use ai agents. I do understand certain fundamentals, but the reality is that I haven't developed any independent projects or gained much experience actually writing code on my own.

What really brought this to my attention was a recent quiz where my professor asked us to write a function that returns a list of sorted numbers. I couldn't do it. I ended up having to leave the quiz and essentially relearn functions because I realized that, despite having encountered them in previous courses, I had never properly learned how to use them independently. Even when assignments required me to work with certain concepts, I was just throwing my assignment into the Ai and having it complete it for me.

There's just so much information to absorb, especially when we're being introduced to multiple programming languages every semester, databases, flasks, threads, etc. I feel like I'm constantly jumping between languages, concepts, frameworks, and tools without ever having enough time to properly internalize any of them. On top of that, relying on AI has made it difficult to distinguish between what I genuinely understand and what I've simply been able to get working with its help.

I've read a lot of discussions suggesting that writing code from scratch isn't as important as it used to be, and I can understand that AI is becoming an increasingly important part of software development. I do feel like I understand some of the fundamentals, but I honestly don't know where to go from here. I don't know what projects I should be building, how to structure my learning, or how to get out of what feels like an endless cycle of tutorials without actually developing practical skills. And the frustrating part is that I'm in college. I'm supposed to be graduating next year, yet I feel like I'm still at the beginning.

I'm also increasingly concerned about the job market. I've been seeing so much pessimistic discussion about companies hiring fewer junior developers and entry-level programmers because AI tools and agents can now handle an increasing amount of the work. It's difficult not to feel discouraged when I'm already questioning whether I have the skills to enter the industry in the first place.

When I initially enrolled in this degree in 2024, I remember seeing discussions about AI and how it wasn't expected to become nearly as capable as it is today, and I felt safe enough to go forth with pursuing this degree. Obviously, things have changed considerably in just 2 years. Maybe I'm consuming too much doomer content, or perhaps I'm looking at the wrong sources, but I genuinely don't know what to make of the current state of the industry.

At this point, I feel lost. I want to become a competent programmer and build my own projects and actually have the skills to get a job in the future. But I'm struggling to figure out how to get there, especially when I feel like I've spent so much of my time learning, getting assignments completed without developing the actual skills those assignments were supposed to teach me. I know the go to advice will be to just stop using AI and get to learning and making projects, but it's so hard, and it's everywhere, including in my courses.


r/learnprogramming • • 10h ago

Has anyone here actually started from zero and made money from programming within 6 months?

0 Upvotes

Hey everyone,

I'm 26 and recently started learning Python through Harvard's CS50 course. I'm going through a difficult financial period and trying to build a better future.

I'm willing to dedicate around 3 hours a day to learning, but I'm curious about real experiences rather than motivational advice.

Has anyone here started programming from scratch and managed to earn their first money within 3–6 months?

If so, what did you learn, what was your first paid project, and how did you find your first client or job?

I'm also curious whether AI tools made that journey easier, or whether the current market has made it harder for beginners.

I'm not expecting to become a professional developer in six months. I just want to know what's realistically possible.

I'd really appreciate hearing your stories. Thanks!


r/learnprogramming • • 20h ago

Advice Software Engineer Role Requirments

0 Upvotes

Finishing my associate in computer systems i have an interest in database and game development so
Im looking towards those industries but i have no clue on how to sell myself in a way my resume list languages i know and learned through college with some projects that i have worked on both in school and at home and i have not heard back and the jobs that im looking to apply seems way out of my league

So im looking for advice on what i can do to really achieve getting my foot in the door

To add im also continuing my education for bachelors with either a pathway in software engineering and or database administration


r/learnprogramming • • 1d ago

hi, i started learning cpp by myself since about 2 weeks ago, and i wrote my first useful simple program. the thing is that cause i learn by myself i don't know where my level is, so i wrote this program as a hope someone can judge me based on the simple first program i wrote.

20 Upvotes
/*
i learned file reading and writing
data types like int, strings
data saving, declaration, initializing, and defining
arrays and vectors
integrating vectors and file reading and writing
enums and the enum class
functions
calling functions and etc

so basically, this simple program asks you to write a password and a username and points you want to save
then it will save them in a text file called "users"
then it will ask you to write the pasword and username
then it will dispaly a comment depending on your points count
and if you run the program again and wrote a new saved password and username, then used the old passwerd and username, it will judge you based on that

and thanks!!
*/

#include <iostream>
#include <fstream>
#include <string>
#include <cstdlib>
#include <vector>
struct user {
std::string username;
std::string password;
int points;
};

enum class Ranking {
Trash,
Intermediate,
Advanced,
Legendary,
Mr_VIP
};

Ranking getrank(int points)
{
if (points < 250) return Ranking::Trash;
if (points < 500) return Ranking::Intermediate;
if (points < 750) return Ranking::Advanced;
if (points < 1000) return Ranking::Legendary;
return Ranking::Mr_VIP;
}

void addUser(std::string username, std::string password, int points)
{
std::ofstream file("users.txt", std::ios::app);
file << username << " ";
file << password  << " ";
file << points << " " << "\n";
}

std::vector<user> loadUsers()
{
std::vector<user> users;
std::ifstream file("users.txt");
user u;
while (file >> u.username >> u.password >> u.points)
{
users.push_back(u);
}
return users;
}

int main()
{
std::string savedUser;
std::string savedPass;
int savedPoints;

std::cout << "Enter the username you wanna save: ";
std::cin >> savedUser;
std::cout << "\n";

std::cout << "Enter the password you wanna save: ";
std::cin >> savedPass;
std::cout << "\n";

std::cout << "Enter the points you wanna save: ";
std::cin >> savedPoints;
std::cout << "\n";
if (std::cin.fail() || savedPoints < 0)
{
std::cout << "Error!!!\n";
return 0;
}

user u;
u.username = savedUser;
u.password = savedPass;
u.points = savedPoints;

system("cls");

addUser(savedUser, savedPass, savedPoints);

std::vector<user> users = loadUsers();

for (int attempt = 0; attempt < 3; attempt++)
{
std::string iusername;
std::string ipassword;
std::cout << "Enter your username: ";
std::cin >> iusername;
std::cout << "\n";
std::cout << "Enter your password: ";
std::cin >> ipassword;
std::cout << "\n";

bool found = false;
int foundPoints = 0;

for (const user& u : users)
{
if (u.username == iusername && u.password == ipassword)
{
found = true;
foundPoints = u.points;
break;
}
}

if (found)
{
std::cout << "logged in successfully!\n\n";

Ranking rank = getrank(foundPoints);

switch (rank)
{
case Ranking::Trash:
std::cout << "You are trash\n";
break;
case Ranking::Intermediate:
std::cout << "You are intermediate\n";
break;
case Ranking::Advanced:
std::cout << "You are advanced\n";
break;
case Ranking::Legendary:
std::cout << "You are legendary\n";
break;
case Ranking::Mr_VIP:
std::cout << "You are Mr. VIP\n";
break;
}
return 0;
}
else
{
std::cout << "wrong password or username, try again\n\n";
}
}

std::cout << "too many failed attempts!!!\n";
return 0;
}

r/learnprogramming • • 1d ago

Debugging Advice on how to approach projects

6 Upvotes

i actually want to completely hand code a complete internship app.

I mean everything by hand , I will only use AI for research and stuff like that ,

I want to do it in python , use PostgreSQL for the database and use the SQLAlchemy library to convert the python variables and classes into database queries,

For the frontend , I would like to use javascript, css and html ,

So , i humbly ask for guidance tips and how i should approach it , I have coded with python , made a few mini programs that i use for basic stuff such as cgpa calculation , solved a few leetcode problems,

I have learned Object orientated programming as well but I have never taken on such a huge project so anyone sort of tips or advice or what problems I might face or what I should learn throughly before i jump into this will be appreciated

Thank you .


r/learnprogramming • • 1d ago

I need help understanding a particular case of an improved for loop using an array as a parameter. (Java)

5 Upvotes

I am learning Java using Deitel's book. This particular for loop uses and array as a parâmeter but I can't understand exactly how it's supposed to work.

int lowGrade = grades[0][0];

for (int[] studentGrades : grades)
{
    for (int grade : studentGrades)
    {
        if (grade < lowGrade)
            lowGrade = grade;
    }
}

For all I understood, the improved for loop works the same as this other example here:

int total;

for (int counter = 0; counter < array.lenght; counter++)
{
    total += array[counter];
} 

But I don't understand how the first one could work in a similar way with an array as a parameter since in the example in the book, the array grades is a bidimentional array. What is that first for loop doing to the int[ ] studentGrades?

The books says something like: " The external improved for loop iterates through the bidimentional array grades assingning new lines to the parameter studentGrades.". How does that even work?


r/learnprogramming • • 1d ago

Solved Super simple question from a beginner beginner

4 Upvotes

I am following the coding tasks from an old post from here:
https://www.reddit.com/r/learnprogramming/comments/9c380n/heres_a_list_of_coding_exercises_to_help_get_you/?sort=new

and am at the 3rd and 4th Step. I assume I understood what is asked of me but my solution feels a bit too simple? And I am thinking I just found a solution but not necessarily for the question asked. Could someone double check if my code actually does what the task asks of me?

3.
Create a class called "Car" that has 1 variable called "licensePlate". Within the class, create a default constructor that sets "licensePlate" to 'Unknown' and a method/function called "getLicensePlate" that returns the variable "licensePlate".

Code:
class car:

license_plate = "Unknown"

p1=car()

def getlicense_plate():

print(p1.license_plate)

getlicense_plate()

4. Add a second Car constructor to our class that takes 1 input of type String. This is the license plate number. Assign the value of the inputLicensePlate to our variable licensePlate.

Code:
class car:

license_plate = input()

p1=car()

def getlicense_plate():

print(p1.license_plate)

getlicense_plate()


r/learnprogramming • • 2d ago

Topic Am I wrong for not feeling okay with completely surrendering to the AI agents?

106 Upvotes

Maybe this is mine OCD personality, but I just can't develop something if I don't completely understand the code. This makes my work significantly slower, compared to the pace where I would delegate everything to AI and just brute force towards some end goal.


r/learnprogramming • • 2d ago

Failed 4 programming exams in a row – I don't know what I'm doing wrong anymore

30 Upvotes

I started out studying electrical engineering and failed the programming exam there 3 times, even though it was just multiple choice. I switched to an easier university program, thinking it would be different, and I just failed again. This time it was a Python exam on the absolute basics: loops, strings, slicing, lists and simple functions. I got 33%.

The frustrating part is that I didn't just ignore it. I did all the weekly exercise sets, and before the exam I studied with practice quizzes and tracing exercises. When I go through it with explanations, I understand it. But on the actual exam it just doesn't come together.

So now I genuinely don't know what the problem is.

Am I studying the wrong way?

Do I just not know how to learn this kind of thing?

Or am I simply not cut out for programming?

If anyone has been in a similar spot and figured it out, I'd really like to hear what changed for you. How did you actually practice? What made it "click"?

Thanks for reading.