HackerTrans
TopNewTrendsCommentsPastAskShowJobs

rikatee

no profile record

Submissions

You might be using assert wrong (Python)

highertier.com
2 points·by rikatee·4년 전·1 comments

Python old style string formatting is sometimes best practice

blog.devgenius.io
1 points·by rikatee·4년 전·0 comments

[untitled]

1 points·by rikatee·4년 전·0 comments

We fixed f-string typos in popular Python repos

highertier.com
139 points·by rikatee·4년 전·145 comments

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

richardtier.com
9 points·by rikatee·4년 전·3 comments

[untitled]

1 points·by rikatee·4년 전·0 comments

[untitled]

1 points·by rikatee·4년 전·0 comments

[untitled]

1 points·by rikatee·4년 전·0 comments

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

richardtier.com
98 points·by rikatee·4년 전·66 comments

[untitled]

1 points·by rikatee·4년 전·0 comments

[untitled]

1 points·by rikatee·4년 전·0 comments

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

codereviewdoctor.medium.com
5 points·by rikatee·4년 전·0 comments

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

codereviewdoctor.medium.com
360 points·by rikatee·5년 전·327 comments

comments

rikatee
·2년 전·discuss
it's a good start. VSCode is most popular. Largest impact. More potential users. More likely to find a customer base.
rikatee
·2년 전·discuss
> 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?
rikatee
·2년 전·discuss
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.
rikatee
·4년 전·discuss
FWIW, HN is much more positive (while also raising valid points that will be taken into account going forward)
rikatee
·4년 전·discuss
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"
rikatee
·4년 전·discuss
what's also ironic is I left an easter egg in the code sample for how we downloaded the list of repositories and no one has noticed it yet.
rikatee
·4년 전·discuss
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.
rikatee
·4년 전·discuss
Yeah good point that sucks. I will move off wordpress because I'm not a fan of tracking cookies. It's got ridiculous.
rikatee
·4년 전·discuss
interestingly 69 of the 666 repos had the f string issues
rikatee
·4년 전·discuss
of the codebases checked yep (20 of 666 checked).

Bear in mind only 28% of codebases actually use built-in unittest package that this gotcha is affected by, so really it's 20 of 28% of 666 aka 10% ... but that claim would be hard to justify by folks that dig stats.
rikatee
·4년 전·discuss
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)
rikatee
·4년 전·discuss
we were all waiting for you to
rikatee
·4년 전·discuss
yes that's exactly the kind of problem :)
rikatee
·4년 전·discuss
it does not, it just prints them out in the console
rikatee
·4년 전·discuss
the post covers the built-in unittest package, which 28% of devs still use. But pytest is nicer to work with. I think brownfield codebases and inertia are the reason 28% of devs work (or have to work) with unittest
rikatee
·4년 전·discuss
you're right thanks! Updated :)
rikatee
·4년 전·discuss
deep ninja turtles lore
rikatee
·4년 전·discuss
oh dear time for a edit as I did indeed mean Schrödinger!
rikatee
·5년 전·discuss
once tensorflow pointed to keras-team this happened

https://github.com/keras-team/keras/issues/15854

resulting in

https://github.com/keras-team/keras/pull/15876
rikatee
·5년 전·discuss
cool product :) it is just linting or do any of the tools do code transformation to offer the fix for the lint failure? (code review doctor also offers the fix if you add the github PR integration)