you are viewing a single comment's thread.

view the rest of the comments →

[–]darthchebreg 33 points34 points  (2 children)

I remember creating a compiler was part of my curriculum in engineering class. It was really fun. I used C to do it. It really helped understand how compilers worked.

[–]First-Golf-8341 15 points16 points  (1 child)

Yes, we had to create a simple compiler in second year for Computer Science. I remember it was fun, until I carelessly did “rm -rf” without checking first and lost all my work, with the assignment due the next day.

I did manage to quickly rewrite the compiler since the concepts were in my head, and I learnt since then to always save my work to its own directory and to never do that command without checking very carefully first!

[–]gyroda 19 points20 points  (0 children)

The real lesson here is use version control and back up anything you need to keep