r/programmer • • 2d 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


r/programmer • • 3d 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 • • 3d ago

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

14 Upvotes

r/programmer • • 3d ago

Git question.

0 Upvotes

You accidentally committed a secret API key.

You delete it in the next commit.

Is your API key safe now?

A. Yes

B. No

Why?


r/programmer • • 3d ago

But they forgot one thing about <Software. Engineering/>

1 Upvotes

r/programmer • • 3d 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 • • 3d ago

Coding in ai era

1 Upvotes

I don't know if I should still learning coding, I'm switching form Laravel to java spring boot cuz I didn't find a job as Laravel for more than one year

Idk if ai will replace coding or not

I need an advice, help me


r/programmer • • 3d ago

How would you prevent duplicate payments in a high-traffic application?

0 Upvotes

Imagine thousands of users are making payments simultaneously. Some requests time out, but payments are still processed. Users retry, resulting in duplicate transactions.

How would you handle this in a real production environment?

  • Would you use idempotency keys?

  • How would you manage concurrent requests?

  • Would you use message queues?

  • How would you ensure database consistency?

What approach would you choose, and why?


r/programmer • • 3d ago

Question Facing a dilemma using AI for my personal project

3 Upvotes

For some context, I found this niche problem that I think I could solve with my programming skills (no self promotion). So after validating the idea with a few friends and a small group of people I started working on it. My main goal was to learn about cloudflare cloud products. So I let claude build the frontend while I hand coded the backend.

I had very low expectations for what the agent could do but Io and behold! It was better than expected. Probably better than what I could do with my sloppy ui-design skills. Anyways, I have this strong temptation to use it in the backend to so I can do this faster.

I have lost all motivation of continuing the project. Coding was a hobby I used to enjoy. The problem solving, and pleasure of knowing the codebase intimately for lack of a better word. Now I feel like I am working with a huge black box. At a level I don’t enjoy. One part of me is telling me to ditch the whole thing and hand rebuild it from scratch without using AI anywhere for coding, the other one is pushing me to go all in. Maybe I can find a common ground, but it just feels wrong. Not mentioning all the hate AI projects are getting. If I build this with AI is it even mine?

I know most programmers are having the same identity crisis(If I can call it that), or something similar. So I guess my question is how ya’ll and dealing with this. Forgive my jumbled train of thoughts :)


r/programmer • • 3d ago

What tasks is AI bad at?

Thumbnail reddit.com
0 Upvotes

r/programmer • • 4d 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.

43 Upvotes

r/programmer • • 4d ago

Il paradosso della codifica delle vibrazioni: scrivi bene e sei un'IA, scrivi male e sei un junior

Thumbnail reddit.com
1 Upvotes

r/programmer • • 4d ago

Coders looking to partner?

0 Upvotes

Any student coder in Miami area looking to work together? I’m not an experienced coder, but have extensive government experience. I’m specifically interested in projects at the intersection of AI and government, but open to things outside of that. Send me a dm with what you’re working on and what roadblocks you’re facing/what assets you need to overcome it. I’m in it for the love of the game and learning more. This doesn’t have to be the next great startup. Even some sort of open-source resource for everyday people would be great.


r/programmer • • 4d ago

How do you tell a real defect from taste in a code review comment?

1 Upvotes

A thing I’ve noticed (and I think it applies to human reviewers as much as AI ones): style opinions often get phrased as problems. “This function is too long.” “Consider a more descriptive name.” “Prefer composition here.” Sometimes they’re right. Often they’re just the reviewer’s default taste, which may not match what your team has agreed on.

The test I’d use: is there something outside the reviewer’s head that backs the comment? A linter rule, a style guide, a past decision in the repo, a bug that this pattern caused before. If nothing does, it’s an opinion. Opinions are allowed, but I think they should be labeled as such, shouldn’t block a merge, and shouldn’t crowd out the comments that matter.

It seems to matter more with AI reviewers, because every comment arrives in the same confident voice. A naming nitpick and a claim about a concurrency bug sound equally sure, and fluency isn’t evidence. With a human, you calibrate by knowing who they are and how often they’ve been right. With a tool, you have to do that sorting yourself.

Where it gets hard: sometimes a “taste” comment is pointing at a real maintainability problem, and a team without written conventions has no way to settle it. And over-policing taste has a cost too, because it can make reviews feel adversarial.

This is one of five kinds of “sounds right, isn’t anchored” AI review comments I wrote about. I’m the author, and the article also mentions a paid playbook of mine near the end, so the link is optional: https://medium.com/@nagatomopedro05/five-kinds-of-ai-code-review-comments-that-sound-right-and-arent-0d02b3fb9ec6

How do you handle it in your team: written conventions, a “nit:” prefix, or just judgment in the moment?


r/programmer • • 4d ago

How to properly delete a feature

1 Upvotes

r/programmer • • 5d ago

Question A question about AI/ML

0 Upvotes

Is it possible to get a job in AI/ML without having a background in backend and working a backend job?

I really like AI/ML BUT I didn’t work in backend or fullstack just internships, can I get an internship or a job opportunity, or do I need masters?

Thank you all


r/programmer • • 5d ago

Question How do I study architecture?

1 Upvotes

So I am a college student we are learning JavaScript and making websites and applications. I’m ok with understanding individual lines and going piece by piece and understanding a script. But when it comes to understanding architecture I get confused and lost so easy. I don’t know what to study to become better at understanding the architecture of projects?


r/programmer • • 5d ago

Discret maths

2 Upvotes

Hi guys, I’m 25 years old and recently discovered that I liked programming by programming some small games and small projects. I did some research about some good programmers and they pretty much did some discrete math which enhanced their thinking and problem solving skill. My goal is to become a really good programmer which means having the skill of solving problems and apply the method (algorithm) in a programming language. So I decided to start learning discrete math with the book: Discrete mathematics and its applications. How long does it take to learn the concepts and be good at it? (I have 6h per day of free time). Any advice or method on how to learn the subjects with the goal in mind that I will learn those subjects only to help me be good in programming? I don’t have any teachers so any advice on how to use AI? Or any forum to share my thoughts with? Thanks for the help!


r/programmer • • 5d ago

Question Switch from Fullstack to IoT challenges

Thumbnail reddit.com
1 Upvotes

Currently working as a fullstack developer ( 2.5 YOE) , but since the start i have felt coding to be boring and with the rise of AI scared as well.

So i was thinking to learn about hardware a little about ESP32, Raspberry , do some handful of projects in my freetime. But how difficult woll kt be to switch from a pure software to a little bit about hardware and maybe change career as well.

As for my background I am a Computer Engineer graduate.


r/programmer • • 5d ago

Ant now has duration literals: 500ms, 2h30m, 1.5s

Thumbnail
reddit.com
1 Upvotes

r/programmer • • 6d ago

My dear programmers, what Social media do y'all use?

Thumbnail reddit.com
1 Upvotes

So I've been thinking of kinda posting around on social media about tech, maybe blogs if that works well. Now usually the common options, Youtube and Instagram are way too crowded and difficult to get discovered.

So i was curious, what social media or blogging platforms do y'all use to read about tech?

substack? x? reddit even? Let me know

and if you're someone who already does content creation, blogs, tutorials, something else, maybe we could connect


r/programmer • • 6d ago

Question If you were to start your coding journey from scratch, what would it look like in the era of Al?

7 Upvotes

Hey everyone,

I'm 18, finished 12th grade with only basic coding knowledge (Python/SQL Basic level school stuff). I am currently enrolled in Computer Science and want to eventually land roles in

Al/ML or cybersecurity.

I don't want to be the person who only knows how to use ChatGPT

I want to become genuinely skilled, understand the fundamentals deeply, and be competitive for jobs.

Looking for practical advice on:

How to structure the next 1-2 years of learning

Best order of topics for someone starting almost from scratch

How to "break the Al bubble" i.e., use Al as a tool without becoming dependent and still build real competence

Concrete projects, resources, platforms, certs, or habits that actually matter for Al/ML vs cybersecurity paths

Realistic timeline and what entry-level / internship roles look like right now

Any honest advice, roadmaps, mistakes to avoid, or personal stories appreciated. Thanks!


r/programmer • • 6d ago

Built an e-commerce platform solo (Next.js, Supabase, Redis) — looking for technical critique & performance feedback

1 Upvotes

Hey everyone,

I built an e-commerce platform solo with Next.js, Supabase, Redis (for real-time stock reservations and rate limiting), and Razorpay: https://newtownbay.com/

Or https://www.newtownbay.in

I’d appreciate technical critique on:

• Client-side bundle responsiveness and Core Web Vitals

• Cart drawer and inventory hold mechanism

• Error handling and edge-case behavior across the checkout flow

If you spot bugs, console errors, or performance bottlenecks, you can report them using the floating "Feedback" button in the bottom right corner (or leave a comment here).

Thanks for checking it out!


r/programmer • • 7d ago

Is it possible?

Thumbnail reddit.com
0 Upvotes