↓ Ir para o conteúdo principal

← todas as notas

📎 Webclip

Are You a Confused Programmer? Learn a Functional Language

The author presents functional programming as a better fit for programmers who get lost in large codebases or in languages with more hidden behavior. He contrasts Haskell with Go, Java, Python, Ruby, and JavaScript, saying functional code feels closer to direct instructions and is easier to reason about.

Reading notes
#

  • The author describes himself as an easily confused programmer who prefers human-friendly documentation and comments when possible.
  • He has tried many languages over the years and sees programming as a search for the tool that best matches his way of thinking.
  • Go has been his most productive language, but he still found it lacking and kept exploring functional programming.
  • He says Haskell finally clicked after earlier attempts, helped by experience with OCaml, Erlang, and Lisp.
  • He argues that functional programming has a bad reputation, especially as something suited only to academic work.
  • He finds imperative and object-oriented languages confusing because they make him depend more on an IDE and on tracking references across a codebase.
  • He says functional code feels more self-contained, with less magic and more immutable state.
  • He highlights pattern matching as the feature he most wants in all languages because it makes data shapes visible.
  • He compares a Haskell-style list example with a Go version and says the Go version is more involved to read.
  • He uses a grocery-store example to show that functional style focuses on what to do rather than the exact steps for how to do it.
  • He concludes that people who get confused by large piles of code may find Haskell a better map to their mental model.