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 regex usage. I'm going to be careful to not overuse them in my programs, but I see how they can be incredibly useful in simple string parsing applications.
Our final project looms ahead, and I'm gathering all my energy and brain power so I can make a great contribution to it and finish off this class on a high note.
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 regex usage. I'm going to be careful to not overuse them in my programs, but I see how they can be incredibly useful in simple string parsing applications.
Our final project looms ahead, and I'm gathering all my energy and brain power so I can make a great contribution to it and finish off this class on a high note.
Comments
Post a Comment