Better HN
topnewbestaskshowjobs
Log inSign up

rikatee

542 karma · joined Nov 24, 2014 (12y ago) · 126 submissions

Submissions

comment 2y ago · link · parent

it's a good start. VSCode is most popular. Largest impact. More potential users. More likely to find a customer base.

comment 2y ago · link · parent

> 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?

comment 2y ago · link · parent

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.

4.

You might be using assert wrong (Python)(highertier.com ↗)

2 points · by rikatee · 4y ago · 1 comment

5.

Python old style string formatting is sometimes best practice(blog.devgenius.io ↗)

1 points · by rikatee · 4y ago · discuss

comment 4y ago · link · parent

FWIW, HN is much more positive (while also raising valid points that will be taken into account going forward)

comment 4y ago · link · parent

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"

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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.

10.

We fixed f-string typos in popular Python repos(highertier.com ↗)

139 points · by rikatee · 4y ago · 145 comments

comment 4y ago · link · parent

Yeah good point that sucks. I will move off wordpress because I'm not a fan of tracking cookies. It's got ridiculous.

comment 4y ago · link · parent

interestingly 69 of the 666 repos had the f string issues

13.

10% of the 666 most popular Python GitHub repos have these f-string bugs(richardtier.com ↗)

9 points · by rikatee · 4y ago · 3 comments

comment 4y ago · link · parent

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.

comment 4y ago · link · parent

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)

comment 4y ago · link · parent

we were all waiting for you to

comment 4y ago · link · parent

yes that's exactly the kind of problem :)

comment 4y ago · link · parent

it does not, it just prints them out in the console

comment 4y ago · link · parent

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

comment 4y ago · link · parent

you're right thanks! Updated :)

comment 4y ago · link · parent

deep ninja turtles lore

comment 4y ago · link · parent

oh dear time for a edit as I did indeed mean Schrödinger!

23.

3 percent of Python codebases we checked had silently failing unit tests(richardtier.com ↗)

98 points · by rikatee · 4y ago · 66 comments

12345