{"id":249,"date":"2005-04-28T00:00:00","date_gmt":"2005-04-28T00:00:00","guid":{"rendered":"http:\/\/www.briancbecker.com\/blog\/?p=249"},"modified":"2020-04-12T19:45:40","modified_gmt":"2020-04-12T23:45:40","slug":"april-28-2005","status":"publish","type":"post","link":"http:\/\/www.briancbecker.com\/blog\/2005\/april-28-2005\/","title":{"rendered":"April 28, 2005"},"content":{"rendered":"<div>\n<p> A word of warning: when learning a new language, never ever assume anything! Today for work I was trying to integrate a Flash frontend and Java backend using XMLSockets. Another coworker had been working on an XMLSocket&#8217;s server in Java and had some XMLSocket code working in Flash (basically a chat-like program). Also, the Java backend was setup to work with the XMLSocket&#8217;s program, so I was pretty much set to go. Of course, I had never worked with Flash before and had very little Java experience. So it was a frustrating experience. I had defined a communication structure between the client\/server, but for some reason sections of the data was disappearing. I tracked it down to the function and then finally tracked it down to a single for loop. I almost went crazy trying to figure out why a single for loop would cause data to disappear. Then I had this realization: maybe my &#8220;i&#8221; variable was global! Sure enough, change the variable to &#8220;j&#8221; and bam, it works. Goes to show that even when you create a variable in a local function, it&#8217;s not really global. Lesson learned: never assume anything about a new langauge!  <\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>A word of warning: when learning a new language, never ever assume anything! Today for work I was trying to&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[18],"class_list":["post-249","post","type-post","status-publish","format-standard","hentry","category-old","tag-old"],"_links":{"self":[{"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/posts\/249","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/comments?post=249"}],"version-history":[{"count":1,"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/posts\/249\/revisions"}],"predecessor-version":[{"id":1371,"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/posts\/249\/revisions\/1371"}],"wp:attachment":[{"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/media?parent=249"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/categories?post=249"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.briancbecker.com\/blog\/wp-json\/wp\/v2\/tags?post=249"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}