Hacker News new | past | comments | ask | show | jobs | submit login

But yikes, please don't put that into production!

Given a stack trace pointing to that single line of code with an exception, could you immediately figure out what had gone wrong? Would you know what to fix before you even had the code up in the editor?

That's something you can do with well-written production code. It's not particularly sexy to look at, but it's built for debugability.

Split that little kernal of awesome into 7 distinct lines that your CS101 nephew can explain back to you. Then it's ready to go live.




Consider applying for YC's W25 batch! Applications are open till Nov 12.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: