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.


r/learnprogramming • • 1d ago

I want to build a tool to transfer liked songs between YouTube Music accounts but I have no idea how to start ?

5 Upvotes

so i have this annoying problem where all my youtube music liked songs are also showing up in my main youtube liked videos playlist and it's getting pretty messy.

i want to move all my liked songs to a separate google account but doing that manually would take forever since i have thousands of songs. i was wondering if there's any tool that can transfer all my liked songs from one youtube music account to another. something where i can connect both accounts and just transfer everything at once. or maybe select specific songs and playlists to transfer. it'd also be nice to have an option to remove songs from the original account after transferring them.

i couldn't really find anything that does exactly this so i'm thinking of trying to make one myself. if anyone knows something similar please let me know.

i'd also like to add spotify support at some point so people can transfer liked songs between spotify accounts too but that's something for later. for now i just want to figure out the youtube music part.

basically i want the tool to fetch all my liked songs and let me transfer my entire library to another account or select specific songs and playlists. and also remove songs from my liked songs because that's actually the main reason i want to make this. i do have some coding experience but i'm still a beginner so i'm not really sure where to start with something like this and also i know APIs and hosting can cost money but is there a way to make something like this completely free? like can i build and run the whole thing without spending anything? what libraries or technologies should i look into?

i mainly want to build this as a learning project. if i manage to get it working i'll probably put it on github so other people can use it too. just need some guidance on where to start and what approach would make sense.

not looking for anyone to build it for me. just trying to figure out how to get started. any help would be appreciated.


r/learnprogramming • • 1d ago

Topic Refuse to use Ai yet want a career with actual programming.

0 Upvotes

To put it lightly, this is not a conversation that can be solved with "oh you can still learn, you have to coach the ai". To which I say, THAT IS NOT THE REASON I AM WORKING FOR A CAREER IN THIS. If i wanted to correct something's homework for a living, then I would have become a kindergarten teacher.

I refuse to work with ai, saying that ai is a tool for you, is really dismissive towards the people that love the process of coding. I'm talking about the actuall passion within itself. The idea of manual coding. Not it's efficiency, time, etc. If there is no more manual coding in this space, then the career I wanted, is dead and gone.


r/learnprogramming • • 1d ago

Tutorial i want to learn cpp but dont know where to

0 Upvotes

im a 11th student.. i want to be a gamedev and i want to learn c++ and some other stuff before i enter into btech .....so i need videos to learn .....plz dont recommed me learncpp....i want video tutorials


r/learnprogramming • • 2d ago

PROTIP

11 Upvotes

If your C program "works sometimes and crashes other times," it's almost always undefined behavior — uninitialized variable, off-by-one on an array, or using memory after free. Run it with valgrind, it literally tells you the line. Changed my life in first year.


r/learnprogramming • • 2d ago

Resource Best book for learning C++

5 Upvotes

Hello everyone! As the title says, what book for learning C++ would you recommend? Specifically modern C++ 23, but also the general basics.


r/learnprogramming • • 1d ago

Simple Question About AI

0 Upvotes

So Im Still New In Programing, i had some experience on PHP,Python,C#(unity), and newly Native C# dotnet. But After end of 2023s im using ai as a "mentor" to accelerate learning. im not blindly copy paste ai code rather i ask ai how it can be done, like ask the architecture, the base code, example code, etc and writing on my own. usually on first itteration im using 100% my own code and then copy paste it to ai and ask if there was a bug or things that i can do better(for example architecture optimization) and on itteration 2 or so on its had AI on it.

My Question Are:

  1. is this good learing strategy?
  2. is this good for long term?
  3. is this what is referred to as "Vibe Coding"?

r/learnprogramming • • 3d ago

Spent a month learning C# and came out with zero fundamental skills.

77 Upvotes

I've seen a lot of posts about people who understand the concepts of programming after tutorials, but I've spent at LEAST 30 hours trying to learn from all sorts of programs, books, videos, and going hands on, but nothing seems to be working for me.

All I know is:
- If, else, else if,
- do/while loop
- variables

And I at best, only scratched the surface of them. I want to learn program for a career and for personal projects *game development and mod-making*, and this constant loop of looking for a way to learn has been incredibly discouraging and I just cannot grasp how all of these other programmers have learned how to do even the most simple things like arrays and methods. The advice I have gotten from them such as "apply it to your own projects" and "make something simple" have helped me solidify these few concepts, but I still can't move on from them. So this post is my last resort in this ambition of mine that I hold so much passion and ambition, yet no skill for. And if any of you have advice for what I'm doing wrong, I would greatly appreciate it.


r/learnprogramming • • 2d ago

Advice for a young developer?

17 Upvotes

Hi! I'm 16 years old and I'm a web developer. I've learned React and PHP/Laravel, and I'm currently working on improving my skills and building real-world projects.

If you could give one piece of advice to a 16-year-old developer who already has some experience, what would it be?


r/learnprogramming • • 2d ago

Resource Need help to learn something new

6 Upvotes

My Story:

I am a computer science student and my background/specialization is in applied AI. Recently I secured an internship from an AI-Cybersecurity related company. My seniors who have worked as interns over here said learn something related to system design stuff.

What I want to learn?:

This is something called AI + DevOps. Since I have a decent knowledge about AI I wanna start learning DevOps - system design, etc. etc.

How can you help me?:

I want a roadmap on how to start. Your experiences may help me in this. I want to know how you start and how you would start from scratch in this AI economy. From beginner to professional. Now I am planning on focusing on DevOps later on how to combine AI & DevOps.

A few of the basic computer science courses are done by my uni which are - DBMS, computer architecture, Operating systems (which i didn't like coz of my professor and will learn again in general), DSA & Algorithms

I know C/C++, Python, SQL.


r/learnprogramming • • 2d ago

Looking for Open Source projects we can contribute to

2 Upvotes

Hey everyone!

I'm working with a student society at COMSATS University, Lahore, and we're trying to build an open-source community where people can work on each other's projects, contribute, and learn from real development experience.

We're looking for existing projects whose maintainers would be open to outside contributions. We're also interested in connecting with developers who'd like to contribute to projects with others.

The idea isn't limited to COMSATS students. Anyone can participate, whether you're a student, developer, or project maintainer.

If you have a project that could use some contributors, or you're interested in being part of this, we'd love to hear from you.

Beginners are welcome too. We'll help them get started with Git, GitHub, and the contribution process.

Register here: https://rascui.github.io/#submit-proposal

If you're interested, feel free to comment or reach out


r/learnprogramming • • 2d ago

Data analytics or Full stack which one is better .

13 Upvotes

I read a sub on reddit, some IT persons were saying that Data Analytics replaced by AI that it's so so hard to get a job. Every work is done by AI and iam planning to learn Data analytics to get a job. Is Data analytics market really dead and should I shift to full stack.


r/learnprogramming • • 2d ago

Contentful

1 Upvotes

Are there any good resources to use for learning about contentful.


r/learnprogramming • • 3d ago

Should beginners learn one programming language first or try different ones?

16 Upvotes

I'm new to programming and not sure if I should focus on one language or explore different ones. What would you suggest based on your own experience?


r/learnprogramming • • 3d ago

Topic Is it still possible to break into web development as a self-taught developer, or am I too late?

156 Upvotes

I recently finished The Odin Project after spending around two years learning web development on my own.

I’m trying to transition into web development, but with the rise of AI and how competitive the job market seems to be, I’m starting to question whether it’s still a realistic career path.

For those who are self-taught or have switched careers into web development:

- Are companies still hiring self-taught developers without a CS degree?

- Are there still opportunities for people with no professional experience?

- How difficult is it to land that first job?

I’m wondering if there’s still a chance for someone like me to break into the industry, or if I’ve spent the last two years learning something that’s becoming increasingly difficult to turn into a career.

I’d appreciate some honest advice, especially from people who recently entered the industry.


r/learnprogramming • • 2d ago

Languages Want to make an app for Learning and resume project. Kotlin or Dart?

1 Upvotes

My background: C++, Python, Go

My best is c++, i practice DSA in it. Python and Go, i know very basics of it.

I have project ideas for mobile application. I primarily use android, and i feel its easier to get into android instead of ios development.

I see 2 viable options,
0. Kotlin/Jetpack-compose

  1. Dart/Flutter

Note: Never touched either kotlin or dart.

I would like to know which stack is better for my situation?
Which one has long term reliable?

please help me choose one.


r/learnprogramming • • 3d ago

Tutorial PyQT - can I learn it concurrently with Python basics?

5 Upvotes

Hi! I’m looking to expand my skillset into Python, and was recommended by a colleague to look into PyQT for what I do. My basic questions are:

  • Is it ideal to complete a Python tutorial course before even touching PyQT?
  • Could I begin directly with a PyQT course?
  • What are some ideal tutorials/courses for this?

For reference, I come from the background of FileMaker Pro scripting and layout/GUI design with an expert certification. It’s like a combo of SQL and Javascript for those unfamiliar.

Thank you in advance!


r/learnprogramming • • 2d ago

Tutorial Need help setting up a gui library in C

0 Upvotes

I would owe the world and more to whoever helps me

Okay so hi everyone, i'm fairly new to programming and recently i challenged myself to program something in C, i wanted to make a gui calculator bcs i thought it was fairly simple.

Turns out it's not that easy, and i discovered i had to download gtk4 and learn it, and i'm willing to do that i just need some help on how to download it, set it up and link it, preferably on codeblocks, but vs is great too.


r/learnprogramming • • 3d ago

Code Review I've been learning SCSS for about 3 days. I'm trying to integrate a mixin from a partial I dedicated to media-query responsiveness. My media query styles aren't applying. I have a feeling it's because of how I'm calling the mixin. Could anyone see what's wrong with my code?

2 Upvotes

//partial

@mixin responsive-laptop($laptop){ @media(max-width: $laptop){ @content } };

@mixin responsive-regular-tablet($regular-tablet-width){ @media(max-width: $regular-tablet-width){ @content }

};

@mixin responsive-small-tablet($small-tablet-wdith){ @media(max-width: $small-tablet-width){ @content } };

@mixin responsive-phone($phone-width){ @media(max-width: $phone-width){ @content }

};

//main scss file

@include responsive-laptop(1000px){ .drop-down-nav{ display: block; }

#drop-down-icon{
    width: 10rem;
}

.nav-right{  
    display: none;  
}

};

@include responsive-regular-tablet(775px){ .bg-home h1{ font-size: 6rem }
};

@include responsive-small-tablet(620px){ .bg-home h1{ font-size: 5rem }

};

@include responsive-phone(440px){ html{ font-size: 50% }

}


r/learnprogramming • • 3d ago

What's currently worth trying to learn and break into in the development world? (I have some experience)

4 Upvotes

Hi all,

So I guess for some context, I graduated from college back in 2019 with a combined computer science and game design degree. Seven years later, and I never really did anything with the degree. I work in tech but I work in support. Originally, I took the first job that came to me out of college because I had to start paying back student loans. It was a technical support engineer job and my career trajectory more or less went in that direction.

I then had a chance to work at a gaming technology company with a similar style role but a little more technical (mainly reading and debugging code and a bit of writing) but I kind of noped the hell out of the gaming industry once teams started being laid off for sport.

Now I work at a spatial intelligence/physical AI/ embodied AI company as a contractor. It's kind of a mix of my first job which felt like glorified help desk and my second job which was more dev support adjacent, but being a contractor, I don't see much room for growth here, and I'm starting to apply again primarily for jobs I know I'd be good fit for like support and operations related roles but I also want to get back into coding and try my luck with a developer role in the near future

I am quite uninformed with the current state of the market other than AI and LLMs being a thing now and really speeding up development. While in college, my electives primarily revolved more around AI and graphics for games. I took a pure AI and game AI class and did the same for computer graphics. Ideally I'd want to spend some time brushing up on my fundamentals again and the locking in on something that would be worth pursuing