So the background to this journey will come in a later post, but basically I intend to chronicle my journey from computer engineer to computer scientist. I am beginning today because, I feel like I did something noteworthy in becoming a better developer.
A few days ago I was asked about how I would generate some sample input data to test a program. My first thoughts were to use what I knew: C. I already understood that C was massive overkill for that task, but I was not familiar with any other tools for the job (how embarrassing). I extrapolated two goals from that and made a note of them mentally (another mental goal: record goals so they are not solely stored mentally).
Goal 1: Generate sample data using scripts
Goal 2: Manipulate text files using scripts
Goal 3: Store Goals in a less ephemeral medium than my brain
That brings us to today.
I was testing some equipment at work and there are no good tools that I know of for viewing logs of DMX data. I had a long data dump of DMX packets with a bunch of other information in a format that wasn’t visually useful. What a great opportunity to experiment with awk, I thought to myself.
I don’t yet know vim, so I opened up the Text Editor in my Ubuntu VM and Chrome looking for a usable awk manual. Leading me to this Grymoire page (thank you Bruce Barnett and GE). I then wrote a script.
Fast forward a few hours and I now want to process an even sample of data. Good thing I just wrote a script that does exactly that. With a few modifications I was able to get the new output that I wanted.
That concludes this adventure. I would post the script for people to tell me what I did wrong, but I don’t have it on hand. Maybe tomorrow.
It’s hard to pick a place to start, so I picked here and now. There are things I’ve done prior to today that will probably make it into a future post, but this is where I start, officially.