←back to thread

219 points crazylogger | 1 comments | | HN request time: 0s | source
Show context
blopker ◴[] No.42728926[source]
In Rust, there's a controversial practice around putting unit tests in the same file as the actual code. I was put off by it at first, but I'm finding LLM autocomplete is able to be much more effective just being able to see the tests.

No clunky loop needed.

It's gotten me back into TDD.

replies(3): >>42730891 #>>42736174 #>>42739753 #
1. regularfry ◴[] No.42736174[source]
I've sometimes done the same in python. I do quite like the ergonomics.