r/learnprogramming • u/rsham004 • 29d ago
F#
Any opinion on F# just heard about it
r/learnprogramming • u/Admirable_Shallot752 • Oct 27 '26
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 • u/Lasagna6278 • Oct 28 '26
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 • u/Internal-Feature8006 • Oct 27 '26
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 • u/Fit_Item851 • Oct 28 '26
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 • u/IndividualBite_1 • Oct 27 '26
How do I improve my coding ?
r/learnprogramming • u/REALNHCM • Oct 28 '26
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 • u/Hour-Activity8592 • Oct 27 '26
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 • u/Maleficent-System869 • Oct 28 '26
I am a student learning FastAPI nowadays is it any benefit of learning fast API in the future
r/learnprogramming • u/Cool-Reference-8303 • Oct 28 '26
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 • u/InstructionFar407 • Oct 27 '26
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:
Thanks!
r/learnprogramming • u/Immusama • Oct 27 '26
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 • u/selfcare-2023 • Oct 27 '26
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 • u/ToshiryuShadow • Oct 27 '26
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 • u/Electronic_Nerve_561 • Oct 27 '26
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 • u/Jboorgesz • Oct 26 '26
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 • u/k3l1ck • Oct 27 '26
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 • u/qO_v_Op • Oct 27 '26
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 • u/Brilliant_Key_7778 • Oct 27 '26
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:
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:
My questions to the community:
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 • u/pleasedontjudgeme13 • Oct 26 '26
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 • u/Yrpx • Oct 26 '26
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:
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 • u/Late_Spinach_1055 • Oct 27 '26
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.
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:
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.
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:
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.
My practical suggestion would be:
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.
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 • u/oneLampPost • Oct 26 '26
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 • u/Soggy-Bicycle-4735 • Oct 26 '26
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.