Tabs are objectively better than spaces - gomakethings.com
IRQBreaker @ IRQBreaker @startrek.website Posts 0Comments 21Joined 2 yr. ago
IRQBreaker @ IRQBreaker @startrek.website
Posts
0
Comments
21
Joined
2 yr. ago
As an embedded software developer that does linux kernel drivers I've come to love the tab size 8 indentation level.
I'm paraphrasing: "if your indentation level gets too deep, it's time to rethink/refactor your function."
And with tab 8 you'll notice it rather quick if your function does too much/unrelated stuff.
A function should be short and do one thing only, if possible. It also makes unit testing easier if that's a requirement.