Arse-whisk now has a permanent place in my vocabulary. 👍
- 0 Posts
- 4 Comments
Joined 2 years ago
Cake day: August 31st, 2023
You are not logged in. If you use a Fediverse account that is able to follow users, you can follow this user.
IRQBreaker@startrek.websiteto Programming@programming.dev•Tabs are objectively better than spaces - gomakethings.com1·2 years agoOh, I’ve done my fair share of C++ and Python as well. But you got to agree with me that when you are on your fourth indented “if case” it’s time to step back and think about what you are trying to achieve. I mean it’s probably going to work, but probably also very hard to maintain that type of code.
IRQBreaker@startrek.websiteto Programming@programming.dev•Tabs are objectively better than spaces - gomakethings.com13·2 years agoAs 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.
Embedded software developer here. One monitor, virtual workspaces. Because I don’t need distractions.
People in here with 2+ monitors, how do you stay focused? Probably it’s just me, but I have a hard time getting into the flow after getting interrupted.