It has been a while since I posted anything.

Robbie's drinks no longer need to be thickened.  Also, we are no longer heating foods that you normally leave unheated (like fruit and his milk).  He is drinking through the straw very well.

He is starting to answer questions with a "yes" and a head nod.  And shake his head no for a negative answer.  This is actually a big deal because he was freaking out when asked a yes or no question and we'd have to determine if it was an excited freak out, or a "I don't want to" freak out.  Not really a good thing.  So whenever he started freaking out, we would tell him "say yes" or "say no" (honestly, we know the answer when we ask it, so we know what he should be saying, like "want to take a bath" is always a "yes").

Robbie has also moved into a new room, and is sleeping in a toddler bed.  We had a rough start for the first few days.  The usual: getting out of bed, jumping in bed, etc.  A few times we caught him "reading" his books in the dark.  Its cute, but he needs to stay in bed.  However, the last week or two he has stayed in bed all night and stays when he wakes up in the morning.

Henry has been teething and not wanting to drink from the bottle.  He finally broke his second tooth yesterday and is drinking again.

Henry is sitting unsupported with no problem now, and can crawl if he wants to (like if the cat is nearby).  He is able to pull up to a standing position as well, so I think he will be cruising soon.

He loves everything Robbie does, and just smiles all the time when Robbie is around.  One of Robbie's favorite things is to put his face close to Henry so he will touch him.  Robbie definately seeks sensory input.

I should dedicate an entire post to this topic: we have decided once and for all that we won't be celebrating Halloween.  Anything I feel is from the "fall festival" tradition I am fine with, but the aspects of Halloween that are occultic we will leave out.  This means pumpkin carving is in, but dressing up and trick-or-treat are out (to name a few major things).
Posted by Chet at 2:42 PM0 Comments

If you store a request's Entity Tag, and set the IfNoneMatch on the next request, the HTTP Response Status is 304 Not Modified.  The response does not include the payload (the idea being that it is already in your cache and hasn't changed).  This speeds up requests and reduces bandwidth consumption because less data is transferred.

Oddly, in the .NET Framework, any status except 200 OK causes an exception to be thrown.  You can catch the exception and see if the status was 304 Not Modified, and if so continue on.  If the status was 404 Not Found, then you know to return null.  If the status was 500+, then you know there was actually something wrong.

Everyone knows that exceptions are slow.  It is pounded into our heads when we start developing.

I don't know this for sure.  I cannot find any research, and I don't feel like testing it myself, but I suspect that any performance benefit gained from using Entity Tags is lost since a slow exception is thrown and must be handled.

I would have rathered that the ResponseStream be empty and the status be set.  Then a simple if condition could have been used.
Posted by Chet at 2:34 PM0 Comments

© 2016 Chet Zema π