Gollum@feddit.de to Programmer Humor@programming.dev · 1 year agoIt’s a game for kids!i.imgur.comimagemessage-square20fedilinkarrow-up1796
arrow-up1784imageIt’s a game for kids!i.imgur.comGollum@feddit.de to Programmer Humor@programming.dev · 1 year agomessage-square20fedilink
minus-squarePapstJL4U@lemmy.worldlinkfedilinkEnglisharrow-up30arrow-down2·1 year agoBefore studying CS, I recognized it as ‘the bioware puzzle’. They were probably copying their own scribbles fron back then. Haskell was the hardest, but it looked the most beautiful.
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up29arrow-down1·1 year ago Haskell was the hardest, but it looked the most beautiful. That pretty much sums that language up
minus-squareTheBananaKing@lemmy.worldlinkfedilinkarrow-up9arrow-down1·1 year agoIn order to write a haskell program, you must first write the corresponding haskell program.
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up3·1 year agoAnd in order to do that, you have to imagine sisyphus happy
minus-squareDarkenLM@artemis.camplinkfedilinkarrow-up8arrow-down1·1 year agoStrange. I find the language hideous, most likely because it resembles math, or maybe because I’m already used to the C-like syntax.
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up13·1 year agoHaskell is beautiful because it resembles math
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up12·1 year agoIt’s also beautiful because it doesn’t have C-like syntax.
minus-squareKnusper@feddit.delinkfedilinkarrow-up9·1 year agohanoi :: Integer -> a -> a -> a -> [(a, a)] hanoi 0 _ _ _ = [] hanoi n a b c = hanoi (n-1) a c b ++ [(a, b)] ++ hanoi (n-1) c b a From here: https://www.rosettacode.org/wiki/Towers_of_Hanoi#Haskell
Before studying CS, I recognized it as ‘the bioware puzzle’. They were probably copying their own scribbles fron back then.
Haskell was the hardest, but it looked the most beautiful.
That pretty much sums that language up
In order to write a haskell program, you must first write the corresponding haskell program.
And in order to do that, you have to imagine sisyphus happy
Strange. I find the language hideous, most likely because it resembles math, or maybe because I’m already used to the C-like syntax.
Haskell is beautiful because it resembles math
It’s also beautiful because it doesn’t have C-like syntax.
From here: https://www.rosettacode.org/wiki/Towers_of_Hanoi#Haskell