Coding in Haskell | Building my own HTTP server in Haskell

Ғылым және технология

Try building your own FOO: app.codecrafters.io/join?via=...
In this tutorial, we build a tiny http server from "scratch" by following a CodeCrafters challenge: we write, debug, and refactor Haskell code.
💡 Useful links:
* WAI: hackage.haskell.org/package/wai
* Warp: hackage.haskell.org/package/warp
* Twain: hackage.haskell.org/package/t...
* Scotty: hackage.haskell.org/package/s...
* Snap: snapframework.com/
* Spock: hackage.haskell.org/package/S...
* Servant: docs.servant.dev/en/stable/
* Yesod: hackage.haskell.org/package/y...
* IHP: ihp.digitallyinduced.com/
* Build your own X: github.com/codecrafters-io/bu...
#fp #functionalprogramming #haskell
Subscribe to Impure Pics: bit.ly/impure-youtube
How to think like a functional programmer
🎓 impurepics.thinkific.com/cour...
More Impure Pics
🐣 / impurepics
📦 impurepics.com
👕 merch.impurepics.com
Functional Alphabet book
📗 Softcover: bit.ly/fp-abc-soft-cover
📘 Hardcover: bit.ly/fp-abc-hard-cover
Watch more Impure Pics
• Debunking Haskell Myth...
About Impure Pics
FP Advocat. Distilling functional programming for the good of all
Get in touch: zelenya.com
0:00 Introduction
2:43 Setting up (Sending/Receiving data)
8:55 Where coding starts (Parsing the request)
18:14 Responding with content
31:50 Parsing headers
51:11 Handling concurrent connections
54:14 Parsing command arguments
1::00:17 Get a file
1:15:16 Post a file
1:44:04 Challenge completed!

Пікірлер: 12

  • @impurepics
    @impurepics4 ай бұрын

    Is the pacing okay? Would you prefer this live?

  • @jazzzAiman

    @jazzzAiman

    4 ай бұрын

    awesome man, just what is needed. excellent.

  • @user-wp6hf7hv4t

    @user-wp6hf7hv4t

    Ай бұрын

    Definitely prefer live. Feels like multiple videos stitched together. Breaks the flow

  • @impurepics

    @impurepics

    Ай бұрын

    @@user-wp6hf7hv4t interesting, thanks for the feedback. You don’t find the pacing of live coding videos too slow? All the thinking pauses, for example?

  • @user-wp6hf7hv4t

    @user-wp6hf7hv4t

    Ай бұрын

    @@impurepics It gives a real problem solving experience. Also, the not-live video is still 2 hrs long, so it kinda defeats the purpose of not being live :)

  • @JanilGarciaJr
    @JanilGarciaJr4 ай бұрын

    I need to learn to use GHC extensions... They make the language SO MUCH better, and it is already a much better language than the average.

  • @impurepics

    @impurepics

    4 ай бұрын

    I've been slowly learning them in little batches. Many popular libraries require extensions, so I'd start by copy-paste them, and then, over time, try to figure out what they are for. Another good starting point is the GHC2021 extension set. Also, I made a course for Serokell on popular extensions (may be worth checking out if you have some budget left after buying the other course ;) kzread.info/dash/bejne/hX9nysijks-smc4.html

  • @thktomska
    @thktomska4 ай бұрын

    Thank you for a nice showcase!

  • @samuraijosh1595
    @samuraijosh159528 күн бұрын

    fuck man your channel is only one of the few that talk about Haskell and fp in this detail. Hope you get more views and subs, you got a sub from me!!! thanks for the good work

  • @i-am-the-slime
    @i-am-the-slime4 ай бұрын

    Let's go!

  • @samuraijosh1595
    @samuraijosh159528 күн бұрын

    If you want to get popular on live-streams you could consider teaming up with slightly more popular FP bros on Twitch like Tsoding or TJ.

Келесі