AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |
Back to Blog
Roadmap keynote template free4/22/2023 It took me a minute to figure out quite how it worked, but then once I really got that down, it was like – I remember it suddenly with fear and anxiety all the nested if-statements that I would see in other programming languages, and trying to untangle “How do I get to this code path, how do I set up the conditions to see this tree of execution?” All of that has now disappeared, and the solutions to my problems are always very simple, which is pretty helpful when you’re working on a complicated business domain. But I pretty quickly fell in love with case statements and pattern matching. It seemed awkward to always have to give it a connection object, instead of - like, in Rails you just write your instance variables and this thing is somewhere in the background. Yeah… I was annoyed at first at the verbosity of having to pass all these arguments in to all the functions, and particularly when I was first working at the Phoenix controllers. That felt good, you know?, still.” It kind of hasn’t lost its magic for me. And honestly, to this day, I still jump in, write some Elixir code, and I’m like “Huh. So that was my hook - it was really like groking this concept of functional programming and just thinking like “Wow, this thing is great, and I can be so explicit with pattern-matching, and doing all these things in multiple function heads…” It just felt like such a nice way to write programs. Obviously, it comes a lot from the surrounding community and the ecosystem around it, but like so much of it was about the kind of explicitness of the language, and just falling for functional programming in a really big way… And then just realizing, like – I don’t know if you both had this experience, of like doing a thing with Ruby where something is mutated somewhere, and you’re like “Oh my god, what’s actually happening here?!” And then you discover a different way to do it and you realize that mutation can be really harmful in certain cases… And I think Elixir felt like a really great antidote to that at the time. I think for me so much of that is to do with the language itself.
0 Comments
Read More
Leave a Reply. |