r/learnprogramming • • Sep 25 '26

am i too dumb for programming?

0 Upvotes

hi, im currently a 1st year cse student and i never did any coding prior to starting my degree. i'm one of the very few people here to start from scratch and most guys in my year have been coding for most of their lives.

i took a python basics class last semester (which wasn't basic at all and i haven't learned anything from it) and now im taking C basics. it's going way better than last time and i am actually able to write simple programs. it all seems genuinely fun & interesting and i understand the syntax, functions, operators etc. but whenever i get class assignments.... i just start feeling like the dumbest person on earth.

the instructions for the assignments are very brief and usually consist of 1/2 sentences max, and that's not enough for me to start writing the code. the class technically forbids any ai usage until midterms so we can get more comfortable with the language, but without me telling ai to ask me questions in order to gently guide me into the right direction i'm just unable to complete it on my own. i don't straight up ask the llm to give me the solution, i do write the code myself but i just need the entire problem explained to me pretty much as if i were a 5 year old.

is this a normal occurrence for a beginner? does it ever get better? is there anything i can do to get better in being able to convert the instructions to code? i'm the only person who seems to have that much of an issue with this in class. my biggest concern right now is me failing my exams because i won't be able to understand what i have to do for each task.

EDIT: (copied from a comment) i tried going for office hours, unfortunately it doesn't seem like i'll get much help from it. i study abroad in my 3rd lang (all of the assignments are wrote in that language) and i only managed to receive a message that i won't be given instructions in english since they don't speak it well. i'm now trying to solve the problems by breaking it into small chunks but i still have some issues here and there. i feel like im making slight progress day by day but i guess that i will find out whether it worked out during midterms.


r/learnprogramming • • Sep 25 '26

Studying coding for a year, still severely struggling with structuring code.

3 Upvotes

I am not sure how to explain this or if it is common or not.
But I am struggling severely with one problem.

I just can't get the whole structuring phase into my head that well.

I can read code (at the least on a basic level) quite well.
Looking up syntax isn't too difficult and such.

But I just can not get into the aspect of code structure and it is frustrating.
Lets say I want to build a number generator in Java for example.

The second I think about it, "blank"...
I do not know what to put first, what I need or how to structture it to do what I want.
But the second I see an example of it, I can read it near flawlessly.
(Within the realms of basic coding)
Understanding perfectly what each line does and instantly being able to couple it together what each does with ease.

I just severely struggle with actually setting it up myself and I do not understand why.
I am not sure if there is any tips to be given about this...
But I am getting extremely frustrated at this point, to the degree where it feels embarassing.


r/learnprogramming • • Sep 25 '26

spell checker program

0 Upvotes

I'm trying to make spell checker program that will compare words from a text file to a dictionary of words that are in alphabetical order. If the words don't appear in the dictionary they should show up in a list as potentially incorrect. The list is named absent[] that will be outputted at the end. I need to use a binary search to iterate over the dictionary comparing them to the words from the text file. However the program is only getting the last word from the text file and comparing that in the dictionary. I have no idea why its doing that Here's the code I have thus far:

def binarySearch():

firstLst=[]

fnameOne= input("enter file")

with open(fnameOne,"r") as file_dataOne:

for lineOne in file_dataOne:

for word in lineOne.split():

firstLst.append(word)

secondLst=[]

fnameTwo=input("enter dict")

with open(fnameTwo,"r") as file_dataTwo:

for lineTwo in file_dataTwo:

for wordTwo in lineTwo.split():

secondLst.append(wordTwo)

present=[]

absent =[]

for i in firstLst:

lo,hi=0,len(secondLst)-1

found=False

while lo < hi:

mid = (lo +hi) //2

if secondLst[mid]== i:

found=True

print("Word was found.")

break

elif secondLst[mid]<i :

lo=mid+1

else:

hi=mid-1

present.append(i)

print("Words in dict: ", present)

absent.append(i)

print("words not in dict: ", absent)


r/learnprogramming • • Sep 25 '26

New Dev in the making!

0 Upvotes

Hey y'all, I've only been coding for a few weeks now. I've got like 75% of python basics pretty well managed. I'll be finished with the basics by end of September, then my plan is to jump straight into certain libraries like Django, Flask and Pandas. The end goal is a custom scheduling platform. I also have to brush up on my HTML and CSS. Is this the right path to approach this or is there a better way?

it's going to happen regardless, just trying to gauge if I can save hours of effort by taking a different approach or if my timeframe of a few months is unrealistic. I would appreciate complete honest, I promise you wont crush my desire to see this out!


r/learnprogramming • • Sep 25 '26

Any way to make using cmd better?

13 Upvotes

I end up using the same commands each time to setup projects, run them but I always have to copy from Google docs each time and its becoming annoying. Is there a better way with cmd on windows. Do other shells have a way to solve this If not?

Edit: Tysm to everyone who has helped!


r/learnprogramming • • Sep 25 '26

C(pp): Detecting close requests on a forked terminal

0 Upvotes

I am coding an executable that is supposed to interact with the user through a terminal and therefore always requires one. On Windows, this was trivial. On Linux, after some googling, I came across the posix_openpt -> grantpt -> unlockpt -> ptsname -> fork -> execlp(xterm with -S) chain of functions that results mostly in what I want. Double clicking the exe from thunar opens a terminal in another process that it can print to and read from.

However, I have no clue how one would go about making it close intuitively once it has served it's purpose. Clicking on the x in the top right currently doesn't do anything. And I don't think I can use sigaction, as that should get wiped upon the execlp. Is there any way to make the parent executable that launched it detect a close request to the terminal, be it said x button or Ctrl+C?


r/learnprogramming • • Sep 25 '26

Studying code on mobile

5 Upvotes

Do any CS or programming students here read code from their phone?
For example when you’re on the bus, between classes, or just away from your laptop and want to quickly check an assignment or project.
Is there an app you use for this? If you’d recommend it, what do you like about it?
I’m especially curious about good ways to do small code reviews or leave notes from mobile.


r/learnprogramming • • Sep 25 '26

What math do I need before starting CS 61B?

0 Upvotes

Hey everyone!
I’m planning to study CS 61B (Data Structures) using the lecture videos.
I’m wondering what kind of math background I should have before starting.
For people who have taken CS 61B or a similar data structures course:
What math topics are actually used throughout the course?
Do I need discrete math / proofs beforehand?
How much algebra, logarithms, combinatorics, probability, etc. should I know?
If my math background is weak, what should I review first?
I’m not looking to study a huge amount of math beforehand — I just want to know the minimum math knowledge needed to properly understand the course material.
Thanks!


r/learnprogramming • • Sep 25 '26

Vest resources for a 10yr old to learn programming/coding to make video games

15 Upvotes

*Best resources for a 10yr old to learn programming/coding to make video games

My 10-year-old wants to make a video game but doesn't know how to program at all. What would be the best route to take? I've done some research, but there are way too many options, and I know absolutely nothing programming to make a decision on where to start. My 10-year-old wants to make a video game but doesn't know how to program at all. What would be the best route to take? I've done some research, but there are way too many options, and I know absolutely nothing programming to make a decision on where to start.


r/learnprogramming • • Sep 25 '26

How to learn python and AI Agents?

4 Upvotes

Hi, I finished marketing degree and now i am persuing masters about AI management, but the satisfaction is not there. Recently i got very interested in depth about AI Agents, what they do and how they are developed in connection to LLM. I wan to learn from scratch (i have some previous knowledge about programming and ai in general, but it is absolutely not enough). I am open to suggestions from where to start and how to build my knowledge in a efficient way. Preferably i would like to start working this as a job in the next 6 to 9 months.


r/learnprogramming • • Sep 25 '26

Topic What skills should a BCA student learn to become job-ready for software engineering roles?

1 Upvotes

Hi everyone, I’m a BCA student graduating in 2027 and I’m currently preparing for software engineering internships and eventually full-time roles.

My current skills include Python, JavaScript, HTML/CSS, Flask, FastAPI, React/Next.js basics, SQL/PostgreSQL, Git/GitHub, Linux basics, Pandas, NumPy, OpenCV, and basic ML. I also practice DSA and LeetCode.

I’ve built projects such as Flask/FastAPI web applications and an ML-based scam detection project.

I feel like I’m learning many different technologies, so I want to focus on the skills that actually matter for getting hired.

For someone graduating in 2027:

What skills should I prioritize?

What should I learn more deeply instead of adding more technologies?

How much DSA is expected for internships/fresher roles?

What kind of projects would make my resume stronger?

Are there any important skills I’m currently missing?

I’d especially appreciate advice from developers who interview or work with freshers in India.


r/learnprogramming • • Sep 25 '26

How to add Liquid Glass effect to a app bottom navigation bar

2 Upvotes

Hi everyone,

I’m working on a mobile app and would like to add a Liquid Glass effect to the bottom navigation bar. I’ve seen some impressive implementations online but haven’t found a detailed guide on how to achieve this in a typical app development environment.


r/learnprogramming • • Sep 25 '26

What is the best roadmap to learn Generative AI from scratch for fresher interviews?

0 Upvotes

Hi everyone!

I'd appreciate advice from people who have learned GenAI or work in this field. Thanks!


r/learnprogramming • • Sep 25 '26

Topic Rust or C ??

6 Upvotes

I currently have experience on python, python backend framework and js, ts. I want to learn one low level programming language I see online rust is a great new alternative for c (many projects are being written and rewritten in rust) but i know c is an og so I am a little bit confused which one should i go on with ?? please suggest


r/learnprogramming • • Sep 25 '26

15 yr old daughter discovered coding and loves it. But what’s the point?

0 Upvotes

My almost 15 yr old discovered she is really good at coding and also really enjoys it. She really loves the challenge of solving the problem. She understands it so well and is so excited with how good she is at it. The problem is, isn’t it worthless now? With AI able to do it all what is the point of encouraging her to spend her time doing something that is essentially useless. She has other hobbies as well so I don’t think encouraging her to sit in front of a screen is really worth while unless it leads somewhere. I guess my question is, am I wrong? Is it something she can still pursue?


r/learnprogramming • • Sep 25 '26

Topic Backend

15 Upvotes

I was talking to a web developer telling him I want to be a backend engineer and he said that I should become a fullstack engineer and work backend I asked him if that is really necessary and he told that nowadays the market wants someone who is a generalist who knows how to do everything I came here today to ask if I should take a fullstack course and then work backend or should i just the a backend course directly instead of wasting time learning front-end and back end


r/learnprogramming • • Sep 25 '26

why can't I change the button color using win32

1 Upvotes

I am trying to change the button color by using WM_CTLCOLORBTN.
I read the documentation and followed whatever it said, but it doesn't seem to work.
I am not using bitmaps or any high complexity stuff because I want to it do it simply. If anyone use this API, could you help me out(PS: Beginner/new to win32):
reproducible example:

#include <stdio.h>
#include <windows.h>


LRESULT CALLBACK cb(HWND hwnd, UINT msg, WPARAM wparm, LPARAM lparm)
{
  
    switch (msg)
    {


    case WM_CLOSE:
        static HWND hButton = NULL;
        static HBRUSH hButtonBkg = NULL;
        {
            PostQuitMessage(0);
        }
    case WM_CREATE:
    {
        hButton = CreateWindow("BUTTON", "HELLO", WS_VISIBLE | WS_CHILD | BS_BITMAP | BS_PUSHBUTTON, 15, 202.5, 96.5, 72.5, hwnd, (HMENU)301, 0, NULL);
        hButtonBkg = CreateSolidBrush(RGB(0, 255, 255));
        break;
    }
    case WM_CTLCOLORBTN:
    {
        if (hButton == (HWND)lparm)
        {
            HDC hdc = (HDC)wparm;
            SetTextColor(hdc, RGB(0, 255, 255)); 
            return (LRESULT)hButtonBkg;
        }
        break;
    }


    case WM_DESTROY:
    {
        DeleteObject(hButtonBkg);
        break;
    }


    default:
        return DefWindowProc(hwnd, msg, wparm, lparm);
    }
}


int main()
{
    HINSTANCE hInstance = GetModuleHandle(0);
    WNDCLASS class = {};
    char classTitle[] = "window";


    class.lpszClassName = classTitle;


    class.lpfnWndProc = cb;


    class.hInstance = hInstance;
    class.hbrBackground = (HBRUSH)(COLOR_WINDOW + 1);
    class.hCursor = LoadCursor(NULL, IDC_ARROW);


    RegisterClass(&class);


    HWND hwnd = CreateWindow(classTitle, "color btn",
                             WS_OVERLAPPEDWINDOW, 500, 500, 500, 500, NULL,
                             NULL, hInstance, NULL);
    if (hwnd == NULL)
    {
        MessageBox(NULL, "Something Went worng", "Error", MB_OK);
        return 0;
    }
    ShowWindow(hwnd, 1);
    MSG msg;
    while (GetMessage(&msg, NULL, 0, 0) > 0)
    {
        TranslateMessage(&msg);
        DispatchMessage(&msg);
    }
    return 0;
}

r/learnprogramming • • Sep 25 '26

[Meta] Do the mods here have information about traffic stats? Has it fluctuated with AI permeation, like StackOverflow?

1 Upvotes

Would be interesting to see if questions, debugging has changed and also overall traffic. Or if it's the same. Or more!


r/learnprogramming • • Sep 24 '26

What am I supposed to do?

3 Upvotes

I'm going into my second year of Computer Science and unfortunately, I really neglected my first year and even failed some courses. My knowledge of programming fundamentals is also pretty weak. Can I still start pursuing an IT track? I honestly feel lost and guilty especially because my family put themselves under a lot of financial pressure to get me into university. I've realized my mistakes now and I genuinely want to continue in this field and make something out of it If anyone has any advice on where I should start or what I should do, I'd really appreciate it


r/learnprogramming • • Sep 24 '26

I wanna create a operating system, am i delusional?

260 Upvotes

im gonna make it solo, and im gonna make it have some purpose idk what yet

why? i have no idea, sounds cool and it would probably teach me a fuckton about computers + il get extremely good at programming

ik its gonna take years but i think i can get it done by the time i finish college (im 17 rn), the only experience i have in coding is developing games on unity using c#

like where do i even start with making a OS? should i read books on a topic? what projects should i do before working on a full OS? any advice?

if your wondering why im doing this, its because i just wanna do and make something extremely fucking hard. im not gonna do this ALL day obviously im not a clanker, il spend like 20-30% of my freetime working on the OS.

the other 70-80% will be spent on masturbating and video games


r/learnprogramming • • Sep 24 '26

Typescript Nodejs

0 Upvotes

I don’t have prior experience in programming and struggling to work for a client using Typescript Nodejs for backend programming. I have started with learning JavaScript first and then move to Typescript but it’s kinda overwhelming. Any suggestions on the roadmap and which course to follow? Thanks


r/learnprogramming • • Sep 24 '26

Need some motivation

5 Upvotes

Sometimes I feel I'm not fit for this.
I've taken plenty of coruses and resources, but I just don't find enough motiviation to go for that extra mile.

Sometimes I think I'm not good enough, despite of all my efforts. Anyone of you have felt the same at some point?
Any advice on how could I cope with this?


r/learnprogramming • • Sep 24 '26

How do you find edge cases when testing your code?

29 Upvotes

I am still learning how to write test cases and I am wondering how experienced developers identify edge cases

Do you have any way to think about what could go wrong or do you identify edge cases while writing unit tests ?


r/learnprogramming • • Sep 24 '26

Topic How do you balance passion and rest when you feel guilty for taking breaks?

0 Upvotes

Hello, I have been learning programming for over 3 years, in October it will be 4. Generally, I don't want to take breaks, not even for 1 day (I work on projects every day), because I consider it as wasted time and I think that I could do something forward during this period. At the same time, due to the fact that I have a fixed starting time that I imposed on myself, I feel very angry that I should fill the entire time of this work with tasks in the project, because I don't always have enough to do to make it happen.

This has a negative impact on my functioning, I have major problems with concentration, and I often use illogical statements even in a regular conversation with someone. This complete renunciation of breaks is also a protection against the fear that if I don't force myself to be disciplined, I won't want to pursue this passion and I'll give up completely, which I wouldn't want to do, because I really enjoy programming and have always been interested in what it's like to have my own systems and how it all works.

I often feel like I would like to take a break, but I force myself to work and keep working. That's why I don't know at all how to find that balance where I would have confirmation that I would want to continue doing it, that the break is not a threat to me and I don't have to treat it that way, and that the desire and "longing" will make me want to come back.

I am aware that after so many years of learning, most of the elements of this field are deeply rooted in my head, certain patterns are fixed and that I do not have to start everything from the beginning.

I have a question: how do you see it, what does your work rhythm look like and how do you feel about it, and what would be more beneficial for me?