solution 2: hash function
18 karma · joined October 16, 2008
solution 2: hash function
in java, c++, or c#, to add a variable to a class, you have to repeat its name 4 times. once to declare, once in the constructor parameters, and once on each side of the assignment. why am i writing the same thing 4 times for what should be a core part of the language?
in haskell, you write it once (i'm not saying haskell's records are nice, but they got that part right). same with rust.
and with a function, you write it once.
i have installed a few different distros on my w500 over the years, and it runs hot every time. the ati drivers suck, the os can't seem to control the fans properly, and switchable graphics don't work. tried with opensuse years ago, and ubuntu a few times more recently.
i imagine it's better with a nvidia card, and no switchable graphics.
[1,2,3,4,5] :: [Int] problem solved!
dropping out to work for someone is just stupid.
architecture is fun too, but i don't do it as much as i probably ought to. and debugging is something i know i'll have to do, but try to avoid.