Gollum@feddit.de to Programmer Humor@programming.dev · 11 months agoIt’s a game for kids!i.imgur.comimagemessage-square20fedilinkarrow-up1795arrow-down112
arrow-up1783arrow-down1imageIt’s a game for kids!i.imgur.comGollum@feddit.de to Programmer Humor@programming.dev · 11 months agomessage-square20fedilink
minus-squarePapstJL4U@lemmy.worldlinkfedilinkEnglisharrow-up30arrow-down2·11 months 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·11 months ago Haskell was the hardest, but it looked the most beautiful. That pretty much sums that language up
minus-squareTheBananaKing@lemmy.worldlinkfedilinkarrow-up9arrow-down1·11 months agoIn order to write a haskell program, you must first write the corresponding haskell program.
minus-squarelugal@sopuli.xyzlinkfedilinkarrow-up3·11 months agoAnd in order to do that, you have to imagine sisyphus happy
minus-squareDarkenLM@artemis.camplinkfedilinkarrow-up8arrow-down1·11 months 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·11 months agoHaskell is beautiful because it resembles math
minus-squarexigoi@lemmy.sdf.orglinkfedilinkarrow-up12·11 months agoIt’s also beautiful because it doesn’t have C-like syntax.
minus-squareKnusper@feddit.delinkfedilinkarrow-up9·11 months 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