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

The most annoying phrase was "less code, less time, less...". Uncle Bob thought us to be explicit, help the reader understand the code and be verbose with the variables etc. Now he loves a Syntax that says #(25 % %)... Aaaalright, try to get a new company member understand a big code base with this massive oneliners. I doubt that this is the right language for enterprise projects.


Here's the fundamental thing to understand. Especially if you are new to Lisp:

The lines are more concise. That also means you will need more time per line to read the code.

Especially in Java, you can skip over so much boiler plate code, you kinda feel you are reading code fast.

Not so with Lisp. You need some familiarity with it and you will need to adapt to a line just having more stuff to understand in it.

Also, you can tune this using libraries as many things are a la carte.


But that's not a contradiction. He wants you to be explicit with using the language, but if we speak the same language, the standard bits can be concise.

So it's ok to say #(25 % %) because we both speak the same language and we know what it means, the intent is clear.

But it's not okay to call your variables a, b, c, because that's meaning, not syntax, and I can't understand your intent from those variables.

Massive one-liners probably fall into the latter, but I don't think he's advocating those.




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

Search: