{"id":540,"date":"2017-04-06T12:06:57","date_gmt":"2017-04-06T10:06:57","guid":{"rendered":"https:\/\/blogs.uni-paderborn.de\/bernhart\/?p=540"},"modified":"2017-04-06T14:20:16","modified_gmt":"2017-04-06T12:20:16","slug":"programmieren-fuer-historiker","status":"publish","type":"post","link":"https:\/\/blogs.uni-paderborn.de\/bernhart\/2017\/04\/06\/programmieren-fuer-historiker\/","title":{"rendered":"Programmieren f\u00fcr Historiker"},"content":{"rendered":"<div class=\"twoclick_social_bookmarks_post_540 social_share_privacy clearfix 1.6.4 locale-de_DE sprite-de_DE\"><\/div><div class=\"twoclick-js\"><script type=\"text\/javascript\">\/* <![CDATA[ *\/\njQuery(document).ready(function($){if($('.twoclick_social_bookmarks_post_540')){$('.twoclick_social_bookmarks_post_540').socialSharePrivacy({\"txt_help\":\"Wenn Sie diese Felder durch einen Klick aktivieren, werden Informationen an Facebook, Twitter, Flattr, Xing, t3n, LinkedIn, Pinterest oder Google eventuell ins Ausland \\u00fcbertragen und unter Umst\\u00e4nden auch dort gespeichert. N\\u00e4heres erfahren Sie durch einen Klick auf das <em>i<\\\/em>.\",\"settings_perma\":\"Dauerhaft aktivieren und Daten\\u00fcber-tragung zustimmen:\",\"info_link\":\"http:\\\/\\\/www.heise.de\\\/ct\\\/artikel\\\/2-Klicks-fuer-mehr-Datenschutz-1333879.html\",\"uri\":\"https:\\\/\\\/blogs.uni-paderborn.de\\\/bernhart\\\/2017\\\/04\\\/06\\\/programmieren-fuer-historiker\\\/\",\"post_id\":540,\"post_title_referrer_track\":\"Programmieren+f%C3%BCr+Historiker\",\"display_infobox\":\"on\"});}});\n\/* ]]> *\/<\/script><\/div><p>Wir machten erste Schritte mit Ruby und der Kommandozeile.<\/p>\n<div id='gallery-1' class='gallery galleryid-540 gallery-columns-3 gallery-size-thumbnail'><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blogs.uni-paderborn.de\/bernhart\/files\/2017\/04\/Bildschirmfoto-2017-04-06-um-12.05.43.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blogs.uni-paderborn.de\/bernhart\/files\/2017\/04\/Bildschirmfoto-2017-04-06-um-12.05.43-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-544\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-544'>\n\t\t\t\tSkript in Atom\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blogs.uni-paderborn.de\/bernhart\/files\/2017\/04\/Bildschirmfoto-2017-04-06-um-12.05.33.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blogs.uni-paderborn.de\/bernhart\/files\/2017\/04\/Bildschirmfoto-2017-04-06-um-12.05.33-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-546\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-546'>\n\t\t\t\tTerminal\n\t\t\t\t<\/figcaption><\/figure><figure class='gallery-item'>\n\t\t\t<div class='gallery-icon landscape'>\n\t\t\t\t<a href='https:\/\/blogs.uni-paderborn.de\/bernhart\/files\/2017\/04\/Bildschirmfoto-2017-04-06-um-12.13.41.png'><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/blogs.uni-paderborn.de\/bernhart\/files\/2017\/04\/Bildschirmfoto-2017-04-06-um-12.13.41-150x150.png\" class=\"attachment-thumbnail size-thumbnail\" alt=\"\" aria-describedby=\"gallery-1-554\" \/><\/a>\n\t\t\t<\/div>\n\t\t\t\t<figcaption class='wp-caption-text gallery-caption' id='gallery-1-554'>\n\t\t\t\tgets.chomp ; variabe name\n\t\t\t\t<\/figcaption><\/figure>\n\t\t<\/div>\n\n<pre>autoren = [\"Goethe\", \"Schiller\", \"Herder\"]\r\n\r\n#puts autoren\r\n\r\n\r\n#autoren.each do |name| #vergleichbar mit foreach schleife jedoch nicht an z\u00e4hler gebunden\r\n# puts name.reverse\r\n#end\r\n\r\nwerke = {\"Goethe\"=&gt; \"Werther\", \"Schiller\"=&gt;\"Die R\u00e4uber\"}\r\n\r\nputs werke [\"Goethe\"]\r\n\r\nwerke.each do |x, y|\r\n puts \"#{x} schrieb #{y}\"\r\nend<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Wir machten erste Schritte mit Ruby und der Kommandozeile. autoren = [&#8222;Goethe&#8220;, &#8222;Schiller&#8220;, &#8222;Herder&#8220;] #puts autoren #autoren.each do |name| #vergleichbar mit foreach schleife jedoch nicht an z\u00e4hler gebunden # puts name.reverse #end werke = {&#8222;Goethe&#8220;=&gt; &#8222;Werther&#8220;, &#8222;Schiller&#8220;=&gt;&#8220;Die R\u00e4uber&#8220;} puts werke [&#8222;Goethe&#8220;] werke.each do |x, y| puts &#8222;#{x} schrieb #{y}&#8220; end<\/p>\n","protected":false},"author":7858,"featured_media":542,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[20,2],"tags":[],"class_list":["post-540","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dgw-tag-4","category-digitale-geschichtswissenschaften"],"_links":{"self":[{"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/posts\/540","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/users\/7858"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/comments?post=540"}],"version-history":[{"count":5,"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/posts\/540\/revisions"}],"predecessor-version":[{"id":560,"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/posts\/540\/revisions\/560"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/media\/542"}],"wp:attachment":[{"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/media?parent=540"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/categories?post=540"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.uni-paderborn.de\/bernhart\/wp-json\/wp\/v2\/tags?post=540"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}