{"id":10167,"date":"2016-10-28T15:58:48","date_gmt":"2016-10-28T22:58:48","guid":{"rendered":"http:\/\/www.podfeet.com\/blog\/?p=10167"},"modified":"2020-12-28T21:33:21","modified_gmt":"2020-12-29T05:33:21","slug":"ccatp-461","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2016\/10\/ccatp-461\/","title":{"rendered":"CCATP #461 Bart Busschots Programming By Stealth 24 &#8211; Creating a JavaScript API"},"content":{"rendered":"<p><a href=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2016\/09\/PBS_Logo-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignright size-thumbnail wp-image-9639\" src=\"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2016\/09\/PBS_Logo-1-150x150.png\" alt=\"PBS_Logo.png\" width=\"150\" height=\"150\" \/><\/a>In this week&#8217;s installment of Programming By Stealth, Bart teaches us how to create a JavaScript API up to and including an easy way to create professional documentation in order to publish our work as a JavaScript library. In order to get there we learn how to write reusable and sharable code, how &#8220;closures&#8221; help you keep your variables out of the global scope so they don&#8217;t mess up other people&#8217;s code, we learn one Ternary Operator), and my favorite, self-executing anonymous functions.<\/p>\n<p>Apologies for getting the episode number wrong in the audio &#8211; I said it was #460 when it&#8217;s actually #461.<\/p>\n<p>You can find Bart&#8217;s tutorial we follow in this episode at <a href=\"https:\/\/pbs.bartificer.net\/pbs24\" target=\"%5Fblank\" rel=\"noopener\">pbs.bartificer.net\/&#8230;<\/a><\/p>\n<p><audio class=\"wp-audio-shortcode\" id=\"audio-10167-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2016_10_28.mp3?_=1\" \/><a href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2016_10_28.mp3\">https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2016_10_28.mp3<\/a><\/audio><br \/>\n<a href=\"https:\/\/itunes.apple.com\/us\/podcast\/chit-chat-across-the-pond\/id1052401094?mt=2\"><img loading=\"lazy\" decoding=\"async\" style=\"float: none;\" src=\"https:\/\/podfeet.com\/NosillaCast\/artwork\/itunes_subscribe_button.png\" alt=\"itunes\" width=\"125\" height=\"43\" \/><\/a><br \/>\n<a title=\"mp3 download\" href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2016_10_28.mp3\" target=\"_blank\" rel=\"noopener\">mp3 download<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this week&#8217;s installment of Programming By Stealth, Bart teaches us how to create a JavaScript API up to and including an easy way to create professional documentation in order to publish our work as a JavaScript library. In order to get there we learn how to write reusable and sharable code, how &#8220;closures&#8221; help [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[147,172,213],"tags":[1120,616,194,176,240,1121],"class_list":["post-10167","post","type-post","status-publish","format-standard","hentry","category-blog-posts","category-ccatp","category-programming-by-stealth","tag-api","tag-javascript","tag-library","tag-programming","tag-programming-by-stealth","tag-ternary-operator"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/10167","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/comments?post=10167"}],"version-history":[{"count":5,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/10167\/revisions"}],"predecessor-version":[{"id":22652,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/10167\/revisions\/22652"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=10167"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=10167"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=10167"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}