5 ms·
>“What example program would best exemplify Erlang” This should be more of a thing. When I see example code, I often see "Hello World", or tutorials which go t
by Zhyl 4y ago
>“What example program would best exemplify Erlang”
This should be more of a thing. When I see example code, I often see "Hello World", or tutorials which go through the primitives and other syntax.
What I want is a short program that shows the language doing something that it does well. Kotlin doing the job of lots of Java, JQ transforming JSON easier than trying to regex it, k doing insane things in 20 characters.
- lloeki 4y agoTangentially related, since I had the (mis)fortune of having to write production code in 20+ languages over the years - not necessarily deep but not one-line-change-hackjob surface level either, more of the kind that requires to get to grips with fundamentals of the language at good enough level for code to be known reliable - I contemplated writing a series of articles about what made a given language feel like what it is at its core, how some syntax features, first-class items, data structures or object model, hierarchy design, conspire to make Ruby Rubyesque, Python pythonic, LISP lispy... reaching not to style, not to function, but to essence. The end goal was not just theoretical but pragmatic, as giving in to the language and adapting my thought process seemed in my experience to increase productivity, reliability, and maintainability by several orders of magnitude, in connection with non-programming languages and linguistic relativity.
- Zhyl 4y agoI would be interested in reading those if you wrote them!