Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I have a friend who is using Java for some chemistry related programming that could be modeled particularly nicely with lazy evaluation and ADT's.

I told him to keep sticking with Java and get something working, and then I might be able to show him an easier way of doing it in Haskell.

He's actually a Math major as well, and seemed to understand Functors and (at least) the Maybe monad very quickly.

It'll be interesting to see what happens after he finishes and we attempt to replicate what he did in Haskell.



Second design/attempt is always the better version. Once he has struggled with the first version, with whatever language, the second version will be easier, with whatever other language.


Good point. Not sure how to avoid bias or if it's even possible in this case. All I can do is let him know that the second design/attempt would have been easier in just about any language.


> "All I can do is let him know that the second design/attempt would have been easier in just about any language."

And then shrug and say it's okay, because this is how it works with everyone!

Personally I find the second attempt more fun too, since I've already learned the painful lessons...


Why not have him doing the first attempt at a problem with Haskell and then tried it with Java to see how easier/harder it is?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: