r/learnprogramming 1d ago

Debugging Anyone know how to fix the brackets in my program not being used correctly?

0 Upvotes

So I'm making a text based wordle clone thing in python and the way it shows the player details about the input letter (correct, wrong spot, incorrect) is with different kinds of brackets. The issue I'm having is that if a letter has appeared more times in the player's guess than is present in the word then it will only take the value of the first instance of that letter.

() = incorrect

{}= correct but wrong spot

[] = correct

This is the code that prints out the different letters:
while len(guess) != 5:

        while len(guess) != 5:
            guess = input(
                "Please input a five letter word: ")  # Input field for the user's guess
        buffer = answer
        for index in range(0, 5):
            if guess[index] == answer[index]:
                print(
                    "[" + guess[index] + "]"
                )  # adds square brackets to a letter indicate it is in the word and in the right spot
                answer = answer.replace(guess[index], "*", 1)
            elif guess[index] in answer:
                print(
                    "{" + guess[index] + "}"
                )  # adds a squigly bracket to indicate the letter is in the word but in the wrong spot
                answer = answer.replace(guess[index], "*", 1)
            elif guess[index] != answer[index]:
                print(
                    "(" + guess[index] + ")"
                )  # adds a curved bracket to indicate the letter is incorrect
                answer = answer.replace(guess[index], "*", 1)

and this is an example of the bug (the correct word is wally):

Please input a username: test
Please input a five letter word: lalal
{l}
{a}
{l}
(a)
(l)


r/learnprogramming 1d ago

Topic do employers even care about certificates for?

1 Upvotes

I so basically just got offered a bunch of google certificate courses at my local government office for free after consulting them about a career change, I tried doing a few assignments assuming this would be pretty quick. But then realized each course is actually split into 8-10 parts, and what I assumed would be quick was only a quart of a single part. It would probably take over 1-3 months to do each certificate depending on how much time I have(and I don't have much time right now).

so I want to ask, are certificates worth it? should I spend the 3 months or so to get the certificates? I was told that apparently some of them you need to renew every year or something, because if thats true that would be a huge hassle even if its free on my end.

would employers even consider them? for example if I get a certification for 'it automation on python', or something like 'google AI', 'google it support' etc, especially if my major and minor has nothing to do with programming or it, would a work place look at this as something that would count as experience more than just a small line of text on my resume?


r/learnprogramming 1d ago

Need advice for how to learn

3 Upvotes

What do you do to learn concepts and new coding languages?

I’m starting my second year studying computer science and my first job as a full stack web developer. It seems like all of my classes and my job are teaching things very fast and it seems like I’m the only one who’s struggling this hard. The lectures do nearly nothing for me because I learned better by doing, but it’s hard to learn by doing because there’s 1000 different concepts and every line is something I’ve never even heard of so it’s hard to remember anything.

Please help, I’m really struggling but I do enjoy what I do know how to do


r/learnprogramming 1d ago

I have no Idea What I am doing and What to do Self Learning Hell

89 Upvotes

I’m 22 and unemployed, and honestly, I feel completely lost about what direction to take.

I love programming, but I can’t figure out what I actually want to stick with. One day I’m building a full-stack app, the next I’m learning Rust, cybersecurity, compilers, or agentic AI. I start tutorials and projects, get halfway through, get stuck or distracted, and move on to something else.

I feel like I know a little about many things, but I don’t have enough finished work or real results to show for it. I want a job, but I’m not confident in my skills, and I’m constantly wondering what’s worth learning, what pays well, and what isn’t too competitive.

There’s also pressure at home to get a job, and I don’t really have friends to talk to about this. My mind is constantly jumping between things, and it’s becoming overwhelming.

I haven’t given up on programming or on myself. I just genuinely don’t know what direction to take,

I just want some direction on what I should focus on and how I can actually move forward.

I want to give up but I don;t know what I want to do I want get into programming badly but its way too overwhelming


r/learnprogramming 1d ago

How do I actually study to remember what I read from my textbook?

14 Upvotes

I'm getting into software development I started a course and it's self paced and we are just given a textbook and have to study it and do our assignments but the thing is how do I actually RETAIN the info I learn from the textbook? I really don't want to have to rely on ai I seriously have loved the idea of programming and coding and I want to properly learn it I'm fairly new at this does anyone know or have any resources or advise on how to study properly?


r/learnprogramming 1d ago

Video Courses that are learning by doing.

0 Upvotes

hi, guys i am a dotnet backend dev and want to learn other languages and become fullstack, but i mostly like to learn by doing projects on video, would you guys recommend me courses on

C++ (i am trying to learn opengl/vulkan after that)

Javascript(for frontend)

HTML

CSS

NodeJs

VUEJS


r/learnprogramming 1d ago

16M, I recently got interested in AI and coding and wanted to try creating my own Personal AI, I had a few queries about that.

0 Upvotes

I've recently started wanting to build my own AI assistant, which is saying something because I've never programmed before. I wanted to learn everything from programming and APIs to software architecture and technical design, so I decided to take on a project of building my own "Jarvis" to learn through hands-on experience.

I know there are already plenty of AI assistants and similar projects out there, but that's not really the point for me. I want to understand how these systems actually work by building one myself. I figured a long-term, hands on project would be a good way to learn.

So far, I've been using Chatgpt to help me through the initial stages, such as writing the requirements and designing the architecture. Now that I've reached the Technical Design stage, I want to take a more hands-on approach and do more of the research and decision-making myself.

Here are some of the questions I've identified so far:

  1. Which Programming language do I use: I'm especially interested in what would make sense for a project like this as a complete beginner.
  2. Are there any useful books, papers, courses, or other resources you'd recommend?
  3. What other questions should I be asking at this stage? I'm trying to approach this like an actual software engineering project rather than jumping straight into writing code.

I'm also partly doing this as a project for my college applications. I don't want it to come across as just another generic "I built an AI" project. What could I do to make the project genuinely distinctive and demonstrate that I actually understand what I'm building, rather than just assembling existing AI APIs and frameworks?


r/learnprogramming 1d ago

How do you group programming language topics?

1 Upvotes

If I learn a language in three stages.

  • Basic
  • Intermediate
  • Advanced
  • Proficiency (optional)

Then how would you fit the topics of programming lingo into the above levels?


r/learnprogramming 1d ago

I’m starting my second year of CS and feel like I’ve forgotten everything

2 Upvotes

Hey, I'm a CS student in France, and I'm going to start my second year in just a few days. To be honest, I feel like a complete fraud.

I've wanted to get into CS for a very long time, and I used to be pretty good at programming and problem solving, but last year depression and stress really hit me hard.

My university is quite far from where I live, so I have to wake up very early to catch the bus and try to sleep early despite having a ton of work to do. I never really feel like I can rest or spend time on my other hobbies because I'm always thinking about university. This puts a lot of pressure on me, on top of my struggles with depression in general.

I also really struggled with staying focused during lectures. I tried my best, and sometimes I even left my phone and other distractions at home, but my mind would still drift. So I'd get to the exercises with less knowledge than everyone else because I hadn't properly followed the lecture, and then I'd have to rush to understand what we were doing so I wouldn't have even more work to do at home.

The classes are also quite short, and a lot of people don't actually finish everything in class. Some people use AI to get through the exercises without necessarily understanding what they're doing.

I'm personally very against needless use of generative AI, at least when it comes to my own learning. I already knew I struggled with discipline, so I initially tried to use it as little as possible because I didn't want to become dependent on it. But our teachers actually encourage us to use it, and some of the lessons/exercises are structured in a way where it feels almost impossible to keep up without it.

And, well... I eventually became dependent on it.

My grades got much worse towards the end of the year because I eventually stopped being able to work without AI. I passed first year mostly thanks to the good grades I got during the first half of the year.

Now I feel like I have practically no actual knowledge when it comes to CS. The only thing I'm barely good at anymore is mindlessly coding. I feel like I don't know any of the abstract or technical stuff, which makes me feel like I missed a huge part of what CS actually is.

I know I could try to catch up. I could spend my weekends doing small programming exercises and reviewing the fundamentals, but I genuinely don't know where to start, and I'm not sure I have the time or energy to try to relearn an entire year of CS while also keeping up with my second year.

Part of me feels like the best thing would be to completely start over, but obviously it's too late for that, and I'm scared that even if I did, the same thing would happen again.

So I'm mostly wondering what would you do if you were in my position?

How would you go about rebuilding your programming/CS fundamentals when you feel like you've forgotten almost everything? What would you prioritize, and what would you not worry about yet? And how would you balance catching up with actually keeping up with your current university courses?

And, also, has anyone else gone through a bad period and still managed to success in this field?

Thank you for reading all this, I don't really want this to just be a vent post, I want to get better, and I appreciate all the help I can get.


r/learnprogramming 1d ago

Other than knowledge of the programming language, what other knowledge do you think a person who develops software should have?

51 Upvotes

Hi all! I am recently trying to develop an app, and Googling around I came across many other concepts to build an app and host it (software architecture, system design, Computer Networks to understand the basics of requests etc., and also patterns like the ECB pattern, and Database Knowledge like SQL and DEVOPS to test and integrate) so before doing the programming I kinda want to learn the other fundamentals, what sources (books, courses, etc) would you suggest me? Me and my friend are the only 2 on developing it, so we kinda need to be a team and be all-rounders

thanks and have a nice day!


r/learnprogramming 1d ago

Having Problem in my first Project.

6 Upvotes

Okay this isn't my complete project but a part of it and i am getting stuck on this. I am a beginner in this field probably just a couple more days than a month since i learned how to write print("hello world!").

it is written in python.

i want my code to give an output as if first hand is moving with an interval of 0.2 sec the second with 0.3 sec and so on till the 6th hand, all so simultaneously.

could you please guide me through it.

import time import emoji

frames1 = [ emoji.emojize(":backhand_index_pointing_down:"), emoji.emojize(":backhand_index_pointing_right:"), emoji.emojize(":backhand_index_pointing_up:"), emoji.emojize(":backhand_index_pointing_left:") ]

frames2 = [ emoji.emojize(":backhand_index_pointing_down_light_skin_tone:"), emoji.emojize(":backhand_index_pointing_right_light_skin_tone:"), emoji.emojize(":backhand_index_pointing_up_light_skin_tone:"), emoji.emojize(":backhand_index_pointing_left_light_skin_tone:") ]

frames3 = [ emoji.emojize(":backhand_index_pointing_down_medium-light_skin_tone:"), emoji.emojize(":backhand_index_pointing_right_medium-light_skin_tone:"), emoji.emojize(":backhand_index_pointing_up_medium-light_skin_tone:"), emoji.emojize(":backhand_index_pointing_left_medium-light_skin_tone:") ]

frames4 = [ emoji.emojize(":backhand_index_pointing_down_medium_skin_tone:"), emoji.emojize(":backhand_index_pointing_right_medium_skin_tone:"), emoji.emojize(":backhand_index_pointing_up_medium_skin_tone:"), emoji.emojize(":backhand_index_pointing_left_medium_skin_tone:") ]

frames5 = [ emoji.emojize(":backhand_index_pointing_down_medium-dark_skin_tone:"), emoji.emojize(":backhand_index_pointing_right_medium-dark_skin_tone:"), emoji.emojize(":backhand_index_pointing_up_medium-dark_skin_tone:"), emoji.emojize(":backhand_index_pointing_left_medium-dark_skin_tone:") ]

frames6 = [ emoji.emojize(":backhand_index_pointing_down_dark_skin_tone:"), emoji.emojize(":backhand_index_pointing_right_dark_skin_tone:"), emoji.emojize(":backhand_index_pointing_up_dark_skin_tone:"), emoji.emojize(":backhand_index_pointing_left_dark_skin_tone:") ]

all_frames = [frames1, frames2, frames3, frames4, frames5, frames6]

current_time = time.time() looping_time = 4 complete_time = current_time + looping_time

while time.time() < complete_time:

a = 0
b = 0
c = 0
d = 0
e = 0
f = 0

while True:

    t1 = [current_time + [0.2 * n for n in range(1, 20)]]
    if complete_time in t1:
        c1 = frames1[a % 4]
        a += 1


    t2 = [current_time + [0.3 * n for n in range(1, 13)]]
    if complete_time in t2:
        c2 = frames2[b % 4]
        b += 1

    t3 = [current_time + [0.4 * n for n in range(1, 10)]]
    if complete_time in t3:
        c3 = frames3[c % 4]
        c += 1

    t4 = [current_time + [0.5 * n for n in range(1, 8)]]
    if complete_time in t4:
        c4 = frames4[d % 4]
        d += 1

    t5 = [current_time + [0.6 * n for n in range(1, 6)]]
    if complete_time in t5:
        c5 = frames5[e % 4]
        e += 1

    t6 = [current_time + [0.7 * n for n in range(1, 5)]]
    if complete_time in t6:
        c6 = frames6[f % 4]
        f += 1


    print(f"{c1}  {c2}  {c3}  {c4}  {c5}  {c6}")

hope i get some help.


r/learnprogramming 1d ago

Tutorial How to install j5 for python

4 Upvotes

Hello I am pretty young and only have programming experience in my GCSEs and wanted to expand it
I really wanted to follow the textbook “the nature of code” as I find the stuff very interesting however it requires Java and j5 but I only know how to code in python

I thought I could just translate the Java code into python as I would prefer to not learn Java and get better with python first
However, I have struggled with installing j5 the command prompt p5qt works but then running j5 code, the interpreter tells me I need Java 17 virtual machine which I do not know how to install
I have seen something about using an older version of python but I can’t get it to be independent of my current version of python(having both installed at the same time)


r/learnprogramming 1d ago

Designer looking into learning web dev

22 Upvotes

Hi! I want to have a deeper knowledge on building websites. I’ve been making websites for my clients for maybe 2 years now on wp, wix, and recently shopify. The thing is i know how to build them on the surface but i want to have confidence in HOW im doing it. Because im a graphic designer turned web designer turned “someone who can build a good website” lol

What courses should i take to start? I found some web development courses online will that be ok?


r/learnprogramming 1d ago

how do you guys avoid tutorial hell?

6 Upvotes

I've been learning programming on and off and my biggest problem isn't really finding tutorials.

It's the opposite.

There are WAY too many.

I'll start learning Python, find a roadmap, then someone recommends another roadmap, then i find a 20+ hour course, then a YouTube playlist, then some documentation...

And suddenly i'm spending more time deciding what to learn than actually coding.

Then i hit the second problem:

consistency.

If i'm learning alone and don't code for a week, nobody cares.

I don't have anyone waiting for me to finish something.

For me personally, having someone actually expect me to show up would probably help a lot.

So i'm building something around this.

The idea is to take the free resources that already exist and turn them into a structured path based on:

  • what you wanna learn
  • your current level
  • how much time you have

Then you can join a small group of people learning the same thing and have weekly goals + check-ins + shared progress.

No paid course.

No "buy my 40 hour Python masterclass."

The learning stays free.

The paid part would be the accountability group.

Would something like this actually help you?

And if you've tried study groups / Discord / accountability partners before:

why did you stop using them?

that's actually the part i'm most interested in.


r/learnprogramming 1d ago

I just don’t know what to do

0 Upvotes

Hi so I am a student and almost finished my bachelor.
I have “learned” a few languages. Currently I just realised that I am way worse than I thought regarding my programming skills.
I don’t understand how someone can reach a level where they genuinely build an entire app with little to no use of AI. I don’t use it a lot myself but I also don’t develop insanely complex things etc. I thought I knew java until I realized that I haven’t even used bootstrap once. I stopped scala because it’s just a waste of time - almost no work available. I just don’t care for webdev.

I’ve started CS50p in june but during summer break I stopped and yesterday I finished the 6th episode. I just don’t feel ready for the work market yet I am actively looking for a job to get my degree. (In Germany it is mandatory to have worked or completed an internship to get your degree)

Please I need urgent help. How can I improve as fast as possible. I don’t just want to be able to solve those small tasks, I want to actually create something that can be part of my portfolio.

Can anyone give me some python roadmap or even better a general roadmap for the field. I don’t think that watching videos and doing small exercises will get me there tbh.

Please

EDIT: To all that have helped. I will mark this post as Missing 411 case #77, the man in the fog.

In somr months I will post updates abt projects and LL


r/learnprogramming 1d ago

Objective-C instead of MATLAB in Geany/NP++

2 Upvotes

Hi. Sorry if it's off-topic but I don't know where to ask this.

I happen to be one of those rare individuals who likes Objective-C, and both Geany and Notepad++ (the IDEs I use on Linux and Windows respectively) by default assign all .m files (Obj-C implementation files) as MATLAB files.

I know it can be changed by hand but when opening a pile of old code it all gets MATLAB-ed and I just can't be bothered to save Geany project files, especially that Notepad++ doesn't have a clue how to open them (when I decide to boot to Windows).

Is there any way to make those IDEs (and especiallly Geany) assign Objective-C as the type of .m files by default?

I know I could just find that in the source code and recompile it, but I already have about half a dozen geany packages on various read-only media that I would have to remake. And an unlisted option in some config file would thus be much better.

And recompiling is probably not an option for Notepad++ since Windows sucks developmentwise.

Anyhow, thanks in advance.


r/learnprogramming 1d ago

Is a degree necessary

0 Upvotes

I've seen ppl say stuff for both sides that a degree does absolutely nothing or they won't even look at you if u don't have a degree. I always learn better on my own than a course or school, is uni worth it? How much do I have to learn to get like a basic internship or smth. I'm still 16 but I love cpp and love learning more, especially low level stuff.

Are there any certificates or stuff that allow me to prove that I actually know stuff but don't need me to attend a multi year course, are they worth it?


r/learnprogramming 1d ago

Debugging New to RAG, trying to implement RAG for my AI interview system?

2 Upvotes

Hey everyone, I'm building an AI voice interview app and I'm fairly new to RAG. I'm stuck on the architecture and having a bit of a mid-project crisis 😭.

My current flow is:

Before interview:
Step1 : 
Resume + JobDescription
   ↓
Chunk resume/JobDescription
   ↓
Generate embeddings
   ↓
Store chunks + embeddings in pgvector

Step2 : 
LLM call is done using complete Resume + JD (and not the chunks)
   ↓
Initial ranked topic plan is created by this LLM call 

Step3 : 
Before each question:
Current topic
   ↓
RAG query in our vector DB 
   ↓
Retrieve relevant resume/JD chunks
   ↓
LLM call to generate a question from these chunks

The part I'm confused about:

At the beginning, I'm already sending the complete resume + complete JD to the LLM.

Why can't I simply do:

Resume + JD
   ↓
ONE LLM CALL
   ↓
10 interview questions

and then use those during the interview this would reduce the latency too!

Why would I need RAG again to retrieve chunks before generating each question? But I'm struggling to understand how RAG can be used to add value to the project

I have to add this project to my reume and need to have confidence in my design, I would highly appreciate someone helping me figure out the architecture!


r/learnprogramming 2d ago

Debugging How do you decide whether to use a loop or a built-in function?

38 Upvotes

I sometimes solve a problem using a loop, then find out there was already a built-in method that could do the same thing.

When writing code, do you usually prioritize the simplest solution, performance, or readability?


r/learnprogramming 2d ago

Learning JAVA

10 Upvotes

How do you guys learn Java?

There are just WAY too many syntaxes to remember.

Every time I think I’ve got it, Java hits me with another one.


r/learnprogramming 2d ago

Resource Is boot.dev good?

1 Upvotes

I want to learn programming godot to make my own realistic driving game because all appstore games are ass and filled with ads and has micro transactions, so is boot.dev good for this purpose?


r/learnprogramming 2d ago

STRUGGLING to download from github

7 Upvotes

I am pretty much completely new to programming, coding, etc. I was trying to download an in-game map for The Isle so I found one on GitHub. Having used it one other time, I was thinking yes I got this. I got to the point where I have the zip file on my computer but I've been trying for over an hour to execute this command after using cmd.

python -m pip install -r requirements.txt

I keep getting the "no such file or directory" error. I've looked up every question I could think of, but nothing is answering my questions. If someone has downloaded this exact desktop map: https://github.com/hartwin-journey/The-Isle-Overlay/blob/main/README.md

PLEASE help me out, I'm at my wits end.


r/learnprogramming 2d ago

Trying to create a working roulette in phyton as a beginner and holy sh*t

0 Upvotes

Im gonna start by saying that despite being a beginner im not here looking for advices or solutions. Im trying to figure it out on my own (no external help or AI) even if it means doing it in a less efficent way. in these 3-ish hours i've started by creating 5 different functions, one being my main, running the others. The other four are to get: deposit/balance, How many numbers to bet on, the numbers to bet on and how much to bet on each number. I've also tested them for every possible error and found a few cool solutions. The next thing im gonna have to do is the random extraction itself which is gonna be pretty interesting. Im gonna tackle it tomorrow, my 3:24 A.M. brain just cant


r/learnprogramming 2d ago

Where can I find real-world tech problems faced by nonprofits/NGOs?

3 Upvotes

Where can I find real-world challenges that nonprofits/NGOs are currently facing that could potentially be solved with technology?

I’m especially interested in problems that are common across multiple organizations and could potentially be addressed through a free, open-source solution.

Are there any communities, forums, platforms, or other places where nonprofits openly discuss these kinds of challenges?


r/learnprogramming 2d ago

Git GUI Beginner using Git on Windows: Fork or SourceGit?

4 Upvotes

I'm just getting started with Git on Windows and I'm trying both Fork and SourceGit.

So far, I slightly prefer SourceGit, mainly because it's free and has a Chinese interface. But the Chinese UI isn't really a requirement for me — I know I need to learn English anyway if I want to get serious about programming/security.

What I'm really trying to figure out is whether Fork has any features or workflow advantages that SourceGit doesn't have.

If there's something genuinely useful in Fork that SourceGit is missing, I'm perfectly happy to pay for Fork. I'm just not sure what those differences are yet.

For people who have used both, which one do you prefer and why?

I'm still pretty new to Git, so I'm especially interested in everyday things like commits, branches, diffs, merge/rebase, and working with GitHub.

Thanks!