Find out why Clojure delighted Uncle Bob and why is used by huge corporations like Netflix, Wallmart, Daily Mail, (Allegro is joining this list) and why, regarding Greenspun's tenth rule, you already wrote your software in lisp.
2. About me
• humble software engineer @allegro
• kung fu master in spare time
• Almost none of those thoughts are mine.
Presumably there are no new thoughts after
Aristotle. For sure after 1970…
42. – Greenspun's tenth rule
“Any sufficiently complicated C or Fortran
program contains an ad hoc, informally-
specified, bug-ridden, slow implementation of
half of Common Lisp.”
43.
44. @RestController @EnableAutoConfiguration
public class GreetingController {
private static final String template = "Hello, %s!";
private final AtomicLong counter = new AtomicLong();
@RequestMapping("/greeting") public Greeting greeting(
@RequestParam(value="name", defaultValue="World") String name) {
return new Greeting(counter.getAndIncrement(),
} }
String.format(template, name));
example provided by P. Kapała
45. @RestController @EnableAutoConfiguration
public class GreetingController {
private static final String template = "Hello, %s!";
private final AtomicLong counter = new AtomicLong();
@RequestMapping("/greeting") public Greeting greeting(
@RequestParam(value="name", defaultValue="World") String name) {
return new Greeting(counter.getAndIncrement(),
} }
String.format(template, name));
example provided by P. Kapała
48. –-- Dr. Alan Kay, 2003.
“OOP to me means only messaging, local
retention and protection and hiding of state-
process, and extreme late-binding of all things. It
can be done in Smalltalk and in LISP. There are
possibly other systems in which this is possible,
but I'm not aware of them.”
55. Success story?
• Simple rest service
• 2000 lines of code in java
• 150 lines of code in clojure (one 27” screen)
• most people exp: 1/5 of codebase
66. –Adrian Cockroft
“A lot of the best programmers and the most
productive programmers I know are writing
everything in Clojure and swearing by it, and
then just producing ridiculously sophisticated
things in a very short time. And that programmer
productivity matters. “
http://thenewstack.io/the-new-stack-makers-adrian-cockcroft-on-sun-netflix-clojure-
go-docker-and-more/