Recent Posts
Calendar
November 2013
S M T W T F S
« Oct    
 12
3456789
10111213141516
17181920212223
24252627282930

Posts Tagged ‘operators’

&& vs & and | vs ||… What’s the difference?

color-01 It seems like such a trivial thing to be talking about but not knowing the difference between the two operators can make a huge difference between working code and code that only seems to work.

Let me illustrate:

        bool b = false;
        bool c = true;
        if(b & c)
            // do something

        if(b && c)
            // do something

Read the rest of this entry »

jQuery Selectors – Looks just like CSS

187629_5335 Last week we took a look at the jQuery selector syntax, which allows us to select elements by their ID, class name, or tag name.

While it is pretty cool that you can select by class name, that really doesn’t buy us a whole lot.  But you can do a whole lot more by using CSS style syntax.

Read the rest of this entry »