druchan

druchan @druchan

About: 500 Internal Server Error

Location:
India
Joined:
Feb 7, 2023

druchan
articles - 29 total

Letting the compiler guarantee sortedness

It's not often that I wake up on a Sunday and the first thing my brain thinks of is a leetcode...

Learn More 0 0Oct 8

AI Productivity Kool-Aid

A polarised world is usually a disaster but the entertainment-quotient is enormous. And so, as much...

Learn More 0 0Oct 8

Embracing ReaderT finally

Intended audience: programmers, esp those with functional-programming background. My last outing...

Learn More 1 0Apr 18

A Minimal Static Blog Generator in Purescript - My Notes and Code Walkthrough

About two years ago, I decided to move my Tumblr blog to some sort of a custom-made static blog generating tool written in Purescript (a Haskell-inspired language that compiles to JS).

Learn More 0 0Apr 13

Claude, RTFM For Me: Building a VS Code Extension in the Age of LLMs

TLDR I built a VS Code extension for the first time using Claude's help all the way....

Learn More 0 0Feb 7

Advent of Code and Aesthetics

Over the last few days, I've been solving Advent of Code 2024 puzzles in Haskell. This is only my...

Learn More 1 0Dec 14 '24

Windsurf vs Cursor — Initial Thoughts

In some random bout of boredom-leads-to-something, triggered by an equally random YouTube short about...

Learn More 259 6Dec 2 '24

Going from Promises to Aff in Purescript

The other day, I was fooling around with an idea that has come up often in my chats with Jon Udell at...

Learn More 0 0Dec 5 '23

Building mobile apps using Elm and Capacitor

Native mobile app dev is still largely object-oriented driven (Kotlin, Java etc). Languages like...

Learn More 0 0Aug 18 '23

Part 3 – Build a Wordle Helper Using Elm and A Little Bit of Logic

An Elm program to help solve Wordle puzzles.

Learn More 0 0Aug 7 '23

Part 2 – Build a Wordle Helper Using Elm and A Little Bit of Logic

An Elm program to help solve Wordle puzzles.

Learn More 0 0Aug 7 '23

Part 1 – Build a Wordle Helper Using Elm and A Little Bit of Logic

An Elm program to help solve Wordle puzzles.

Learn More 1 0Aug 7 '23

Enrich an object - Javascript Recipe

A recipe to enrich an object using some other mapping data to make data for frontend rendering more useful!

Learn More 3 2Aug 2 '23

Using object-access instead of Array.find when dealing with lots of data - Javascript Recipe

Recipe to access or enrich information about a normalized data.

Learn More 0 0Aug 2 '23

Piping through functions that can throw an exception - Javascript Recipe

If you're dealing with data flows or pipelines where functions can throw an exception, here's a recipe that can make writing and handling these pipelines much easier.

Learn More 0 0Aug 2 '23

Safe, simple, sequential promises in Javascript

Javascript promises are a boon but they're also problematic if you don't handle errors well. This recipe tames them.

Learn More 0 0Aug 2 '23

Parallel promises made simple - Javascript Tip

Making parallel promises easy to handle, process and grokkable.

Learn More 0 0Aug 2 '23

Advanced switch-case / pattern-matching in Javascript

Making switch-case more robust, powerful and useful by borrowing some functional programming ideas.

Learn More 6 0Aug 2 '23

Cellular Automata in Elm: Build Conway's Game of Life

In which we build the Conway's Game of Life cellular automata in Elm.

Learn More 3 2Aug 1 '23

How to render a basic calendar UI in Elm

A walk-through of rendering a basic calendar UI using the Elm programming language.

Learn More 4 0Jul 30 '23

Calculating the maximum profit from stocks: Purescript Leetcode Solution (Updated to use Typeclass)

In the last note posted, we "implicitly" defined some valid trades. Two data structures specifically...

Learn More 0 0Jul 18 '23

Calculating the maximum profit from stocks: Purescript Leetcode Solution

Lately, I've been enjoying solving some Leetcode problems. First, the integer to roman one Then,...

Learn More 0 0Jul 18 '23

Justifying a paragraph of text in Purescript: Part 3

The last part in the leetcode puzzle.

Learn More 0 0Jul 18 '23

Justifying a paragraph of text in Purescript: Part 2

Part 2 of the leetcode question.

Learn More 0 0Jul 18 '23

Justifying a paragraph of text in Purescript: Part 1

In which I try and come up with a logic to justify a paragraph of text and express that using Purescript.

Learn More 0 0Jul 18 '23

Converting an Integer to Roman Numeral in Purescript

Decided to pick a Leetcode puzzle to solve in Purescript. I did a couple of them but here's one that...

Learn More 1 0Jul 16 '23

"Should I learn Monads?"

This is written (or thought) from the perspective of a JS developer who discovered functional...

Learn More 0 0Jul 13 '23

Safe vs Unsafe Javascript

TLDR: Try to catch errors early, convert errors into "data" that can safely be passed around without...

Learn More 1 0Jul 13 '23

Build a useInterval hook from scratch

TL;DR: running a function repeatedly, at set intervals, is tricky in React. existing examples and...

Learn More 0 0Feb 7 '23