Tag: programming
-
Why functional programming?
This is a post to discuss the benefits of functional programming (FP) for those who don’t use functional programming and I guess most relevant for full stack developers – you love your JavaScript and your SQL children equally. tl;dr: FP combines well with SQL, is easy to learn like Excel, is declarative, makes you think…
-
VSCode Neovim setup
I recently switched over to using the vscode-neovim extension for VSCode. What wasn’t obvious though was how to get a plugin manager and plugins / vim customisations working. I’ll add here quickly my plugins setup as I’m using vim-surround, and a bunch of Tim Pope plugins: I’m on Linux / Ubuntu 22.04, with nvim installed…
-
Javascript REPL
I really like the simple ‘console’ REPL that you have in a browser debug tools. I wanted to recreate this in VS Code. tl;dr Debug console It turns out after lots of experimenting this can be also done with the ‘Debug Console’ when you start a debug session – see VSCode debugging. This is exactly…
-
VSCode debugging
What I don’t think a lot of VSCode users are used to is constantly living with the debugger turned on. Most web devs grew up in a world without Visual Studio, so console.log is the norm. However anyone who used Visual Studio for Visual Basic or C# development will know the power of constantly using…
-
Yet another monad explanation

Photo credit: cheers @laimagendelmundo tl;dr Here’s a really short explanation for JavaScript, as in just the flatmap part. map is pretty well understood in JavaScript (and I’m assuming you understand it). So you ‘just’ need to make the leap to flatmap. Which is mapping something and flattening the result. Flattening a JavaScript array is concatenating…
-
Attacking the modern JavaScript world
Learning all the JavaScript libraries that have come out in the past two years is hard work. I attacked the modern Javascript approach through first focusing on functional programming. 1) Python + functional programming in Python Python is hardly a pure functional language, but it’s lovely and simple and has all the core concepts including…
-
Functional Learnings of Python

Photo credit: cheers Hembo Pagi This is my attempt at converting a solution to a pascal’s triangle problem that I’d written in an imperitive manner into a functional one. I kind of hope that anyone reading this is also trying to figure out the meanings behind functional programming, I’m trying to describe all the steps…