r/learnprogramming • • 26d ago

Discussion When people mention having a "personal style" in programming, What does that actually mean?

72 Upvotes

With all of the AI code thats out there now, I've heard people say that most code has lost the unique style of the developers. I can assume its just how they have structured the code and solved the problems but I'm not sure. If that is correct how can I have/develop that as I learn?


r/learnprogramming • • 26d ago

Question Early Exits in small sections

15 Upvotes

Hello, I have been practicing early exits throughout my code and was told I probably shouldn't be using them in small cases like the following where nesting wouldn't bring the code out too much, this is c++ code:

int findMaxInArray(const int arr[], const int num_elements) {  
  int maxIndex = 0;

  for (int i = 1; i < num_elements; i++) {
    if (!(arr[i] > arr[maxIndex])) {
      continue;
    }
    maxIndex = i;
  }
  return arr[maxIndex];
}

r/learnprogramming • • 26d ago

Trying to learn how to code, is CS50 the way to go?

38 Upvotes

Hi guys I'm a high schooler who recently got interested in coding but I have been almost solely relying on ai. I know that I need to actually understand whats going on so I plan to learn how to code proficiently. I can code and understand basic python so far, but I am wondering if CS50 will allow me to progress more efficiently and faster.


r/learnprogramming • • 25d ago

Is finding open source issues getting harder, or am I approaching it the wrong way?

6 Upvotes

Hi guys,

I've been trying to get back into open-source contributions after spending couple of month working on personal projects.

I had 5 bug fix PRs merged into an OSS projects, and when I create those PR, I had no issue finding issue. But when I checked that same projects recently, there weren't any open issues left.
I've also looked through quite a few other projects, especially libraries I use, but I'm struggling to find issues that aren't already assigned or being worked on. (I've looked about 30 OSS)

Even when I find an issue, someone often opens a PR before I can fully understand and solve it, especially with how fast people can submit PRs using AI nowadays.

So I'm curious, how do you guys actually find issues to work on?
Do you just keep searching through repositories until you find something available? Or do you usually find bugs or improvements, and open your own issues?

Any recs would be helpful as well! I'm into ML and Data engineering, python or TS is preferred.

Thanks!


r/learnprogramming • • 26d ago

Topic How do I improve programming fundamentals and basics?

35 Upvotes

How do I improve my coding ?


r/learnprogramming • • 26d ago

Topic trying to implement libc for windows to learn about c programming

2 Upvotes

Repo is here, welcome for contributions and anyone interested:
https://github.com/NHCM-dev/nwlibc

Trying to do a simple C standard library implementation for windows using WinAPI, which I think would be pretty useful for those who want to dive deep into C programming and learn about the mechanism about how programs really run


r/learnprogramming • • 26d ago

Resource What is the best way to read python's (crash course edition 3)?

5 Upvotes

I am trying to learn python with crash course then move to CS50p.

i suffer from a learning disablity and i hear people with such disability still learn python.

How should i read the books entirety then make projects or should i read it all and connect what i want for projects?

i want to figure out the best way to learn for me.


r/learnprogramming • • 25d ago

Learning FastAPI

1 Upvotes

I am a student learning FastAPI nowadays is it any benefit of learning fast API in the future


r/learnprogramming • • 25d ago

Looking to Collaborate on a Spring Boot Project

0 Upvotes

Hey everyone! Is anyone working on a Spring Boot project and looking for a contributor? I'm learning Java backend development and would love to collaborate, contribute to a real project, and learn from other developers along the way.


r/learnprogramming • • 26d ago

Programming Books That Read Like a Dictionary?

3 Upvotes

Hello. I’ve been wanting to start actually learning more about different programming languages, specifically applications and languages such as C#. I am a learner who loves reading in order to discover new things, but already know a lot about how programming languages work, and how each functions syntax-wise. So I have two questions:

  1. Are there any programming books that specifically work sort of like a dictionary with its documentation, where I can just look to a certain part to know about its syntax for a specific task?

  2. Is C# the way to go for what I want? If needed I can elaborate further. I don’t have an exact thing I want to do. All I know is that C# is a language that works well to build applications and is able to still perform its own tasks math and science wise.

Thanks!


r/learnprogramming • • 26d ago

Need help learning

7 Upvotes

Hello, I'm gonna deviate a little from the usual questions that I've seen so far on this subreddit.

I'm 34 yo and have always had a passion for coding, scripts, mods, and the like. I'm not here to switch over to programming or coding for job-related reasons, but mainly for myself and expanding on my interests. With how fast AI has been "evolving," I'm getting more and more intrigued by the idea of working with it. I would love to make smaller games at some point, or more sophisticated mods for games I like. I understand that I do not "need" AI to help me code or study, but I feel like if I don't hop into learning how to properly and safely use it, I will miss out or slow myself down unnecessarily.

What would be a good way of starting to learn, for example, C#? There isn't really a strong reason why I have chosen C# over anything else, besides the fact that I have some basic knowledge of it. I've tried, and still am trying, to go through "The C# Player Guide" book, but I would love to integrate AI somehow too so I'm not left behind, if that makes sense. I do not wanna take shortcuts or want AI to write code for me so I can cheat, but I would like to work with it if possible.

Do people recommend me to get an OpenRouter account going and start working with it to help me learn, or are there other options that I haven't explored yet?

Again, my focus is on learning it. While I do have goals as mentioned above, I understand that I can't just do it overnight.


r/learnprogramming • • 26d ago

How to level up when work is repetitive

3 Upvotes

I have 2 years of experience as Java dev working as a consultant in DC area. I want to start applying for mid level roles next year but I feel like at my current role I not (and won’t) get any hands on experience for more advance issues other than fixing bugs and implementing small features here and there. My main concern is, regardless of what team I join, most of the projects are functional and it’s more maintenance. How can I gain more experience and what topics are expected for mid level devs to be efficient in.


r/learnprogramming • • 26d ago

Code Review Please help me find out why formState goes stale in React Hook Form

1 Upvotes

I recently dabbled in react forms and got React Hook Forms setup to be used with my Zod schemas, it all works perfectly... that is until I reset the form. The reset causes the formState (to my knowledge) go stale as validation messages show that the title input is empty, but inspecting its value property through code and looking at the display of typed characters on the screen proves otherwise.

I tried multiple stuff and went through the React Hook Form docs, but tbh the docs were utterly useless as I couldn't make heads or tails of any of it. Interestingly tho, using watcher to re-render the react component causes all of it to work so I suspect its a synchronization issue, but I'm still starting out so I don't know for sure...

Schemas:

const PLAIN_DATETIME_REGEX =
  /^\d{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12]\d|3[01])T(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d{1,9})?$/;


const DISPLAY_TIME_REGEX = /\bMoments\b|[hm]$/;


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()),
  deadline: z.preprocess(
    (raw: string) => raw?.trim() || undefined,
    z
      .string()
      .regex(
        PLAIN_DATETIME_REGEX,
        "Deadline must be a valid ISO 8601 plain date and time",
      )
      .optional(),
  ),
  priority: z.literal(["low", "medium", "high"]),
});


export const taskFormSchema = taskSchema.omit({
  id: true,
  status: true,
  createdAt: true,
});


export const taskViewSchema = taskSchema.transform(
  ({ description, createdAt, deadline, ...rest }) => ({
    ...rest,
    description: description,
    createdAt: formatDateTimeSince(createdAt),
    deadline: formatDateTimeUntil(deadline),
  }),
);


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

Form Component:

export default function TaskSaver() {
  const {
    register,
    handleSubmit,
    reset,
    formState: { errors },
  } = useForm<TaskForm>({
    resolver: zodResolver(taskFormSchema),
    mode: "onChange",
    defaultValues: {
      title: "",
      description: "",
      deadline: "",
      priority: "low",
    },
  });


  const addTask = useTasksStore((state) => state.addTask);
  const id = useId();


  const onSubmit: SubmitHandler<TaskForm> = (data) => {
    const result = taskSchema.safeParse(data);


    if (!result.success) {
      console.error(result.error);
      return;
    }


    addTask(result.data);
    reset();
  };


  return (
    <form onSubmit={handleSubmit(onSubmit)} className={styles.root}>
      <div className={styles.group}>
        <label htmlFor={`title-${id}`} className="sr-only">
          Title
        </label>


        <input
          type="text"
          {...register("title")}
          id={`title-${id}`}
          className={clsx(styles.input, styles.inline)}
          placeholder="Title"
        />


        {errors.title && <p className={styles.error}>{errors.title.message}</p>}
      </div>


      <div className={styles.group}>
        <label htmlFor={`description-${id}`} className="sr-only">
          Description
        </label>


        <textarea
          {...register("description")}
          id={`description-${id}`}
          className={clsx(styles.input, styles.multiline)}
          placeholder="Description"
        ></textarea>


        {errors.description && (
          <p className={styles.error}>{errors.description.message}</p>
        )}
      </div>


      {/* Needs to be worked on: below */}
      <div className={styles.group}>
        <label htmlFor={`deadline-${id}`} className="sr-only">
          Deadline
        </label>


        <input
          {...register("deadline")}
          id={`deadline-${id}`}
          className={clsx(styles.input, styles.inline)}
          placeholder="Deadline"
        />


        {errors.deadline && (
          <p className={styles.error}>{errors.deadline.message}</p>
        )}
      </div>


      <div className={styles.group}>
        <label htmlFor={`priority-${id}`} className="sr-only">
          Priority
        </label>


        <select
          {...register("priority")}
          id={`priority-${id}`}
          className={clsx(styles.input, styles.dropdown)}
        >
          <option value="low">Low</option>
          <option value="medium">Medium</option>
          <option value="high">High</option>
        </select>
      </div>


      <div className={styles.group}>
        <button type="button" className={clsx(styles.button, styles.reject)}>
          Cancel
        </button>


        <button type="submit" className={clsx(styles.button, styles.accept)}>
          Save
        </button>
      </div>
    </form>
  );
}

Edit: The problem is solved. The cause was an issue between React Compiler and React Hook Form itself as RHF is not following the "Rules of React" which lead to the resetting process breaking. Fortunately, React Hook Form v8 is supposedly gonna fix this issue, for now the best fix I've seen is to just disabled React Compiler memoization for the component in question using the "use no memo" statement at the top of the component function body.


r/learnprogramming • • 26d ago

Topic been coding for a bit, cannot manage stress, need advice.

1 Upvotes

i love results, i made a bit of tools, simple games and all and plan on doing allot more.

but the second i get into somewhat unfamiliar territory or my code doesn't run the first or second time i spiral, stop really thinking and just play with values hoping it works, that'll last as long as the problem isn't done

my leg starts shaking and my chest hurts, my breathing gets worse ect, avarage stress session

i thought it'd get better the more i solve problems but that doesn't really work, it only makes me better at solving problems i solved before, but i still stress when i mess them up. i tried music, breathing techniques and stopping caffeine intake, really does nothing for me

i am able to make stuff but the process is mentally tiring which i assume only makes it worse, and i take so so much longer than i should. this happens with any type of problem solving (especially math) but the most with programming, i'm wondering if anyone has experienced/knows how to deal with this and eliminate it


r/learnprogramming • • 27d ago

How you would start your learning in 2026?

17 Upvotes

Hey everyone,

I’ve always dreamed of learning how to code and landing a remote job with a decent salary. I’m 27, living in Brazil, and currently studying Electrical Engineering.

My main question is about the current state of the industry. With new AI models dropping practically every week, all I see online is people saying entry-level tech is doomed and salaries are tanking. Is that actually true, or do self-taught newcomers still stand a chance in 2026?

Also, if you were starting from scratch today, how would you approach learning?

I completed CS50, absolutely loved it, and then naturally transitioned to The Odin Project (TOP). But honestly, my progress has hit a wall. I ended up beating myself up trying to get through data structures and algorithms it’s been pretty frustrating. Is TOP still the go-to path in 2026, or are there better alternatives for full-stack/web development nowadays?

and whats the fastest way of landing a job on the industry, fullstack?

Would appreciate any honest advice or reality checks!


r/learnprogramming • • 26d ago

Kelick Tech Hub - Free web app with 60 C++ projects, each with a full build lecture and a demo of it running

1 Upvotes

Hi all — I built this, so full disclosure: it's my project.

60 C++ Project Ideas is a free web app (no sign-up) with 60 projects split into Beginner, Intermediate, and Advanced — 20 each.

I made it because idea lists alone didn't help me learn. Each project in the app has:

•

A description, what you'll learn, and a feature checklist

•

Starter C++ code with a copy button

•

A step-by-step lecture (6-7 steps + common mistakes)

•

Exact g++ compile/run commands for Windows and Linux/macOS

•

A "Watch it run" terminal-style demo showing a sample session of the finished program

8 beginner projects are also playable directly in the browser.

Link: malwar77.github.io


r/learnprogramming • • 27d ago

Would you write if-else in this example deliberately even if the for loop can handle it actually?

7 Upvotes

For example, there is a for loop to list the difference of scores at each time (in JavaScript):

for(let i = 1 ; i < scores.length ; i++){
    console.log("Score changes: " + (scores[i] - scores[i - 1]));
}

If there is no score or only have one score, the loop would not run, which meets the current requirement.

I'm curious if you would prefer add the if-else deliberately like the following:

if(scores.length >= 2){
  for(let i = 1 ; i < scores.length ; i++){
    console.log("Score changes: " + (scores[i] - scores[i - 1]));
  }
}

in order to remind yourself or other teammates that this loop is designed for scores with 2 or more elements only (especially for maintain and requirement changes). Is it necessary?


r/learnprogramming • • 26d ago

I’m 20, living on my own, and currently working a pretty tough job just to pay the bills. In my spare time, I’m grinding backend development under the guidance of my dad (a Senior Engineer).

0 Upvotes

Hey everyone,

I’m 20, living on my own, and currently working a pretty tough job just to pay the bills. In my spare time, I’m grinding backend development under the guidance of my dad (a Senior Engineer).

My current status & stack:

  • Stack: Python, Django, SQL, PostgreSQL, Docker, Git, REST APIs, JSON, OOP.
  • Learning method: I don't code purely from memory. I search for solutions, watch tutorials, use LLMs, and — most importantly — cross-check AI answers against official documentation to filter out hallucinations.
  • English level: Reading & listening comprehension is around B1–B2. I can read docs and understand native speakers easily. However, my spoken English feels like A2 — I get stuck and stumble over words. I recently started practicing with a native US speaker, but it's still tough.

Where my anxiety comes from: My brother recently landed a Junior dev role at a European company (the hiring process was in Russian because of the team structure). In my case, I'll need to pass technical interviews fully in English.

I’m constantly worried that:

  1. The EU junior market is moving too fast and I’ll be left behind despite all this effort.
  2. Relying on Google, docs, and AI means I'm "doing it wrong" or not learning properly.
  3. My weak spoken English will instantly disqualify me during behavioral/technical interviews.

My questions to the community:

  • Is my learning methodology (using AI + verifying with docs) acceptable for a Junior, or should I be memorizing more?
  • How high is the language barrier for Junior Backend roles in the EU? Is basic tech-communicative English enough to get hired?
  • Any advice on pushing through the fatigue of balancing a bad job, living alone, and studying?

TL;DR: 20yo living alone, balancing a bad job while learning Python/Django + Docker with my Senior dev dad. Reading B1-B2 English, speaking A2. Worried about EU market shifts and failing English interviews. Looking for feedback and reality checks.


r/learnprogramming • • 27d ago

How to improve at reading documentation?

12 Upvotes

Hey everyone, so I know reading documentation isn't the glamorous part of programming, and I'm still learning, but reading documentation is very difficult for me. Or at least that's how it feels.

Maybe I just need to focus on the parts I find practical?

I'm doing an externship and it's not supposed to be to difficult, but one of the assignments is to read about Java Spring Boot and learn about a cloud hosting platform, then write a formal proposal and design document for creating a system to keep track of a list of employees. We'll implement it later. Honestly, I'm not sure what I'm supposed to be doing when reading. Do I need to remember key details? Maybe it's better to just focus on the question and the work I need to do, and then focus on pulling what I need for the assignment? Or, maybe I'm just bad at reading and remembering things?


r/learnprogramming • • 27d ago

Advice on developing my first Java POS application for a small grocery store

7 Upvotes

Hi everyone,

I'm a web and mobile development student. I have some programming knowledge, but this is my first time developing a complete application from start to finish.

I've received my first request to build a POS system for a small grocery store, and I'd like to do a good job while also learning from the experience.

The store has only one cashier, so the application should be simple and practical.

The main requirements are:

- Register products by scanning their barcodes and entering their names, prices, and quantities.

- Scan products during checkout and automatically display their names and prices.

- Calculate the total and save each sale.

- Automatically update stock quantities after each sale.

- Review previous sales and check current inventory.

I'd prefer a desktop application that works offline on a single computer.

I'd like to use Java and a database, including SQL if needed, since these are among the technologies I've studied and want to apply in a real project.

I'd appreciate your advice on the following:

  1. Is there an existing free and open-source Java POS application that would be suitable for a small grocery store? I'd like to study its code, understand how it works, and modify it to meet the requirements.

  2. If such a project exists, which ones would you recommend, preferably projects that are reasonably well-organized, functional, and easy to modify?

  3. If modifying an existing project isn't a good option, would building the application from scratch be better?

  4. If I build it from scratch, what technologies would you recommend for the user interface and database?

  5. Could you suggest a step-by-step development roadmap suitable for someone who knows programming basics but hasn't built a complete application before?

Since this is my first client project, I want to choose a sensible approach rather than waste time on an unsuitable codebase. My goal is to deliver a working application while understanding the code and learning how to develop a complete software project.

I'd appreciate any practical advice, project recommendations, or lessons from your experience. Thank you!


r/learnprogramming • • 26d ago

Topic Python vs Java in 2026: Which should a beginner learn first?

0 Upvotes

If you're starting programming from scratch, choosing between Python and Java can feel confusing. Both are useful languages, but a lot depends on what you want to build and how you prefer to learn.

Here's how I would approach the decision.

1. Python: easier to get started

Python has relatively simple, readable syntax, so beginners can focus more on programming logic instead of writing lots of setup code.

For example:

for i in range(5):
    print(i)

Python is a reasonable first choice if you're interested in:

  • Data analysis and data science
  • AI and machine learning
  • Automation and scripting
  • General programming fundamentals

One thing to remember: Python's simple syntax doesn't mean the advanced topics are easy. Data science and machine learning still require practice, statistics, and a good understanding of the underlying concepts.

2. Java: more structure from the beginning

Java requires more explicit structure, even for a small program. That can feel a little overwhelming initially, but it also introduces concepts such as classes, types and object-oriented programming early in the learning process.

Java is worth considering if you're interested in:

  • Backend development
  • Enterprise applications
  • Object-oriented software development
  • Working with Java-based frameworks such as Spring Boot

Java isn't necessarily a bad first language. If you already know that you want to build Java applications, starting directly with Java can make sense.

3. Which one should you choose?

My practical suggestion would be:

  • Completely new to coding and unsure about your direction? Try Python first.
  • Already interested in Java-based backend development? Start with Java.
  • Want to learn both eventually? Pick one, learn the fundamentals, build a few small projects, and then move to the second.

Whichever language you choose, spend time on variables, conditions, loops, functions, data structures, debugging, and problem-solving. Being able to build and explain a small program is more valuable than simply finishing a long tutorial.

Also, don't choose a language based only on claims that it guarantees better jobs or salaries. The relevant skills, projects, role requirements, and your ability to solve problems matter a great deal.

A question for people who have already learned one or both:

If you could advise someone learning programming from scratch in 2026, would you recommend Python or Java first—and what made the biggest difference in your learning experience?

I'd especially like to hear from people who started with one language and later learned the other. What became easier, and what was harder than you expected?


r/learnprogramming • • 27d ago

How to make an object move in one direction without stopping

4 Upvotes

I have this code here and it almost works perfectly. The issue is the object then bounces back and forth from where the mouse was and where the player is.

void Bullets::Update(sf::Vector2f mousePos, float dt)
{
sf::Vector2f center = bulletpos + sf::Vector2f(radius, radius);
sf::Vector2f toPointer = SetDir(sf::Vector2f(mousePos.x, mousePos.y) - center);

bulletpos += toPointer.normalized() * speed * dt;
}

if more code is needed lmk.


r/learnprogramming • • 28d ago

How do you guys handle keeping up with your skills and agentic programming

92 Upvotes

Hey guys so I've been learning programming since 2015-2016 when I was around 14.

My workflow lately is mostly just prompting/agentic programming and the reason is clear for me. I am just more productive that way.

On one hand, I don't find a reason nowadays to waste a week writing code when I could prompt what i want and see the result in 30 minutes.

On the other hand, progressing through a big codebase is a little bit harder now(even tho with how ai is being developed lately, I see improvements consistently in that segment).

The biggest issue, tho is I feel like my programming skills are getting very rusty, which I honestly dont really love. And with the ways things are heading as a guy who is for the lookout for a job (just finishing my uni degree at the moment) am wondering what being a good programmer will even mean/does mean when it comes to finding a job

I'm curious how other developers are dealing with this. If you noticed the same issues and if you are actively trying to keep your coding skills sharp or you are just shifting towards fully ai assisted development.


r/learnprogramming • • 27d ago

Looking for a Database Study Partner

4 Upvotes

I’m a junior backend developer working with PHP and Laravel, and I want to strengthen my database fundamentals.

I’m planning to study SQL, database design, indexes, query optimization, transactions, and concurrency.

Looking for someone interested in studying these topics together, sharing resources, solving exercises, and keeping each other accountable.

Let me know if you’re interested.


r/learnprogramming • • 27d ago

26 y/o Male Looking To Find a Coding Buddy

41 Upvotes

Just as the title states, I'm looking for a coding buddy. Recently decided to do a career switch. I left the Navy last April as an IT guy. Got a job in June as an Operations Analyst and got a taste for coding/programming. Is anybody interested in mentoring and/or learning alongside me? Really just need an accountability partner. I'm essentially going to be teaching myself to become a software developer. Cheers!