This post is the last in a series of posts about programming languages.
Programming languages have been discussed at length in this series. We end here with a questionnaire and table showing what programming language should be chosen precisely based on one's needs.
Before it is presented, we know to caveat to the below: the front end. Front end is a complicated mess but in general the language is often picked for you based on the phone or device on which your code will be running. Sometimes there is a choice, sometimes not.
The front end is only the largest of the caveats surrounding the general advice presented below. However, The advice found in the questionnaire below follows strong general principles that still have merit.
Am I working on embedded, OS, database, or other performance-sensitive environment? If so, use management-free languages; otherwise a memory managed, CPU managed language.
Supposing I chose a managed language, do I need to distribute the build artifacts to other people outside my organization? If so, choose a platformless language; else choose a language with a platform.
If I chose a language with a platform, does the language need to work with large amounts of code written in a management-free language, such as natively written libraries or the browser? If so, choose an interpreted language; else choose a VM-based language.
Is my team small, but needs to be as productive as large teams in order for my company to survive? Alternatively, is the team working on some very difficult problem? If so, exercise lenience when the team suggests using a language with more power or with some fancy feature in it.
Are the language features truly compelling to the developers, with minimum viable community established? If so allow the team to pick a smaller community language; otherwise choose a language with a large community.
Consult the following chart to see which language you picked.
|yes||yes||yes||no||yes||yes||Elm , Scala.js|
*: Common Lisp, Clojure, Erlang, Elixir, F#, Racket, Scheme.
***: CoffeeScript, Vimscript, ColdFusion
****: ClojureScript, Hy, Fennel, Elisp