Skip to main content

Posts

Showing posts from December, 2018

CST 205 - Week 6

This week, I and my colleague Nathan Warren-Acord worked a lot with strings, list, dictionaries, and even some regexes. We made a game of Mad Libs based off a silly article from Clickhole, which is a subsidiary of the world-infamous satirical news website, the Onion. I think the original article is pretty funny and the resulting mad libs our program generates are even funnier as a result.  Coming from working with a lot of string parsing and file I/O in C, I thought Python would be much easier than the lower level, more primitive, yet high performance approaches used in that language (chasing the null character's always fun). I found that it is easier in most ways, yet there are some interesting differences and complexities in Python that are a little challenging as well. I'm still learning all the different ways to parse strings and parse files in Python, but I found them quite intuitive compared to C. The most helpful thing I learned this week, in fact, was some basic r