top | item 44687561

(no title)

xipix | 7 months ago

You can't use spaces to align because you can't assume a monospaced font will always be used. You can't use tabs either for that matter. If you need structure, use the language's punctuation and line breaks.

discuss

order

idbehold|7 months ago

I can and do assume a monospaced font when using spaces to align code. Folks using variable width fonts will get what they deserve.

pepa65|7 months ago

Really please stop aligning with spaces!

eviks|7 months ago

You can use tabs, that’s exactly their role, but only in theory since in practice elastic tab stops that would work with proportional fonts aren’t implemented anywhere in code, only word processors

em-bee|7 months ago

no, i can't. i want to be able to align on arbitrary columns, not on tab stops. and when i add or remove character that break the alignment, tabs mess everything up. spaces don't.