Ciao!
Did you know that in Italian we use "ciao" both for hello and goodbye? During my time in Chile, I've witnessed the following interaction
Person 2, an Italian friend of mine, will remember forever that in Spanish "chao" has only one of the two meanings.
I hope I didn't lose anybody by making the same mistake here!
If I had to pick one of the best success stories of my career, I would prolly chose AirCasting. When we started the situation was dramatic: everything was on fire all the time. In two years or so we managed to redesign the entire application and introduce many new features while paying off a huge part of the technical debt. The Elm Tricks from Production series covers part of that story, directly from the production trenches.
Elm Tricks from Production–Intro – How Elm enabled fast iterations, cutting costs and keeping everybody happy in one of our projects at work—AirCasting
It seems I cannot stay away from rescue projects. As a matter of fact, I'm currently working on another messy codebase. This time I'm at the beginning of the journey. It has been a rough couple of weeks. For this reason, I needed to write a therapeutic post. By the way, I didn't mention it in the blog but I found 546 any
s in the TypeScript code. Send help.
Grateful for the Opportunity of Working on Legacy Code – In the end it's my choice. I can be lazy, fixate on the small details and waste time. Or I can use some discipline, focus on the big picture and accept the challenge.
Folding is the functional programming lingo for "summarizing" a data structure to a value (e.g. sum all elements of a list of integers). In this week's video we use Foldable to both count the leaves of a tree and transform it into a list. Unfortunately, I could not use the same magic to tame my hair. But that's part of the show I guess.
PureScript/Haskell: Folding Trees
# Rename a branch
git branch --move [<old-branch-name>] <new-branch-name>
# Switch to the previous branch
git checkout -
# Pathspec magic to exclude dirs or files in git commands
git log -- ':(exclude)dir'
# or
git log -- ':!dir'
# Hoogle from the command line
cabal install hoogle
hoogle generate
hoogle --count=1 "a -> a"
# Prelude id :: a -> a
-- Monadic function composition
print <=< listDirectory $ "./"
I've been wondering how to compose predicate functions elegantly for a long time. Well, not anymore thanks to Christian Gill.
Since I met Christian at Monadic Party last year, I feel we have been producing content on parallel tracks. He has been a supporter of my work and I'm a fan of his. If we were musicians I think it would be time for a collab. But you never know!
Christian does a lot of cool stuff, including a Hoogle-like tool for TypeScript. You should totally go and say hi. Tell him the author of the PinkLetter sends you for an additional laugh.
Without further ado, here's the article: Composing predicates.
The best part of email is that interaction is personal and one button away. So please reply with your thoughts, let's learn from each other.
Thanks for spending some time reading with me. I appreciate it.
Yours truly,
Riccardo.