CS373 Fall 2020: Sean Chen

Sean Chen
3 min readSep 6, 2020

What did you do this past week?

I worked a bit on the Collatz project, reading through the workflow that was given and setting things up. I fixed the test cases and implemented the simple solution first. Then, I made some optimizations until I was passing the tests on HackerRank. The optimizations included ommiting the first half of the range when it wasn’t needed and caching the values that were already calculated.

What’s in your way?

So far all seems to be going well. I’ve got a few other projects from other classes that I’ve gotta work through, so I just need to manage my time better I think. There might be parts of the workflow coming up that I’m not familiar with like black, pydoc, etc. but it looks like it won’t be that complicated, just running a few things on the command line.

What will you do next week?

I have to finish up the rest of the Collatz, project, implementing the optimizations in Collatz.py, setting up test cases, and getting through all the other elements of the workflow.

What was your experience of assertions, unit tests, and coverage? (this question will vary, week to week)

In class this week we learned about how unit test frameworks were a better option than asserting each of your unit tests, since assertions will stop the whole program when they fail. We also learned about coverage, which will track how much of your code has been executed by the tests that you run, so that you can make sure that your tests are thorough. It seems that while coverage is a very useful tool, it’s not a guarentee that your tests are good, since it only tracks whether a line of code was executed and not that that line won’t fail if some edge case were to come along.

How are you doing and holding up? What’s been most helpful for you in terms of support at this time?

So far I’m doing well. I think that living away from home even without any in person classes has helped me a ton with being productive.

What made you happy this week?

In person classes have gotten me around to correcting my sleep schedule. Over the break, my sleep schedule devolved into cycling between nocturnal and normal, and I was definitely not as productive because of it. Now, hopefully I’ll stick to a normal sleep schedule and I’ll actually have the energy to get work done!

What’s your pick-of-the-week or tip-of-the-week?

I set up RTX Voice which has been magical for background noise cancellation. Even if there are loud noises in the background, which happense pretty often when your’re living with other people, RTX Voice does an amazing job cancelling it all out, provided you have the right hardware.

--

--