HN user

rikatee

542 karma
Posts25
Comments71
View on HN
highertier.com 3y ago

You might be using assert wrong (Python)

rikatee
2pts1
blog.devgenius.io 3y ago

Python old style string formatting is sometimes best practice

rikatee
1pts0
highertier.com 4y ago

We fixed f-string typos in popular Python repos

rikatee
139pts145
richardtier.com 4y ago

10% of the 666 most popular Python GitHub repos have these f-string bugs

rikatee
9pts3
richardtier.com 4y ago

3 percent of Python codebases we checked had silently failing unit tests

rikatee
98pts66
codereviewdoctor.medium.com 4y ago

Python repos checked. 11% of 5409 open() calls were never closed

rikatee
5pts0
codereviewdoctor.medium.com 4y ago

5% of 666 Python repos had comma typo bugs (inc V8, TensorFlow and PyTorch)

rikatee
360pts327
codereview.doctor 4y ago

Show HN: I made a bot that suggests fixes for Python bugs right inside the PR

rikatee
9pts1
pypi.org 5y ago

Show HN: Django Code Improvement Suggestion Engine

rikatee
1pts1
django.doctor 5y ago

Show HN: Django changelog comparison tool – see what changed between releases

rikatee
4pts2
django.doctor 5y ago

Django security challenge: can you fix all the security flaws?

rikatee
2pts0
django.doctor 5y ago

Django refactor challenge: can you fix all the ORM anti patterns?

rikatee
2pts0
django.doctor 5y ago

Django refactoring game – can you fix all the Models anti-patterns?

rikatee
80pts53
djangodoctor.medium.com 5y ago

Spot urls.py bugs lurking in plain sight

rikatee
1pts0
djangodoctor.medium.com 5y ago

The Django anti-pattern preventing your prod rollback

rikatee
2pts0
djangodoctor.medium.com 5y ago

Fixing inefficient Django ORM calls in brownfield projects

rikatee
2pts0
djangodoctor.medium.com 5y ago

Detect when using the wrong Django model field

rikatee
2pts0
djangodoctor.medium.com 5y ago

Auto detect flaky Django migrations

rikatee
2pts0
djangodoctor.medium.com 5y ago

Thinking CharField? Think Again

rikatee
2pts0
djangodoctor.medium.com 5y ago

NullBooleanField Is Dead

rikatee
1pts0
djangodoctor.medium.com 5y ago

Django's {% static %} is not just about S3

rikatee
1pts0
djangodoctor.medium.com 5y ago

Naked settings.py in your Django codebase?

rikatee
1pts0
djangodoctor.medium.com 5y ago

The hidden cost of Django's unique_for_date

rikatee
3pts0
django.doctor 5y ago

Show HN: A Django code review bot for GitHub pull requests

rikatee
105pts63
django.doctor 5y ago

Django GitHub PR bot that suggest the fix

rikatee
4pts3

internally and see a 5-10x boost on some tasks.

That's my experience with co-pilots too:

- Generating tests

- Generating functions consistent with prevailing style of similar functionality in the existing codebase. The greater the consistency, the more helpful the AI is at generating.

- Telling me why my code is crap by adding a `# todo: ` above some code and seeing what the AI suggests should be changed :)

What other tasks do you see as good target for 5-10x boosts?

I like this. I think AI agents are the future of software development.

AI will not replace devs. Devs that use AI will replace devs that do not use AI.

The most effective devs will be those employing a fleet of AI agents, acting as the glue and guiding hand for what the agents should produce.

This helps us get to that future, so I think this has legs.

I use VS code. I will try this out.

flake8 does not currently support this check, as they are concerned about the false positives from "what if the string it later used in .format(...)"

However, Code Review Doctor is more of a "this MIGHT be a problem. have you considered..." rather than "it wrong"

klyrs was right about the reply from me (a dev behdind Code Review Doctor) being dismissive in the issue. I apologise for that.

FWIW my reaction was classic "expectations not meeting reality": weeks of work to do (what I thought) was a mutually beneficial helpful thing. I was naively not expecting non-positive responses and was ill prepared when you raised valid concerns I had not considered.

Again, I am working on that and sorry I was passive aggressive to you.

Agreed in perfect world, but unfortunately any process that involves humans will involve human error.

We do code review because we expect human error when the code was written by a human, but then we also expect not human error when the code is being read (reviewed) by a human? Any process that expects zero human error will always fail.

That's where linters add value: they allow devs to do what humans are good at (the creative complex and interesting stuff) while the bots do what bots are good at (the boring repetitive stuff)

It's a code review copilot for GitHub that suggests fixes to bugs it finds e.g, if you missed a comma in a list, accidentally committed a breakpoint, used deprecated features, using "==" when you should use "is" and vice versa, if you're making your life harder than it needs to be, and more.

This started life as a Django-specific toolbut I recently overhauled it to also support checking Python code in general hence changed the name from Django Doctor to CodeReview Doctor. So now it does both (and will do more languages and frameworks in future).

Feedback on landing page would be appreciated and of course give it a spin. it's free to public repos!

6 months ago I released Django Doctor to review github pull requests.

Now it can be installed as a command line tool via `pip install django-doctor`.

So now instead of reviewing deltas in GitHub PRs it runs locally and analyses your entire codebase to suggests improvements.

A nifty trick is it uses the browser to allow you to pick and choose which suggestions to take and then adds `# django-doctor: skip foo` to lines you don't want changing.

Hopefully after 6 months, 1000 installations on github, and tens of thousands of builds in the cloud it shouldn't have too many bugs when running locally! Let me know!