{"id":359,"date":"2025-07-07T15:36:27","date_gmt":"2025-07-07T05:36:27","guid":{"rendered":"https:\/\/nonlinearexperience.com\/?p=359"},"modified":"2025-07-07T15:36:28","modified_gmt":"2025-07-07T05:36:28","slug":"functional-programming","status":"publish","type":"post","link":"https:\/\/nonlinearexperience.com\/index.php\/2025\/07\/07\/functional-programming\/","title":{"rendered":"Functional Programming"},"content":{"rendered":"<h1 class=\"wp-block-post-title\">Functional Programming<\/h1>\n\n\n<p class=\"wp-block-paragraph\">Immutability &#8211; always use \u2018const\u2019 to declare variables<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Separate data and functions<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Data is represented by JS objects (JS\u2019s version of arrays or hashes\u2026) &#8211; it is a constant source of truth<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Functions act separately and make a modified copy of the data<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">First-class functions &#8211; allows us to treat functions the way we treat other data types\u2026&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Mutating array methods &#8211; reverse &#8211; will modify the actual array<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">eslint<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">References<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Immutability &#8211; always use \u2018const\u2019 to declare variables Separate data and functions Data is represented by JS objects (JS\u2019s version of arrays or hashes\u2026) &#8211; it is a constant source of truth Functions act separately and make a modified copy of the data First-class functions &#8211; allows us to treat functions the way we treat [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"wp-custom-template-nlx-the-knowledge-page","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-359","post","type-post","status-publish","format-standard","hentry","category-the-knowledge"],"_links":{"self":[{"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":1,"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":360,"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/posts\/359\/revisions\/360"}],"wp:attachment":[{"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nonlinearexperience.com\/index.php\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}