News for hackers. Stuff that matters.
Re:Google Common Lisp style guide by ch_123 on Tuesday July 07, 2020 @02:47PM (#23762642)
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?
Re:Google Common Lisp style guide by carry_bit on Tuesday July 07, 2020 @02:50PM (#23762681)
My guess: Google bought ITA Software about 10 years ago, and their search engine was written in Common Lisp.
Re:Google Common Lisp style guide by danielam on Tuesday July 07, 2020 @03:18PM (#23762964)
Yes. The authors of this document were all engineers who worked on QPX/QRES.
Re:Google Common Lisp style guide by shaftway on Tuesday July 07, 2020 @04:00PM (#23763351)
It 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
Re:Google Common Lisp style guide by gpanders on Tuesday July 07, 2020 @06:59PM (#23765181)
From 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.

Re:Google Common Lisp style guide by ahefner on Tuesday July 07, 2020 @10:43PM (#23766416)
Is 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.
Re:Google Common Lisp style guide by sgeisenh on Tuesday July 07, 2020 @10:33PM (#23766376)
Obligatory 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.