I have not been coding for a few years now. I was wondering if vibe coding could unstick some of my ideas. Here is my question, can I use TDD to write tests to specify what I want and then get the llm to write code to pass those tests?
TDD helps a lot, but it’s no guarantee - LLM is smart enough to “fake” the code to pass tests .
I’m working on project - a password manager, where I have full end to end test harnesses - cli client makes changes, sync them to the server and then observe the data in iOS app running in the emulator. More than once I noticed codex just hard coded expected values from the test harnesses directly into UI layout in iOS app to make the test pass…
Similar issues in the crypto layer - tests were written first , then code was written . During the review I noticed that the code was made to just pass the test - the logic was to check if signature values exists
instead of checking if crypto signature is valid.
LLM can help with code reviews as well, but it has to be guided specifically what to look for for. This is with codex 5.4 model
That's a great approach, though I'd also recommend setting up a strong basis for linting, type checking, compilation, etc depending on the language. An LLM given a full test suite and guard rails of basic code style rules will likely do a pretty good job.
I would find it a bit tricky to write a full test suite for a product without any code though. You'd need to understand the architecture a bit and likely end up assuming, or mocking, what helpers, classes, config, etc will be built.
You absolutely can. This is one of recommended directions with agentic coding. But you can go farther and ask llm to write tests too. The review/approve them.
Yes, I mostly do spec driven developement. And at the design stage, I always add in tests. I repeat this pattern for any new features or bug fixes, get the agent to write a test (unit, intergration or playwright based), reproduce the issue and then implement the change and retest etc... and retest using all the other tests.
To expand on the "Yes": the AI tools work extremely well when they can test for success. Once you have the tests as you'd like them, you may want to tell the LLM not to modify the tests because you can run into situations where it'll "fix" the tests rather than fixing the code.
yes. depending on the techstack your experience might be better or worse.
HTML/CSS/React/Go worked great, but it struggled with Swift (which I had no experience in).
How did he get in this mess? I reckon a complete moron could have stolen 10% of the gold without getting caught. Just count and log less than you found. Drop it overboard with a GPS pin on your way back to port. Get it next year.
Well you use your real share to generate a complex series of investments to make it very hard to judge your wealth. In it you begin trading gold legitimately, not gold markets but buying and selling real gold. The stuff off the boat gets mixed in over the years. Buy some shipwreck gold! Collect gold coins personally! Buy and sell collectables
Melt some down, have it remade into other things, and it gains a bit of weight here and there.
If you’re unsuspecting and the investors get enough return, then it’s really not to hard as no one is going to be watching you or have any reason or ability to audit your finances.
I’d say it’s almost expected that someone in that position would skim off the top in this way. The problem is he stole it all and that’s obviously going to raise questions.
I mean it is pretty easy to sell gold, especially if you sell it below spot price or melt it. If someone offered me gold at a 10% discount, I would immediately buy it and go sell it at whatever gold dealer for an easy profit. Im sure most gold dealers would do the same thing even if it was obviously stolen spanish gold or something.
If you wanted some sort of legal paper trail to fall back on you can spend a bit of money on a few machines and rights to a gold claim in Alaska, dig some random holes for a few months, then claim you struck it rich.
The man in the video is Chris Razer and he explains everything very well. I wish he had more long form content online for people to learn and understand
You type in a normal profit and loss account, prior year might work, forecast is better. Then you see how your freight cost changes from sea to air by getting a quote from your freight company of choice. If it is 5% more then change the freight line in your p&l to be 5% higher. Are you still profitable?
Those countries may also ratify EU laws if they wish. I think the UK has something similar to GDPR and Switzerland also picks and chooses which laws it thinks make sense.
reply