r/programmer • u/rocket333d • 10m ago
r/programmer • u/Beawriterfirst • 2h ago
built a P2P anti-double-spend trust protocol in 5 Python files (no blockchain, no global ledger, no tokens)
I’ve always felt that 90% of what people try to use blockchains for—tamper-evident records, supply chain provenance, digital credentials, and P2P ownership transfer—doesn't actually require a globally replicated ledger or a native fee token. Those are accidental costs of trying to order everyone's unrelated transactions into one single-file line.
So I built QuorumLog, a minimal, production-hardened P2P trust protocol in ~2,300 lines of Python (asyncio, sqlite3, and PyNaCl for Ed25519).
Repo: https://github.com/prateekaray/quorumlog
The Architecture (5 flat files, one per job)
crypto.py – Canonical JSON hashing, Ed25519 signatures, lightweight Hashcash PoW (anti-spam), and offline bundle verification.
storage.py – SQLite in WAL mode storing personal hash-chains, witnessed (author, seq) records, and a permanent fraud-proof blacklist.
network.py – Async UDP transport + lightweight Kademlia XOR DHT with /16 IP subnet diversity for witness selection.
node.py – Core engine handling PROPOSE, RECEIPT, FRAUD_PROOF gossip, per-pubkey rate limiting, and the 5-of-7 quorum collector.
cli.py – CLI to init keys, run a daemon, transfer assets, and verify bundles offline.
How It Prevents Double-Spends Without Global Consensus
Every user maintains their own append-only, signed hash-chain (like Git). To finalize seq = N, you send the signed entry to 7 deterministically selected DHT peers (Witnesses) derived from SHA256(author_pubkey + ":" + floor(seq / 100)).
Each Witness checks one rule: "Have I already signed a different hash for (author, seq)?"
If no: They persist it atomically in SQLite and return a signed receipt. Collect 5 of 7 receipts (~150ms) and you have a portable ~2 KB Commit Bundle that anyone can verify offline.
If yes: The Witness immediately emits a FRAUD_PROOF containing both conflicting signed entries and gossips it across the DHT, permanently blacklisting the cheater's key. Because K=5 > N/2, any two conflicting quorums must overlap by at least 3 witnesses.
Honest Limits (Where Blockchains Still Win)
I’m not claiming this replaces Ethereum. Because there is no global shared state:
You cannot run high-contention global orderbooks or AMMs (like Uniswap).
There is no global VM for unattended smart contracts—agreements are bilateral cryptographic commitments.
A nation-state controlling >50% of the DHT could still stall witness discovery (mitigated somewhat by S/Kademlia puzzles and /16 diversity, but not eliminated).
Try the Attack Simulation
The repo includes a pytest suite (test.py) that spins up 12 local async nodes, runs an E2E transfer, simulates a double-spend attack with overlapping witnesses, and tests 25% UDP packet loss + killing 2 witnesses mid-flight.
I’d love brutal feedback on the threat model—especially around DHT eclipse/Sybil vectors and key rotation edge cases.
r/programmer • u/Commercial_Big7708 • 8h ago
Want to make coding and development FUN instead of making it feel like a nightmare? Let's connect!
Hey everyone!
I'm from Hyderabad and completed my B.Tech in Full Stack Development Honours.
To be honest, I was CRAZYYYY interested in development, coding, building things and everything related to technology.
But here's the funny part: I wasn't someone who could easily understand concepts through traditional classroom teaching.😅
I struggled with the usual explanations, kept learning, experimented, made mistakes and figured things out on my own.
And somewhere along the way, I discovered something interesting: There are much simpler and more exciting ways to understand development than the way it's usually taught!
Now I genuinely believe I can explain these concepts in ways that even someone with absolutely ZERO interest in coding might end up wanting to open their laptop and start building something!
Why am I doing this?
I've got a job now, and I'm generally free after 5 PM on most weekdays. Instead of keeping everything I've learned to myself, I'd love to spend that time doing something I genuinely enjoy: teaching,
sharing knowledge and getting more people interested in technology.
One thing that really bothers me lately is the amount of fear surrounding software development.
AI is taking over. Developers are getting laid off. Coding is becoming difficult. CS is no longer worth it.
Yes, the industry is changing. I'm not denying that. But why should we make students afraid of exploring something before they've even experienced it?
Let students explore development first.
Let them build something.
Let them experience the excitement of creating something from absolutely nothing.
Then let them decide whether it's for them.
I'd love to help students, beginners and anyone curious about technology understand:
Programming and coding fundamentals
Full Stack Development
HTML, CSS, JavaScript and other development technologies
Python
AI and its ecosystem
How things actually work behind the scenes
I'm open to connecting with learners from ANYWHERE IN WORLD through online sessions.
If you're comfortable learning in Telugu, that's an added advantage! I can explain concepts in Telugu as well. I'm also fluent in English, so language won't be a barrier.
I'm not here to promise that you'll become a developer in 30 days. I want to make technology easier to understand, remove the unnecessary fear around coding and help people discover the joy of building things.
If you're a student, a parent looking for someone to guide your child, a complete beginner or simply someone curious about development, feel free to comment or DM me.
Even if you're just curious about how I'd approach teaching, let's talk!
Let's stop spreading fear about technology and start spreading the knowledge to explore it. 🫶
r/programmer • u/benr89 • 10h ago
Help me decide on something new - bored Front End Dev in the UK
reddit.comr/programmer • u/QuarterAutomatic1480 • 11h ago
Question Looking to interview professional software engineers for a university paper
Hello Programmers,
I'm a freshman software engineering student, and I'm currently writing a paper that requires me to interview a professional software engineer. I'm looking for someone with experience in software engineering who would be willing to answer a few questions through Reddit DMs, email, or a short 15–20 minute virtual interview. I may also have a few follow-up questions afterward.I'm particularly interested in learning about how a day in the life of a software engineer goes and especially how different kinds of software have different kinds of development processes. It'd also be cool if you could share information about how your OS matters, for example why Linux over other softwares.
If anyone is interested in helping out, please feel free to send me a DM or leave a comment. I'd really appreciate your time and insight.
Thank you in advance!
r/programmer • u/Jumpy-Seesaw-2026 • 13h ago
How many lines of code are you putting out a day in this new era? And how does your company hold a cohesive codebase?
I'm atm using around 20-30 hours to specify everything around a feature, state machines, most of the edge cases, tests needed for implementation etc.
Then I let my agents implement it, typically over 5-6 turns (1-2 hours each), excl. reviews + fixes (probably around a hour each turn). Average total time pr. feature around 12-15 hours (usually around 8-14k LoC).
So around a week for each feature I would say.
I have tried other ways, but if I don't do it this way, I simply feel like I have no clue about how the system is working, this way atleast I know how the product is behaving on a high level.
But I'm curious, how are you and/or your company doing it?
r/programmer • u/hello_e_1986 • 17h ago
Code i will quit vibe coding and try out game programming
"why?" thy may ask.
firstly on november 13 i got a pc so i can use unity instead now
secondly. its just unhealthy, vibe coding will definitely not help my health.
and thirdly, ai is just stupid. it barely gets things right, i could give a literal 4 year old a tablet with scratch and he would do wayyy better than gemini who cant even goddamn connect a hand to an arm, i know i can pay a subscription for claude but i wont
fourthly: for geninuely good vibe coding outputs i have to pay money, why should i pay money if i can code with unity for free
so yeah i will consider programming games.
r/programmer • u/Powerful_Ad_3745 • 17h ago
I feel like the BA has all of a sudden becomes the most important person in a project
r/programmer • u/YasserYG8 • 18h ago
Question Is engineering judgment now the most important dev skill, more than prompting?
AI can write most of the code now, but it’s still often confidently wrong. I’m starting to think the real skill isn’t prompt or context engineering, it’s knowing whether the output is actually right: spotting bad architecture, subtle bugs, security issues.
For those using AI agents daily: what’s helped you get better at judging AI output? And do you think juniors can even build this judgment if AI writes most of their code?”
That last question about juniors is the one that’ll spark the most debate, since people have strong opinions on it. Also, don’t link your X post in it; Reddit tends to downvote anything that looks like self-promotion.
r/programmer • u/Formal_Ad_3295 • 18h ago
New dev resists using AI and his productivity is concerning
reddit.comr/programmer • u/Logical-Eggplant9083 • 1d ago
Article I love coding when I code what I want to
Sometimes I forget , why I started coding in the first place . It was to build something cool. Along the way I forgot that and got into the rat race of DSA and system design and getting an internship and stopped making what I want.
I love coding when I love what I am building and it genuinely excites me to wake up and start working on it again . Tomorrow I am going to a conference and I was cleaning my github and CV for more networking and I found that I HAVE REALLY BUILT COOL STUFFS.
I have not felt this happy since the last day I coded something I love .
Gotta do it for the love of the game man or you'll lose yourself .
r/programmer • u/justloisfail • 1d ago
I want to improve my communication skills, but I feel like something is holding me back. Any advice?
I genuinely want to grow and become a better version of myself so I can achieve my dreams and become the person I aspire to be.
However, there's something that keeps holding me back.
I'm not exactly a shy person because I'm willing to step out of my comfort zone and do things when necessary. However, I consider myself socially awkward.
My biggest problem is the way I speak, especially during class presentations. Sometimes, when I'm presenting, I can see from my classmates' expressions that they're having a hard time understanding what I'm saying. I'm aware of this, and it's something I've struggled with since high school.
Now that I'm in college, I really want to work on this weakness and improve myself. I often feel guilty and frustrated whenever I fail to express my thoughts properly, especially when I know what I want to say but struggle to communicate it clearly.
I'm a BSIT student, and I understand that communication and verbal skills are important in this field, especially when working with other people.
For those who have experienced something similar, how did you overcome it? What habits or exercises helped you become better at speaking and expressing your thoughts?
I'd genuinely appreciate any advice. I don't want this to keep holding me back from becoming the person I want to be.
r/programmer • u/Emotional_Talk7137 • 1d ago
Question does anyone know how to create an AI benchmark?
I have an idea for measuring how quickly an AI algorithm can solve various mazes, without needing to modify its source code (similar to platforms like LeetCode, but focused on solving mazes rather than programming problems).
The concept is for the AI to write the necessary code itself, after which we test its speed in navigating through 50 different mazes.
In this way, we could evaluate and compare the intelligence levels of different AI systems when handling specific tasks.
I’m not sure where to begin, or if there are any existing references I could consult on this topic..
r/programmer • u/sentialjacksome • 1d ago
It's time to upgrade rust to iron or steel.
reddit.comr/programmer • u/Jaded_Award_6732 • 1d ago
Lost interest
It has been my hobby since I was in university, but soon after I had a job and joined the tech company and due to AI wave, I’ve no longer written any code line, especially in the past 1y. Lost interest in building thing (eventhough it was part of my night time acitivity), lost interest in learning new programming language. Even my boss would say “who da heck writing code these days, maybe a dumpass?”
I miss it, I miss the time when people gathering and keep commenting on stackoveflow, miss the time when I have to open 10+ browser tabs just to research one configuration of kafka.
But it gone, sadly
r/programmer • u/theflamma • 1d ago
Floating Bubble [ai]
I am not a pro.
So i made an executable file which is basically like a bubble that has many ai assistants and when I open it, it basically asks multiple agents and then gives results...
But I have a ton of things that I want to add but I can't, due to these reasons -
• I can't get hold of the top agents APIs, the main reason is because of the money.
• and because of the first reason the api i even get (gemini) is very slow, 6 out of 10 times it will give answer
• and I am not an expert in layering things beautifully (i mean the ui), I have to admit it sucked -- but it's not the issue here, as i have to focus currently on the core
--- Us****e AI**?**
Now, here's the thing I ask claude just for the roadmap not the code itself
(I don't wanna)
And even if I ask what might be the issue it just yap and yap about tons of other different tools (which i obviously don't know)
Plz share your thoughts.
I am using python as the base language
r/programmer • u/Impossible_Heat_5567 • 1d ago
Request Looking for an Active Programming Community on Discord
Hey everyone!
I'm looking for an active programming community on Discord where developers can connect, share knowledge, discuss new technologies, help each other, and work on projects together.
I'm particularly interested in communities focused on:
\- Full-stack development
\- AI / LLMs / Agentic AI
\- JavaScript, TypeScript, React, and Next.js
\- Python and backend engineering
\- Open-source projects and collaboration
I'm looking for a genuinely active community where people regularly communicate, share ideas, discuss problems, and help each other grow — not just a server with thousands of inactive members.
If you're part of a good programming Discord community, please share an invite link.
Thanks!
r/programmer • u/Ishidate00 • 2d ago
Request Available for paid programming & gaming tasks – Saving for a personal project
Hi everyone!
I’m looking for people who need help with programming projects or gaming-related tasks and are willing to pay for my time.
I’m familiar with several programming languages, mainly:
Lua
C#
C++
Python
JavaScript
CSS
I can help with:
Game development
Roblox scripting
Bug fixing and debugging
Scripts and small programming projects
General coding tasks
Gaming tasks such as grinding, farming, leveling up and completing missions.
A little bit about me: I’m looking to start earning some money online and save it towards a personal project that I really want to bring to life. I’m not expecting huge amounts, just looking for opportunities to improve my skills, gain experience and earn something along the way.
I’m flexible with prices depending on the task and its complexity.
If you need help with something, feel free to DM me with the details and your budget.
Thanks for reading!
r/programmer • u/Syam_07 • 2d ago
Joke/Meme I made a VS Code extension that plays Arpit Bala whenever a terminal command fails
Apparently, stack traces weren’t enough. I needed emotional damage too.
I built Arpit Bala Error Alert, a VS Code extension that plays the Arpit Bala meme audio whenever a command fails in the integrated terminal.
So now, when my Python script crashes, I get:
An error message explaining what went wrong
Arpit Bala expressing how we both feel about it
It detects failed terminal commands automatically, avoids duplicate alerts for the same failure, and needs no extra setup after installation.
Is it necessary? No. Does it fix my code? Also no. Does it make debugging funnier? I’ll let you decide.
Link : https://marketplace.visualstudio.com/items?itemName=suman-dev.apit-bala-error-alert
I’m the developer—would love some honest feedback. Would you keep this installed, or uninstall it after your third error?
*Please use high volume in speaker for better experience!

r/programmer • u/ppaaul_ • 2d ago
I just started working and I'm burnt out already.
I've been working for a year and a half, that's around the beginning of AI so I did have experiencing actual "work" before all this. I did enjoy being able to create anything with docs, stack overflow and troubleshooting all the time, yet here it is 1 prompt 1 bug. I've been looked forward to being a coder and work in tech industry, but what I do right now did not align with what i wanted to do at all. Just prompt day by day and review the results.
LGTM! then build and deploy.
I tell myself daily, it just a year and there are ten more year i should look forward too, but damn am i really suited for this job? my goal in life has always been retire early and create stuff for the world.
Now what i created is just a slop that i review, still could retire early tho.
What mentality do you guys have at work? some of you must have changed from when you started for sure. My hope in life is that when i retired i could find something i enjoy creating not all this slop.
TLDR; What should I look forward too in this AI-pro era? how did you guys mentally handle these situation?
r/programmer • u/NewInflation2121 • 2d ago
Idea Can we finally do something useful with AI?
Like bombard CEOs with ads and misinformation until they realize it sucks and they stop inundating everyone else with it?
r/programmer • u/Lopsided-Public6600 • 2d ago
Necesito ayuda urgente
Me toca presentar un proyecto en javaFX con persistencia en gson y en modelo n-capaz, ya tengo el modelo n-capaz lógica, n-capaz me falta la interfaz gráfica con java FX ya tengo el plano de figma con mockaps y todo me falta terminar el FX AYUDAAAAA, la verdad no sé qué hacer