{"id":638,"date":"2023-04-24T20:58:09","date_gmt":"2023-04-24T18:58:09","guid":{"rendered":"https:\/\/www.javascripttutorials.net\/?p=638"},"modified":"2023-04-24T20:58:09","modified_gmt":"2023-04-24T18:58:09","slug":"communicating-intention-with-functional-typescript","status":"publish","type":"post","link":"https:\/\/www.javascripttutorials.net\/communicating-intention-with-functional-typescript\/","title":{"rendered":"Communicating Intention with Functional TypeScript"},"content":{"rendered":"<p>We spend a lot of our time reading TypeScript code for many different reasons, code that may have been written by yourself or someone else. So why not do our future selves and colleagues a favor and write TypeScript code that at a glance will communicate what it&#8217;s doing?<!--more--> And while doing that, let\u2019s leverage what TypeScript has to offer as well as some good functional programming practices. In the end, we want to spend less time trying to understand some \u201cclever\u201d code or uncover some hidden surprises and more time shipping value to our clients.<\/p>\n<p><iframe loading=\"lazy\" title=\"Communicating Intention with Functional TypeScript by Thiago Temple\" width=\"730\" height=\"411\" src=\"https:\/\/www.youtube.com\/embed\/fhyHgkH0ZEg?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe><\/p>\n<p>Video producer: <a href=\"https:\/\/jsconfbp.com\/\">https:\/\/jsconfbp.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>We spend a lot of our time reading TypeScript code for many different reasons, code that may have been written by yourself or someone else. So why not do our future selves and colleagues a favor and write TypeScript code that at a glance will communicate what it&#8217;s doing?<\/p>\n","protected":false},"author":1,"featured_media":640,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[45,10],"class_list":["post-638","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","tag-functional-programming","tag-typescript"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts\/638","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/comments?post=638"}],"version-history":[{"count":0,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/posts\/638\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/media\/640"}],"wp:attachment":[{"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/media?parent=638"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/categories?post=638"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.javascripttutorials.net\/wp-json\/wp\/v2\/tags?post=638"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}