Christos Lytras 7/7/2021

Never use TABS for code indentation

Read Original

This article argues against using tabs for code indentation, stating they cause inconsistent formatting when code is shared or viewed in different editors or web browsers. It explains that tabs were originally for tabular data, not indentation, and demonstrates how spaces provide reliable alignment. The author counters common pro-tab arguments, focusing on practical issues in web development and collaborative coding environments.

Never use TABS for code indentation

Comments

No comments yet

Be the first to share your thoughts!

Browser Extension

Get instant access to AllDevBlogs from your browser

Top of the Week

1
The Beautiful Web
Jens Oliver Meiert 2 votes
2
Container queries are rad AF!
Chris Ferdinandi 2 votes
3
Wagon’s algorithm in Python
John D. Cook 1 votes
5
Top picks — 2026 January
Paweł Grzybek 1 votes
6
In Praise of –dry-run
Henrik Warne 1 votes
8
Vibe coding your first iOS app
William Denniss 1 votes