{"id":901,"date":"2022-06-29T11:16:25","date_gmt":"2022-06-29T08:16:25","guid":{"rendered":"https:\/\/www.juustila.com\/antti\/2022\/06\/29\/tabs-or-spaces\/"},"modified":"2022-06-29T11:16:25","modified_gmt":"2022-06-29T08:16:25","slug":"tabs-or-spaces","status":"publish","type":"post","link":"https:\/\/www.juustila.com\/antti\/2022\/06\/29\/tabs-or-spaces\/","title":{"rendered":"Tabs or spaces"},"content":{"rendered":"\n<p>I used to be a tabs guy ages ago. Then switched to spaces. I don\u2019t actually remember why and when. Maybe after arguing about this among fellow programming teachers at the university. <\/p>\n\n\n\n<p>The debate around tabs versus spaces, some times quite heated, has been mostly about programming <em>style<\/em>. But today I saw a tweet that has a relevant argument for using tabs. Programmers using screen readers or braille readers lose valuable space because of spaces (pun intended). <\/p>\n\n\n\n<p>Understandably it takes more space (!) and time to read e.g. nine spaces than three tabs, assuming the tab is configured to match three characters. It is all about <em>accessibility<\/em>. <\/p>\n\n\n\n<p>So, I will be converting back to using tabs when indenting code. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I used to be a tabs guy ages ago. Then switched to spaces. I don\u2019t actually remember why and when. Maybe after arguing about this among fellow programming teachers at the university. The debate around tabs versus spaces, some times quite heated, has been mostly about programming style. But today I saw a tweet that &hellip; <a href=\"https:\/\/www.juustila.com\/antti\/2022\/06\/29\/tabs-or-spaces\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Tabs or spaces&#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_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_post_was_ever_published":false},"categories":[2],"tags":[91,70,90],"class_list":["post-901","post","type-post","status-publish","format-standard","hentry","category-coding","tag-accessibility","tag-programming","tag-style"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/posts\/901","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/comments?post=901"}],"version-history":[{"count":0,"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/posts\/901\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/media?parent=901"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/categories?post=901"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.juustila.com\/antti\/wp-json\/wp\/v2\/tags?post=901"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}