I haven’t been posting, but I haven’t been sitting still either. I’ve been working my way through Learn You Some Erlang… and there was a vacation to Seattle in there too.
BTW the Seattle area is a great place to visit, especially when you can experience it with family and friends. The friends we were staying with said we set the record for most places visited in a week. We even visited some places, our Seattle friends hadn’t seen yet. One evening, we needed to coordinate 4 couples to meet for dinner at a restaurant. How was this done before smart phones, GPS, text messaging, and the internet, I don’t know.
After mostly finishing Learn You Some Erlang, I was looking around for another learning Erlang resource, and I came across HackerRank.com. Basically a series of programming problems, divided up into domains. Currently there are 14 domains, each one devoted to a general topic like Algorithms or Data Structures, or Specific languages like C++ or Java. I would be interested in the Functional Programming domain, myself . Within the FP domain you may select from 8 different FP languages to solve the problems. Of course, one of the FP languages is Erlang, or I would not be there.
The FP Domain is divided up into 8 sub-domains with a variety programming problems, classified as Easy, Moderate, Advanced, and Expert. After you successfully complete each problem, you get points added to your score. The number of points being commensurate with the difficulty of the problem,
So far, I have completed 21 of the Easy challenges, out of total of 77 problems, and my rank is currently 806, with a score of 136. Some of the problems get to be a bit repetitious, especially in the Recursive sub-domain, but nevertheless, they are good for developing muscle memory and problem solving patterns. Need to read a string in without including the newline character, or write a string without the enclosing quotes? You’ll figure it out here.
Anyway, the incident that triggered this post, was that I was looking for a way to save my solutions locally, for future reference. In other words, to download the code I was entering on the HackerRank.com website, to a local file. You can upload a code file to the edit window, but unless I missed it, it doesn’t look like there is a way to download the code. I ended up just printing the web page to a PDF, which gives you the context for the solution, and then doing Ctrl+A / Ctrl+C in the edit window to get an actual copy of the code. (NOTE: The copy command is not in the context menu for these web pages for some reason.) In my gyrations, I happened to view the source on one of the pages and came upon this little Easter egg:
I don’t think the developer, meant to have all of the backslash characters escaped like that, but I get the picture. Cool way to advertise job openings.
That’s what I love about SW development. There are gems of humor and wisdom everywhere, you just have to look. How about you? Ever stumble upon a message from a developer embedded in their code?