{"id":991,"date":"2011-11-18T10:19:20","date_gmt":"2011-11-18T15:19:20","guid":{"rendered":"http:\/\/yuguangzhang.com\/blog\/?p=991"},"modified":"2011-11-18T10:20:42","modified_gmt":"2011-11-18T15:20:42","slug":"pythonfiddle-introduces-python-scripting-for-the-web","status":"publish","type":"post","link":"http:\/\/yuguangzhang.com\/blog\/pythonfiddle-introduces-python-scripting-for-the-web\/","title":{"rendered":"PythonFiddle introduces Python scripting for the web"},"content":{"rendered":"<p>The initial release of PythonFiddle attracted a lot of attention due to an article on SlashDot, one of the best places to post general technology news. Although the first version featured cutting edge technology that would run a Python interpreter in the browser, the general consensus is that it&#8217;s good for sharing Python code on the web, but not much else. With some afterthought (or maybe forethought, because this was the original intention), I made a new version for web development.<\/p>\n<p>The new <a href=\"http:\/\/pythonfiddle.com\">PythonFiddle<\/a> aims to solve problems with JavaScript by offering Python as a replacement. Developers \u00a0prefer class based inheritance to JavaScript&#8217;s prototypal inheritance, mostly because it&#8217;s mainstream. Writing applications with classes built into the language is helpful in large projects, along with the removal of global scope. For small projects, Python&#8217;s pseudo-code like syntax is preferable to the ancient C syntax.<\/p>\n<p>The large collection of third-party tools in JavaScript is not overlooked, as in the case of Google&#8217;s Dart programming language. JavaScript libraries such as jQuery can be used directly, others can be added as external resources. With PythonFiddle, web developers who use Python server-side are now able to use the same language client-side. Besides the Python to JavaScript compiler, other advantages PythonFiddle offer include live reloading of the page, <a href=\"http:\/\/www.lesscss.org\/\">Less<\/a>, and <a href=\"http:\/\/code.google.com\/p\/zen-coding\/\">Zen Coding<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The initial release of PythonFiddle attracted a lot of attention due to an article on SlashDot, one of the best places to post general technology news. Although the first version featured cutting edge technology that would run a Python interpreter in the browser, the general consensus is that it&#8217;s good for sharing Python code on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_import_markdown_pro_load_document_selector":0,"_import_markdown_pro_submit_text_textarea":"","footnotes":""},"categories":[146],"tags":[70,22],"class_list":["post-991","post","type-post","status-publish","format-standard","hentry","category-pythonfiddle","tag-compiler","tag-python"],"aioseo_notices":[],"_links":{"self":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts\/991","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/comments?post=991"}],"version-history":[{"count":0,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/posts\/991\/revisions"}],"wp:attachment":[{"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/media?parent=991"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/categories?post=991"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/yuguangzhang.com\/blog\/wp-json\/wp\/v2\/tags?post=991"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}