Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'd definitely refactor your C-like pseudocode to multiple lines :-D


Of course, in real projects I don't write such codes. But that's not because it is harder to read, but because it is harder to alter; say, if you have another condition for say `-v` vs. `--verbose` then you would have to reformat it to multiple lines. The meaning of the quoted line is not hard to figure out if you know a bit of bash, and that's all I would expect from a showcase.


Of course what you fight for is readability and only readability. Especially in large projects. There will be literally 10 man-hours spent on reading this for each 1 man-hour of reading-followed-by-altering-it.




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

Search: