Video wird geladen...

Video konnte nicht geladen werden

Zur Startseite

Morning camping rant: tabs vs spaces.

37,581 Aufrufe • vor 1 Jahr •via X (Twitter)

10 Kommentare

Profilbild von Cameron Harder-Hutton
Cameron Harder-Huttonvor 1 Jahr

2 vs 4 spaces is the real debate

Profilbild von //DJK
//DJKvor 1 Jahr

4 is default in most things. I stopped giving a shit and just use defaults.

Profilbild von Zbyněk Říha ✡
Zbyněk Říha ✡vor 1 Jahr

Tabs versus spaces are a matter of semantics. An indent is a tab, a space is just a space, a space between something. The correct indentation is a tab.

Profilbild von Soren
Sorenvor 1 Jahr

i miss the bathrobe ngl

Profilbild von 🐧 🇪🇺
🐧 🇪🇺vor 1 Jahr

I was with the rant until two spaces. That's insufficient indent. Four is too much. 3 is the magic number.

Profilbild von Anthony Melei, M.S.
Anthony Melei, M.S.vor 1 Jahr

Once again more great memories from uncle Bob. Defined columns assembly language and Fortran when I learned programming. Sometimes I miss those days. Then I also like learning all the new techniques from the evolving advanced languages.

Profilbild von Daryl Barnes
Daryl Barnesvor 1 Jahr

2 spaces? Them’s fightin’ words sir!

Profilbild von looney
looneyvor 1 Jahr

Bar tabs are superior to twitter spaces

Profilbild von chart_map
chart_mapvor 1 Jahr

Tabs are so much better than spaces. You can set the indent to what you prefer, e.g., 2 or 4 or 8 or change it on the fly. It’s easier to work with indented languages like Python where hunting down space discrepancies is a can be a pain. Less typing is good.

Profilbild von Os
Osvor 1 Jahr

Then TAB is superior

Ähnliche Videos