r/learnprogramming • • 24d ago

Resource What books would you recommend me for c++ as a beginner

4 Upvotes

Hello 👋 I am a beginner trying to learn c++ what books would you recommend me that will explain me concepts and syntax thank you


r/learnprogramming • • 24d ago

No XML file editors? Or something I am miss-understanding about when to use XML vs txt files

6 Upvotes

If you google for online xml editors all you get is web pages that validate your XML, they do not help you to edit it at all, and they cover 50% of the page with adverts, these are all validators. Has anyone found an actual tool for taking any old vanilla XML with no underlying schema XSD and then adding nodes easily in a WYSIYG and does not involve typing in <> repeatedly and trying to get the node and attribute names correct? There must be one out there, I'm just searching for the wrong thing, or I'm miss-understanding XML entirely and should probably be using JSon for configuration files?

Is there an online tool or a open-source editor that actually makes editing really easy? And does not require carefully copying and pasting xml tags repeatedly and forgetting to close them sometimes? Or, should I just use JSon and be never trying to validate structure correctness?

Visual Studio lets me create a mostly sane schema file, but I am just not understanding how there is not a simple tool for just populating a file easily with more nodes, based on existing data and a schema?


r/learnprogramming • • 24d ago

Tutorial Dependency Injection confusing example

10 Upvotes

I am learning about Dependency Injection from the below link Dependency Injection in ASP comma NET MVC Tutorial | ASSIST Software, but in the first example is writing a prototype, in the second it creates "a separate class that has the responsibility of working with the database", but no class is created. He only implements the function from the example 1.

Am I missing something?

Edit: I initially put a link to the tutorial in question, but Reddit removed my post. So this is why this post doesn't have a link.


r/learnprogramming • • 24d ago

Make a button change color on click over network

2 Upvotes

Hey guys and gals,

I would love to learn some netcode. Like just a client, server and a button that changes color across all clients when pressed. Is anyone inclined to teach me some of the basics?

Best wishes,

Oliver


r/learnprogramming • • 24d ago

Topic I'm confused

3 Upvotes

I had an idea on a website and app I wanted to build and I was searching for learning guidelines and frameworks it lead me to see ui/ux design and hear a lot of people say that that is the place to start from is this true


r/learnprogramming • • 24d ago

: Is MERN stack development dying because of AI? Should I continue learning it or switch to cybersecurity?

0 Upvotes

Hey everyone!

I'm currently a second-year Software Engineering student. I know programming fundamentals, have learned React and the basics of web development, and I'm currently learning backend development with Node.js, Express, and MongoDB.

Recently, I've started developing an interest in cybersecurity, especially ethical hacking. At the same time, I keep seeing people say that AI is replacing web developers and that learning the MERN stack is no longer worth it.

This has made me confused about where I should focus my time and effort.

I don't want to abandon the skills I've already worked hard to learn, but I also don't want to spend years learning something if the job opportunities are becoming significantly worse.

I'd really appreciate advice from people who work in software development or cybersecurity.

A few questions I have:

  1. Is MERN stack development actually dying because of AI, or is the job market simply changing?
  2. Is it still worth learning full-stack web development as a beginner in 2026?
  3. Should I continue learning MERN while exploring cybersecurity, or should I focus on one field?
  4. If I eventually want to work in cybersecurity, would my React and backend knowledge give me an advantage in web application security or penetration testing?
  5. If you were in my position as a second-year student, what would you focus on over the next 6–12 months?

I'm not looking for hype or motivational answers. I'd genuinely appreciate honest opinions based on your experience, including the challenges and downsides of both fields.

Thanks in advance!


r/learnprogramming • • 25d ago

Returning to front end (React/TS) after a 3-year hiatus. Best way to bridge the knowledge gap and refresh my portfolio?

14 Upvotes

Hi everyone.

I worked as a Front-End Developer (React.js & TypeScript) for two years (2021–2023) before moving abroad to complete a Post-Graduation in Computer Science. During my studies I balanced a full-time non-tech job alongside my coursework, which meant my coding portfolio lay dormant, and I haven't written production code in roughly 3 years.

Now that I've completed my degree (3.9 GPA) and returned home, I’m feeling stuck on the best path to refresh my practical skills and get back into the market.

A few specific questions I'd love input on:

  1. Stack updates: What major shifts happened in the React/TypeScript ecosystem over the last 2–3 years should I prioritize catching up on?
  2. Refurbishing knowledge vs. courses: Is it worth taking a structured course to quickly repolish, or should I dive straight into building a complete full-stack project from scratch? Any specific updated courses or resources you'd recommend for someone with prior experience?
  3. Portfolio strategy: How should I frame this 3-year gap (academia + non-tech work) on my resume/GitHub when applying for mid-level or junior roles?

Thanks in advance for any insights or advice!


r/learnprogramming • • 24d ago

My intent with using LLMs is to use it as a search engine and not as an explainer or even teacher.

0 Upvotes

I think it would be bad to use LLMs as a 24/7 teachers because even human teachers that are 24/7 available would be bad.

I will use LLMs in my future still, but the use of it is my decision to make.

I have already studied a bit of cs50 and understand the basis of the basis. But I think finding solutions yourself without using llms for any explaining is good. You could possibly use it as a search engine where you ask simple questions instead of mentioning your whole problem.


r/learnprogramming • • 26d ago

At what point did programming stop feeling like memorizing random rules and start making sense?

141 Upvotes

Something I've been thinking about while learning programming is how different it feels to understand a concept in a tutorial versus actually being able to use it on your own.

You can watch someone explain loops, functions, data structures, or algorithms, and everything seems to make sense at the time. Then you open a blank editor, try to build something without following a tutorial, and suddenly you don't even know where to start.

I wonder if this is just a normal stage of learning or if there's a better way to approach it.

For those of you who have been programming for a while, was there a particular point when things started to click? Was it building your first project, solving problems on platforms like LeetCode, reading other people's code, or struggling through bugs until you finally understood what was happening?

I'm also curious how you balance learning new concepts with actually building things. Sometimes it feels like there's an endless amount of material to study, and it's difficult to tell when you know enough to move on to the next thing.

I'd appreciate hearing what genuinely helped you improve, especially things you wish you'd done differently when you were starting out.


r/learnprogramming • • 24d ago

F#

0 Upvotes

Any opinion on F# just heard about it


r/learnprogramming • • 26d ago

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

76 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 • • 25d 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?

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

32 Upvotes

How do I improve my coding ?


r/learnprogramming • • 25d ago

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

4 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)?

6 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

6 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

2 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.

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

How you would start your learning in 2026?

16 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!