Spaces vs. Tabs

The Question? Should a software engineer use tabs or spaces when writing code? The Answer? Use tabs, no really. In your favorite text-editor or IDE, simply set the tab length to 4 spaces. Why? Tabs take only one byte, whereas the equivalent (4 spaces) takes four bytes. Realistically, this doesn’t matter nowadays with compression, minification, and large HDD/SSD storage mediums available. Tabs allow you to set the visual-width to your liking....

November 14, 2021 · 1 min · michaelpeterswa