Advent of Code 2023 Day 1

AOC-2023-1 Trebuchet?! I have tried solving advent of code 2023 challenges in haskell, and this was my attempt to solve day 1. In this problem we have to find the first and last digits in a line and sum them. problem link: https://adventofcode.com/2023/day/1 Part 1 First part is very simple as it is just a parsing problem, and we can use my favourite library for parsing: parsec to solve it. Part 2 Second part have a variation that say the digits may be spelled out like one instead of 1. which seems to be easy to solve as we can just change our parsing logic to consider both 1 and one as 1. But when I treid to solve it using that approach, I was getting the wrong result. ...

February 26, 2024 · 2 min · Upendra Upadhyay

Putting Yourself Out

I have never been consistent with my writing and I wish to change it to become better at writing; and Internet is a place where we can express ourself. so this is me being accountable and putting myself out. Now, I will be trying to write about: daily-life things I learned explaining something snippets anything else I will be trying to stick with it.

February 25, 2024 · 1 min · Upendra Upadhyay

Clojure Rate Limiter

hello how are you

June 18, 2023 · 1 min · Upendra Upadhyay

Rust Refactoring and function closures

I was recently watching Jon Gjengset’s Video on solving fly.io distributed system challanges and I always liked doing these kind of things, and it was a good excuse for me test my rust skills. I started doing these exercises in rust here. I was able to solve echo and unique-id generator challanges, but the decisions I took while doing them was becoming difficult to work with for the next challange. so below is me working on refactoring some code to support multiple handlers, I am not sure if it is a good decision, but here we go: Your browser does not support the audio element. ...

April 15, 2023 · 1 min · Upendra Upadhyay

Visitor Pattern

I created a new video and google slide explaining visitor pattern: Youtube Video: Google Slide: references: Google Slide Gangs Of Four Book awesome blog about clojure design patterns: http://mishadoff.com/blog/clojure-design-patterns/#episode-4-visitor

February 11, 2023 · 1 min · Upendra Upadhyay