Week of 12 — 18 Apr
- What did you do this past week?
I didn’t really have any projects to work on, so just the usual classes and that’s about it.
- What’s in your way?
I still haven’t figured out all of the classes I’m going to take next semester even though I register on Wednesday. There just doesn’t seem to be any non-CS electives that really interest me (except for one that’s already closed, not cancelled, even though registration hasn’t even opened for anyone yet???)
- What will you do next week?
I’m finally getting my first vaccine dose tomorrow.
- If you read it, what did you think of the More getters and setters?
It was kind of tough to get through since it was mainly a discussion pertaining to UI, in Java of all languages.
- What was your experience of sequence containers, container adapters, and associative containers? (this question will vary, week to week)
They were a nice refresher since I hadn’t gotten into the nitty gritty of them since Data Structures.
- What made you happy this week?
I started watching a new show that’s really good. Everyone stream Wonder Egg Priority!
- What’s your pick-of-the-week or tip-of-the-week?
When it comes to unit testing, there is often a need to check all of an object’s variables, even private ones (take, for instance, a Creature’s direction, after turning left or right in Darwin). Obviously you shouldn’t make getters just for unit testing purposes. A quick hack fix for this is to put “#define private public” in your unit test file, which will expose all private variables (you can also do “#define protected public” for any protected variables).