Wednesday, February 3, 2016

Impressions on List Comprehensions, Unit tests, Doc Tests, Stacks, and Queues

Frank back. So that was quite a busy week for me. I currently have the PEP8 conventions guide open on my laptop, as well as an umpteen other resources and links to fill in any gaps of knowledge that I feel like I still have, with both Python and computer science in general.

I feel like I picked up the concept of list comprehensions quite quickly, as I liken the syntax to set notation in mathematics or logical notation - another class that I'm currently taking. As a result, I feel like I understand the intuition behind list comprehensions quite well, and therefore can read and create them quite comfortably.

I also understand the concept behind doctests and unittests, as I've been reading up on them recently - however I feel like the difficult part is definitely looking for the fringe cases that any program that we create would have to test. I feel like I'd need quite a bit of practice thinking of testable client code for my programs in order to write useful doctests and unittests.

I feel like ADTs are quite a wide-ranging and complicated subject, but given their importance, I will likely try to become comfortable with the concept. With regards to specifically the Stack and Queue ADTs, I was quite comfortable with the implementation and reasoning behind them - though I feel like I will face more challenges when creating a more complicated program that will have to incorporate these data types.

No comments:

Post a Comment