{"id":1069,"date":"2014-10-26T23:00:27","date_gmt":"2014-10-27T06:00:27","guid":{"rendered":"http:\/\/www.wiredatom.com\/blog\/?p=1069"},"modified":"2014-10-26T23:00:27","modified_gmt":"2014-10-27T06:00:27","slug":"javascript-structs-and-immutablestructs","status":"publish","type":"post","link":"https:\/\/www.wiredatom.com\/blog\/2014\/10\/26\/javascript-structs-and-immutablestructs\/","title":{"rendered":"Javascript Structs and ImmutableStructs"},"content":{"rendered":"<p><a href=\"http:\/\/raganwald.com\/2014\/06\/15\/immutable-structs.html\">This is a pretty cool article<\/a> on implementing <em>structs<\/em> and <em>immutable<\/em> properties &amp; objects in Javascript. Data structure like this makes it possible to construct and serialize user roles and capabilities objects on the client-side user Javascript that prevents users from tempering with the view. Bad ass!<\/p>\n<p><a href=\"https:\/\/www.wiredatom.com\/blog\/wp-content\/uploads\/2014\/10\/Structs-and-ImmutableStructs.pdf\">Here&#8217;s a PDF backup<\/a> of the article just in case the site or URL goes blind. You can&#8217;t be too safe!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a pretty cool article on implementing structs and immutable properties &amp; objects in Javascript. Data structure like this makes it possible to construct and serialize user roles and capabilities objects on the client-side user Javascript that prevents users from tempering with the view. Bad ass! Here&#8217;s a PDF backup of the article just &hellip; <a href=\"https:\/\/www.wiredatom.com\/blog\/2014\/10\/26\/javascript-structs-and-immutablestructs\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Javascript Structs and ImmutableStructs&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[21,10],"tags":[],"class_list":["post-1069","post","type-post","status-publish","format-standard","hentry","category-coding","category-geek-stuff"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p54IqZ-hf","_links":{"self":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/1069","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/comments?post=1069"}],"version-history":[{"count":0,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/posts\/1069\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/media?parent=1069"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/categories?post=1069"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wiredatom.com\/blog\/wp-json\/wp\/v2\/tags?post=1069"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}