-
Arduino Switch Case Example
I wanted to share something before I get into the example… if (you.likeMovies && you.areInterestedInMormons) { you.should.watch(‘http://www.hulu.com/watch/543302’); } else if (you.areInterestedInMormons) { you.should.read(‘http://www.mormon.org’); } Now, on to the example – I wrote a program a little while ago that translated (hard-coded) messages into light emissions on the Arduino. The program iterates through each character in…
-
Debugging PHP, JavaScript, jQuery, and Code in General
First, the TDD folks would say, “write tests.” If you’re not doing that, continue reading for an alternative. Here’s the process I follow: 0. Isolate: Think about the parts of your app that might be causing trouble. What is it doing? What should it be doing? And where is the code that should be handling…
-
Learn CSS Position, CSS Display, & More
Learn CSS Layout. This is, by far, the very best tutorial on creating web page layouts with css that I’ve ever read. Great examples and simple, clear explanations. If you are interested in learning or improving your understanding of css position, css display, css float, etc. properties, go read every page of this tutorial. I…