logoalt Hacker News

the_sleaze_yesterday at 9:16 PM2 repliesview on HN

I know this is tongue in cheek, but writing functional code in an object oriented language, or even worse just taking a giant procedural trail of tears and spreading it across a few files like a roomba through a pile of dog doo is ... well.. a code smell at best.

I have a user prompt saved called clean code to make a pass through the changes and remove unused, DRY and refactor - literally the high points of uncle bob's Clean Code. It works shockingly well at taking AI code and making it somewhat maintainable.


Replies

zx8080today at 12:53 AM

Does its output follow the "no comments needed" principle of the uncle Bob?

boredtofearstoday at 12:20 AM

Care to share the prompt? Sounds useful!