Haskell for Dilettantes, Part 3a: Homework 1, Exercise 1,
ฝัง
- เผยแพร่เมื่อ 5 ก.ย. 2024
- We work through Exercise 1 of Homework 1 of Jordan Breitner's CIS194 Spring 16, also known as "Haskell via Sokoban"
Class materials: www.seas.upenn...
Assignment: www.seas.upenn...
Alternative materials: haskell-via-so...
Join this channel to get access to perks; the "Thanks, peterb!" tier is a great way to show your support without breaking the bank, and the "Early Access" tier gets you access to most of my videos about a week early.
/ @tealeavesprogramming
Thanks for video. Looks like you don't need to check segment for lower bound. You get to second clause only if segment >=3.
You’re right - thanks for the observation.
Regarding the documentation for `rectangle`: Haddock (the documentation tool for Haskell code) supports annotating individual arguments with documentation; and I agree that would be appropriate here
Thanks for the info. This is good to know.
While in this specific case it's very obvious what those arguments are, you touched a wider issues when it comes to Haskell's libraries and modules: more often than not the documentation tends to be terse to the point of being a challenge to understand. That's my biggest gripe with the community. Great video, btw 🙂
It's a touchy subject! Most of the documentation (and software) is being written by volunteers, so I want to re-emphasize that I'm not trying to diss anyone's work. What I get concerned about isn't that the documentation isn't great (that can happen in any project) but that sometimes On The Internet I encounter people who get defensive about it (...generally not the people who wrote the documentation) and insist that it's GOOD that it's overly terse.