devilish666@lemmy.world to Programmer Humor@lemmy.ml · 10 months agoC++ Momentlemmy.worldimagemessage-square73fedilinkarrow-up137arrow-down10
arrow-up137arrow-down1imageC++ Momentlemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 10 months agomessage-square73fedilink
minus-squareHopFlop@discuss.tchncs.delinkfedilinkarrow-up0·10 months agoWhy would I use spaces if I use tabs? Also, it seemd like a huge waste of time hitting the space bar so many times…
minus-squaremerc@sh.itjust.workslinkfedilinkarrow-up0arrow-down1·edit-210 months ago Why would I use spaces if I use tabs? To comply with Python’s best practices: https://peps.python.org/pep-0008/ Also, if you work on the Linux Kernel, you’ll see a mix of tabs and spaces: https://elixir.bootlin.com/linux/latest/source/block/bfq-iosched.c#L390 Also, it seemd like a huge waste of time hitting the space bar so many times… You use an editor that doesn’t auto-indent?
minus-squareBeardedGingerWonder@feddit.uklinkfedilinkEnglisharrow-up0arrow-down1·10 months agoI use vi without syntax highlighting.
minus-squareBeardedGingerWonder@feddit.uklinkfedilinkEnglisharrow-up0arrow-down1·10 months agoTo be fair you can totally bind an arbitrary number of spaces to tab in vi. I’ll dig out the syntax highlighting file some time. Oh and I use vim really.
Why would I use spaces if I use tabs? Also, it seemd like a huge waste of time hitting the space bar so many times…
To comply with Python’s best practices:
https://peps.python.org/pep-0008/
Also, if you work on the Linux Kernel, you’ll see a mix of tabs and spaces:
https://elixir.bootlin.com/linux/latest/source/block/bfq-iosched.c#L390
You use an editor that doesn’t auto-indent?
Removed by mod
I use vi without syntax highlighting.
Removed by mod
To be fair you can totally bind an arbitrary number of spaces to tab in vi. I’ll dig out the syntax highlighting file some time. Oh and I use vim really.