Maybe we can keep on coding? pseudo code project
Posted by EmptyDrum 9 hours ago
6 months ago a few people [https://news.ycombinator.com/item?id=44940089] agreed that LLMs are very good at translating Pseudo-code to real code. I agree. Also, writing pseudo code somewhat makes me feel a similar state of flow. Maybe even more, because no compiler/interpreter annoys me about syntax issues. Now, I built this:
https://github.com/HalfEmptyDrum/Pseudo-Code-Flow
It is basically a Claude Code skill. You can call it on a .pseudo text file with /translate. It will obviously translate the pseudo code into your specified language. This would be nice and all, but I included another subtle but useful feature:
*This is probably the most useful feature and fundamentally changed my coding*:
The LLM will suggest changes (design, architecture, functionality, ...) to your code, but will roughly use your pseudo code style.
I think of pseudo code as the semantic body that is closest to how the code/algorithm is represented in my head. When Claude then answers in my language instead of Python/C++/... (which has lots of boilerplate to make it work), it resonates much easier with me.
Let me know what you think!
Comments
Comment by codingdave 2 hours ago
So it will change your architecture, but keep your line-by-line logic? Is this like a self-driving car that takes you to the wrong destination, but accurately follows traffic laws on the way?
Give me the opposite - something that builds exactly what I designed, but has the freedom to get there in better ways than I suggest.
Comment by jseabra 4 hours ago
Comment by lazypl82 8 hours ago
Comment by raw_anon_1111 7 hours ago
Comment by EmptyDrum 8 hours ago
Comment by EmptyDrum 9 hours ago
Really useful read!
Comment by stbtrax 9 hours ago
Comment by EmptyDrum 9 hours ago
Comment by EmptyDrum 9 hours ago