Things They Don’t Teach Software Engineering Students

Look off into to distance, there is a lot of stuff out there that we don’t know. OK, I’ll be honest, that line is there to give me a reason for setting a picture of my dog as the main image.

I’ve spent the last four years completing my Bachelor of Science in Software Engineering at the Institute of Technology, Carlow. During those four awesome years I’ve learned a crap load of stuff. I’ve learned stuff in my first year which I can recall right now and I’ve “learned” things in fourth year that I can remember nothing about, and probably never will.

Evaluate an Erlang Expression

When creating my final year project – Interactive Erlang Notebook – I had to figure out a way of evaluating Erlang expressions. This means taking a line of Erlang code (in string format) and executing it using Erlang.

You’d think it would be easy, but it took a bit longer than expected. Sifting through StackOverflow and going past the first page on a google search, things weren’t looking good.

Quick and Easy

Luckily, after reading the Erlang Docs, I figured it out. Below is an implementation of a function that evaluates Erlang code (in string format) and returns the result.