正在加载视频...

视频加载失败

Morning camping rant: tabs vs spaces.

37,581 次观看 • 1 年前 •via X (Twitter)

10 条评论

Cameron Harder-Hutton 的头像
Cameron Harder-Hutton1 年前

2 vs 4 spaces is the real debate

//DJK 的头像
//DJK1 年前

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

Zbyněk Říha ✡ 的头像
Zbyněk Říha ✡1 年前

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.

Soren 的头像
Soren1 年前

i miss the bathrobe ngl

🐧 🇪🇺 的头像
🐧 🇪🇺1 年前

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

Anthony Melei, M.S. 的头像
Anthony Melei, M.S.1 年前

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.

Daryl Barnes 的头像
Daryl Barnes1 年前

2 spaces? Them’s fightin’ words sir!

looney 的头像
looney1 年前

Bar tabs are superior to twitter spaces

chart_map 的头像
chart_map1 年前

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.

Os 的头像
Os1 年前

Then TAB is superior

相关视频