Posts
- 
        Haskell: free vs freer vs tagless final — #1 Scenario & TransformersThe battle of the decouplers. 
- 
        Haskell: Monad.Or at least my attempt at explaining it 
- 
        Haskell: Either.Either is the Preludeprovided type that allows us to work with functions that can return either one result or another.
- 
        Haskell: State and StateT examples.A look at the State Monad and StateT Monad Transformer. 
- 
        Haskell: ApplicativeOr how to do the same thing with a different approach. 
- 
        NIX: Small/Random, but Useful patternsSay you have a few packages that you would like to build but you want an easy way of doing so. Here’s a handy little pattern that could help out. 
- 
        NIX: 2 Simple derivationsI’ve been using NixOS and I quite like it (a lot). When I installed it, I got rid of my Debian and jumped head forwards with a full wipe out and clean instal. To be honest, it wasn’t that bad, and I managed to install everything in two attempts with around 1 hour of tweaking in the liveUSB version - but the documentation was nice, clear and easy to follow. 
- 
        Haskell: FunctorComing from the world of category theory, a functor is a mapping between two categories: 
- 
        Haskell: MonoidsWell believe it or not, Haskell defines a Monoid as a Typeclass, that lets you do funky stuff. Great!
- 
        CLisp: Thread last - like ClojureThese days I’ve been playing with Clojureand one macro I really liked was->>which is calledThread last. Let’s implement it in Common Lisp.
- 
        regex: grep/egrep cheatsheetLet’s have a look at the grepandegrepcommands.
- 
        sed: one stream editor to rule them allI enjoy UNIX, a lot. And A few weeks ago I was reading a book about unix when I stumbled upon one of the oldest editors in unix and that is ed. The more I looked into it the more I realised where a lot of vim featurs come from. Well,sedis very much the stream version ofed.
- 
        math: binary, hex, and logicComputers are, at their core, a logic based machine, that can store information, and do operations on the stored information. Let’s have a look closer to how that is done and what is used in the process. 
- 
        workflow: Kattis competitive set-upAt Bath University, each Saturday the Bath Computer Science Society organises programming competitions. 
- 
        c++: GDB & G++ compilerLet’s have a look at GDB. 
- 
        build: MakefilesA makefiletellsmakewhat to do, and usually these instructions tell make how to compile and build a program. They are super useful when you have multi-file projects, but not only.
- 
        math: Bayes TheoremTo better define Bayes Theorem, one must have a good understanding of what all the constituent parts within it. For my own and everyone’s benefit I will break them down as much as possible. If you see any mistake, please point it out to me via GitHub, as I have written these myself in a creative frenzy. 
subscribe via RSS