4 ms·
I assume (perhaps naively) that Google must have a non trivial amount of CL development if they have a style guide for the language... anyone know what they use
by ch_123 6y ago
I assume (perhaps naively) that Google must have a non trivial amount of CL development if they have a style guide for the language... anyone know what they use CL for?
- carry_bit 6y agoMy guess: Google bought ITA Software about 10 years ago, and their search engine was written in Common Lisp.
- danielam 6y agoYes. The authors of this document were all engineers who worked on QPX/QRES.
- shaftway 6y agoIt doesn't take much need to write a style guide. And this one is rather lackluster. By comparison look at the shell style guide: https://google.github.io/styleguide/shellguide.html https://google.github.io/styleguide/shellguide.html
- gpanders 6y agoFrom the linked shell style guide: > Indentation is two spaces. Whatever you do, don’t use tabs. The recent obsession with 2 space indents is boggling to me. I find it much more difficult to read (especially in long blocks of code with lots of indentation switches) and I'm not even visually impaired. They also apparently really don't like tabs, which I find interesting. Personally, I was converted to the tabs camp after learning how much better tabs are for accessibility. I'm surprised that Google of all places doesn't take that more seriously.
- sgeisenh 6y agoObligatory disclaimer: comments are exclusively my own and do not reflect the views of my employer. A lot of these rules exist for the purpose of having a consistent rule. With modern tooling, there is virtually no difference between tabs and spaces. What is important is to have some rule to avoid the constant bikeshedding that would occur if there wasn't one.
- ahefner 6y agoIs 2 spaces really a recent obsession? This is just what emacs (and ancient emacs-likes) have always done, and how all the Lisp code (excluding that by newbies and in fringe dialects) has been formatted. CL best practice, formatting wise, is 95% just to let emacs do what it does by default.