Funny story time! At least, I always think it’s funny retrospect :
My first encounter with Erlang was in 2007 I believe. I had wanted to setup ejabberd to provide a secure IM for the company I was at. I don’t remember why, but I had to get into the source code to make a hack or two for what I needed. At the time I was all about Perl. Upon opening up an erl source file in my editor my immediate thought was “And they say Perl is ugly!”
Now, I knew at the time Erlang was powerful, I didn’t quite grasp how powerful, but none the less knew it none the less. I dismissed the language because of the syntax! How young and foolish I was! Can you believe that? It’s like dismissing a rolls Royce because you don’t like the paint job! Or rather, the paint job isn’t “familar” to you.
I then moved on to a few OO languages thinking, these sleek looking languages would solve all the problems I ever faced with Perl! Wrong again!
Then along came Elixir, this provided what I needed to at the time to get into functional programming, I still thought Erlang syntax was odd and assumed I’d never be interested. Wrong again!
I had become more and more interested in Erlang and in languages period. I happened upon an article written by @rvirding on syntax, this got me to thinking, I started to think more about why something is the way it is in language and more importantly perhaps, why it isn’t. I then ended up on an article about syntax by Fred Hebert as well. Things just kept clicking.
I looked at some Erlang again and what I saw was quite different from what I had saw a few years before and definitely over a decade ago. What I saw and came to appreciate was simplicity. What’s more, I realized it’s only syntax. That’s it. Bottom line. I love Erlang syntax now. There’s always a thing I wish wasn’t like this or like that, but I feel that way in every single language I’ve ever tried or used in anger. What’s more I’ve sat down a few times and tried to think long and hard about how I could really improve upon it without doing away with that simplicity… I haven’t been able to yet Every time I sat down to do this, I just ended up with Erlang, and probably a worse version (syntactically).
Now I think Perl is ugly at least in comparison to Erlang
I suppose the moral of the story is :
- Look beyond the wallflowers.
- Everything is strange until it’s not.
- Beware of familiarity.
- Relish simplicity.
- Let go and learn.