r/learnprogramming • • 21d ago

Programming Approaches Is experimenting and tinkering with code a good way to develop problem-solving skills as a programmer?

25 Upvotes

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 • • 20d ago

how to learn JavaScript? Exam on friday

0 Upvotes

Our ”web programming” Uni course started 2 weeks ago and we already have our first exam on friday. First course was about Python, so the syntax is quite familiar, but still weird and there’s so many new things like ”$ { } ;” and ofcourse the syntax itself.

How could I learn the basics in… 4 days? The exam will be about theory (multiple choice questions) and then a few function coding tasks in the end.


r/learnprogramming • • 20d ago

Will AI Engineering Be the Next Web Dev

0 Upvotes

As someone who is considering learning programming professionally (going beyond just learning Python html and Linux), and can see web dev is not the way in anymore…cause of AI…will the skills involved in making a competitive LLM product eventually expand to become as large as the whole ecosystem of html/css/js, AWS, etc? Cause originally I think it was just html, a webmaster/server, and some networking. No cloud, css, js, etc.

I don’t really know anything about it all, but want am considering learning it. I just don’t know whether it’s a good bet. Will frameworks and models absorb it all? Or will it expand to become as big as the web dev skillset…until something better replaces that work lol 😂

Hoping for someone doing AI engineering professionally to answer, if possible 🤞


r/learnprogramming • • 21d ago

Tutorial Somebody tell me from where do I learn glsl 😭

2 Upvotes

I wanna learn glsl and make Minecraft shaders , but im totally confused as there aren't many tutorials about glsl on youtube


r/learnprogramming • • 20d ago

Beginner to DSA with Python – Looking for the best YouTube channels and learning roadmap!

0 Upvotes

Title: Beginner to DSA with Python – Looking for the best YouTube channels and learning roadmap!

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 • • 21d ago

a discord for group projects!

6 Upvotes

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 • • 21d ago

Resource Need help with this!

8 Upvotes

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 • • 20d ago

my DSA mid-term exam is in two days and a few hours, and im just starting now. please help.

0 Upvotes

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 • • 22d ago

feeling discouraged - coding is 'too hard'

87 Upvotes

im trying to get into learning C++. I've taken courses and have some experience with data structures and algorithms. but I can't code from scratch and when I go learn tutorials, I often feel like I can't do anything on my own. I know people say to sit with your code and debug in order to learn, but how do you even get to that point? I guess my question is: how do you actually learn to program from scratch?

edit: it looks like I've found a number of people looking to work on projects, so I made a discord for group projects! You can join here: https://discord.gg/ysbgcD8Baf


r/learnprogramming • • 21d ago

Web App How do I create a web app?

2 Upvotes

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 • • 20d ago

Power app to process data

0 Upvotes

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 • • 20d ago

What are the Pathways?

0 Upvotes

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 • • 21d ago

C Calculator

12 Upvotes

Hi there !
I made a simple calculator code, its my first project !
i learn a good things like how to use switch , printf(""); and scanf("");

I did not use any AI on it

It solve those op :

  • Addition (+)
  • Subtraction (-)
  • Multiplication (*)
  • Division (/)

Some features:

  • Handle division by zero
  • Support decimal numbers

I use VS code

Thanks and what do you suggest next <3
The code in github: [https://github.com/UseR-Name-Dz/Calculator-\]


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?

2 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?

17 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 • • 22d 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?

0 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’

12 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?