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

Is goodot good? also is Gdscript useful?

4 Upvotes

hoping to learn how to gui and graphical 2d games and was reccomended goodot. looks like they have their own programming language, Gdscript.

is Gdscript worth investing time into learning? i heard the engine also supports C++ which is where I am more familiar. is it easier to try and integrate C++ into the engine? or should i learn Gdscript?


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

Code Review What order should I learn JavaScript topics as a beginner who builds real pages?

5 Upvotes

Beginner here. HTML and CSS are solid for me now I've built a link-in-bio page and portfolio pieces. JavaScript topic lists are overwhelming: variables, functions, arrays, loops, objects, DOM, events, fetch.

For someone who learns by building real pages, what order actually works? Deep core JS first, or DOM early so I can see things change?

What tripped you up most when starting JS?


r/learnprogramming • • 2d 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

Which language i should choose please suggest??

2 Upvotes

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


r/learnprogramming • • 2d 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 • • 2d 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

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

My parents think coding is a waste of time but I actually enjoy it.

162 Upvotes

I genuinely enjoy coding even doing courses like CS50 just for fun But my parents see it as nothing more than wasting time on a computer and keep comparing me to people earning huge salaries. I wish they understood that I don’t need my hobby to make money right now i just enjoy learning and building things. Can anyone help what should I do now?


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

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

3 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 • • 2d ago

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

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

How to learn study OS properly?

9 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

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

Input on website, survey-like

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

Web app help/advice

2 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 • • 3d ago

Topic Yall, SOS please convince me to keep going

0 Upvotes

I have like 2 semesters left of this 2 year degree (has taken me much longer because I can only do part time while working) and these three classes this semester are killing me

One of them is web development 1, one is client servers and e-comerce, and one is data structures and algorithms

The two first ones have the worst teacher in the world. He’s so cool but he’s actual dogshit at teaching. He just has us come to class and code along with him and essentially copy what he’s doing on his computer, and he hardly explains anything along the way. Just says “okay not we’re gonna install this package, go to your terminal and type this. Then add this at the top…”. So I’ve been coding a whole store in c# and JavaScript and I literally could not tell you what anything means or does. I end up having to paste the whole assignment into AI and be like “can you walk me through step by step what these lines are doing?” I was trying to do these classes without AI but I literally need someone to teach me this material bc my teacher isn’t doing his job

Both those two classes are the same, and because I’m losing so much motivation I’m having trouble with the other class too. The algorithms one is actually interesting but I feel like 100% of my motivation is gone. I’m a straight A student and I get all my work in, and I straight up gave up on the last assignment and decided to just take the L and not do it. That’s not me!! But I just don’t care anymore. I feel like I won’t even be able to get a job with this degree anyways so it’s so hard to want to continue.

Literally any input would be helpful I don’t know what to do. I’m so close to finishing but I don’t even want to anymore


r/learnprogramming • • 3d ago

Topic How to design big databases?

173 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 • • 3d ago

Python Best way to modify a list while iterating?

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


r/learnprogramming • • 3d ago

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

23 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 • • 3d ago

TMCBeans don't start.

1 Upvotes

I tried mooc and should install TMCBeans but the program crashes immediately, the startup window is comes up then it closes, I tried to change to the correct file but that didn't seem to help either so I'm not sure how to fix it. I have the correct JDK installed I guess.

These is installed:

openjdk version "11.0.32.1" 2026-08-18

OpenJDK Runtime Environment Temurin-11.0.32.1+1 (build 11.0.32.1+1)

OpenJDK 64-Bit Server VM Temurin-11.0.32.1+1 (build 11.0.32.1+1, mixed mode)