Lurker News
I love asking new colleagues this question, figured I would open it here as well.

What are you surprised isn’t being worked on more?

Comments (1,239) 188 threads

Show all comments

Showing thread 72 of 188

zachrose1 reply#
Programming languages with built-in inversion of control by way of an effects system, like in Elm.
jgwil21 reply#
Could you elaborate on that a little?
zachrose1 reply#
Elm is a purely functional language, meaning all you write are the insides of functions that take a value and return a value. There's no imperative way to "do anything" like make an HTTP request, all you can do is return a "command" value from a function and the core libraries will do it.

This means that the core libraries define the signatures of the functions that an Elm application must implement. (All Elm apps "work the same way" in that sense.) It also means that you never have to mock or stub anything in a test. There are also great implications for performance and maintainability.
Elm compiles to JavaScript and is specific to browser applications, but there's no theoretical reason the same idea couldn't be applied to mobile apps or CLI applications or webservers or anything else. (It's just a lot of work.)

jgwil21 reply#
So it sounds like there's Elm the framework and Elm the language then. The language is the language and the framework gives inversion of control. So this is a bit unique in that usually frameworks are built in a language that has other uses, but how is it qualitatively different from programming in any other framework?

Continue this thread — 1 reply