Posts

Showing posts from March, 2026

Project 1 Solitaire Part 1 Review; CST338 Week 4

Project 1 Part 1 Reflection After cloning this project, I took a tour through the folder and document structure.  This project has several more .md files to review and reference.  I focused on the relevant Card and Deck ones for review, then reviewed the assignment outline again in Canvas.  I keep the assignment outline and the relevant .md files open and off to the side so I can constantly reference them. Making a plan before hand would normally be a solid staring approach.  However, this assignment presents several //TODO items in the code, so I started tackling them from top to bottom.  Because some items were "stand alone" (did not need to involve other items), this worked pretty well.  Some items  did  involve other items but because the existing method and field names were clear, it did not cause confusion. I don't think this project really lent itself to a planning phase.  The code, structure, and todo items were delivered - we just ne...

CST338 Week 2; unit tests, git commands, interfaces

Image
Unit testing  These first few weeks were my first exposure to unit testing.  I had heard of unit testing previously, but had never taken a deep dive, or a shallow dive, into the topic.  One thing I didn't realize is that there would be some sort of module or library for testing, like JUnit.  There is definitely a feeling that the practice of unit testing is very deep and we are just scratching the surface.  There are so many asserts-this-and-that that we haven't come close to using.  I'm mostly using assertEqual() , assertNotEqual(), assertInstanceOf() .  Git & GitHub Git  is  something I have had exposure to before.  Not in a professional or work setting, but for side-projects at work or projects at home.  I would use it just infrequently enough that I would forget how to use it the next time I needed it.  I do have a personal practice if, at the very least, initializing git in a new project.  Sometimes those projects...