r/codereview • u/WotDaHelll • Oct 24 '20
r/codereview • u/Mobile_Tap6145 • Feb 25 '26
What metrics actually matter for code quality? feeling like we're measuring the wrong things
on codeant.ai we track:
1/ test coverage (90%+ but still ship bugs)
2/ code review time (fast but rubber stamping)
3/ PR size (small but still problematic)
all our metrics look good but we still have production issues weekly.
what are you measuring that actually correlates with fewer bugs in prod?
r/codereview • u/reviewpad • Jun 16 '21
There's a balance in code reviews. What goes around, comes around. #CodeReview #Karma
r/codereview • u/Middlewarian • Nov 06 '21
C++ programs
The programs are the front and middle tiers of my C++ code generator. The front tier is a UDP client of the middle tier. The middle tier is a UDP server and an SCTP client of the back tier. I'm able to use C++ 2020 features in the programs. The front tier is intended to be very portable. The middle tier is limited to POSIX platforms.
The programs are both about 12 years old. Originally, when I gave Bjarne Stroustrup a demo of the code generator, I had a web interface. That was in the early 2000s and seemed to make sense at the time. Someone on a Boost list suggested a command line interface, and after a few years, I was able to able to start working on these programs. I no longer have a web interface. I decided years ago to favor the command line interface and that I couldn't do both due to limited resources.
Thanks in advance for comments on how to improve the software.
Edit: Since posting this over a year ago, I've developed a Linux-only version of the middle tier based on io_uring. The link above is to this new version.
r/codereview • u/Peace_Seeker_1319 • Mar 31 '26
Unpopular opinion: most AI code review tools are just expensive linters
They catch style issues, flag long functions, suggest const vs let. cool. my eslint config does that for free.
ask them to catch an actual security vulnerability, like a missing input validation that opens up SSRF, and they're completely lost. they don't understand data flow, they don't know what the code does, they just pattern match on the diff but teams are paying $40/seat/month and telling leadership "AI reviews all our PRs now." that's not code review guys.
What's everyone's actual experience? has your AI reviewer ever caught something your team missed that actually mattered?
EDIT: Started using CodeAnt AI since April and getting all the code review to security needs fulfilled at my disposal.
r/codereview • u/bobcodes247365 • Mar 23 '21
Python Update on my project to debug and visualize Python code by using a combination of conventional static analysis tools and the attention based AI model.
r/codereview • u/CobaltRun • Feb 05 '23
StockWidget — Open-source Desktop widget for displaying the exchange rate of cryptocurrencies in real time (For Review & Development)
A minimalistic widget for the desktop that displays the rate of cryptocurrencies in real time. The widget works with the Binance API (US include), directly without third-party servers, requesting cryptocurrency data every minute.
A couple of years ago I wrote it for myself. Recently I found its source code and decided to put it on Github as an open-source program.
If someone has a desire, develop it with me. I will always be glad, and I will accept your commits.


I will try to develop it further, with your help. There are ideas how it would be possible to expand the functionality, increase the number of supported cryptocurrency exchanges and reduce the time from 60 seconds to N using wss and own servers.
Github: https://github.com/mxrcode/StockWidget/
Release: https://github.com/mxrcode/StockWidget/releases/
I will be glad to see your remarks, comments, suggestions and, most importantly, commits to github.
r/codereview • u/CartographerMuch5678 • Jul 19 '26
I built a static analyzer for Django models — sidebar tree, ER diagram, MCP server (no DB, no boot)
r/codereview • u/Strawberry_Gene • Sep 24 '20
Python Any way I can make this simple code simpler?
r/codereview • u/jerrygoyal • Nov 12 '24
Any AI code review tools for GitHub PRs?
I'm already using Cursor, which has improved my productivity. Now, I'm on the hunt for an AI tool that can review open GitHub PRs and comment on potential bugs or issues. I'm not expecting anything groundbreaking – even if it can catch basic issues that might get missed in a PR, that would be super helpful.
We've all been there, right? Making those silly mistakes... human error strikes again! 😅
I'm totally open to paid services if they're worth it.
r/codereview • u/Zihas990 • Apr 29 '22
The 5 Golden Rules of Code Reviews
Hey community, wrote this little article that I wanted to share. I'm pretty new to writing even though I have 20+years of experience with managing and leading teams so I would appreciate your feedback.
Whether you are code reviewing at work, on an Open Source project, or in a university classroom, these five tips will help you, help the code Author, and help the code.
1. Always remember - it’s a human being on the other end of the review
The first Golden Rule of Code Reviews is simple: Review other people’s code like you’d like your code to be reviewed.
Code reviews should:
Be kind– even if there’s room for improvement, the message can be delivered with empathy
Be clear– make it easy for the reviewer to understand what you are saying. Importantly, if you have constructive feedback to give, be direct about it. Avoid a “crap sandwich” that starts with positive feedback about the code, even if it’s genuine, before getting to your suggestion for improvement.
Be specific – The more granular your feedback can be, the more helpful it is to the Author.
That can be hard to do when so many of us work remotely or hundreds or thousands of miles away from each other.
To make sure you are communicating correctly, read your code review to yourself out loud and ask yourself, is this something I would want to be said to me? If not, think about changing the tone or content.
2. Give clear suggestions or recommendations
Never tell someone that the code needs to be fixed without giving suggestions or recommendations on what to fix or how to fix it.
Not sure why? Imagine someone came to your home and said, “I don’t like your decor. Fix it.”
It is incredibly annoying.
It is never a good idea to write “Fix this” without giving more explanation. Why does it need to be fixed? What suggestions do you have to fix it? How might someone figure it out?
On behalf of the Code Review powers, we will personally come to your home to rap your knuckles if you ever leave a code review that only says “Fix this” or “Do better.”
3. Always assume good intent.
Code may not be written how you would write it. Let’s say that more clearly: code is rarely written the same way by two different people. After all, code is a craft, not a task on an assembly line.
Tap into a sense of curiosity and appreciation while reviewing – curiosity to understand what the reviewer had in mind and gratitude for what the Coder did or tried to do.
4. Clarify the action and the level of importance.
If you are making an optional suggestion, for example, a “nit” that isn't necessary before the code is approved for production, say so clearly.
If you wonder why the person made a particular choice, but it doesn’t affect whether the code should make it to production, say so clearly.
If you are confident that the code needs to be fixed before it is ready for production, say so clearly.
Pro tip: When writing, we frequently think that our intent is clear. After all, we know what we are trying to say. But remember that our writing may not always be as clear to the reader as it is to us, and make sure that your most fundamental guidance is plain and straightforward.
5. Don't forget that code feedback – and all feedback – includes praise.
It goes without saying that the key benefit of doing code reviews is to make the code better and fix issues.
But that's only half of it. On the flip side, code reviews present an excellent opportunity to thank you and appreciate your colleagues' work.
If someone has written particularly elegant or maintainable code or has made a great decision about using a library, let them know!
r/codereview • u/Affectionate-Ad2320 • Sep 18 '24
Python Best AI Code Review tools?
Hi all,
I'm asking this again since the landscape is changing so quickly. I've demo'd coderabbit and have a call with codeant later this week. Are there any others I should explore?
Thank you.
r/codereview • u/human-g30 • May 17 '24
Which is best AI code review tool that you've come across recently?
r/codereview • u/lady_berserker • 28d ago
We ship faster than ever and honestly nobody knows what's going on anymore
With Cursor, Copilot, Claude etc. everything ships so fast now. We're pushed to code less and review more. But I feel like people review something, and a week later they don't even remember what the ticket was about. You ask them and they can't tell you what changed or why.
Yes, companies have Notion, Confluence, etc. But even with AI around, writing documentation is still a dull task, and I keep getting told "your code should be self-explanatory". Nobody's interested in docs.
Onboarding is a pain too. There are like 6 repos that only the old rats really understand, and honestly I don’t feel like studying all that code when they might move me to another team in 2 months. What I end up doing is asking Claude to walk me through the codebase to understand each part, and after every ticket I write my own little notes in the repo so I don’t forget. Works for me, but it feels like everyone on the team is doing the same thing on their own.
How do you feel about this? How does your team handle this "knowledge debt"? Are there any tools that actually help?
r/codereview • u/bobcodes247365 • Oct 15 '20
Python My project to review and debug Python code
r/codereview • u/[deleted] • Aug 29 '20
Code review request: A django + react app
Can anyone review my code, I think I need to clean it up before moving further(I’m a 13 year old beginner and I’m making this social media app to learn how to make web apps, it’s not a real “social media app” like Twitter....)
I’m using graphene to make my graphql api, I’m deploying to heroku and using whitenoise for serving static files. On the front end I’m using Apollo client for api queries and context for state management
The repo: github.com/Mati-N/unnamed)
Live demo: selamselam.herokuapp.com
(The styling isn’t that good right now, I’m not that concerned about it for now)
r/codereview • u/Specialist_Agent3599 • Aug 21 '26
how are you actually reviewing AI generated code at this point?
half the PRs on our team are AI generated now and reviewing them takes way longer than human written code. the diffs are huge, the style is inconsistent, and you cant just skim it because the AI will confidently write something that looks correct but has a subtle logic issue buried in the middle.
we started using an AI review tool about 4 months ago to do a first pass before human review. most of what it catches is linter level stuff honestly, const vs let, function too long, whatever. but last month it flagged an endpoint where we had auth on the route but nothing checking if the user actually owned the resource. any logged in user could pull another users data by guessing the id. three of us missed it in manual review.
so one real catch in 4 months but that one would have been a really bad day. still not sure if thats a good ratio or if we should expect more from these tools.
what are other teams doing? just reviewing everything manually still?
EDIT: few people dm'ed asking which tool, its Coderabbit
we pay $24 a month per seat. for context we're a fast moving team, 100+ PRs a week sometimes more, and getting a first pass on every one of those before a human looks at it saves us a stupid amount of review time
the auth catch was the highlight but honestly the day to day time saving is why we kept it
r/codereview • u/tyresius92 • Jan 03 '21
javascript Stock Trading Bot
Hi all! I built a stock trading bot. (Use at your own risk! The actual criteria for how it makes a trade decision are pretty bad. I'm not interested in working on making it make better decisions, for what that's worth.)
However, as a piece of software, I'd be interested in getting feedback from you fine folks.
The repo is here: https://github.com/Tyresius92/traderbot
I haven't done much in the way of promises and async/await before, so particularly interested in things like that, but I also welcome comments on modularity, variable naming, overall architecture, and anything else you'd like to comment on. I'm pretty open.
Thanks in advance!
r/codereview • u/[deleted] • Aug 23 '23
Free Help
Hey everyone,
Ive been a developer for over 11 years (frontend focus) lucky enough to work across a few different countries for a variety of organisations. I see a lot of similar questions whenever I look around here, I also know how the frontend landscape can be overwhelming at some point and places like stackoverflow can be quite critical.
I would like to offer a couple hours of free help every week as a way of paying it forward for all the help I have received over the years. Not sure how exactly to go about it but I would say specific code questions please dont post code here, create a codepen/sandbox or repo and post the link. If there is enough demand for something specific maybe ill make a youtube video tutorial or post a solution to github.
Any general questions I come across ill try my best to answer, nothing I will consider too dumb (publicly at least).
My speciality is frontend with a high focus on react although I have created a bunch of full stack projects (nodejs backend). I do everything in typescript.
r/codereview • u/bobcodes247365 • Jan 21 '21
My project to debug and visualize Python code by using a combination of conventional static analysis tools and the attention based AI model. - Please ask me any questions!
r/codereview • u/n00bkill3r19 • Oct 16 '20
Finished in PyCharm, not working in Codio
Taking IT-140 and this is the final assignment for this week, I finished it in PyCharm and it works perfectly there, but when I try to run it in Codio (where our assignments are submitted) it fails. I obviously know there are much better ways that this can be written but this is the only thing I can think of. Any suggestions on a better way to get a solution/have it actually pass the check in Codio? Last note, the learning objective this week was regex, which I didn't even use in the solution because I couldn't come up with a way to solve it using regex. https://dpaste.org/JrGB Thanks in advance!
r/codereview • u/bobcodes247365 • Jan 15 '21
My project to debug and visualize Python code by using a combination of conventional static analysis tools and the attention based AI model. - Please ask me any questions!
r/codereview • u/Kanklu • Nov 04 '21
How code reviews should be conducted
I published today an article on how to conduct code reviews for junior engineers. I'd like to improve it, if you have any feedback let me know!