{"id":166632180,"date":"2012-08-28T23:00:41","date_gmt":"2012-08-28T23:00:41","guid":{"rendered":"http:\/\/joshdance.me\/random-programming-concepts"},"modified":"2012-08-28T23:00:41","modified_gmt":"2012-08-28T23:00:41","slug":"random-programming-concepts-2","status":"publish","type":"post","link":"http:\/\/joshdance.me\/blog\/random-programming-concepts-2\/","title":{"rendered":"Random Programming Concepts"},"content":{"rendered":"<p>I am going through <a href=\"https:\/\/www.amazon.com\/gp\/yourstore\/home\/?ie=UTF8&amp;camp=1789&amp;creative=390957&amp;linkCode=ur2&amp;tag=joshdanc-20\">another programming book<\/a> just working on my fundamentals.<\/p>\n<div>Here are some random concepts that popped out to me.\u00a0<\/div>\n<p \/>\n<div>0 = false<\/p>\n<p \/>\n<div>When you declare a varialbe, you declare the type, then the name.<\/p>\n<p \/>\n<div>You can put an expression into a BOOL variable.\u00a0<\/div>\n<p \/>\n<div> Watch out for false positives when testing else if statements. \u00a0<\/div>\n<p \/>\n<div>ternary operator is the same as a conditional operator<\/div>\n<div>The ternary operator&#039;s form is<\/div>\n<div>\u00a0 \u00a0 \u00a0variable = (test true or false) ? if true value : if false value<\/div>\n<p \/>\n<div>returning 0 in main is returning exit success. \u00a0Meaning everything went ok.\u00a0<\/div>\n<p \/>\n<p \/> <\/div>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>I am going through another programming book just working on my fundamentals.Here are some random concepts that popped out to me. 0 = falseWhen you declare a varialbe, you declare the type, then the name.You can put an expression into a BOOL variab&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[],"_links":{"self":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts\/166632180"}],"collection":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/comments?post=166632180"}],"version-history":[{"count":0,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/posts\/166632180\/revisions"}],"wp:attachment":[{"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/media?parent=166632180"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/categories?post=166632180"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/joshdance.me\/blog\/wp-json\/wp\/v2\/tags?post=166632180"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}