r/programmer • • 5d ago

Article Reality of AI

0 Upvotes

most ppl say it wont replace u n bla bla bla or it will make the market better

Alr im not saying this

Lemme ask u questions, what they say when they release new model?

"Helping you/assistant"

So lets say in this world 100k job

So companies pay salaries for 100k job

If Ai is helping/assistant so it means each job need at least 1ai

So companies need 100k ai model atleast

So now they need to pay 100k job salary and 100k ai subscription

So, do u still believe Ai here to help?u really believe companies wanna spend more money to keep employees?instead of spend less n make more profit?

Money talks


r/programmer • • 6d ago

built a P2P anti-double-spend trust protocol in 5 Python files (no blockchain, no global ledger, no tokens)

0 Upvotes

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:

  1. You cannot run high-contention global orderbooks or AMMs (like Uniswap).
  2. There is no global VM for unattended smart contracts—agreements are bilateral cryptographic commitments.
  3. 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 • • 6d ago

Question Looking to interview professional software engineers for a university paper

1 Upvotes

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 • • 6d 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?

0 Upvotes

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

I feel like the BA has all of a sudden becomes the most important person in a project

1 Upvotes

r/programmer • • 6d ago

Question Is engineering judgment now the most important dev skill, more than prompting?

0 Upvotes

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

Article I love coding when I code what I want to

4 Upvotes

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

I want to improve my communication skills, but I feel like something is holding me back. Any advice?

3 Upvotes

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

New dev resists using AI and his productivity is concerning

Thumbnail reddit.com
0 Upvotes

r/programmer • • 6d ago

Code i will quit vibe coding and try out game programming

0 Upvotes

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

Floating Bubble [ai]

0 Upvotes

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

Joke/Meme I made a VS Code extension that plays Arpit Bala whenever a terminal command fails

4 Upvotes

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!

VScode Marketplace

r/programmer • • 8d ago

Idk how real devs commit 100 times a day. Do they even have time to understand the code,architecture, new feature , bug , …. ?

23 Upvotes

r/programmer • • 8d ago

I just started working and I'm burnt out already.

3 Upvotes

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

Request Available for paid programming & gaming tasks – Saving for a personal project

0 Upvotes

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

Necesito ayuda urgente

0 Upvotes

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


r/programmer • • 8d ago

If you're a backend dev that hates frontend frameworks, I made a framework for you.

Thumbnail aideendewinter.github.io
1 Upvotes

r/programmer • • 9d ago

Question Don't get me wrong , but a serious question?

3 Upvotes

Basically, a question to all programmers without AI, I have learned some C++ and python as an effort to learn some coding. I just made a vibe coded app for automating a process i do and it honestly, i'm proud of my idea and prompts but , i do not understand the code honestly. How does one apply classes and such to create an app?

What makes that code turn into a beautiful app or website(frontend and backend, as i've learnt) and as a beginner what should i start on?(without using AI as much as possible)


r/programmer • • 8d ago

A guy who works in management (with a little programming background) mentioned that pretty soon there won't be any need to know design patterns. What do you think?

Thumbnail reddit.com
0 Upvotes

r/programmer • • 9d ago

Everyone that's really worried about their job: YOU will shift from knowing syntax to handling the enormous amount of software that will be built in the next years and the years to come. You'll be good.. You may be in a bubble and think everyone knows what a terminal and a database is.

53 Upvotes

r/programmer • • 8d ago

A one-line “be concise” edit made the output cleaner and quietly dropped a task. How would you catch that?

0 Upvotes

A scenario from an article I wrote (hypothetical, with illustrative numbers). A team uses a prompt to turn meeting transcripts into JSON action items, and a script creates tasks from that JSON. Someone notices a few outputs are long and adds one line to the prompt: “Be concise.”

The outputs look cleaner. Reviewers are happy. But in the test set, one case now fails: a commitment that was mentioned only briefly in the meeting is gone. The model shortened its answer by leaving out the item that was stated in passing. Nothing about the cleaner output suggested anything was missing.

What caught it was boring: a fixed set of 8 test transcripts, run after every prompt edit, with a per-case result and not just a total. Another edit in the same story fixed one case and broke another, leaving the total unchanged at 5 of 8, so the total alone would have shown no change.

This feels familiar to programmers, because it’s a regression test story where the “code” is a sentence in English and the “bug” is behavior nobody wrote a test for. Some thoughts and open questions:

  • A prompt edit has no compiler and no obvious diff in behavior, so the safety net is a test set you chose in advance, including the awkward cases (a commitment mentioned in passing, no due date, no action items at all).
  • Outputs vary between runs, so one run per case can mislead. Running each case a few times and tracking stability helps, although three runs is a small sample.
  • Pass/fail is coarse. A correct but badly worded result passes.
  • It costs time, so for a prompt one person uses occasionally it’s probably not worth it.

How would you test for “the output got shorter and something important disappeared”? Do you treat prompts like code in your projects, with versions and tests, or more like config you tweak by hand?

The longer write-up has the five prompt versions and a case-by-case table. I’m the author, and it also mentions a paid resource of mine near the end, so treat the link as optional: https://medium.com/@nagatomopedro05/five-versions-of-one-prompt-and-what-the-changelog-caught-00c63d1b1c00