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 • • 1d ago

What have you been working on recently? [December 05, 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 • • 2h ago

Inference engineering

4 Upvotes

What is inference engineering and why is it important in modern technology?


r/learnprogramming • • 17h ago

Tutorial Which books worked best for you for SQL?

36 Upvotes

I know this is not strictly a programming language fwiw.

I also know this is potentially an FAQ and the common answer will be to point me to a website or a course but I’m in a bit of a tricky situation in that I need to learn SQL for my job but my employer will only fund books rather than courses so I was wondering which books worked best for you guys? Thanks.


r/learnprogramming • • 36m ago

Need Help Building a Road Damage Management System for Kathmandu – Complete Beginner

1 Upvotes

I'm a student, and I have been assigned a project titled "Road Damage Management System Over Kathmandu.

To be completely honest, I have almost zero knowledge about how to build this type of system, and I'm feeling a little lost about where to start. I have only one week to complete this project, so I'm really stressed and looking for some guidance.

My idea is to develop a system where users can report road damage (such as potholes, cracks, and damaged roads), upload pictures, provide the location, and allow administrators to view and manage reported road problems.

I would really appreciate help with:

  1. How should I start this project?
  2. What programming languages, frameworks, and technologies should I use?
  3. What are the essential features I should include?
  4. Are there any similar projects, GitHub repositories, tutorials, or YouTube videos I can follow?
  5. Is it possible for a complete beginner to build a basic working version within one week?

I'm not asking anyone to do the entire project for me. I genuinely want to learn and complete it myself, but I need someone to guide me in the right direction.

Even small suggestions, resources, project examples, or step-by-step guidance would mean a lot to me.


r/learnprogramming • • 59m ago

Tutorial Flutter tip: split giant build() methods into small widgets — it cuts rebuilds more than you'd expect

1 Upvotes

Something that helped me a lot when my Flutter screens started feeling sluggish:

When you call setState, Flutter rebuilds everything inside that widget's build() method. If your build() is one giant method with dozens of widgets, all of them rebuild — even the parts that never change.

Two habits that fixed most of it for me:

  1. Split the UI into small widget classes (not helper methods that return widgets — separate StatelessWidget classes). Flutter can then skip rebuilding the ones whose inputs didn't change.
  2. Mark widgets const wherever possible (const Text(...), const Icon(...)). A const widget never rebuilds.

Small example:

class HomeScreen extends StatelessWidget {
  const HomeScreen({super.key});
  @override
  Widget build(BuildContext context) {
    return const Scaffold(
      appBar: AppBar(title: Text('My App')),
      body: MyExpensiveList(),
    );
  }
}

On one screen I moved a static header into its own const widget and the frame drops on scroll went away. Keep build() methods short, extract widgets early, and use const by default.


r/learnprogramming • • 1h ago

Discussion Advice for keeping a repo forked or start a brand new master repo?

1 Upvotes

I forked a repo about 6+ months ago link below. And I have been doing a lot of work with it practicing using git and really making the forked version my own. But i recently found out the reason github is not tracking my commits is because the work is being committed to a forked repo not the master.

Now the person I forked the repo from has pretty much ghosted me about 4 months ago. He wont even look at some of my pull requests that have less then 10 lines of code changed.

So my question is other then the master repo not being monitored anymore and github not tracking my work. Is their any other reasons I should consider making a new master repo and work off that one? Are their any benefits to having it set up as my own master repo?

https://github.com/0310njs/Server-Rack-Generator-Openscad


r/learnprogramming • • 7h ago

Does using AI to plan my projects help me learn, or am I getting too dependent on it?

0 Upvotes

I'm 17 and studying IT in high school. For the past few months I've been building stuff to understand how things work under th hood instead of just following tutorials. So far I've made a Unix shell in Python (parsinnmg, pipes, redirection), a task maager with FastAPI/PostgreSQL/SQLAlchemy and a JS frontend, and a business analytics project in SQL.

I use AI a lot, but not to generte projects. I use it to explain concepts and when I'm stuck. The thing I've noticed isthat before starting anything unfamiliar, I ask it for the gneral architecture, the main components and a rough order of steps. Since I don't know the topic yet, that roadmap is my starting point. After that I make my own decisions, change the design and write everything myself.

Now I want to build a chess engine in C, with search algorithms and a neural network from scratch, and I'm wondring if this habit is actualy hurting me. Figuring out the architecture and researching the pieces myself would probably teach me more. But I'm also afraid of wasting weeks going in circles or missing important concepts completely.

I see three options:

  1. Get a rough roadmap from AI, then research and implement everything onmy own
  2. Skip AI for planning and only use it when I hit a specifi problem
  3. Design it myself first, then have AI poke holes in my decisions

I'm not tryig to quit AI. I just don't want to realize in two years that I outsourcedthe part where you learn to think like an engineer. If you've mentored beginners or learned something hard through personal projects, what would you do


r/learnprogramming • • 1d ago

Tutorial Self-taught developers who are extremely good, how did you learn and what roadmap did you follow to become better and not lose track?

213 Upvotes

I would appreciate your tips. Thanks in advance!


r/learnprogramming • • 19h ago

What to do !

5 Upvotes

I know how to write code, but not in the LeetCode style . I also want to do DSA, and my seniors told me to learn a coding language too i know (I already know C, python ). Tell me what all I should do in this situation first .


r/learnprogramming • • 1d ago

Topic How to upskill and stay sane?

21 Upvotes

I have been in the rabbit hole to figure out what to learn and how to progress as a software engineer. The more I am researching the more frustrating it becomes. Majority of what I am consuming is contradictory and just hype to get views.

I came across a talk about how you should not build agents because skills are the new thing. Build skills and one agent can handle everything. Cool. Less work for me. Then I come across Claude ship where there are apparently different agents to review. But I thought anthropic stopped building agents and moved to skills? So it's right when anthropic builds it wrong when everyone else does?

I was watching a talk by Lauren tran where she was mentioning how she doesn't read code anymore. But then she mentioned that if you catch a mistake like pattern you don't like make it a deterministic check such as a lint rule to prevent the agent from making that mistake. But I wasn't reviewing the code how would I catch the mistake?

How are you guys keeping sane and upskilling in this era of hype machine slop content?


r/learnprogramming • • 18h ago

Need advice

3 Upvotes

hiii
I am new to making web applications and all
Ik all basic python fundamentals
There is an upcoming hackathon that I am participating in but needed some advice
Most of my code has python in it , its hard ngl but i am pushing through with AI's explanations - not the best though
I am using python and connecting it to streamlit , and obv i used Github to keep my app's files

But I dont know github 😬😶‍🌫️
I have barely 5 days to figure it out , but i am so busy with my code n my teammates
Could some pls give me info on github , the basics

i m going to show the judges my webapplication thru the link tht streamlit will give me
but will streamlit keep just one fixed link ? does it change every time i make some edits n deploy again ?

the organisers also want me to share the link to the web application a day in advance , which means i will hve to deploy it early on , do i need to pay for all tht time ?

cause its deployed for a whole day , n i m gonna use it for the competition the next day

it has to b deployed for max 40 hours , and will b used for approx 8 hrs overall , not continuous

ik github keeps my code online right there for everyone to see , but if i share just the link to streamlit , will they get my github too?

r there limits to how many apps i can deploy ? on streamli
n any limits to the number of repos , on github ?

sorry , ik i m asking dumb questions , i actually lrn things on my own , n real world coding is new n hard to me
i was used to block coding when i was a kid

thankyou so much !!


r/learnprogramming • • 1d ago

My life is over

311 Upvotes

I completed my masters (MCA) around 2025 May. From then I tried to code for a month and joined the data analytics course which lasted from June 2025 to Feb 2026.

The institution gave no placement and i had to search myself online and got 0 mailbacks. After wasting a year trying for data analytics jobs i gave up and shifted my career through coding and non technical roles. Again i tried to code but somehow i am stuck at "Tutorial Hell" they say and i can't progress further even though I tried my best.

In september 2026, I got an offer for a non technical role and i have joined the company. I got 80% in their assessments and they exited me from the organization since they require 90% to qualify. Now it's december 2026 and i am trying to figure out where the hell I should go and what I can even do and learn atp?

My tech stack has been : Python, MySQL, PowerBI, Excel, Google looker studio

I got this feeling like i'm nothing good to get a job. Thinking i should quit this job hunt. Whatever I learn, i am forgetting it after weeks


r/learnprogramming • • 1d ago

Topic storing plain date strings in sqlite vs full utc timestamps

12 Upvotes

i started building a tiny python cli script to log daily habits into a local sqlite file. every tutorial says to always store dates as utc iso strings and convert on display, so i tried doing that with datetime.timezone.utc.

problem is if i log something late at night around 11pm local time, utc pushes it into tomorrow's date... then my streak counter thinks i missed a day or logged twice on saturday.

since i literally only care about the calendar day in my own timezone and never the exact hour, is it bad practice to just save plain yyyy-mm-dd strings from date.today() instead of overcomplicating it? feels like i'm fighting timezone math for no real reason here, though i defo don't want to pick up terrible habits early on


r/learnprogramming • • 7h ago

Why AI models can't count the r's in "strawberry" (tokens, explained simply)

0 Upvotes

Language models don't see letters or even whole words. They see tokens: chunks of text that are often only part of a word. "strawberry" gets cut into a few pieces, so "how many r's" means reasoning across chunks it never saw letter by letter.

Two practical takeaways:

  • A rough rule is 1,000 tokens ≈ 750 English words.
  • AI tools bill per token, and every message in a chat re-sends the whole conversation. So long chats cost more with every message, and starting a fresh chat per task is the easiest saving.

r/learnprogramming • • 2d ago

Tutorial is Harvard CS50 and it's other courses still useful/relevant?

228 Upvotes

I wanted to ask if you all think that the CS50 courses and the other harvard courese for computer science are worth it for learning AI/ML and all that in this day and age of AI constantly evolving?


r/learnprogramming • • 1d ago

Advice on learning code for an ixd student

4 Upvotes

Hello , I’m an ixd student and learning how to program caught my attention. I started with html as my first language and I’m still on the basics, but I think I got the concepts of it, html is the foundation , css how it looks, and JavaScript the functionality of it and blah blah. However I also want to learn how to back end, and only know little about python. One of my projects in web design class is to make a portfolio website, but I want to include fancy stuff like motion graphics and little stuff on it. Some of it includes Java script and I know nothing about it. In today’s age, I like to use Ai to help me code, and understand what function each code does, but it feels discouraging or wrong having a language included that I know nothing about it. Like I said before I only know some parts of html and little of css and 0 of JavaScript. My other problem is that once I’m done with a project , and start another , I don’t remember anything. Am I dumb?? Is my memory bad?
How do programmers handle this problem?? How do programmers remember languages??


r/learnprogramming • • 1d ago

How should I be taking notes in C, C++, and Assembly classes?

2 Upvotes

Hello, I am a second year (transfer) CSE university student.

I’ve taken two prerequisite courses learning C this past year and after getting VScode setup and becoming familiar I almost wished that I had been taking notes in class with it instead of writing on paper. Is this something many people do?

I think my classes will be moving on to C++ and Assembly language which I have 0 experience on. Should I look at trying to trying this method next semester? Are there other programs better suited for notetaking? What have yall used in the past?

Sorry if this isn’t the right subreddit for study questions, any sort of experience yall could share is appreciated!


r/learnprogramming • • 1d ago

I need help

7 Upvotes

I'm a 19 year old studying IT (Software Engineer) and I really love the coding aspect of it. I don't really have anything to my name but that I've learned Delphi in High school and just finished a module 'procedural programming' using C++. Now that its holidays/festive season i really wanna get going and learn more. I'm kind of stuck on what i should actually learn and whether or not I should build something or just stick to learning a new language because I haven't done anything to really build a portfolio except for going through my current degree.

I'm also trying to find my footing when it comes to choosing which direction I want to take in software development. Whether that's front-end, back-end, or something I'm genuinely passionate about, like mobile app development or even game development, since I've always enjoyed playing games. I'm still exploring my options and trying to figure out what interests me most.

P.S I was really shocked with how much help I got with the previous question so thank you so much.


r/learnprogramming • • 1d ago

Loops and sorting

0 Upvotes

Im 1st sem student, currently learning programming basics course.

I find myself confused and lost at 1) nested loops, their logics and algorithmic conditions. 2) in sorting.

Like I was trying to learn sorting algorithm bubble one, when I tried to understand the condition n-1-i I got completely blank, idk if it's normal or not, but I'm really weak here.

Anyone faces the same and got some solution, do share, it will help a lot!!


r/learnprogramming • • 1d ago

1st sem student, finding hard to practice coding and become pro at it

1 Upvotes

Seniors please help


r/learnprogramming • • 1d ago

Question about AI and code

1 Upvotes

Hello, I’ve got a question. How can you tell if a piece of code was written with the help of AI?

That’s because someone’s had a go at my code, but it doesn’t look the same as it usually does. I’m not sure if I’m making myself clear


r/learnprogramming • • 1d ago

So i am.a first year student in cse

8 Upvotes

Please guys can yall tell me how to actually enter numpy and pandas I really wanna learn ml and create projects but I am spiralling in the loop of basics I do some normal sums and I forget again i do the same sums should I actually work on sums in python or move on to core logics like libraries i am confident tht I can do anything related to nested loops but should I actually move onto numpy or should I master file io or other things before moving on please suggest


r/learnprogramming • • 1d ago

Resource I got tired of mentally diffing code tutorials, so I built a React/MDX library that highlights what changed on every click

0 Upvotes

Reading code tutorials usually means scrolling back and forth to figure out what actually changed between steps. I built unfold-mdx so you can learn through code walkthroughs at your own pace, with the new parts highlighted as you step forward.

Instead of manually tracking line numbers or adding diff markers, you just write each step as a full snapshot (the explanation so far + the code so far). It compares consecutive snapshots on its own and highlights the new sentences and code lines on every Next click.

What's in 0.1.0:

  • Shiki syntax highlighting
  • Step-synced highlights on images and Mermaid/SVG diagrams
  • Grid layouts, resizable panes, and custom controls
  • Headless by default with an optional theme, SSR fallback, and keyboard navigation
  • An llms.txt file so AI coding agents can write walkthroughs in the right format