Today I tried playing around with Haskell to learn it a little bit better. It was not a smooth start. It seems most projects these days in the haskell ecosystem are moving towards using nix as their package installer of choice.
-
posts
-
Nix - A Bumpy Takeoff
-
useRef - more than just for elements
If you have played around with the relatively recently introduced react hooks at all, you might have wondered if it was possible to create a variable in one useEffect and reuse it in another and what the best way to do that would be. The answer to this might not be so obvious but it turns out that React provides a way.
-
Using JSDOM with ES modules
I spent some time trying to upgrade an older library that was using JSDOM to mock out DOM operations while testing. After converting it more or less verbatim to comply with API changes in JSDOM, I ended up with something more or less like this:
-
Basic project setup for Typescript with React
I spent some time today setting up a project using React, Typescript, and Webpack. There are various guides out there but none were quite to my liking. It took a little while to get everything working right so I decided to document my journey. Mostly I just did this for my own purposes but maybe it will be helpful to someone. I’ll be breaking it down step by step with every error along the way documented. If you are looking for a quick get up and running guide and you don’t care about any of the details, this is probably not the place for you. If you are here to resolve some issue you have had or maybe want some insight into how things work and why they need to be configured the way they are, this post might help you.
-
Redux With Client Storage
Right now, it seems like redux-storage is the best storage option available when working with redux. It has a flexible arcitecture that allows swiping out different engines. You can use, for example, indexeddb.
-
A Simple Implementation Of A Cat And Mouse Game
I spent some time revisiting an old project that I worked on long ago. It wasn’t anything productive, just a small game where you chase a ball using the mouse.
-
Something to Took Look Out For When Importing in Frontend Javascript
Be careful when importing functions from libraries while developing web applications. For example:
-
Partial Functions vs Partially Applied Functions
So lately I’ve been doing a lot of playing around with scala. Quite a fun and interesting language. Pretty soon I plan on posting about some my initial thoughts about the language so far.
-
A Quick Fix For An Issue With Symlinking Ruby
Ran into this problem the other day. Thought I’d blog about it before it got too stale in my mind. In most typical entry points to an application you’ll see something like this: