{"id":13849,"date":"2017-12-21T17:41:02","date_gmt":"2017-12-22T01:41:02","guid":{"rendered":"https:\/\/www.podfeet.com\/blog\/?p=13849"},"modified":"2020-12-28T21:43:24","modified_gmt":"2020-12-29T05:43:24","slug":"ccatp-516","status":"publish","type":"post","link":"https:\/\/www.podfeet.com\/blog\/2017\/12\/ccatp-516\/","title":{"rendered":"CCATP #516 &#8211; Bart Busschots on PBS 46 &#8211; ES6 Spread Operator, Arrow Functions &#038; Classes"},"content":{"rendered":"<p>In this installment of Programming By Stealth, Bart adds one more thing to the list of changes to arrays, and that&#8217;s the spread operator.  Then we&#8217;ll learn how to get rid of the &#8220;const self = this&#8221; kludge for callbacks using the arrow functions.  After that, we learn the basics of classes, a concept introduced in ES6 which brings JavaScript into the world of other C-style languages.<\/p>\n<p>Bart&#8217;s excellent written tutorial for this installment is available here: <a href=\"https:\/\/pbs.bartificer.net\/pbs46\" target=\"%5Fblank\" rel=\"noopener\">pbs.bartificer.net\/&#8230;<\/a><\/p>\n<p>Bart at the end asks a question &#8211; would you be interested in learning how to build command line apps using JavaScript?  So far we&#8217;ve only be working on web apps, but command line apps will allow us to manipulate things in the file system, the network and even to the Internet itself without using a web browser.  Let us know via email to me at <a href=\"mailto:allison@podfeet.com\">allison@podfeet.com<\/a>, or write up your thoughts in our Facebook group at <a href=\"https:\/\/podfeet.com\/facebook\" target=\"_blank\" rel=\"noopener\">podfeet.com\/facebook<\/a> or our Google Plus group at <a href=\"https:\/\/podfeet.com\/googeplus\" target=\"_blank\" rel=\"noopener\">podfeet.com\/googeplus<\/a> or you can even tweet us at <a href=\"http:\/\/twitter.com\/podfeet\" target=\"_blank\" rel=\"noopener\">@podfeet<\/a> and <a href=\"http:\/\/twitter.com\/bbusschots\" target=\"_blank\" rel=\"noopener\">@bbusschots<\/a>.<\/p>\n<audio class=\"wp-audio-shortcode\" id=\"audio-13849-1\" preload=\"none\" style=\"width: 100%;\" controls=\"controls\"><source type=\"audio\/mpeg\" src=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2017_12_21.mp3?_=1\" \/><a href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2017_12_21.mp3\">https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2017_12_21.mp3<\/a><\/audio>\n<p><a title=\"mp3 download\" href=\"https:\/\/media.blubrry.com\/nosillacast\/traffic.libsyn.com\/nosillacast\/CCATP_2017_12_21.mp3\" target=\"_blank\" rel=\"noopener noreferrer\">mp3 download<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>In this installment of Programming By Stealth, Bart adds one more thing to the list of changes to arrays, and that&#8217;s the spread operator. Then we&#8217;ll learn how to get rid of the &#8220;const self = this&#8221; kludge for callbacks using the arrow functions. After that, we learn the basics of classes, a concept introduced [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":13740,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[147,172,213],"tags":[845,658,2049,2050,616,176,240,2051],"class_list":["post-13849","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-blog-posts","category-ccatp","category-programming-by-stealth","tag-arrays","tag-classes","tag-constructor","tag-instance-functions","tag-javascript","tag-programming","tag-programming-by-stealth","tag-spread-operator"],"jetpack_featured_media_url":"https:\/\/www.podfeet.com\/blog\/wp-content\/uploads\/2017\/12\/PBS_Logo-1-300x300.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/13849","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=13849"}],"version-history":[{"count":4,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/13849\/revisions"}],"predecessor-version":[{"id":22676,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/posts\/13849\/revisions\/22676"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media\/13740"}],"wp:attachment":[{"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/media?parent=13849"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/categories?post=13849"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.podfeet.com\/blog\/wp-json\/wp\/v2\/tags?post=13849"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}