programming
It's time once again for the world of computer programming to prove it's usefulness by teaching us a thing or two about parenting.
How many times have you found yourself repeating something to your children over and over again. Programming has a simple, yet effective solution for this problem. It’s called a “do while loop.” The idea behind a do while loop is fairly straightforward. You do an action, say scrub the floor, while it is dirty. This translates nicely to many parenting situations. For example:
It's time once again for the world of computer programming to prove it's usefulness by teaching us a thing or two about parenting.
When developing a piece of software, there are times when it is necessary to get down to the nitty gritty and figure out why things are behaving the way they are. One way to do this is with a breakpoint. A breakpoint is a place in a program that when reached, temporarily halts execution of the remainder of the program. You could also think of a breakpoint as a time-out in sports. The breakpoint (time-out) allows the programmer (the coach) to take it all in and draw up a play without the pressure of the clock still running.
It's time for the world of computer programming to prove it's usefulness by teaching us a thing or two about parenting.
There have been times when even I have written bad code. Sometimes my applications just keep crashing and don't want to do what I've told them to do. However, the real problem is (much to my dismay) that the application is doing exactly what I've told it to do. I've unintentionally gotten the application stuck in an infinite loop... no matter how many times I run it, if I don't change it's behavior, the application will just keep crashing, and spinning it's wheels. The same can be said about kids.
Below I have written some sample code, followed by an explanation.
The world of computer programming can teach us many things on how to raise children. This may come as a surprise to many; after all, children don't understand the difference between bits and bytes. Even if you issue the child a simple command like "GOTO ROOM" the child will often resist, and catastrophic parenting failure occurs.
That's where the switch statement comes in. In the context of disciplining a child, perhaps a more appropriate name is the "go cut me a switch" statement. Below I have written a sample piece of code, followed by an explanation.



