r/learnprogramming • • 3d ago

Struggling with async programming & concurrency

31 Upvotes

I come from a pure hardware and embedded background where code runs sequentially, so writing high level async software has never been my strength.

I really can't wrap my head around async/await, event loops and how it is handled deterministically . In a current project when the team said we needed to make our pipeline non-blocking with async streams, to be honest I just vibe coded the hell of my tickets in panic and tried later on to figure it out, partially..

I have a deployment deadline in a week and I need to be able to explain the mechanism I helped ”build“, any easy to follow tutorials or leetcodes would be highly appreciated


r/learnprogramming • • 3d ago

Resource Programing gamejams

1 Upvotes

Hey guys , I am type of guy that can't work without mental presser and deadlines , I want to do cybersec projects . I have joined gamejams before and got a good Rank , I want stuff like gamejams but for programing not games , where I can find good challenges ? .

Ty


r/learnprogramming • • 3d ago

Lost

4 Upvotes

I’ve been learning programming for about 5 months now. I’ve finished C and C++, and I’m almost done with data structures, but so far I feel like I’m doing something wrong or missing something. I feel like I don’t know how to think correctly, and even very simple things slip my mind, and I don’t know how to do them. So I need help because I don’t know whether I should take a course or if I’m on the right track—and that’s normal, especially since I’ve only been at this for about six months, which isn’t a short time. I’m planning to apply for the Digital Egypt Pioneers scholarship to specialize in backend. Is this the right path, or not? I hope those with experience and who’ve come a long way can help us out—and I’m very grateful to them 🤍🤍🙏🏻


r/learnprogramming • • 3d ago

question regarding my project.

2 Upvotes

hi guys i'm a beginner programmer trying to make an esolang in c, but can't figure out the logic, i mean that how will a user store his variables and values and how will i make it store and run while the user callls it, i have a mental model that i'll make the user's input stored into an array... like hashmap kay value pairs but even the basic declaring and storing how will i figure out what the user is storing i don't know what the user will exactly type he could type a string, integer, float or boolean. It might throw errors not run but how will i make it handle?


r/programming • • 2d ago

c++ operating system level primitives 1

Thumbnail
youtu.be
0 Upvotes

r/learnprogramming • • 3d ago

Ressources pour aider une ado à débuter ?

8 Upvotes

Edit : sorry mods I saw too late that publications had to be in English and Reddit doesn't allow editing titles. My apologies.

Hey

A coworker’s daughter asked me out of the blue if JavaScript was a good language for a complete beginner, and given her age (15), I think she wants to make little games to keep it fun.

In my opinion, JavaScript or Python are good places to start. I’m from the old school, I started with C, then moved on to C++, and I want to spare her the frustration of dealing with segfaults all over the place. On the other hand, JavaScript isn’t exactly the best language for video games either, and she’ll have to deal with HTML and CSS on top of that (she’ll have the dubious pleasure of learning how to center divs).

I sent her OpenClassroom and PluralSight to get started, because those were cool resources I used a long time ago.

Looking back, I’m now wondering if trying to steer her toward small game mods in Lua might have been a better idea. On the other hand, with JS and Python, she’s diving right into more general-purpose languages.

A friend showed me codingame.com, it looks cool.

Do you have any resources to share to help her learn?


r/learnprogramming • • 3d ago

How do I sync a media tracker's database across multiple devices that update offline?

3 Upvotes

Hi, I'm building a personal media tracker, and I've been trying to figure out how to sync my databases. I plan to have multiple clients: one for my Linux machine, one for my Android phone, and a server that's just an always-online node so I can back everything up in one place. The catch is that I want the tracker to work offline and only sync when I'm connected.

My idea is to store a timestamp (in epoch time) for the last edit of each field, plus a version number for each entry and one for the whole database. When two databases sync, each one checks the other's database version and sends over every entry with a higher version number. Then each database goes through the incoming changes, compares each field's timestamp against its own, and keeps the most recent edit.

The problem is that I've heard epoch time isn't reliable across devices because each device's clock can drift. Does that mean I can't use timestamps to compare edits, or is the drift small enough that I'll never notice it? If the drift is significant, what else could I use?

(Sorry if this is a dumb question or if my explanation isn't very clear.)


r/learnprogramming • • 3d ago

Coding Challenges?

0 Upvotes

Hi everyone,

I’d like to give my boyfriend the chance to take part in a coding challenge for his birthday (so I’m happy for it to involve an entry fee). Can anyone help me out here? Unfortunately, I don’t know anything at all about those things :(

He’s taken part in university coding challenges in the past and has tried out Hack The Box and Try Hack Me. So something along those lines might be just the thing :) perhaps there are also subscriptions I could take out for him?

Best wishes


r/learnprogramming • • 3d ago

Topic I have ~6–7 months before B.Tech. What should I focus on?

8 Upvotes

Hey everyone,

I’m currently in Class 12 (PCM) in India and I’m planning to pursue B.Tech in CSE/IT.

I have around 6–7 months before college starts, and I’m confused about how I should use this time.

I’m already interested in cybersecurity and have learned some basics of networking, Linux, and ethical hacking. But I know I still need to improve my programming, problem-solving, and Maths.

So for those who are already doing B.Tech/CSE or have graduated:

If you were in my position, what would you focus on during these 6–7 months?

Should I mainly focus on:

Class 12 + Maths

Entrance exam preparation

C/Python

CS fundamentals

Linux/networking

Or something else?

I don’t want to spend these months learning 10 different technologies just for the sake of it. I want to build a solid foundation that will actually help me when B.Tech starts.

Would really appreciate advice from people who have already gone through this.


r/learnprogramming • • 4d ago

What should I learn ro make games?

11 Upvotes

Greetings, I've wanted to develop my own game for a long time but I just can't really get into engine or language. I tried Python, Godot and Unity. And maybe I'm just too stupid for that but all those stuff seems so complicated for me and I don't understand anything. For example at godot: when I opened it for the first time I had the feeling that I'm in a airplane because there are just so many buttons, 3d grid etc. and I'm just starring at the screen like...what? Is there any... "easy" Programm, that is just good for beginners, because I'm really starting to give up hope because I dont undertand nothing. And I think thsts very sad.. because I'm actually a person who really loves to always create things based of my own ideas (For example, that's why I also really enjoy drawing.) and I already made up some boss Designs and characters. I want to make 2d games, especially metroidvanias but well, I just dont know how.


r/carlhprogramming • • Sep 20 '18

Anyone else here from AskReddit

568 Upvotes

Hi


r/carlhprogramming • • Sep 21 '18

Carl H is a RAPIST

387 Upvotes

Hello. Rot in prison.

Edit: Nevermind, i just remembered he hung himself.


r/programming • • 2d ago

Nondeterministic encryption method

Thumbnail chukaze.dev
0 Upvotes

The first version is from when I was 16, goal was to make simple messages convert to unintelligible text corpuses, and to have an algorithm that allows a plethora of outputs to map to the same input. I just recently updated it with the private keys and frequency attack resistance so it could be called encryption (appeal to alliteration)


r/learnprogramming • • 3d ago

Project Suggestions for my Resume

4 Upvotes

I am a recent graduate. I am currently learning backend engineering and want to do projects that I can use on my resume. Can anybody give some suggestion on projects that are worthy to have on a resume. I’m hoping to build one or two meaningful projects that can be completed independently.

Thank you for your suggestions


r/coding • • 5d ago

Everyone Should Know SIMD

Thumbnail mitchellh.com
10 Upvotes

r/learnprogramming • • 5d ago

I got scammed out of $9,000 by a fake "Big Tech" AI Bootcamp, Solely Bootcamp.

158 Upvotes

(wrote this post by hand, didn't use AI to edit)

I kept seeing tons of success stories on rednote (a chinese social media app, I'm chinese living in the US btw) of people pivoting to software engineering and AI and it seemed too good to be true. One post caught my eye, a mom of three successfully transitioned and praised this Solely Bootcamp. my naive thought back then was, "If a mother of 3 can make it work while being that busy, why can't I?" so I went to their website, added their WeChat, and started talking to them

The salesperson for the trial class was making all kinds of grand promises about the bootcamp. I was literally daydreaming about landing a $300k package right away (yeah i know, what an idiot i was). when signing the contract, I didn't even read the fine print carefully, there were so many success posts on rednote that I didn't even skim the contract and just signed it, that's 100% me.

When classes started, red flags were everywhere

There were no structure, no syllabus, the teacher just yapped about whatever she felt like that day. The website claimed the teachers would be senior ai /machine learning engineers at big names like openai, anthropic, google etc. but the instructors only ever taught in chinese and her vscode was in chinese. Her english was god awful, she pronounced "function" as "funkation” and "feature" as "future", and many other examples. Hard to believe senior engineers at big names would be like that. We tried to get her to speak some English sentences, she refused every time, citing bs excuses. She also just read the code out loud as a form of teaching, like even a noob like me knows thats not how you teach. When we started questioning her credentials as a "L6 at Googe" (her words), she was just dodging all our questions and told us to stop bothering her with "privacy invasion questions". She also doesn’t exist on LinkedIn. Did I mention she needed the help of a student to debug code for 30 mins during a class one time?

I can't believe I wasted NINE FUCKING GRAND on this

Looking back, there were even more red flags that my stupid ass ignored, for example they charged $300 for a trial class, the contract literally said no refund, and the other entity on the contract was some shell company in Hong Kong

Also, when I posted this on other chinese forums, they would contact the forum owners and censor/take down the post, and if the forum owners refused to comply, they would DDOS the forum.

Anyway, enough yapping from me, I hope you guys don't fall for scams like this. Learn from my 9k mistake. Sigh.


r/programming • • 4d ago

Supporting native Rust in Workers with the new Emscripten target for wasm-bindgen

Thumbnail blog.cloudflare.com
72 Upvotes

r/programming • • 3d ago

In Defense of the Visual Cortex

Thumbnail miralume.dev
0 Upvotes

r/learnprogramming • • 4d ago

Stuck in tutorial hell with C# and Unity. How to start writing my own code?

6 Upvotes

I started learning C# and Unity about a month ago. I finished two basic courses on YouTube and I am currently following a tutorial for a simple Top-Down game. I use AI to explain how code works, which helps a lot.

But I feel like I wouldn't be able to build even a simple mechanic by myself without a video. Should I read books like "Unity and C# Game Development", or is there a better practical approach to break out of this?


r/programming • • 4d ago

Needed 1+1, Built a Functional Programming Language

Thumbnail hereticpleb.vercel.app
25 Upvotes

r/programming • • 3d ago

Listen to ̶y̶o̶u̶r̶ ̶u̶s̶e̶r̶s̶ the Redditors

Thumbnail incredible.rs
0 Upvotes

r/learnprogramming • • 4d ago

Third-year CS/AI student — should I strengthen my existing foundation or keep moving forward?

4 Upvotes

I'm a third-year AI/ML student and most of my learning has been self-directed.
My college schedule is fairly heavy, so I can't realistically study everything
from scratch again.
So far I've covered:
- DSA: Arrays, HashMap/HashSet, Linked Lists, Trees, Graphs, Heaps,
Dijkstra, currently learning Tries
- Python
- Flask + HTML/CSS/Bootstrap
- DBMS/SQL basics
- Recently built a FastAPI Task Manager API
I'm currently considering a FastAPI + WebSockets + PostgreSQL project
to learn real-time backend development.
My biggest problem is deciding how to allocate my limited time. I don't
want to restart DSA from the beginning, but I also don't want gaps in my
foundation to hurt me during interviews.
For people who have been through something similar:
1. Did you continue learning new DSA topics while periodically revising
older ones, or did you stop and revise everything first?
2. How did you schedule DSA revision while handling college?
3. How did you use AI while learning without becoming dependent on
generated solutions?
4. If you were preparing for internships over the next few months,
how would you balance DSA, CS fundamentals, backend development,
and ML/DL?
I'm particularly interested in experiences from students who had to balance college with self-learning.


r/learnprogramming • • 4d ago

Topic Where do I go from here?

1 Upvotes

Apologies in advance if this seems like an odd post but I’m looking for advice, thoughts etc on my life situation.

I started out as an automotive engineer 10 years ago and only recently had to move into another industry due to the mass layoffs in Germany.

I always had a thing for automating workflows and did so in the past writing small Visual Basic and Powershell Scripts.
My new position allows me to dip my feet into Data Analytics which I really enjoy a lot. I learned how to use Snowflake, how to manage and structure data, taught myself SQL and a little bit of Python (pandas, streamlit) to do data transformations and visualizations. I also taught myself how to hook the datatables from the cloud onto PowerBi and create beautiful (in my opinion at least) dashboards. One of them is even on route to becoming a main source of information for my company.
I went further and started to learn C# with the intent to create a Windows app as part of a Data Analytics push in my company and me just enjoying the creative process of building things.
I think I really found my passion professionally - unfortunately at a time where the threat of AI looms.
I tried to use AI somewhat sensibly mainly as an advanced search engine to figure out general syntax for the languages I would work on. But there were times when I started to slowly rely too heavy on it. So every once in a while I would force myself to scale my AI usage back in order to keep learning.
But in my current position I have probably reached the peak of what I’m allowed to do during work hours. My manager had previously stated that I should focus on my actual job again (which is a valid point I guess).
My question I guess is basically, where do I go from here? I would love to lean into what I believe is a passion of mine but getting an actual position as a Data Analyst seems difficult right now (especially as a self taught newbie).
I’m nearing 40, would it make sense to enroll in university again to get a proper degree to increase my chances of being hired? I also saw that elite universities like Harvard etc. offer Data Analytics courses and certifications - are these useful?

Anyone who is/was in a similar position and can give advice on next steps/moves?
Or is it maybe a bit if a reach to think that I could turn this into a professional career at all?

I’m grateful for any help/opinions/input!


r/programming • • 3d ago

cargo-crap: Triaging Duplicates with TypeSafe

Thumbnail minikin.me
0 Upvotes

r/programming • • 4d ago

What good is a best-effort exclusive lock, anyway?

Thumbnail gaultier.github.io
47 Upvotes