Category: Programming


Mental Floss: Days for a Week

So as I build the week up, I’m adding Days onto it, but what do they look like?

 
Mental Floss: Weeks on the Calendar

Now we’ve gone through how the month is modeled, we need to see how weeks are being built.

 
Mental Floss: The Month on the Calendar

So we’ve seen what the Calendar looks like, and how it’s building it’s Months, but what goes into building a Month?

 
Mental Floss: The Calendar ViewModel

So my ViewModel basically starts with the idea of a Calendar and it’s Events. So what did I end up making that look like? Let’s disregard the markup for now, because how it looks isn’t really what we’re talking about here. What we’re talking about is how the Calendar and it’s Events are modeled.

 
Mental Floss: The problem with my Circle is…

that I’m exposing too many details to the user of my code. The developer has to know intimate details about how to set up both the Ellipse and the Circle in order to calculate their areas effectively. In one case, the Ellipse, the runner has to know to set the major and minor axes, while for the Circle, they have know to set the Radius.