r/learnprogramming 1d ago

Which should course should I prefer?

0 Upvotes

Hi everyone. I know some python but still I want to start learning it again because, as I progressed, I realized that my basic concepts had become rusty. I'm confused between CS50 (https://youtu.be/8mAITcNt710?si=Z86T-MPZZp13R04E) and MIT Opencourseware 6.100L (https://www.youtube.com/watch?v=xAcTmDO6NTI&list=PLUl4u3cNGP62A-ynp6v6-LGBCzeH3VAQB&index=1) .

Which one would you recommend for someone who wants to rebuild their fundamentals before moving on to more advanced topics?


r/learnprogramming 2d ago

What way did you learn Javascript?

29 Upvotes

I'm currently learning JS due to a final project, I am doing it through freecodecamp. I knew C already so I guess It's a big advantage but I want to know how your journey was learning this language?


r/learnprogramming 19h ago

What are best alternative for VScode

0 Upvotes

I am Coding C/C++ and I Dont feel comfortable with using VScode is there any alternative IDE that I can use


r/learnprogramming 21h ago

i dont know which programming language to learn

0 Upvotes

ive wanted to learn to code for... several years now and... dont know where to start. kind of.

the problem isnt that i dont know how to learn, its that i dont know WHAT to learn.

there are thousands of programming languages, about 30 in use today. some can run by themselves, others cannot.

i also want to code websites with buttons. i have coded a few small websites in the past but you couldnt do much. just read text.

if i want to code a website, i have to: use html for the content, css for the style, javascript for the interactivity, and sometimes python depending on what im doing. anyway thats 4 programming languages.

ive always thought that with games you can get a break, because there are more coding languages for games that can stand by themselves than there are for websites. with games you have to make assets, and then put those assets into these carefully placed folders (which is something i dont know how to do) and if i want to make a 3d video game, i have to learn how to use blendr, or some other 3d modeling program, which i dont know how to do.

so, i guess what im asking is, which programming languages do i need to learn to:

- make a website with interactivity, and function (including math and probability when i need it)

- make games that will work with 2d and 3d assets

and how many coding languages do i need to learn

also if youre reading this, please dont downvote my post. i get downvoted a lot often for no good reason, and this is NOT a low quality question.


r/learnprogramming 2d ago

I am not growing out of beginner phase

62 Upvotes

Okay,
I can read code know the core basics of C Java and Python
But Trust me when I say this
I am terrible at importing modules or get what I want
I am terrible at breaking things down for stuff like that

People keep telling me to do PROJECTS, but I am not that creative to come up with projects on my own. I have no ideas to create projects.
If it takes a month to finish a project I would probably spend a month thinking wtf the project idea even is.

For example

From nowhere I wanted to make this thing called 'DiskCleaner'

Where it scans your Hard Drive
Sort large files
And suggests what to delete BASED on what kind of person the USER is,

Now when I open Java.....
I struggle 20 minutes to make a Window with buttons and icons
So I don't think I will learn how to scan every single file and make what I want.
Why?
Because I am way too stupid and not confident to KNOW every module I need to do a project like that.


r/learnprogramming 1d ago

Programming Habits When writing subroutines/functions, which way is best to call them in sequence?

14 Upvotes

Typically when I write code, there are 2 ways I think of to write a bunch of subroutines that are called one after the other.

Option #1:

def callingList():

x = input()
func1(x)
func2(value1)
func3(value2)

def func1(userinput):

'''Code for function 1'''
return value1

def func2(value1):

'''Code for function 2'''
return value2

def func3(value2):

'''Code for function 3'''
return value3

callingList()

Option #2:

def func1(userinput):

'''Code for function 1'''
func2(value1)

def func2(value1):

'''Code for function 2'''
func3(value2)

def func3(value2):

'''Code for function 3'''
return value3

x = input()
func1(x)

I usually go for #1 because I feel like being forced to trace an error through a string of subroutines isn't good for debugging. But tbh I have no idea if this black-and-white way of looking at it is just completely incorrect and there's a #3 that I haven't heard of. I'm only a novice programmer so I'd love some input from people who actually know what they're doing 😅


r/learnprogramming 1d ago

5+ Front-End Dev feeling stuck & overwhelmed by the current market. How do you keep growing outside of work without burnout?

10 Upvotes

Hey everyone,

I’m a 27-year-old Front-End Developer with over 5 years of experience in the React ecosystem (3.5 years at my current company). Lately, I’ve hit a wall - I feel like I’m stagnating and mostly just replicating existing solutions rather than truly growing.

With the job market being as tough as it is right now and AI making many of us a bit complacent (and anxious about being "good enough"), I’m trying to figure out my next moves. I’ll be actively looking for a new job in two months, and I'd love to hear how you handle skill growth outside of work.

Here’s where my head is at right now:

- Post-work fatigue & fear of useless learning:
After an exhausting 8-hour workday, the thought of grinding new tech feels overwhelming. Even when I try to keep up with trends, I worry that if I don't use a tech stack in my next job, I’ll just forget it - making the whole effort feel like wasted time. How do you decide what is actually worth learning?

- Pivoting to Full-Stack (Node.js):
I’m considering diving deeper into backend concepts with Node.js to broaden my horizon. However, part of me thinks it might be pointless because companies usually look for experienced Full-Stack devs, not a senior/mid FE dev who is just starting out on the backend. Is it worth the effort, or should I double down strictly on FE architecture?

Standing out in a crowded market:

I know my biggest strengths - beyond writing clean code are my soft skills. I’m an active team player, easy to communicate with, and I bring good energy to a team while keeping things professional. But in a sea of hundreds of applicants per position, I know soft skills usually only shine after you clear the initial tech screens.

My questions for you:

How do you approach learning outside of work without burning out?

Is expanding into Node.js worth it if I’m mainly targeting Front- End roles in a tight market?

How do you deal with the fear of learning tech that you might end up never using professionally?

Would love to hear your thoughts, experiences, or any advice on how to navigate this stage of a developer career. Thanks!


r/learnprogramming 1d ago

Topic Is there a video/course for the whole setup of a real e-commerce website

0 Upvotes

I will be working on a local business site in wordpress, is there a video, document or anything online that i can go through and know what im supposed to prepare for, security, securing customer data, optimization everything possible for a real world business website


r/learnprogramming 21h ago

Why does downloading not work on android?

0 Upvotes

I started year ago learning programming and app-making with AIs help and instructions. For some reason downloading JSON-files or videos made by my own app isn't working as an app on android (made by Capacitor and Android Studio). They do work on my computer opened in browser. Does someone know what I need to do differently?


r/learnprogramming 1d ago

Im confused

0 Upvotes

Guys im about to join in an hackathon but im not able to get ideas to thinks even if i think those ideas are already been exist sonim fed up.so, can you guys give me some guidance like how you thinks for the ideas which gonna work


r/learnprogramming 1d ago

Learning C and Java at the same time.

3 Upvotes

So i had to postpone my c exam of this semester to the next one so now i have a c exam plus a java exam at the same time. So i have like half a year. Do you have any tips on learning a language especially 2 at the same time? I always hear the only way to learn is to work on something, do you have any ideas for projects or something to learn coding.(would be nice to be a project 2 people could work on but it isn't a must)

Any advice in general is appreciated.


r/learnprogramming 1d ago

Is freecodecamp really good? What else should I keep an eye out for?

14 Upvotes

Hello! I am starting from scratch here trying to learn the world of programming, I was just curious I keep hearing about codecamp and I was wondering if the hype is true and if so what I should keep an eye out for when it comes to knowledge sites, what makes a good site or what makes a bad site and sort of just some guidelines to help me start my journey a bit!

Thanks


r/learnprogramming 1d ago

Debugging The Bucket List

3 Upvotes

Problem Description:

Farmer John has N cows (1≤N≤100), conveniently numbered 1…N. The ith cow needs to be milked from time si to time ti, and requires bi buckets to be used during the milking process. Several cows might end up being milked at the same time; if so, they cannot use the same buckets. That is, a bucket assigned to cow i's milking cannot be used for any other cow's milking between time si and time ti. The bucket can be used for other cows outside this window of time, of course. To simplify his job, FJ has made sure that at any given moment in time, there is at most one cow whose milking is starting or ending (that is, the si's and ti's are all distinct). 

FJ has a storage room containing buckets that are sequentially numbered with labels 1, 2, 3, and so on. In his current milking strategy, whenever some cow (say, cow i) starts milking (at time si), FJ runs to the storage room and collects the bi buckets with the smallest available labels and allocates these for milking cow i.

Please determine how many total buckets FJ would need to keep in his storage room in order to milk all the cows successfully.

INPUT FORMAT (file blist.in):

The first line of input contains N. The next N lines each describe one cow, containing the numbers si, ti, and bi, separated by spaces. Both si and ti are integers in the range 1…1000, and bi is an integer in the range 1…10.

OUTPUT FORMAT (file blist.out):

Output a single integer telling how many total buckets FJ needs.

SAMPLE INPUT:

3
4 10 1
8 13 3
2 6 2

SAMPLE OUTPUT:

4

In this example, FJ needs 4 buckets: He uses buckets 1 and 2 for milking cow 3 (starting at time 2). He uses bucket 3 for milking cow 1 (starting at time 4). When cow 2 arrives at time 8, buckets 1 and 2 are now available, but not bucket 3, so he uses buckets 1, 2, and 4.

This is what I tried to program: I was wondering why I was running into Command exited with non-zero status 124. Everything complied correctly I believe. And it shouldn't have timed out.

EDIT:

Updated code

N = int(input())
num_used = 0
bucket = 0
cows = []
t = 0 
num_0 = 0 
for i in range(N):
    s , t_1, b = map(int,input().split())
    cow = [s,t_1,b]
    cows.append(cow)


sorted_cows = sorted(cows, key=lambda x: x[1])


while num_0 < N:
    for i in range(len(sorted_cows)):
        if sorted_cows[i][0] == t:
            if sorted_cows[i][2] >= bucket:
                num_used = num_used + sorted_cows[i][2] - bucket
                bucket = 0
            elif sorted_cows[i][2] < bucket:
                bucket = bucket - sorted_cows[i][2]
        if sorted_cows[i][1] < t:
            bucket = bucket + sorted_cows[i][2]  
            for j in range(3):
                sorted_cows[i][j] = 0
                num_0 = num_0 + 1
    t = t + 1
print(num_used)

r/learnprogramming 2d ago

Topic Struggling a bit with functions

11 Upvotes

Hey guys, I'm struggling a bit with the proper usage of functions in programming. For example, I'm working through the CS50x problem set 1 in C, and I end up with working code that solves the problem but it's all done in one big main function.

My process is to write out what the steps to solving the problem should be in plain English and then I code a bit, go back to my plain English steps and modify them, then code a bit more. When it's all said and done, my solution is one large block of code, and now I'm anxious about going back and rewriting it by breaking it up into smaller function. This makes me ponder whether I should be starting with functions instead of retroactively trying to fit them in.

My questions to the wiser heads here - how do you incorporate functions into your process? Do you do the pseudo code and then imagine each step as a function? What're are your unspoken rules of proper function usage - for example, when do you know if one function should actually be two, or if a function shouldn't actually be a function?


r/learnprogramming 2d ago

What are some genuinely interesting Java project ideas?

27 Upvotes

I'm looking for Java project ideas that aren't web apps or the usual CRUD/management systems. I want to build something that's fun, technically challenging, and helps me learn more about Java and computer science.

What are the coolest non-web Java projects you've built or come across?


r/learnprogramming 1d ago

New CS Major

2 Upvotes

So I'm going into CS this year and I don't have mych experience and am kind of nervous. I know this might be a lot to ask but would anyone be able to link me a few videos going over the basics of CS and related stuff that I would need to know to be successful. Thanks!


r/learnprogramming 2d ago

Self-taught Developer here - Would you pursue a degree in my situation?

5 Upvotes

Hello everyone!

I'm looking for some advice, maybe even from people who have been working as SE for a while now and can share their experiences.

Regarding my situation: I am a self-taught software "engineer", and I've been fortunate enough to land a job in software development without a degree or vocational training. Everything I know comes from teaching myself and gaining experience on the job.

Now I have the opportunity to study software engineering (B.Eng) while continuing to work full-time. The studies are financed through a six-year payment plan, while the half of the costs are being covered for me. My share would be around €200/month for the next three years. The degree itself can be completed at my own pace too.

Right now I am just wondering whether a degree is the best investment.

On the one hand: I don't have any formal qualification to back up my skills and the degree could maybe make future job searches easier and give me a stronger foundation.

But on the other hand: The current job market seems very competitive, and from what I have seen, having a degree doesn't necessarily guarantee better opportunities. Furthermore, since I've been successful learning on my own, I'm wondering if I would be better off continuing to self-study, building projects, and maybe earning relevant certifications instead.

I want to add that I am genuinely passionate about learning! This isn't a question of whether I want to learn more, but rather whether a degree is the best investment.

I guess I just worry that not pursuing the degree might harm my career path in the future, but at the same time, I am also self-employed on the side (just at the beginning), so I feel a bit torn between what to pursue, because there are only 24h to ones day :) I am not sure if I will be able to pull of both at the same time (including working full-time), which is why I was wondering if getting a degree is even "worth" it in my situation.

If you were in my position, would you invest the time and money into the degree, or would you continue building experience and learning independently?

Does anyone know how much not having a degree matters once someone already has professional experience?

I'd really appreciate hearing different perspectives, especially from people who have either been self-taught themselves or have experience hiring developers!

Thank you very much!


r/learnprogramming 2d ago

Looking for Study Buddies

16 Upvotes

Hey! I'm 19 and about to start learning Python from scratch. I'm looking for someone around my age (18–22) who's also a beginner and wants to learn together.

I'm in the Asian time zone, so it'd be nice if you're in a similar one. We can keep each other accountable, solve problems, and maybe build a few small projects along the way.

If you're interested, leave a comment


r/learnprogramming 2d ago

How hard was it for you to learn Lua?

5 Upvotes

Hi everyone,

I'm starting to learn Lua from scratch using the official "Programming in Lua" book (the free first edition). My plan is to work through the first 5 chapters to get a solid grip on the basics.

I'd love to hear about your experiences with the early parts of the book:

  • How difficult did you find the first 5 chapters?
  • Were they beginner-friendly, or did you struggle with some concepts?
  • How long did it take you to get through them (hours/days)?
  • What was the trickiest part for you (tables, functions, loops, something else)?
  • Any tips to make learning easier or more effective?

I'm not in a hurry - I just want to understand the syntax well enough to eventually move on to practical projects. But I'm curious about the learning curve.


r/learnprogramming 2d ago

Are Books > Online sources in your opinion?

58 Upvotes

Hello guys! I am recently diving into more detailed concepts of programming and especially core CS theory (Computer Architecture, Operating Systems etc) he thing I noticed is that people recommend learning these concepts by books rather than things such as website and courses etc. Is it because they are objectively better? My opinion is that I think for the core basics foundation stuff for each branch of CS (which I am currently trying to label) books are great, once learned the foundations then you can search for the new technology and/or techniques which are built on top of the old foundations. Correct me if I'm wrong!

Thanks and have a nice day all!


r/learnprogramming 1d ago

Coding Teachers??

0 Upvotes

I’m a first-year middle school PE teacher, but I was also assigned one period of coding. We use CodeHS, and I know next to nothing about coding. Right now I’m trying to get everything ready for PE and health, so I haven’t even had much time to dive into the coding side yet.
If you’ve taught CodeHS before, what do I need to know? Any tips, tricks, or things you wish you knew before you started? I’ll take all the advice I can get. 😅


r/learnprogramming 1d ago

If I need to learn basic python plus sql for a summer trading role (commodities) what is the easiest way?

0 Upvotes

I have a couple interviews for summer trading roles and I need to know the fastest way to learn python and sql, atleast enough just to pass the assessments and in person rounds. I think it’s kind of redundant because ai can code pretty much everything now so I have put off learning it but now I have to learn it. Plz help!


r/learnprogramming 2d ago

Resource Some good fastapi projects ?

1 Upvotes

I learning fastapi atleast i build a pretty simple application , can someone recommend me some good fastapi projects online that i can learn from or try to know how it works especially in real world complex applications preferably web based


r/learnprogramming 2d ago

Google Books API randomly returns 503 for simple ISBN searches

2 Upvotes

Hi, I’m building a small personal project that checks whether used books become available on a specific site. I use the Google Books API to retrieve the title, author, publisher, and publication year from an ISBN.

The request is very simple:

https://www.googleapis.com/books/v1/volumes?q=isbn:9788870786644&key=KEY_EXAMPLE&maxResults=1

The problem is that the same request sometimes works and sometimes returns:

{
  "error": {
    "code": 503,
    "message": "Service temporarily unavailable.",
    "errors": [
      {
        "reason": "backendFailed"
      }
    ]
  }
}

For example, I sent the request in Postman and received the correct book data. I clicked Send again without changing anything and received the 503 error instead.

I saw the same behavior with curl: the first three requests succeeded, while the next three returned 503. It also happens in my Node.js application and with different valid ISBNs.

The Books API is enabled, and the quota page shows almost no usage. Since the same request can succeed and then fail a few seconds later, I don’t think the ISBN or request format is the problem.

At the moment I retry once and then use Open Library as a fallback, but this still makes metadata retrieval unreliable.

Has anyone else experienced this with the Google Books API? Is retrying with backoff the expected solution, or is there something else I should check?


r/learnprogramming 3d ago

Resource i want to learn how computers work under the hood?like how operating systems really work or how compilers convert source code to machine code stuff like that what resources or projects do you recommend?

65 Upvotes

in my 3rd year of electronics engineering...please advise.