Tag: ClojureScript

Fun Dojo

January 02, 2022

In this Dojo, we work out our functional muscles..



Read More →

Fireworks

December 11, 2021

In this post, we will learn how to put together a spectacular animation like Anthony Galea's Fireworks. I have enhanced the source a bit in my implementation. It helped me unravel the role "blend mode" and g - acceleration due to gravity played in the animation. I have also simplifed the …

Read More →

Rule 30

October 15, 2021

In Fun Life, we looked at Conway's Game of Life and implemented it in functional style. In this post, we see another cellular automation - Stephen Wolfram's Rule 30 in action. We see what makes it work and also get acquainted with other related automata. Lastly, I share notes from my …

Read More →

Fun Life

October 11, 2021

Computer simulations can be excellent teachers. This essay explores the beauty of one such simulation - Conway's Game of Life aka simply Life. We will describe the game rules, see it in action and reflect on it. Finally, I share notes from my implementation. We also get a sense of how …

Read More →

D3 - Part 2 Intro

October 07, 2021

This is part 2 of our introduction to d3. In the first part, we looked at bar charts based on divs. In that post, we also looked at the join operator (hardcoded version) briefly. In this post, we will see how we can make a bar chart out of svg …

Read More →

D3 - Part 1 Intro

September 14, 2021

This series explores the popular JavaScript data visualization library d3 through the lens of ClojureScript. The d3 philosophy nicely fits the ClojureScript-Reagent-React functional paradigm. If you wish to narrate interactive stories with visualized data, d3 might be right for you. Let's dive right in...

Assume you want to visualize the …

Read More →

On Immutability

April 19, 2020

Programming languages are super fun. Like people, they too belong in family trees and follow an evolutionary graph. They liberally copy, adapt and improve upon ideas from each other all the time. You know an idea/style is a good one, if you see it being retained, borrowed or made …

Read More →

XIRR Tool

September 28, 2019

In Properties of Money we have seen the importance of "r" - or annualized returns. As an investor, how would you assess your investments across various assets and compare their relative returns?

MS Excel's "Extended Internal Rate of Return"-XIRR function is one such metric.

XIRR is a money-weighted annualized return …

Read More →

FIFO Tool

September 07, 2019

My transactions in and out of Mutual Funds ran into the 100s last financial year.
Here is a generic tool I created to compute gains for tax filing this year.
Given all trades ever (e.g in a MF folio), the tool applies First-In-First-Out logic to compute gains in sales …

Read More →