My friend told me to 'Always Use Hard-Tabs When Coding'. Is this true? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

My friend told me to 'Always Use Hard-Tabs When Coding'. Is this true?

17th Apr 2017, 6:17 PM
Lium Goon
Lium Goon - avatar
5 Answers
+ 7
this takes me back to Tabs vs. Spaces on Silicon Valley XD [edit] this comment on reddit sums it up pretty well https://www.reddit.com/r/learnprogramming/comments/1998iy/what_is_the_difference_between_soft_tabs_and_hard/
17th Apr 2017, 6:37 PM
Burey
Burey - avatar
+ 5
Depends on your preference and settings of your IDE, but this way you make sure you got the indentations right each time. Soft tabs are longer to type and might be prone to mistakes more easily.
17th Apr 2017, 6:25 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar
+ 3
It all comes down to preferences. I personally prefer hard-tabs.
17th Apr 2017, 6:28 PM
CHMD
CHMD - avatar
+ 1
it's not a bad practice, but spaces do the same thing.
17th Apr 2017, 6:24 PM
LordHill
LordHill - avatar
0
Very old school
18th Apr 2017, 4:14 PM
Cole Reizenberg
Cole Reizenberg - avatar