3 ms·
I enjoyed my university learning of SML a lot less than I think I should have done. Coming back to it later I was really impressed. Before university I'd prog
by mark_undoio 4y ago
I enjoyed my university learning of SML a lot less than I think I should have done. Coming back to it later I was really impressed.
Before university I'd programmed (primarily in BASIC) for many years, so imperative programming just made sense to me. Functional programming seemed alien and the amazing type system of ML-like languages just seemed to get in my way.
What I was missing was the context to understand why it was good. And, to be honest, some compelling examples - we almost completely glossed over IO and system interfaces and the gyrations required to do things like efficient iteration just seemed a bit pointless.
It was good computer science but I found it to be very unsatisfying engineering as I couldn't see how to build something useful. This may be my fault for not doing an engineering degree ;-)
Once I understood more of how these systems are built at lower levels I was much better equipped to be impressed by how much of that was hidden from view!
- yaseer 4y agoI also didn't know how to apply the concepts at the time, it seemed more academic than practical, but I had a different level of enjoyment. Having been a script kiddie teenager, just hacking together stuff that worked, functional programming seemed like some beautiful alien artifact. I didn't really understand it, but it seemed elegant and enigmatic, which made me want to learn more.
- wink 4y agoSame thing here (but with Ocaml). You come into this intro course as someone who can already program and it feels like such a weird take that they deliberately steer you away from playing around and building something cool. IO being important is a hill I'm willing to die on, at least for certain kinds of learners.
- mark_undoio 4y agoSteering me away from bad habits or towards more computer science did make sense - but, yes, actively discouraging me from building things I found cool didn't help my motivation. It didn't deter everybody, though - my friend went full speed ahead and implemented a graphical MacOS application using SML that forwarded e-mails over SMS so he could read them on his phone. I was amazed to discover that was possible!