{"id":115,"date":"2015-03-06T10:50:32","date_gmt":"2015-03-06T10:50:32","guid":{"rendered":"http:\/\/codereporter.de\/?p=115"},"modified":"2015-03-06T10:54:40","modified_gmt":"2015-03-06T10:54:40","slug":"week5-javascript-and-apis","status":"publish","type":"post","link":"https:\/\/codereporter.de\/?p=115","title":{"rendered":"Week5: JavaScript and APIs"},"content":{"rendered":"<p>A bit more than five weeks ago I tried to read a programming book. It was recommended as one of the best books to learn Ruby with. I had a feeling that\u00a0&#8222;The Well Grounded Rubyist&#8220;\u00a0was a really good book. But I didn&#8217;t understand it. The author David A. Black writes about hashes, arrays, variables and things called methods that are called on objects. It wasn&#8217;t a very pleasant read.<\/p>\n<p>This week I have started to learn JavaScript. My second programming language after Ruby and I am impressed how much easier it is. Not because JS is somehow easier (it actually looks a bit intimidating in the beginning). It&#8217;s easier because I can focus on vocabulary, syntax and differences between the two languages now.\u00a0The basics are the same. I am far from being completely fluent in either of those languages. But with the documentation at hand I can get things done. I was very happy to find that I could write Fizzbuzz and the <a title=\"RSpec: How to stub a random variable (make the weather as you need it to be)\" href=\"https:\/\/codereporter.de\/?p=54\">airport-challenge<\/a>\u00a0in JavaScript as well.<\/p>\n<p><strong>The language of the web<\/strong><\/p>\n<p>So far I like JavaScript. I got used to the brackets and curly braces within days. What I like the most? It&#8217;s deep connection to the web. There is no modern browser it doesn&#8217;t run in and it&#8217;s hard to find a website that doesn&#8217;t include any Java Script. After a\u00a0ten-year-long intense\u00a0relationship with the web,\u00a0I am finally learning the language web services communicate in.<\/p>\n<p>Today I wrote a little script that pulls a list of 38 cities onto a simple\u00a0website. When the user chooses, let&#8217;s say\u00a0Athens, from the menu, my script connects to the API (Application Programming Interface) of <a href=\"http:\/\/openweathermap.org\/api\">openweathermap.org<\/a>\u00a0and returns Athen&#8217;s current temperature. I was quite excited about this useful little tool. So excited that I\u00a0stayed at the academy until I had found a way to get the cities&#8216; geo coordinates and query Instagram photos taken around Greece&#8217;s capital as well. Once the layout is somehow presentable I will show you my first handmade mashup.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>A bit more than five weeks ago I tried to read a programming book. It was recommended as one of the best books to learn Ruby with. I had a feeling that\u00a0&#8222;The Well Grounded Rubyist&#8220;\u00a0was a really good book. But I didn&#8217;t understand it. The author David A. Black writes about hashes, arrays, variables and&hellip; <a class=\"more-link\" href=\"https:\/\/codereporter.de\/?p=115\"><span class=\"screen-reader-text\">Week5: JavaScript and APIs<\/span> weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[28,34,31,29,33,32,27,12,30],"_links":{"self":[{"href":"https:\/\/codereporter.de\/index.php?rest_route=\/wp\/v2\/posts\/115"}],"collection":[{"href":"https:\/\/codereporter.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codereporter.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codereporter.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/codereporter.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=115"}],"version-history":[{"count":4,"href":"https:\/\/codereporter.de\/index.php?rest_route=\/wp\/v2\/posts\/115\/revisions"}],"predecessor-version":[{"id":121,"href":"https:\/\/codereporter.de\/index.php?rest_route=\/wp\/v2\/posts\/115\/revisions\/121"}],"wp:attachment":[{"href":"https:\/\/codereporter.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=115"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codereporter.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=115"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codereporter.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=115"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}