Skip to content
0:00 / 0:00

#haskell#vim#fizzbuzz

FizzBuzz - You Suck at Coding [0]

Ben Awad

491K subscribers • 5 videos on Hallway

YouTube
  • Recommended by 2 people: 2 in engineering communities.
  • Presented by Ben Awad

Beginner. No background in the topic needed.

413K views6 years ago2 recommendations

Programming languagesTools and practiceHaskellVim, Emacs and editors

Ben Awad demonstrates how to solve the classic FizzBuzz problem using Haskell and Vim.

FizzBuzz, the classic interview question no one probably asks anymore but I'll show you how to solve it anyway with vim and haskell. #fizzbuzz #vim #haskell ---- Checkout my side projects: If you're into cooking: mysaffronapp.com/ ---- Join the Discord: discord.gg/Vehs99V ---- Patreon: patreon.com/benawad ---- Follow Me Online Here: Twitter: twitter.com/benawad Twitch: twitch.tv/benawad Medium: medium.com/@benawad GitHub: github.com/benawad Facebook: facebook.com/benawad97/ LinkedIn: linkedin.com/in/benawad/ Instagram: instagram.com/benawad97 TikTok: tiktok.com/@benawad ​ ​ ---- Follow me online: voidpet.com/benawad #benawad

Why it's here

2 people recommend this

What people say. Inspired viewers to think about alternative Haskell solutions and Vim macros for FizzBuzz.

u/Dr_Algin r/haskell • Recommends

Thought of this interesting FizzBuzz solution in Haskell! I was watching Ben Awad's videolink to this video about writing FizzBuzz with Haskell and Vim, and that got me thinking about how I would actually do it. I was inspired by a Rust solution that I saw one time. In this solution, I'm particularly happy about the function `mapM_`. If you don't know about it, it just maps a monadic action over a `Foldable`. There is also a `mapM` which returns the foldable type containing the result of each computation, but in this case we use the underscore version since we're only concerned with the side-effects of `putStrLn`. Sometimes it's boring to sit for hours and sift through the docs to find functions l…

u/jjasgharin r/vim • Recommends

FizzBuzz with only vim macros