OsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agoThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comimagemessage-square57fedilinkarrow-up141arrow-down10
arrow-up141arrow-down1imageThis is not a meme, I was trying to find content for an OC /c/programmerhumor post and found thisi.imgur.comOsrsNeedsF2P@lemmy.ml to Programmer Humor@lemmy.ml · 1 year agomessage-square57fedilink
minus-squarenoisytoot@lemmy.mllinkfedilinkarrow-up3·1 year agoTabs work fine as long as you don’t align stuff. If you do, you have to assume a tab size and mix tabs and spaces.
minus-squareedward@lemmy.mllinkfedilinkarrow-up4·edit-21 year agoGenerally aligning stuff isn’t nice. But if you do, it’s tabs up to whatever level of indentation you’re at then spaces the rest of the way. The tabs and spaces have different semantic meaning (indent vs alignment) so mixing them makes sense. (Dashes for tabs, * for spaces) <form> —<input type=“text” —*******class=“whatever” /> </form> Although really just adding a level of indent is better than aligning. <form> —<input type=“text” ——class=“whatever” /> </form>
Tabs work fine as long as you don’t align stuff. If you do, you have to assume a tab size and mix tabs and spaces.
Generally aligning stuff isn’t nice. But if you do, it’s tabs up to whatever level of indentation you’re at then spaces the rest of the way. The tabs and spaces have different semantic meaning (indent vs alignment) so mixing them makes sense.
(Dashes for tabs, * for spaces)
<form> —<input type=“text” —*******class=“whatever” /> </form>
Although really just adding a level of indent is better than aligning.
<form> —<input type=“text” ——class=“whatever” /> </form>