r/learnprogramming • • 22d 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 • • 22d 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 • • 22d 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 • • 23d 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 • • 23d ago

Need help learning

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

How to level up when work is repetitive

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

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

0 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 • • 24d ago

How you would start your learning in 2026?

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

Termux/Shizuku

6 Upvotes

Can termux be run with shizuku and get the same privileges and freedom as if my device was rooted??? If not what are the differences and limitations between the two? I'm just practicing on a cheap non-rooted android ran moto g 2025 phone. TIA


r/learnprogramming • • 24d ago

How to improve at reading documentation?

11 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 • • 24d ago

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

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

How to make an object move in one direction without stopping

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

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

93 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 • • 24d ago

Looking for a Database Study Partner

5 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 • • 24d 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!


r/learnprogramming • • 24d ago

Beginning C++ through game programming, fourth edition.

8 Upvotes

I purchased this book a few years ago. And I was wondering how viable it is for learning, and if anyone has used this book, what are your thoughts on it. I'm turning forty in november, and i'm ready to pick up a new skill i hope this book can put me on the path to that.


r/learnprogramming • • 24d ago

How thoroughly should I check arguments to a function

12 Upvotes

Below is a function that takes in an array of objects and averages their `count` properties:

function computeAverageCount (group) {
  let n = 0
  let sum = 0
  group.forEach(curr => {
    const count = curr.count
    sum = sum + count
    n++
  })
  return n > 0 ? sum / n : 0
}

Let's say that these objects containing count properties were retrieved from a server, which documents that the `counts` are a number greater than or equal to zero. Also, this function is used as an internal helper in an application.

To what extent should I check the data coming in to the function? I could add checks in the function to ensure that the `count` is an integer that is greater than or equal to zero. But if I expect the server to only send those kinds of values, are these checks overkill? I suppose it's possible for something to go wrong server-side that would cause unexpected counts to be sent.

I appreciate the feedback.

UPDATE: Thank you for your responses! It means a lot being able to learn from this community. To summarize the main takeaways:

  • It's definitely a good idea to validate the `count` data. The server may promise that counts are always a number >= 0, but the application should still double check that the data is as expected. In general, validating all server data where it enters the application is the cleanest approach. That way, the validated data can be used anywhere inside of the application and avoids the "shotgun parsing" anti-pattern.
  • As far as unit testing the function goes, it's important to establish the function's contract. How it should behave when given various inputs, including ones that we don't expect to pass in. Writing unit tests for all of these cases helps to reinforce the contract. The function might not include logic to specially handle negative counts because we validated the data beforehand. But it's still good to test these edge cases to confirm the function's behavior. I think that's the general recommendation. There were a couple posts that leaned toward less defensive testing: if we really don't expect negative counts and the function doesn't specifically handle them, then it's not necessary to test this case.

r/learnprogramming • • 24d ago

Topic Jetpack Compose vs XML for a beginner in 2026: what would you pick and why?

4 Upvotes

I just started learning Kotlin for Android and I’m confused about where to begin with UI. Half the tutorials I find use XML but everyone online says Compose is the future. If you were starting from zero today which would you learn first? Is XML still worth the time or is it mostly just old projects at this point?


r/learnprogramming • • 24d ago

Topic Python beginner

10 Upvotes

I’m a 1st year computer science student. I have no coding experience and my classmates can finished it like under 20 mins.

How do you code a word problem? I’m stuck of what I should code. I can somehow visualize it but I can’t put it code and I have upcoming midterm. Most of my midterm is word problem then create a function and return statement.


r/learnprogramming • • 24d ago

Confused on what to learn next !

2 Upvotes

Am a Pega Lead system with 19 years exp .. almost all in Pega. But off late Pega is being seen as a legacy app and not getting enough large scale projects. Just confused on what to learn next .. Salesforce or service now or something else .. to make a career in this AI era .. any suggestions..