Samuel
Advent of Code 2023 has confirmed my longstanding suspicion that I’m a Haskelloid at heart
Samuel@samuel.fm· 4 Dec 2023
writing C is like trying to instruct the world’s most pedantic toddler how to make a crayon drawing, and if you don’t keep a close eye on them they’ll keep drawing off the page and onto the sofa and the walls
4 1 9
Samuel
Added little indicators - I like how it indicates if we’re mutuals :)
List of people who liked my post - it has a little tag next to their name to indicate if they follow me, I follow them, or both 3 1 20
Samuel
Average Dan PR description: the most beautiful piece of technical writing you’ve ever seen in your life, covering not just the changes made but also the thought process, intention, and implications of the changes Average Paul PR description:
3 8 73
Samuel
I hate android so fucking much what the hell is this bug. How the heck is the header scrolled away
Text is going underneath the thing that's meant to be attached to the keyboard 5 2 36
Samuel
it is known that all humans lie on the rat --- frog spectrum. what is understudied is how all New Yorkers lie on the extremes
2 2 9
Samuel
my aunt’s colleague is doing Advent of Code on Nightmare difficulty no hit melee only
Me:
Finished Day 4 - I’ve decided to do each day with a different programming language

So far I’ve done Python, JavaScript, Haskell, and C

My aunt:
oh wow!  i. think one of my colleagues is just using excel! 😱 3 6 30
Samuel
writing C is like trying to instruct the world’s most pedantic toddler how to make a crayon drawing, and if you don’t keep a close eye on them they’ll keep drawing off the page and onto the sofa and the walls
3 10 60
Samuel
writing Haskell is like doing one of those puzzles where you have to connect dots with lines so that none of them overlap
1 10
Samuel
writing JavaScript is like eating plain oatmeal. I think I might be biased here though lmao
2 8
Samuel
ok the haskell compiler is insane, love this shit
getSumOfValidNumbers :: [Number] -> [String] -> Int
getSumOfValidNumbers [] _ = 0
getSumOfValidNumbers (x : xs) rows =
  (if all (== True) (map (isValidNumber x) rows) then let Number {value} = x in value else 0)
    + getSumOfValidNumbers xs rowsvscode tooltip with "Apply all hints" selectedgetSumOfValidNumbers :: [Number] -> [String] -> Int
getSumOfValidNumbers [] _ = 0
getSumOfValidNumbers (x : xs) rows =
  (if all (isValidNumber x) rows then let Number {value} = x in value else 0)
    + getSumOfValidNumbers xs rows
9
Samuel
haskellers when you want an index while mapping through a list: >:(
1 1 6
Older posts