Tag: javascript
-
Why Functional Programming?
tl;dr: FP combines well with SQL, is easy to learn like Excel, is declarative, makes you think of data as a whole, is backed by mathematics and most importantly has less bugs (which has a “compound-interest” benefit). This is a post to discuss the benefits of Functional Programming (FP) for those who don’t use functional…
-
Composable
What does it mean to say that something is composable in JavaScript? These are some notes after watching the funfunfunction Promises video. Composing two functions is calling one function inside another: The video compares callbacks: vs Promises: Callbacks are not composable, but Promises are. Or in individual terms, we can return a promise from each…
-
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…
-
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…
-
Lock Stock Pomodoros

I give you http://pom.ianchanning.com. Pomodoros with a Lock Stock film quote at the end of each one. I’m a little obsessive about timers (see bottom) and the other pomodoro timers I’ve tried failed on different counts. I’ve tried to cram everything I find useful about a timer. Firstly spacebar to start/stop. The timer should be…
-
Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience
If you get the error “Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience.” from IE8 (Internet Explorer 8), there’s a chance it is a problem with jQuery specifically a bug with jQuery v1.6.2. The solution is to upgrade to the latest version of jQuery. I found the problem…