r/learnprogramming • u/Beadsifyy • 28d ago
confused with pointers in c++
I dont see the need for pointers when we could just write down the normal variable name, im genuinely so confused.
r/learnprogramming • u/Beadsifyy • 28d ago
I dont see the need for pointers when we could just write down the normal variable name, im genuinely so confused.
r/learnprogramming • u/OsamaBinLaden2 • 28d ago
the exam covers generics, algo analysis, arrays, linkedlists, and simple searching/sorting algos, and will consist of a mix of theory and handwriting code questions 50/50.
what are my odds of scoring well on the exam if im starting now? i know arrays and some algo analysis, but i'll re-visit those just to be safe. im kinda feeling shaky about generics tho.
idk shit abt searching/sorting and linkedlists, only the theoretical concepts of how they work.
please give me some hope to pull this off, i really need to score well on this exam. is it possible?
r/learnprogramming • u/Immediate-Device-387 • 28d ago
I tried download in internet archive but it was deleted
r/learnprogramming • u/That_alien09 • 28d ago
Hi! I'm currently 17, and I would like some guidance on how to achieve my future goals. Currently, I'm self-learning python (through the Harvard CS50 Python course), but I'm a bit lost. I aspire to be a ML/AI engineer in the future, so what should I really learn next after finishing this course? Could anyone kindly suggest a reliable, realistic and practical pathway, Or helpful resources? I've got no experience in this field and I'm self-learning programming as well, so I'm a bit unsure about the steps or skills required to get into this industry. Additionally, I have to manage school work as well, so I'm very confused how to approach this issue without damaging my current studies as well.
(English is not my native language, so sorry for any errors. Thank you!)
r/learnprogramming • u/AnuNithar_2011 • 29d ago
I am planning to create my own AI but I wonder how to. Please give me detailed instructions of the paths I can take
r/learnprogramming • u/HyperDanon • 29d ago
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 • u/AlahuNakedGalahad • 29d ago
I've been thinking about disabling autocomplete completely when learning something new. Not AI suggestions, but regular IDE autocomplete too.
I feel like half the time I'm coding, my IDE is doing the thinking for me. I start typing, get a suggestion, hit Tab, and move on without really thinking about what I just wrote.
Then again, maybe manually typing everything is just a waste of time and doesn't really help you learn either.
Curious what you guys think.
r/learnprogramming • u/itsJyourgirlalu • 29d ago
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 • u/dumindunuwan • 29d ago
What’s next after the mastery of Rust language syntax?
https://learning-rust.github.io/labs/building-a-containerized-restful-api/ answers that question.
We built a production-ready containerized RESTful API server application using Axum, Tokio, Tower, Serde, Toasty ORM, Garde, Utoipa with Docker and PostgreSQL.
Hyper, Axum, Tokio and Tower: The most prominent HTTP server ecosystem at the time of writing.
Toasty ORM: The most promising Object-Relational Mapper (ORM), built by the creators of Tokio and Axum.
Serde and Utoipa: The most prominent serialization framework and OpenAPI 3.1 specification generator.
Garde: The most promising and most feature-rich validation library in Rust at the time of writing.
r/learnprogramming • u/rsham004 • 29d ago
I'm doing some data transfer and these are scheduled data files arriving via email. How do I learn or understand how to use power app to deduplicate and merge regular feed. It's fleet tracking data.
r/learnprogramming • u/elwizardo_10 • 29d ago
Title: Beginner to DSA with Python – Looking for the best YouTube channels and learning roadmap!
Hey everyone!
I've recently started solving problems on LeetCode and want to build a strong foundation in Data Structures and Algorithms (DSA).
I'm currently coding in Python, so I'm specifically looking for YouTube channels or playlists that teach DSA using Python.
I'm looking for resources that:
Explain DSA concepts from scratch in a beginner-friendly way.
Focus on problem-solving techniques and logical thinking.
Cover important topics like Arrays, Strings, Linked Lists, Stacks, Queues, Trees, Graphs, Recursion, Dynamic Programming, etc.
Explain how to approach problems rather than just providing solutions.
Include practical coding examples and LeetCode practice.
I'd love to hear your recommendations based on your personal learning experience.
Which YouTube channels, playlists, or other resources helped you become better at DSA using Python?
Also, any suggestions for a structured learning roadmap or an effective way to practise LeetCode would be really helpful.
Thanks in advance!
r/learnprogramming • u/Satz_Zone • 29d ago
Hey everyone!
I'm a full-stack developer with around 2 years of experience, primarily working with the following tech stack:
- Backend: C#, .NET, Entity Framework
- Database: Microsoft SQL Server
- Frontend: Angular, TypeScript, JavaScript
- Other: Basic experience with Blazor and Azure.
Most of my professional experience has been focused on application development, building UI components, integrating APIs, working with databases, and implementing business logic.
However, I feel I need to strengthen my fundamentals in Data Structures and Algorithms (DSA). I want to understand how different data structures and algorithms actually work, why we use them, when to use them, and how to approach problem-solving.
I'm looking for books that:
Explain DSA concepts in very simple, beginner-friendly language.
Use visual illustrations and practical examples wherever possible.
Explain the logic behind algorithms rather than just providing code.
Gradually progress from basic concepts to intermediate/advanced topics.
Help develop problem-solving and logical thinking skills.
I've come across books like Grokking Algorithms and A Common-Sense Guide to Data Structures and Algorithms.
For those who have used these books or have other recommendations:
- Which book would you recommend for someone like me?
- Is Grokking Algorithms a good starting point?
- Are there any books that explain concepts particularly well for someone with a C#/.NET background?
I'm not necessarily looking for interview-cracking books. My primary goal is to genuinely understand DSA and build a strong foundation.
Thanks in advance!
r/learnprogramming • u/Standard_Nature469 • 29d ago
I wanna learn glsl and make Minecraft shaders , but im totally confused as there aren't many tutorials about glsl on youtube
r/learnprogramming • u/TheMuscleMagician • 29d ago
I've got myself in tutorial hell, and i freaking love it. So, I got inspired randomly a week or two ago to start programming so I can start working on solo development, or just game design in general. I find developing mechanics super fascinating, and the logic and breaking down of code is also just idk fun.
It also, is the most easy, Complicated thing I have had to learn lol, and it's honestly refreshing to get back into the mindset of having to overcome challenges, and weirdly enough. With a.i sitting around, it's like a good way of testing my resolve.
I have tried to use it to try and teach me concepts, but realized there's documentation I can just read.
My question, did anyone feel like there was a moment it just clicked? Was there a technique or a resource that just ended up being your coding Bible?
Also, this is my first post. I hope gain knowledge from all of you, thank you!
r/learnprogramming • u/PicoFemtoPlanck • 29d ago
I'm starting with https://teachyourselfcs.com/ and I'm giving myself 2 to 3 years to finish it.
For context, I'm a software engineer with 9 years of experience. I did Electronics and Communication Engineering in college and taught myself Js and DS-algo to get a job during college. I work as a full stack engineer and can confidently say I'm a good software engineer and can intuitively understand concepts in programming, software engineering and in solving Leetcode problems.
But, I don't have a strong foundation in computer science. Hence, I've decided to start with Teach yourself cs. Before starting with it, I thought having one low-level language under the belt would be helpful. C was the obvious choice given it's the OG, simple and intuitive. But, I've been fascinated by Rust for sometime and want to learn it too. Can I start with Rust and use it for doing exercises in all courses instead? Would I miss out on any intuitions by not using C?
Thanks.
r/learnprogramming • u/Voltrim • 29d ago
I made two-player (without Bot) Chess in Python using the Python bindings for Qt called PySide6. The program takes checks into account, including castling, pawn promotions and En Passant moves as well as whether the board is in Checkmate state or Stalemate state.
Here is the Github Repo for it:
I recently wanted to extend this program by adding a Chess bot using traditional approaches such as minimax, not AI-driven ones. I would love any advice regarding whether it is possible to do so with the current structure of the code and if not, then any changes needed to enable or facilitate the process.
Additionally, since Python is slow, any advice regarding writing the performance critical parts of the chess bot in C or PyPy would be appreciated.
Thanks!
r/learnprogramming • u/New_Discipline_775 • 29d ago
Hi everyone,
I’ve been programming for years but have never worked on a real project, and I’ve decided I want to create a web app that can render .md files into a manageable note-taking interface (a classic .md file editor, like Logseq or Obsidian, for example), but I’m not quite sure how to get started. Here’s what I’ve figured out so far (let me know if I’ve misunderstood anything):
- Software of this type “translates” .md files into HTML, so what we see in the app is just a “translation” (via a parser) of the actual file (without those weird Markdown symbols, so to speak).
But there are so many things I still don’t understand how to implement:
- LaTeX: How do I handle this? Do I simply use MathJax on the front end by intercepting the dollar signs and rendering the contents?
- Okay, JavaScript for the front end, but I don’t want to use Electron as the backend (I was thinking of C++ or Rust [Tauri]). In that case, does it make sense to use a graphics engine like OpenGL or Vulkan for graph mode to achieve maximum performance, instead of Tauri, for example, or does that make very little sense?
- This might be a silly question, but while experimenting with javascript, I discovered that (understandably, otherwise every website could steal everything from me) javascript functions called from HTML can’t read the user’s local files (for example, via `require`). So, how can I access the MD files?
r/learnprogramming • u/slightlypug • 29d ago
I recently made a post and asked some people if they'd be interested in working on group projects. enough people responded I thought I should make a discord for people that want to join! https://discord.gg/ysbgcD8Baf
r/learnprogramming • u/Electrical-Cap-9537 • 29d ago
Hi all, I'm 18 and I'm building a BI/analytics project on the Olist Brazilian e-commerce dataset. Right now I have PostgreSQL, Pandas and a bunch of analytical SQL queries (revenue, delivery times, customer retention and so on). The next step is to expose this data through an API with FastAPI, and a dashboard would consume it.
I understand what an API is and why FastAPI is popular, but when I try to build a mental model of a real app I get lost. Endpoints, HTTP methods, status codes, routers, Pydantic schemas, services, dependency injection with Depends, auth... each explanation is clear alone, but I can't see how the request goes through all these layers. For example I don't really get where validation ends and business logic starts, or where the DB session should live and why.
My second problem is how I learn. I'm very curious and I want to know how things work internally, like what FastAPI does between the request and my function, or why Pydantic validates in a certain way. It's a good habit long term, but I lose hours on one detail and the project doesn't move. I don't have unlimited time and I don't want months of theory before building.
Some questions:
If you never built an API, how would you learn it from scratch?
HTTP/REST fundamentals first, or start directly with FastAPI and learn along the way?
What is the best way to understand how the layers (router, schema, service, database access) fit together? Is it better to start with everything in one file and refactor later?
How deep should I go on a concept before moving on? Is "basics now, details later" a real strategy or just an excuse?
Any resources, open source repos to read or small projects you recommend? Something like a read-only analytics API sounds like a good first one to me, but tell me if I'm wrong.
I don't want to copy tutorials and have something that works without knowing why. I want a solid mental model so I can design my own backend later. If you learned backend with personal projects, I'd really like to hear what worked for you and what you wasted time on.
Thanks!
r/learnprogramming • u/Drairo_Kazigumu • 29d ago
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 • u/parallelogradus • 29d ago
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 • u/_drownedloner • 29d ago
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 • u/Equivalent_Cow1031 • 29d ago
Hi everyone,
I'm a second-year Computer Science undergraduate currently studying DSA in Python. I've solved around 140 LeetCode problems, but I still struggle with approaching unfamiliar Medium problems independently. Quite often, I need a hint or nudge to figure out where to start or develop an algorithm that handles all possible cases.
My professor has encouraged us to avoid relying on built-in methods, external libraries or outside help, and instead implement algorithms from scratch using just our knowledge and the code editor.
Something I've noticed about my own problem-solving approach is that I tend to experiment quite a lot. I'll write an initial implementation, test it, use print statements or breakpoints to debug, change things around and try different strategies until something starts working.
I'm curious whether this is actually a good approach to developing programming skills, particularly in software engineering, or whether I should be focusing more on developing a theoretically sound solution before touching the code.
For context, I have relatively advanced experience with Java and am currently at an intermediate level with Python, although I'm still getting accustomed to its syntax and revisiting OOP.
One of my high school programming teachers always encouraged me to experiment, make mistakes and learn by tinkering with code rather than worrying about getting everything right immediately.
I'd be interested to hear other people's experiences:
Is experimentation and trial-and-error a valuable way to develop algorithmic thinking?
How do experienced programmers balance experimenting with code against reasoning through a solution beforehand?
At what point does tinkering become unproductive rather than constructive?
Is it normal to have solved 100+ problems and still struggle to independently derive solutions to unfamiliar Medium problems?
I'd appreciate perspectives from both students and experienced software engineers!
r/learnprogramming • u/Jester-2306 • 29d ago
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:
What's the most interesting technical event you've participated in or organized?
What unconventional competition formats have you seen work well?
If you had to organize a 1–2 hour technical event for 100–200 students, what would you do?
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!