Ah, the mystical world of #functors, #applicatives, and #monads โ€“ where programmers gather to discuss #concepts only they pretend to understand. ๐Ÿค”๐ŸŽฉโœจ Don't worry, this article assures you that knowing #Haskell isn't necessary, but let's be honest, without it, you're basically reading a recipe in Klingon. ๐Ÿ“œ๐Ÿ‘ฝ
https://www.thecoder.cafe/p/functors-applicatives-monads #programming #humor #HackerNews #ngated
Functors, Applicatives, and Monads: Unboxing Functional Programming Concepts

Discover the essentials of functional programming with functors, applicatives, and monads in Haskell.

The Coder Cafe
Functors, Applicatives, and Monads: Unboxing Functional Programming Concepts

Discover the essentials of functional programming with functors, applicatives, and monads in Haskell.

The Coder Cafe

ํ•จ์ˆ˜๋ฅผ ๊ฐ’์— ์ ์šฉํ•˜๋Š” ์ž‘์—…์„ ํ•จ์ˆ˜, ๊ฐ’์œผ๋กœ๋งŒ ๋‚˜๋ˆ„๋Š” ๊ฒŒ ์•„๋‹ˆ๋ผ, ์ ์šฉ๋„ ๋”ฐ๋กœ ๋ถ„๋ฆฌํ•œ๋‹ค.ํ•จ์ˆ˜, ๊ฐ’, "์ ์šฉ"์ฃผ์ธ๊ณต ๊ฐ™์€ ํ•จ์ˆ˜, ๊ฐ’์— ๊ฐ€๋ ค ์กฐ์—ฐ ๊ฐ™๋˜ "์ ์šฉ"์„ ์ฃผ์—ฐ์œผ๋กœ ๋Œ์–ด ์˜ฌ๋ ค ๋‹ค์–‘ํ•œ ๊ตฌํ˜„๊ณผ ์ผ๋ฐ˜ํ™”๋ฅผ ์‹œ๋„ํ•˜๋‹ค ๋ณด๋ฉด Applicatives, ๋ชจ๋‚˜๋“œ, Arrow ๋‹ค ํŠ€์–ด ๋‚˜์˜จ๋‹ค.

#ํ•จ์ˆ˜ํ˜• #ํ•˜์Šค์ผˆ #Applicatives

ํ•จ์ˆ˜๋ฅผ, [์žˆ์„์ง€ ์—†์„์ง€ ๋ชจ๋ฅด๋Š”] ๊ฐ’์— ์ ์šฉํ•  ๋•Œ ํŽ‘ํ„ฐ ๋ฅผ ์“ฐ๊ณ ,
[์žˆ์„์ง€ ์—†์„์ง€ ๋ชจ๋ฅด๋Š”] ํ•จ์ˆ˜๋ฅผ, [์žˆ์„์ง€ ์—†์„์ง€ ๋ชจ๋ฅด๋Š”] ๊ฐ’์— ์ ์šฉํ•  ๋•Œ #Applicatives ๋ฅผ ์“ด๋‹ค.

(+1)์„ Just 1์— ์ ์šฉ
Just (+1)์„ Just 1์— ์ ์šฉ

์—ฐ์‚ฐ์ž๋ฅผ ์ž˜ ์ •์˜ํ•˜๋ฉด, ๋‘˜ ๋‹ค

(+1)์„ 1์— ์ ์šฉ
๊ณผ ๋น„์Šทํ•œ ๋ชจ์–‘์„ ๋งŒ๋“ค ์ˆ˜ ์žˆ๋‹ค.

์‹ค๋ฌด์—์„ , ์ด๋“ค์„ ๋น„์Šทํ•œ ๋ชจ์–‘์ด ๋˜๊ฒŒ ํ•  ์ˆ˜ ์žˆ์Œ์ด ์ค‘์š”ํ•˜๋‹ค.

#unison is super interesting to me. I recently visited their discord server and found out about #abilities
Unison gurus say abilities completely eliminate the need for #monads (reportedly they do still miss #applicatives though).
I wish I could use it as my daily driver but Iโ€™m not nearly skilled enough to build the world for each app I want to make.
Once it catches on, though, the concept of #frontend and #backend will go away overnight.

Exploring Advanced Functional Programming Techniques in Haskell: Monads, Functors, and Applicatives

#Haskell #Monads #Functors #Applicatives #FunctionalProgramming

https://g.omid.dev/BjYDCLe

Exploring Advanced Functional Programming Techniques in Haskell: Monads, Functors, and Applicatives

Functional programming offers a powerful paradigm for writing expressive and maintainable code. Haskell, a pure functional programming language, is at the forefront of this paradigm, providing robust tools for handling complex problems with simplicity and elegance. Among these tools, monads, functors, and applicatives stand out as foundational concepts that enable advanced functional programming techniques. In this post, weโ€™ll delve into these concepts, illustrating how they can be utilized to write cleaner, more modular code.

Re: [Haskell-cafe] Lifting IO actions into Applicatives

Re: [Haskell-cafe] Lifting IO actions into Applicatives