7

I had this problem where I needed to make a script that took two values, and from that printed what card was faulty in a pretty large system.

As the script language is horrible, I could not be bothered to manually write over 3000 if-statements I proceeded to write a program that writes code for me, based on a export of all the cards.

There are few things I have experienced in my life that compares to the satisfaction of seeing my own program produce many thousands of lines of code in a few seconds.

Comments
  • 1
    Wasn‘t it possible to implement some kind of mapping? 😃
  • 0
    @SortaBubbly It probably was. The problem was that the file contained a lot of useless shit, which needed to be filtered away. So I just thought it was easier to do in C# instead :))
Add Comment