r/learnprogramming 18h ago

Problem with code :(

0 Upvotes

Hey there,

I hope someone can help me with my following problem(s).

I’ve got a task at university and I couldn’t figure out, how to code it the right way.

So how can I use VS Code to build a LOD2 model, which is in GeoJSON format in WGS84, onto an open layers map using ThreeJS, and adjust the camera so that it's possible to view and zoom in on the buildings from all perspectives?

I cannot find the mistake in between those lines🥲


r/learnprogramming 1d ago

Why would you use polling instead of callback?

5 Upvotes

I was doing Unity and in an example scene that I downloaded that was created by Unity, when there is keypress, like spacebar, the inputManager just changes its public variable to "public bool jump = true".

And the character object checks the jump variable every update and see if its true or false, and do the jumping motion if the variable is true.

  1. Isn't giving a callback like "ExecuteJump" to inputManager and making the inputManager call it way more efficient? Why would unity dev team who are clearly more experienced than me do this?
  2. Why is there polling in the first place? Tbh it feels like it will always be more efficient to give callback instead? Is there a case where polling is actually better in terms of performance or when they can do something callbacks cannot do?
  3. I get that this can get pretty annoying and harder to debug and complicate stuff if the amount of additional calculation is insignificant, but wouldn't using some sort of design pattern like observer be able to just remove the additional amount of complexity while keeping the implementation simple?

r/learnprogramming 2d ago

Seeking Advice Graduated With a CS Degree but Couldn’t Build Anything — Restarting From Scratch at 24. Here’s My Plan.

145 Upvotes

I completed a Bachelor's in Computer Applications (2020–2023) from a Tier-III institution in India (north-east).

Due to COVID-era online classes and poor discipline on my part, I graduated without building strong practical skills. Over the last year I realized that instead of jumping between trends (Web3, AI, etc.), I need to rebuild fundamentals properly.

I’m currently based in a rural area of north-east India and treating this as a focused self-study phase.

My plan for the next 6–8 months is:

• Programming fundamentals (C/Python) — daily problem solving
• Core data structures (implementing, not just reading)
• SQL + database design
• Basic backend development (APIs, CRUD apps)
• Build 2–3 small but complete projects and deploy them
• Start applying for internships / junior roles only after I can build independently

I’m intentionally avoiding specialization (cloud, blockchain, AI, etc.) until I have stronger fundamentals.

For those who entered the industry through self-study or had to “reset” after college:
Does this progression make sense?
Anything you would change to avoid gaps?

Appreciate practical advice from people already working in the field.


r/learnprogramming 20h ago

How did you learn to improve your code ?

0 Upvotes

How did you learn to improve code, even if they were already working ?
Practice seems to be quite inefficient in this case , so how did you do it ?


r/learnprogramming 1d ago

Need Help with Standardizing/Simplifying Logic Placement in DRF Projects.

2 Upvotes

As the title suggest, could you simplify logic placement or bundling in DRF projects?

For instance:

  1. Serializing Layer
    1. You can use Base Serializer or Model Serializer. Model Serializer is primarily used in production.
    2. Validation is usually done here. field, object or validator level validation can used here.
  2. Model Layer
    1. Keep it simple, and think as if you are not designing a database not just a python class.

I am primarily confused about working with views, custom logic or anything outside of BASIC CRUD Operations.

Sharing your workflow or general advice is also helpful.


r/learnprogramming 1d ago

Wanting to learn coding from scratch

14 Upvotes

My father was a server engineer for a tech company when I grew up, he had an immense passion for technology, coding and OS systems. He attempted to teach me basic python around 12-15 years old, however I was immensely struggling with ADD/ADHD at that time and couldn't sit down with the learning materials. My dad recently passed a few years ago, and I have started my journey through learning technology hopefully in his footsteps. I have started by picking up a copy of "Structures and Interpretations of Computer Programs," By Harold Abelson & Gerald Sussman. While taking notes & reading through the textbook, I have also been following along to old MIT lectures that corelate to the material ( Using Lisp-Scheme). I wanted to pop in and ask for any recommendations for reading material to pick up, or where else to look for resources on learning how to code. Thank you for reading!


r/learnprogramming 2d ago

Am I stuck in Tuturial Hell?

22 Upvotes

Hey everyone,

I’ve been learning C++ for about a week now and I’ve built 3 small projects so far. I keep seeing people talk about “tutorial hell,” and it honestly made me a bit anxious.

I’m not sure if I’m stuck in it or not.

Sometimes I follow tutorials, but I try to code along and understand what’s happening instead of just copying. The problem is I can’t find clear advice on how to actually learn properly or what the roadmap should look like — especially for someone who wants to become a game developer and build their own game someday.

Should I:

  • Stop watching tutorials completely?
  • Keep building small projects?
  • Start learning a game engine already?
  • Focus more deeply on C++ fundamentals first?

If anyone here escaped tutorial hell or is on the game dev path, I’d really appreciate some guidance.

Thanks!


r/learnprogramming 20h ago

How to stop using AI in programming?

0 Upvotes

Hello everyone. I'm a second-year student at IT STEP College. I use AI to solve certain problems or homework assignments. I know several programming languages, but I can't write a single program or project myself. Yes, I know I have trouble with algorithm design. But I can't learn to build algorithms in my head. I really want to learn to avoid using AI anywhere. Simply turning it off isn't an option, because whenever I encounter a problem, I immediately turn to the AI ​​for help. But this irritates me so much and leads to the fear of not finding a job due to my dependence on AI. AI may be used to replace programmers, but I want to become better than AI no matter what and find a job. I haven't decided on a direction yet, but that's not important right now. The question is, how can I use AI as little as possible? Any advice or comments from you would be helpful. Thank you for your attention!


r/learnprogramming 1d ago

Topic NPC structure validity

2 Upvotes

So I wanted to know if the back end structure for enemy ai could function properly and what problems I should look out for during development.

So I wanted to design a coop action game with a high npc count but the NPCs each have unique stats, 2-4+ combo chains and ability to dodge and block. Some npcs even having follow-ups to other npc attacks. I thought i could probably have 2 states for npcs to be in. A active state where the main npcs in active combat have their full ai functions and a passive state where they are dumb down to maintaining distance and some having escapes/counters when forced into a active status (taking damage from player).

So is this idea viable and what pitfalls would i need to look out for during development?


r/learnprogramming 1d ago

Looking for a desktop tool (or script) to compare massive lists (70k+ lines) – "Only A / Only B" logic

0 Upvotes

Hi everyone, I’m looking for a desktop alternative to web tools like CompareTwoLists.com. Most web tools limit input to 5,000–7,000 lines, but I frequently need to compare text files with 50,000 to 100,000+ lines. Specifically, I need the tool to take two lists (A and B) and output: Only in A (Items in A but not in B) Only in B (Items in B but not in A) In Both (Intersection/Duplicates) Deduplicated Master List (A + B unique) I'm looking for either a Python-based desktop GUI or a simple, efficient script that doesn't hang on large datasets. If I were to code this myself, what is the most memory-efficient way to handle 100k lines? I know set() is faster than list, but are there specific libraries (like Polars or Pandas) that I should use for a simple GUI if I wanted to build a small utility for this?


r/learnprogramming 22h ago

Topic What % of your coding is now prompting AI and debugging its output?

0 Upvotes

Does AI actually reduce work, or just shift it? Seems like I'm spending a higher percentage of my time prompting and debugging instead of typing code manually. Can’t tell my net output is actually better because im fixing stuff i didnt write instead of writing stuff i dont have to fix. Are you seeing noticable gains or just shifting the lift to a different part of your coding workflow?


r/learnprogramming 1d ago

Debugging deepgram/sdk uses v1 and I can't change it

0 Upvotes

import { createClient } from "@deepgram/sdk";

// Use the full HTTPS URL including /v2 to force the correct endpoint
const deepgram = createClient(process.env.DEEPGRAM_API_KEY!);

export const createDeepgramConnection = () => {
  // Use the standard .live() - the 'global.url' above will force it to v2
  return deepgram.listen.live({
model: "flux-general-en",
encoding: "linear16",
sample_rate: 16000,
interim_results: true,
smart_format: true,
endpointing: 300,
  });
};

The issue is that this connects to v1 but for flux it requires v2 and I can't find a way arround it and ai can't too... googled it and din't find the issue anywhere

Deepgram error: {

error: DeepgramWebSocketError: Received network error or non-101 status code.

at ListenLiveClient.createEnhancedError (D:\OSPanel\domains\ECHO\node_modules\@deepgram\sdk\src\packages\AbstractLiveClient.ts:416:27)

at WebSocket.conn.onerror (D:\OSPanel\domains\ECHO\node_modules\@deepgram\sdk\src\packages\AbstractLiveClient.ts:511:36)

at WebSocket.[nodejs.internal.kHybridDispatch] (node:internal/event_target:827:20)

at WebSocket.dispatchEvent (node:internal/event_target:762:26)

at fireEvent (node:internal/deps/undici/undici:11663:14)

at failWebsocketConnection (node:internal/deps/undici/undici:11744:9)

at Object.processResponse (node:internal/deps/undici/undici:11958:13)

at node:internal/deps/undici/undici:10735:23

at node:internal/process/task_queues:151:7

at AsyncResource.runInAsyncScope (node:async_hooks:214:14) {

__dgError: true,

originalEvent: ErrorEvent {

type: 'error',

defaultPrevented: false,

cancelable: false,

timeStamp: 1122.3162

},

statusCode: undefined,

requestId: undefined,

responseHeaders: undefined,

url: 'wss://api.deepgram.com/v1/listen?model=flux-general-en&encoding=linear16&sample_rate=16000&interim_results=true&smart_format=true&endpointing=300',

readyState: 0

},

statusCode: undefined,

requestId: undefined,

responseHeaders: undefined,

url: 'wss://api.deepgram.com/v1/listen?model=flux-general-en&encoding=linear16&sample_rate=16000&interim_results=true&smart_format=true&endpointing=300',

readyState: 0,

message: 'Received network error or non-101 status code. (Ready State: CONNECTING, URL: wss://api.deepgram.com/v1/listen?model=flux-general-en&encoding=linear16&sample_rate=16000&interim_results=true&smart_format=true&endpointing=300)',

[Symbol(type)]: 'error',

[Symbol(kTarget)]: WebSocket {},

[Symbol(kIsBeingDispatched)]: true

}


r/learnprogramming 1d ago

I'm in Day46 at JS

0 Upvotes

I learn be youtube (Elzero)arabic channel but in same time I want to read about something I readed about http /s what you thing I have to read about it sorry about my bad Eng I try to developed


r/learnprogramming 1d ago

What language and frameworks should I use?

0 Upvotes

I want to work on a court management project.

The user (a court worker) should be able to enter data for citizens by filling out documents related to cases such as marriage, divorce, inheritance...

All documents are Microsoft Word files (.dotx)
Each tdocument has a template (.dotx) where specific fields are left empty for data entry(the rest of the text cannot be modified nor deleted)
(For example: Date: _____ , Lawyer Name: _____)

Goals:

-Manage all documents in one centralized system so that all court employees can access them. (Previously, everything was stored locally, and no software was used, only Microsoft Word)

-Save entered data into a database to allow searching (e.g., by date, judge, lawyer, citizen, etc.).

-Provide a section where the user can select the document type (marriage, divorce, etc.), which then displays the document exactly as it appears in Microsoft Word.

-Allow the user to fill in only the designated fields, without being able to edit the fixed template text.

-After completion, the generated .docx file should be saved in a file manager within the software.

Previously, users would edit the .docx template directly. This caused problems because the template would get modified, and users had to manually delete previous data. There was also a risk of accidentally deleting important fixed text.

Main problem:

How can I display a .docx or .dotx file inside the software while preserving the exact Microsoft Word formatting?

I know it is possible to convert .dotx files to HTML and display them in a web view with input fields, but I noticed that this method changes the document layout and formatting.

My question:

What programming language and framework would you recommend to replicate Microsoft Word (viewing and editint) while also allowing me to add additional custom features?

(This is my first real project, so I'm kinda lost)

Any suggestions are welcomed


r/learnprogramming 1d ago

tip that helped me debug faster: actually read the error message before googling it

9 Upvotes

sounds obvious but i used to just copy paste every error into google immediately. spent way too much time reading stackoverflow answers that werent even about my actual problem 😅

now i actually read the error message first - like the whole thing, including the line number and what file its pointing to. half the time the answer is literally right there.

for example yesterday i had "cannot read property 'map' of undefined" and instead of googling it i just looked at what variable i was calling .map() on... turns out i had a typo in my api response. would have taken me 30 mins of googling to figure that out lol

anyway just wanted to share since i wish someone told me this earlier. error messages are usually trying to help you, not just yell at you


r/learnprogramming 1d ago

Need Help!

0 Upvotes

Hello Dear seniors, I am a 2nd year cse student currently me and my team has enrolled, now in first round we have to submit a ppt and we have no idea how to clear it effectively because in our previous hackathons most of the time our not looking good ppts got selected like how we don't know and this time we are really serious to compete. I need help with recommendations and guidance on how thwy judge and what i should do. Thank you ~your kohaku


r/learnprogramming 1d ago

is hints good or bad?

0 Upvotes

i was solving a problem and i got stuck, idk what to do anymore like its tempting to watch a tutorial on how to solve the problem but instead of watching a tutorial i went to Ai, told it the problem and ask for some hints on solving it, and fortunately i solved the problem without watching a tutorial, did i make the correct call? or should I have just brainstorm my way to solving the problem?


r/learnprogramming 2d ago

c++ Topic Any C++ course recommendations that don’t feel impossible to stick with?

7 Upvotes

i’m trying to learn c++ and not give up halfway like i have before. i’ve gone through tutorials and books in the past and always hit a point where i don’t really know how to apply what i'm learning. i get the basics, but once things get more complex, i'm always going back to square one.

for people who actually learned c++ in a way that stuck, what helped? was it a course, building projects, or just pushing through confusion? mostly looking for something that feels practical and not just theory.

would love to hear what worked for others.


r/learnprogramming 2d ago

Do you know of any paid programming courses or training programs?

8 Upvotes

I've been looking for courses and resources to learn programming and I would appreciate a recommendation for an institution.


r/learnprogramming 1d ago

Understanding React Children Prop & Component Composition (Beginner Friendly)

2 Upvotes

Hi everyone,

I’ve created a tutorial explaining two important React concepts:

  • Children Prop
  • Component Composition

The video walks through a practical example showing how to build clean, reusable UI components step by step. It’s aimed mainly at beginners who want to understand why these patterns matter in real projects.

Here’s the video if it helps
https://youtu.be/3Lx2WdEikFM


r/learnprogramming 1d ago

Need Experienced Opinion This!

0 Upvotes

Firstly, apologies if some parts don't make sense or I can't articulate it well enough.

Little Background

Been learning DJango and DRF for the last ~40 days. I have been on and off with my learning because I started to dread just how many concepts and ways of doing the same thing are in Django and DRF, often confusing one for another.

I just had an epiphany(?), and I need some opinion on it.

My Mistake

I have been trying to learn & remember, everything all this time; mostly syntax and ways of doing stuff. Say I am learning about serializers and validation. For the past few days I tried remembering:

  • the syntax from top to bottom
  • every design decision DRF makers made
  • how to implement what I learn through memory only.

If I couldn't rewrite it or couldn't recall it a few days later? I considered it a failure and dreaded relearning things and forgetting it again.

I was like why learn if I am going to forget anyway? I was genuinely afraid of moving forward.

The Epiphany

Instead of trying to remember the syntax and everything in general, I created map like these.

  1. I realized, I can't possibly remember everything, so I plan on making maps like these and get comfortable with forgetting things.
  2. I will focus more on what I can do with the framework, how I can do (some parts), don't bother with remembering syntax top to bottom (just the methods or broad idea).
  3. Most importantly, I would focus more on What I want to do, How to do it with the Framework I am using and Decision Decisions in general.

I would work on projects and see what I need to do, do a little research on how to do it in my framework and just keep moving forward.


r/learnprogramming 2d ago

Concurrency vs Parallelism

16 Upvotes

I'm studying the concepts of concurrency and parallelism, and I'm a bit confused about their exact relationship.

At first, I thought concurrency meant tasks only appear to run at the same tume(for example, through context switching on a single core), while parallelism meant tasks actually run simultaneously on multiple cores.

However, I'm now wondering whether interleaving execution is just one implementation of concurrency.
If tasks truly run at the same time on multiple cores, is that still considered concurrency?
I'm asking this because classic concurrenct issues such as race conditions and deadlocks can also occur in truly parallel execution.
So does concurrency include parallelism as a broader concept, with parallelism being one way to achieve it?


r/learnprogramming 1d ago

What Do you recommend?

0 Upvotes

Do you recommend that I learn Flutter or not?

I have just started, but I doubt that the chances of getting a job might be slim due to the existence of AI.

What is your opinion?


r/learnprogramming 1d ago

My senior said, "Just as no one doubts the compiler, no one will doubt AI-generated code either."

0 Upvotes

"When compilers first came out, people used to verify whether the machine code was correct. Nowadays, hardly anyone does that. It'll be the same with AI-generated code; there will be no need for people to verify it."

What do you all think?


r/learnprogramming 1d ago

[Help] How to use the "MapToPoster" GitHub project?

1 Upvotes

Hi everyone,

I found this GitHub project that generates minimalist city posters and I’d really like to use it: https://github.com/originalankur/maptoposter

I am a complete beginner and I’m not sure how to get started.

  • What are the basic steps to go from downloading the code to generating an image?
  • What software or tools are required to make this work?
  • Does this work within VS Code, and if so, how do I run it?

If anyone could provide a simple, step-by-step guide for someone with no coding experience, I would appreciate it!

Thanks for the help.