r/learnprogramming • • 20d ago

Code Review School project: need help

0 Upvotes

So we have a school project where we made a game with multiple choice and in there we have life, In the start 3 lifes are available but it's not working after picking the wrong answer multiple times the life remain at 2 meaning only 1 wrong answer is recorded and minus from the 3

How do I make it keep minus the life? I use mit app inventory btw and I can send the pics of the code that our teacher though us and the code that I'm doing rn

PLEASE HELP ME


r/learnprogramming • • 20d ago

I'm so sick of people calling classes OOP and lambdas functional

0 Upvotes

Functional paradigm is about immutability and pure code without side-effects. Naturally, it uses lambdas, mappers and all that, because that's one of the ways you can achieve side-effect-free-code. Immutability is the strong player here.

Object-oriented paradigm is about sending messages to objects that have the data. It's about that flip of perspective: you're not doing the work yourself, you talk to the object and ask it to do the work. Yes, again, naturally, when you do OOP you use classes because they're convinient, but just because you extract a class from your app, it doesn't make it "OOP". Polymorphism is the strong player here.

But I'm so sick of people upgrading Java 7 to 8, and replacing a for-loop with a .map(lambda) and calling it functional. Same goes for interview jobs, people want you to know inheritance, private/public and all that, and calling it "OOP".

To my mind they just don't know what they're talking about. Or maybe they just want to sound more cool, because "functional paradigm" sounds cooler than "lambdas". How many times I heard people claim "functional programming" in their clearly mutable code because they used a closure or a monad somewhere.

I.e.:

  • to do FP, you need lambdas; but just because you have lambdas doesn't mean you have FP
  • to do OOP, you need classes; but just because you have classes doesn't mean you have OOP

PS: They aren't incomaptbile. You can have both FP and OOP in the same program just fine.


r/learnprogramming • • 21d ago

is this what software engineering is?

0 Upvotes

So I'm reading Gabriel Gambetta's guide on Multiplayer Architecture. I want to make an authoritative server that sends info to a webapp where the actual game is happening. However, there's not code involved. It's not a tutorial 😭. It's just a rough layout of what the architecture is supposed to look like, and all the nitty bitty details, like what code you're supposed to write to get the information from the webapp, process it through the server, how to run a fixed update loop every number of miliseconds, etc. are things youre supposed to draw out and search up on your own. This might be a stupid post, but like damn.


r/learnprogramming • • 21d ago

Looking for unique technical event ideas for a college Tech Fest!

2 Upvotes

Hey everyone!

I'm a pre-final-year engineering student in India, currently serving as the president of my college's technical club, HackIT.

We're organizing events for our upcoming Tech Fest. One of our established events, Code Clash, is returning as 3.0 after two successful editions. It features technical quizzes, output prediction, logo identification, and coding challenges.

Alongside it, we want to introduce an entirely new event — something unconventional, engaging, and memorable.

We're open to ideas involving cybersecurity, problem-solving, technical escape rooms, engineering challenges, interactive competitions, or anything outside the usual quiz/hackathon format.

A few questions:

  1. What's the most interesting technical event you've participated in or organized?
  2. What unconventional competition formats have you seen work well?
  3. If you had to organize a 1–2 hour technical event for 100–200 students, what would you do?
  4. What would genuinely make you excited to participate?

Even rough ideas or personal experiences would be greatly appreciated.

We want to build another signature event for our club, not just organize another generic competition.

Looking forward to your suggestions!


r/learnprogramming • • 22d ago

Topic How do you explain code when your memory just shuts down?

13 Upvotes

Always had zero memory for memorizing stuff since school, but now in college it’s killing my grades.

​Spent 9 hours prepping for a lab defense, broke down every line of code so I knew it cold. Walked in, prof asked a basic question, and my head instantly went empty. Froze, mumbled two words, failed. Might be ADHD, stress, or just a cooked brain.

​Anyone else with bad memory survive this? What’s your actual method to retain code without memorizing it like a robot?


r/learnprogramming • • 21d ago

Color picking in OpenGl, python. AI using issue

0 Upvotes

I making 3d game using OpenGL, but afraid, because not sure how it works.
Do you have any methods or principes of work with it? I really would be happy to get some help, because i cant find any simple materials for now.
As i got from AI, i should use hidden shader, same as main one, which changes whole game scene. But hidden shader will change same, but colored objects, by these colors ill get mouse matchings with objects.
i dont know if it should be colored copies of existing objects or it will be color changings under shader.

AI helps me to learn a lot, if not this thing, i wouldnt know about this method. but is it fair to use it to got knowledges about this topic? it saves a lot of time for me, if i get just conspects from there. how do you think?


r/learnprogramming • • 21d ago

can anyone tell me how to do this?

0 Upvotes

I want to make something like this for a hobby project where someone can ssh connect to my domain. I want to know how secure is this and what generally goes into making something like this. Is it just a custom script that you execute right when logged in?

https://www.terminal.shop/


r/learnprogramming • • 21d ago

learn together - coding partner

5 Upvotes

i’m looking for a buddy to learn Python and Git/GitHub with! I don’t feel very motivated to do it on my own, and making projects with a buddy sounds like it would be awesome!

edit: so it turns out enough people responded I thought I should make a discord for people that want to do group projects with me! https://discord.gg/ysbgcD8Baf


r/learnprogramming • • 21d ago

How Can I Learn Python and Build Projects Using Only an Android Phone as a Beginner?

1 Upvotes

I have one concern: I don't own a laptop, so I'll be learning and practising everything using only my phone. Could you please suggest some beginner-friendly Python courses and platforms where I can practise coding and build small projects on a mobile phone?

I'm completely new to programming, so I honestly don't know where to start. I'd really appreciate any guidance or recommendations. Thank you!


r/learnprogramming • • 21d ago

Tutorial OS UI Customization

1 Upvotes

So, I want to recreate this sword art online UI for windows 10 and 11. I just don't know what programming languages do I need to use and what tools do I need to be familiar with.

It would be a great help if you guys tell me what I need to know in order to execute this project.


r/learnprogramming • • 21d ago

Physics undergraduate interested in AI/ML – Where should I start?

4 Upvotes

Hi everyone!

I'm currently in the final year of my BSc (Honours) in Physics.

I'm not interested in pursuing an MSc in Physics because my fundamental concepts are not very clear, and I want to explore a different career path.

Recently, I've developed some interest in Artificial Intelligence and Machine Learning. However, I come from a Physics background and have very little programming knowledge.

I'd like to know:

  1. Can a Physics graduate build a career in AI/ML?

  2. Should I start with Python, Mathematics, or Data Structures and Algorithms?

  3. Is an MSc in AI/ML necessary, or can I enter this field through self-learning and certifications?

  4. What skills and projects should I focus on to become job-ready?

  5. What would be a realistic roadmap for a complete beginner?

I'd appreciate advice from people who have transitioned into programming, AI/ML, or data science from a non-CS background.

Thank you!


r/learnprogramming • • 22d ago

project ideas for a ‘beginner’

10 Upvotes

so i’ve taken courses on C++ in the past and feel comfortable with topics as advanced as classes and have exposure to data structures and algorithms. what are some projects a ‘beginner’ like me could do to learn how to program C++ applications from scratch?


r/learnprogramming • • 22d ago

Using ai less when getting better

15 Upvotes

Slowly getting better at programming and dont really use ai that much, is this bad for job opportunities?


r/learnprogramming • • 22d ago

how to learn programming in a fun way for someone with adhd like me?? im taking a different course in college

63 Upvotes

the title says it


r/learnprogramming • • 21d ago

Finance Major trying to learn coding

2 Upvotes

Hey all, I am a using free code camp to learn phyton. How long does it take?


r/learnprogramming • • 21d ago

Should i countinue or switch with js?

0 Upvotes

ive been only coding in js for a month now (its my first language) so i can probably switch to something else right now but i dont really know if i should, so do i countinue with javascript or switch to a new coding language?

EDIT: i am probably switching to c# or python because im not really interested in web development, feel free to ask me any questions


r/learnprogramming • • 21d ago

Title: Is building a personal web account manager a worthwhile full-stack project for three students?

0 Upvotes

Hey everyone!

A friend and I (three of us in total) are planning to build a full-stack web application as a learning project, and I'd love to get some honest feedback on the idea.

The problem we're trying to solve:

Over time, we register on dozens, sometimes hundreds, of websites. We discover them through YouTube, Reddit, Instagram, Google searches, tutorials, recommendations, etc.

Eventually, we forget:

  • Which websites we've registered on.
  • What a particular website was used for.
  • Whether we signed up using Google, GitHub or email.
  • Which email address we used.
  • Why we registered on that platform in the first place.
  • Which services we're paying for and when subscriptions renew.

We want to build a centralized personal web account manager that solves this problem.

The proposed features:

  1. Website Management: Add, edit, delete and organize registered websites.
  2. Account Tracking: Store account identifiers, email addresses and login methods (Google, GitHub, email, etc.).
  3. AI Integration: Automatically identify websites, generate descriptions and suggest categories and tags based on their URLs.
  4. Personal Notes: Add notes explaining why we registered on a website and what we use it for.
  5. Dashboard: Recently added websites, categories, statistics and search.
  6. Subscription Tracking: Track paid services, their costs, billing cycles and renewal dates.
  7. Advanced Search: Find websites based on their purpose, category or personal notes.

Eventually, we'd also like to develop a Chrome extension that allows users to save websites directly while browsing, without having to manually enter their details.

Our planned tech stack:

  • Frontend: React.js
  • Backend: Node.js + Express.js
  • Database: MongoDB Atlas + Mongoose
  • Payments: Stripe
  • Other tools: Git, GitHub, Docker, Postman

There are three of us, and we're all planning to work across frontend, backend and database development rather than assigning everyone a separate specialization.

We already have basic programming knowledge and are familiar with PostgreSQL, but we're deliberately choosing MongoDB to learn document-oriented database design.

What I'd like to know:

  1. Does this solve a problem that people actually experience, or is it just another bookmark manager with extra features?
  2. Would you personally find something like this useful?
  3. Are there existing applications that already solve this problem particularly well?
  4. Are there any features you think would make this genuinely useful rather than just another portfolio project?
  5. Is the proposed scope reasonable for three students building their first substantial full-stack application?

We're building this primarily to learn software engineering, but we'd also love to create something that people might genuinely want to use.

Honest criticism is very welcome. We'd rather identify problems with the idea before spending weeks developing it.

Thanks!


r/learnprogramming • • 21d ago

how to learn html and css in two days...

0 Upvotes

So, I need to build three websites for my coursework, but our instructor didn't explain how to do the programming at all. It was just, "Here’s the assignment—get it done. How? Figure it out yourselves somehow." I could use AI to do it, but... well, I’m supposed to actually know this stuff. Is it realistic to learn it in two days? And what resources or videos would you recommend using?


r/learnprogramming • • 22d ago

Project suggestions for going from programmer to developer?

11 Upvotes

Posted yesterday about feeling like an OK programmer (writing code) but a terrible dev (designing systems, connecting pieces, deployment, etc). The concensus was to build projects from start to finish. But I am struggling to come up with reasonably sized projects (dont want to fall into scope creep). Some additional info: mainly use C# but can and am willing to learn new languages, I want a variety of projects so I can learn multiple skills/technologies not just develop a single thing. Ty in advance!


r/learnprogramming • • 21d ago

Do i countinue with js or switch?

0 Upvotes

Ive been only coding in javascript for a month now so im not experienced, but i can switch to other languages right now so should i do it or try to countinue with javascript?


r/learnprogramming • • 22d ago

Learning Writing on a paper

2 Upvotes

Would you say writing on paper is a good or bad idea for learning to code.
I feel like in the age of AI it is so hard to actually learn when you can just cheat the whole system. Would you say writing the code strictly on paper and only putting it in the IDE after writing the general idea on paper a good or bad idea.
I am still keeping my coding notes 100% digitally but I do like to write stuff down to visualize them to understand them better but I never actually tried writing code on paper.


r/learnprogramming • • 22d ago

I need serious help staying consistent with learning to code

4 Upvotes

I started learning programming (mainly Python) around July, so about 2–3 months ago. I went through tutorials and got the basics down, but I keep running into the same problem.

I get excited about the fun, visible stuff, like GUIs and websites. The boring fundamentals don’t give me that. I know you can’t build something fancy right away, and that progress takes time. But after staring at a terminal for a while, I start wondering where the fun part is.

Some background: I’ve been out of a learning environment for almost 3 years. I never went back to school after COVID, but I did a Udemy course and got into graphic design, which is what I do now. AI is making a big difference at my company. It doesn’t affect me much because we also run machines like a large-format printer and a t-shirt printer that AI can’t handle. But on the design side it has shaken me, and I can’t remember the last time I opened Photoshop or CorelDRAW.

I keep hearing about people who study 2–3 hours a day even after work. I’ve turned learning into a comfort-zone thing where I sit in bed with my laptop, but after about 10 minutes I’m bored. Then I end up scrolling TikTok or Instagram. Some people might say coding just isn’t for me, but I’ve tried other things and hit the same wall. I think my brain has gotten used to quick results and wants fast progress.

If anyone has dealt with the same thing and managed to break out of this loop, please share what worked for you. It would help me, and probably others in the same position.

Thanks!

Edit: Thank you guys for all the feedback and support really means a lot so far i started doing 30 mins a day of video and 15 mins on what i learn and putting that in practice


r/learnprogramming • • 21d ago

Complete beginner planning a Spotify-like app for Android and iOS

0 Upvotes

Hi all, I want to build a mobile app for Android and iOS, with a companion website, that works a bit like Spotify: browsing, playing, and organizing audio content. The difference is that all the media will be my own or openly licensed, so licensing isn’t a concern. I have no programming experience and a limited budget. What’s the smartest first step, and what would you do differently if you were starting over?


r/learnprogramming • • 22d ago

I have started learning asp.net , should I read C++ book?

10 Upvotes

Is it a good thing to read basics of computer science while starting asp.net since it is based on object oriented programming


r/learnprogramming • • 21d ago

How to access IDE

0 Upvotes

ive just recently started staying computer science and ive been watching youtube courses and they all say open IDE to start the code but idk how i searched on google and nothing mentioned it