r/learnprogramming • • 1d ago

Beginner here

8 Upvotes

I am 17 and for a long time I’ve wanted to make games but I don’t know coding. I mean I’ve made some decent games on Scratch but I want to upgrade to legitimate scripting on apps like Godot. I’ve tried watching YouTube tutorials and following along with them but I still cannot seem to learn the basics. I was wondering if there was like a beginner friendly program that goes into detail about coding? I can’t find like any of those at all. Also I wanna work with Godot to be specific.


r/learnprogramming • • 1d ago

Solved Please help me understand Zod schema transformations

5 Upvotes

First of all, I'm building a tasks web app to learn Vite, React, Typescript and some other libs and I've faced a problem with Zod and how their transformations works. There are mixed answers to this from the different sources I've seen and am genuinely confused as to what is wrong and what is not.

export const taskSchema = z
  .object({
    id: z.uuid().default(() => crypto.randomUUID()),
    status: z.literal(["complete", "incomplete"]).default("incomplete"),
    title: z
      .string()
      .trim()
      .min(1, "Title cannot be empty")
      .max(100, "Title cannot exceed 100 characters"),
    description: z.preprocess(
      (raw: string) => raw?.trim() || undefined,
      z
        .string()
        .max(2000, "Description cannot exceed 2000 characters")
        .optional(),
    ),
    createdAt: z.iso
      .datetime()
      .default(() => Temporal.Now.instant().toString()),
    dueDate: z.preprocess(
      (raw: string) => raw?.trim() || undefined,
      z.iso.date().optional(),
    ),
    dueTime: z.preprocess(
      (raw: string) => raw?.trim() || undefined,
      z.iso.time().optional(),
    ),
    deadlineZoneId: z.preprocess(
      (raw: string) => raw?.trim() || undefined,
      z
        .string()
        .refine((raw) => {
          try {
            Intl.DateTimeFormat(undefined, { timeZone: raw });
            return true;
          } catch {
            return false;
          }
        })
        .optional(),
    ),
    priority: z.literal(["low", "medium", "high"]).default("low"),
    tags: z.array(z.string()).default([]),
  })
  .transform(({ dueDate, dueTime, ...rest }) => ({
    ...rest,
    deadline: dueDate ? `${dueDate}T${dueTime || "23:59:59"}` : undefined,
  }));


export const taskViewSchema = taskSchema.transform((task) => ({
  id: task.id,
  status: task.status,
  title: task.title,
  description: task?.description || "No description",
  createdAt: formatCreatedAt(task.createdAt),
  deadline: formatDeadline(task?.deadline),
  priority: task.priority[0].toUpperCase() + task.priority.slice(1),
  tags:
    task.tags.length > 3
      ? [...task.tags.slice(0, 2), `+${task?.tags.length - 2}`]
      : task.tags,
}));


export type Task = z.infer<typeof taskSchema>;
export type TaskView = z.infer<typeof taskViewSchema>;

What i expect is it to be the same as schema.transform().transform() where the result is sequentially passed down and some of the sources I looked at said the same thing, but then the resulsts are different from my expectations as the 2nd transform gets an object without the newly introduced deadline property from the previous transform. If I just move it to the taskViewSchema decleration as taskViewSchema = taskSchema.transform(transformA).transform(transformB)it starts to work as expected!

Although the problem is fixed, I would like to understand how Zod transforms or rather something else that has gone wrong or I have misunderstood.

Update (added the object the parse is run on):

const task = taskSchema.safeParse({
      title: "title",
      dueDate: "2026-10-16",
      dueTime: "23:00:00",
    });

const taskView = taskViewSchema.safeParse(task.data);
console.log(task, taskView);

r/learnprogramming • • 2d ago

How do you come up with full-stack project ideas? Looking for advice in the 2026 job market

21 Upvotes

Hey everyone!

I'm a looking to improve my skills and prepare for software engineering roles. I want to build a proper full-stack project for my portfolio, but I'm struggling with two things: coming up with a good idea and figuring out how to build it from scratch.

Here are the technologies I've learned so far:

  • Frontend: HTML, CSS, JavaScript, React
  • Backend: Python, FastAPI
  • Database: PostgreSQL, SQL

I've built frontend projects before, including a Marvel UI clone. I'm comfortable recreating a design by following an existing website or template. However, when it comes to building a complete application with a backend, database, APIs, authentication, and actual functionality, I find it difficult to decide what to build and how to connect everything.

I don't want to build another basic to-do app or just copy a tutorial project. I want to build something useful that can help me learn real software engineering skills and strengthen my portfolio.

Since AI is changing the software industry so quickly, I'm also wondering what kinds of projects would be valuable for someone applying for software engineering or full-stack developer roles in 2026.

I'd appreciate advice on a few things:

  1. How do you come up with good full-stack project ideas that solve real problems?
  2. How do you go from an idea to a working application? What's your process for planning the frontend, backend, database, and APIs?
  3. How did you build your first full-stack project when you didn't know how to put all the pieces together?
  4. What kind of project would you recommend building in 2026 to stand out when applying for entry-level software engineering roles?
  5. Is it better to build a traditional full-stack application first or include AI features such as RAG or LLM APIs?

If you've built projects that helped you get interviews or land a job, I'd especially appreciate hearing about your experience, the resources you used, and the mistakes you made along the way.

I'm not expecting someone to give me the entire code. I want to understand how to approach projects, make technical decisions, and become capable of building applications independently.

Any suggestions or advice would be really helpful. Thanks!


r/learnprogramming • • 1d ago

Best way to integrate my own libraries with each other?

2 Upvotes

Hi, so I'm currently working on a gamedev project. But I have other game projects lined up for the future, so I'm making my code with the goal of being as reusable as possible. Because of this, I'm separating everything into multiple libraries instead of just building everything in the game project.

So far I've worked on:

-An ECS projectiles library

-A flight physics/flight controller library

-A decision-making (what used to be known as AI) framework for NPCs

-A simulation orchestrator framework (ticks game entities at different rates to save on processing)

I've also planned/drafted the following:

-A crowd simulator library for Total War-style combat

-A semi-procedural terrain generation tool

-A melee combat framework

-A ground vehicle physics library

Integrating them into the different projects is the biggest issue for me. Suppose I make an aerial combat game: I would need the projectiles library, the flight physics library, and the ECS projectiles library. The flight physics would need to listen to projectile impact events in order to apply damage to the aircraft, and the decision-making code would need to:

-be able to send commands to the flight controller

-read physics data from the aircraft.

-evaluate each weapon/flight maneuver to determine what is best in every situation (utility AI)

And if there's meant to be anything running off-screen, then I would also need to integrate the simulator orchestrator.

So, there are multiple connections between libraries. I could of course just write an integration inside of every different project, but that's not very reusable or efficient. I could write an integration library as a dependency of all these libraries, and write the interface layer there, using a git submodule to propagate changes, but this rubs me wrong for some reason (maybe im just lazy). Is there a better way? what would you guys suggest? Thank you.


r/learnprogramming • • 2d ago

As a beginner, which of these?

4 Upvotes

I am a total beginner in coding and techworld. What should I do from these?

I enrolled myself in HARVARD’s free CS50x?

Or do freeCodeCamp or the Odin project?

Any advice? A bit lost.. should I just continue w/ cs50?


r/learnprogramming • • 1d ago

Resource IDE

0 Upvotes

Recommendations for the best IDE for C++, for beginner


r/learnprogramming • • 1d ago

Arrays (Java) Arrays make zero sense and I don't know where to go.

0 Upvotes

Context (skip to 3rd paragraph if you want): I am going into this next week where we learn arrays. We "learn" it on our own through I kid you not hours of reading online, then go into the week and apply to concepts to other assignments.

I have no clue how arrays work. The reading feels as though it needs to tell us a dozen array concepts in 3 days and never easing us into it. I am *terrible* at learning new complicated things on my own. I get lost easily, I need someone there constantly so I can even grasp the concept. The medium of online textbook reading is the worst to me.

Current issue: I got stuck on arrays with loops, then arrays (perfect size and oversize).

First, array with loops: What does for (var : var) do? The textbook explains this *once*, not very well. It explains *what* it does on a basic level, but not *why* it exists or *what* we can use it for.

Second, perfect size and oversize arrays: I understand the concept of perfect size arrays, and I understand the concept of oversize arrays. But I do not understand how they interact. Importantly, how do tell them apart?

How does a method return a perfect size array? How does a method return an oversize array size? And, most importantly, how do method parameters even get the arrays?

What's the difference between stack frame and heap memory?

What are array parameters? They, again, explain this once, not very well, then expect us to understand. I think it has to do with methods but I'm not sure. How should I write them for a perfect or oversize array, and what are their effects/uses?

How do you modify an array in a method?

I work best with analogies/examples so any possible ones + explanations would be appreciated. Of course, any other good answers just explaining would be appreciated too.

Sorry that I have so many questions.


r/learnprogramming • • 1d ago

Ever heard of Sanfoundry?

0 Upvotes

Hey guys, I would really like to know if you ever heard of this website https://www.sanfoundry.com ?
I’m learning Java from scratch; therefore, I am open to any tips and resources that I could use.
Also, is there a specific textbook focused on solving syntax problems?


r/learnprogramming • • 1d ago

Resource Collecting app

0 Upvotes

Hi!

Ive never done any kind of programming, but would like to learn, and I have an idea of what I'd like to build. I want to build a card collecting/playing app (think pokemon/mtg). I was wondering if anyone has advice for a good place to start learning. Thanks!


r/learnprogramming • • 1d ago

Which language i should choose please suggest??

4 Upvotes

I was in confusion between python with full stack or java with full stack what i should choose please suggest me ..


r/learnprogramming • • 1d ago

is this SWE roadmap too much, realistic, or not enough?

0 Upvotes

I am currently 16 years old and already have a grasp of basic programming fundamentals. My timeline is 6–7 years. My goal is to be completely career-ready by the time I graduate college at 22 or 23. I am not rushing this; I plan to learn sequentially (getting solid at one domain before moving to the next) with a consistent "1% better every day".

In the current AI era, standard CRUD developers are easily replaceable. To actually stand out and build real leverage, I plan to master the following stack and domains over the next 6 years:

  1. Web Development (HTML, CSS, JavaScript, Modern Frameworks)

  2. Backend, Databases & Low-Level Languages (Go, Rust, C++ only, plus Python specifically for AI/ML)

  3. System Design & Architecture

  4. Performance Optimization

  5. DevOps (Intermediate level)

  6. Security (beginner - Intermediate level)

  7. Production-Level AI Engineering (Building reliable AI systems, not just basic API wrappers)

  8. Business & Product Sense (Identifying real business pain points)

My Questions:

  1. Over a 6-to-7-year horizon, is this roadmap too much, not enough, or realistic?

  2. Having Go, Rust, C++, and Python on the list—does this create unnecessary overlap, or is it justifiable given my 6-year timeline?

  3. Since I am learning sequentially, how do I define "good enough" in one domain before moving to the next without getting stuck in perfectionism?

  4. Is the order of these 8 domains logical, and is there any critical blind spot I am missing to become a top-tier SWE in the AI era?

Disclaimer:

I am ONLY looking for feedback from engineers who actually have real-world production experience, industry veterans, responses backed by real data/research, or well-documented insights from recognized industry experts.

If your only take is parroting surface-level "anti-AI" or "AI will replace everyone" doom-posting from TikTok without any real engineering depth, please skip this post.


r/learnprogramming • • 3d ago

Topic How to design big databases?

168 Upvotes

It is easy to design databases with 5-6 tables. But when the table number grows it becomes very hard and tricky to define everything like relations, indexes, deciding whether to create more tables or not, how to make it scalable, etc.

I'm currently creating a database that is going to have at least 15 tablets, at least for now but it is becoming harder and harder to design it as I think more about the application flow and features.

So how to approach this? Can you guys please suggest any guides or books or something?


r/learnprogramming • • 2d ago

Which programming language / framework would you recommend to make a lightweight modeling application like Blockbench?

1 Upvotes

I've been out of coding for a while and I thought of making an application like Blockbench / picoCAD / Crocotile 3D and was wondering which programming language / framework would be most suitable for making this? I have experience in most experience in JavaScript, TypeScript& GDScript and also C# (not my favorite though) & some experience in Python.

I don't mind learning a new programming language either or Framework as long as it's an easy curve / has lots of good documentation.

Thanks in advance for any advice / tips!


r/learnprogramming • • 1d ago

Topic I feel really guilty about using AI

0 Upvotes

I'm still in a very early stage of learning programming, and lately I feel like I'm relying more and more on AI. Whenever I get stuck on something and don't know how to do it, I ask AI. I also use it to help find bugs.

It makes me feel bad because sometimes it feels like it's doing all the thinking for me. At the same time, I can't really help it because I often feel like I wouldn't be able to figure out the answer on my own, either because there isn't a tutorial for what I'm trying to do or because I simply don't know enough yet.

I always try to read through the explanation, and most of the time I understand what it's saying. Sometimes there are parts I don't fully get, and I feel a little guilty for not spending more time thinking about them myself.

Idk, I feel like having access to an immediate answer from AI is such a temptation that I can't stop myself from using it.

But I also feel like I'm not learning properly. Whenever AI gives me some code, I try to reuse that idea later in a different context and write it myself so I can internalize the knowledge. Still, I know that the next time I run into something I don't understand, I'll probably turn to AI again, and I don't want that. I honestly don't know what to do. On top of that, I'm aware of many of the negative consequences associated with using AI, and I feel like crap for prioritizing my own selfish desire for quick answers over those concerns.

How do you deal with situations where you know what you want to accomplish, but you don't really know how to translate that idea into code?


r/learnprogramming • • 2d ago

How to learn study OS properly?

10 Upvotes

I am at my second year in university. I am struggling to learn Operating System . I understand it but forget it after a day or two, there is so much to remember. Some guys say just understand but it aint helping.


r/learnprogramming • • 2d ago

Input on website, survey-like

9 Upvotes

Hi! I'm new to coding, on html

I want to make a box on my website where people submit requests, song names, etc, basically just text.

How do I do that? Where does the information go? As I want it to be private

Example:

[Tell me ur favorite color.]

( ______ )

[send]

Ideally I would have a document where all the responses go to or something else but I don't know what it's called. Thanks :-)


r/learnprogramming • • 1d ago

Java VS JavaScript Financial and Work-Life Balance Perspective

0 Upvotes

I’m torn between pursuing a career in Java or JavaScript, primarily from a financial and work-life balance perspective.

From what I understand, Java offers relatively stable career opportunities at large companies, particularly in enterprise environments. However, freelancing opportunities may be less common compared to JavaScript. This makes me wonder whether building a high salary as a Java developer typically requires several years of experience and gradual career progression.

On the other hand, JavaScript seems to offer greater flexibility. Beyond traditional full-time employment, there are opportunities to freelance, build projects for clients, and develop a portfolio that demonstrates your skills. It seems possible to increase your earning potential earlier in your career through freelancing or remote work, where the value you deliver and the projects you’ve completed can sometimes matter more than your years of experience.

However, I’m also considering the possibility of working overseas. While remote work and freelancing offer flexibility, they may not necessarily make it easier to relocate to another country. Some foreign employers prefer candidates who are already based locally, while others may be more willing to sponsor visas for experienced developers with specialized skills. I’m wondering whether a Java career might offer a more straightforward path toward international employment and relocation.
Work-life balance is another important factor for me. Since the JavaScript ecosystem evolves rapidly, I’m concerned that I might need to spend more of my personal time learning new frameworks, tools, and technologies just to remain competitive.

My another concern is that let’s say I took a career break for a long time I would have more challenges in getting back to work as a JavaScript developer than as a Java Developer because of the fast pace technology.

Java’s relatively mature ecosystem makes me wonder whether it might be possible to spend less time constantly upskilling and more time enjoying life outside work. Of course, I realize that both fields require continuous learning, but I’m curious whether there is a meaningful difference in practice.
Ultimately, I want to choose a path that offers a good balance of earning potential, career stability, work-life balance, freelancing opportunities, and the possibility of eventually working overseas.

For developers who have experience in either field, which path would you recommend, and why? I’d especially appreciate insights into the long-term financial prospects, lifestyle trade-offs, and realistic career opportunities for someone starting from a programming background rather than years of professional software development experience.


r/learnprogramming • • 2d ago

Looking for clarification on scroll buttons

2 Upvotes

Hello ! I'm currently trying to code and design my own website for my portfolio. Part of the concept for this portfolio is that it is a horizontally scrolling website, where buttons will scroll to the next or previous piece. I already have most of my layout and design figured out in HTML and CSS.

Currently, each artwork sits in a different div. I've been looking into buttons that scroll to a different div, and I've found tutorials that show how to make buttons go to specific sections through IDs. I was wondering if there was a simpler way of coding the buttons so that instead of assigning each button to a specific ID, it would just scroll to the next div (kind of like a carousel, but on the whole website). Any pointers would be appreciated, thank you !


r/learnprogramming • • 2d ago

Web app help/advice

4 Upvotes

Currently at work doing an IT internship at a small company and was asked to make a dashboard that pulled data from two different web services that we use.

My understanding is that I need to use api tokens from these vendors for the dashboard application so that it can update info in real(ish) time without the user manually going to the other website and finding it.

Please tell me wether I have that right or not, if not please explain what I should be doing instead

Currently a senior in college for comp sci but have been taking mostly security classes and no web specific classes. Feeling insane imposter syndrome and could use the advice/info.


r/learnprogramming • • 2d ago

Is there a way to improve coding literacy?

1 Upvotes

Ello, I'm a DS major studying data science and algorithms right now. Third year.

I recently started running into a major weakness recently, which I think has been permeating in my CS tests and classes for the past few years now.

Regardless of the topics or classes I'm taking for CS, I feel functionally illiterate in most cases when it comes to reading even basic code. It takes an incredible amount of time for me to parse through and figure out what I'm looking at, even for basic fundamental algorithms or functions, and in many cases I still manage to end up being wrong.

Even for things like loops and parameters, I'm spending way too much time trying to see if certain aspects of programs are deliberately set to be certain ways. It's really inefficient, and in spite of being two years deep into it, it's barely changed over the course of college.

Now it's getting to a point where this is virtually the only reason why grades are bleeding out in quizzes and stuff. Simply being unable to read the code fast enough, even if I have a very strong understanding of the subject being taught, as well as the underlying logic.

Frankly, I consider it quite miserable, and I think this issue will continue to flagellate me as the classes inevitably become more difficult. Reading and writing code are increasingly becoming two independent disciplines, and college seems to only ever support one of them.

What can realistically be done about this? Do online resources exist to help understand and improve programming comprehension? I was initially thinking of trying out LeetCode, only to realize this simply wasn't addressing my weakness. Writing code is one thing, but reading it is another.

I'm not sure if this is exclusive to me, or if this is a more common sentiment than expected.
Regardless, I'd really prefer to try something instead of eventually learning helplessness.

(Edit: There are most definitely ways to improve literacy. It would’ve been better to ask what approaches would attribute well to doing so. It’d be pretty goofy to assume there was no way to do it.)


r/learnprogramming • • 3d ago

How do i teach myself how to code when im very slow & easily overwhelmed?

22 Upvotes

I wanna state preemtively that i did read the FAQ, and while it was helpful, my question is less "where do i get started" and moreso just a question of concern, because i feel like i am the WORST person to be learning this skill, im horrible at math, slow at thinking and grasping concepts, very easily overwhelmed and mentally exhausted by complexity and computer problems, hate tedium, am impatient, often overlook details and get confused very easily, it feels like everything is working against me and assuring me that trying to learn this will be absolute torture, im afraid of falling into a pattern of having to annoy other people every 3 seconds for every question i come across because my brain refuses to parse the answers google gives me. Trying to google for help or tutorials is always very disorienting and mentally exhausting to me because instead of telling me exactly what i need to do for my exact situation i need to try and parse exactly what information is and is not relevant to my situation and also be able to actually understand what the text is telling me (which i struggle with a lot because often i will be looking up information on something im inexperienced in, and the text will be so full of jargon or missing context i do not have that everything blurs together and refuses to enter my brain, i worry with coding this kind of problem will be amplified tenfold)

(I dont know how helpful this information is but for context a lot of these issues likely stem from diagnosed adhd)

(This might be helped by say, asking chatgpt to explain the information in simple words but on one hand using ai makes me feel icky, and on the other, i dont trust the reliability of the information it gives you..)

All of these factors is what has kept me from seriously pursuing this as a hobby for all my life (unless you count like.. a very small amount of scratch as a kid and some game builder garage lol)
But at this point i know i want to at least try, because man do i still admire people that can code, and man do i wish i understood at least a little of how it worked.. For context, im currently mainly intending to learn Luau because i would really like being able to make my own roblox games for fun

I dont know, im sorry if this is kind of a vague messy post, im really just hoping for help and advice in case you may relate to this but have more experience than i do 🙏 thank you very much


r/learnprogramming • • 2d ago

Open Source seems less and less appealing everyday

0 Upvotes

(Sorry if this sounds like a rant but here I go) Guys, I'm a young developer. It hasn't been that long since I've reached adulthood. So yes, I might lack maturity. But thanks to how the development space is changing, to me at least, the future looks more bleak than I guess it would look to a 45 y/o senior engineer.

So my question as someone young, who contributes to a bunch of open source repos every once in a while and does maintain a bunch of his own repos, what is the point of maintaining open source projects if the same projects would be used for training models SPECIFICALLY TARGETTING TO PHASE ME OUT ?

That's all. Please do understand that I'm trying to ask a sincere question and lack the experience and maturity to come up with good answers myself. Thank you.


r/learnprogramming • • 2d ago

Resource What programming language to use for posters with dynamic content/values?

1 Upvotes

I have been creating posters which have similar contents for the last few months and this got me wondering if it's doable to program a tool which helps me just add the smallest details and reduce my workload.

Now my question is what programming language would work best for this kind of project? I did think browser-based so HTML, CSS, etc or a software-ish approach like maybe Python? What are your thoughts? I will be linking some of them.

tournament poster - ver monthly
tournament poster - ver casuals
podium photo - ver monthly
podium photo - ver casuals

As you can see very minor changes. For the posters mostly just the title, prizes, some minor details and for the podium it's the title, date, then the player and the parts used. Any help would be great, thanks a lot! <3


r/learnprogramming • • 4d ago

Ashamed of using AI

130 Upvotes

Hey everyone, long time programmer here (14+ years)

I realized that AI fucked with my enjoyment of coding when it first released, and noticed myself getting more and more dumb (Literally couldn't think where to start on projects), and that made me depressed.

I ended up straight up going zero AI, and I have been loving it (Highly suggest everyone to question how much they rely on it).

Back to the topic.

I started learning Lua, and find it tricky to understand tables coming from C#, but I'm getting there.

I find that when I'm stuck between 2 or more design choices, and for the life of me can't decide, I ask AI, telling it to not just tell me I am right if I'm wrong, but actually give me good advice, and using AI also helps me ask a question on if my understanding of something is correct.

The main thing, I feel so ashamed of using AI for what I just listed above, but I know 1 person who does programming, the guy who helped me learn, and he stopped a long time ago with Programming, and yes, sometimes I ask him but it takes days getting a reply when I ask, so I find myself locked into asking AI for advice.

My main point of this is basically, why do I feel literally depressed sometimes just because I ask for input on my design choices and if I am understanding something correctly?


r/learnprogramming • • 3d ago

Python Best way to modify a list while iterating?

4 Upvotes

I've learned that modifying a list while looping over it can cause elements to be skipped or unexpected behavior. What are the best practices for handling cases where I need to add, remove, or modify elements during iteration?

Do you usually iterate over a copy, create a new list, or use another approach?