| General > General Technical Chat |
| Religious technical opinions |
| << < (13/22) > >> |
| Siwastaja:
--- Quote from: samnmax on February 25, 2022, 12:08:01 pm ---Personally, I prefer spaces. Mainly because I constantly use vertical alignment between different lines, for clarity. For example: --- Code: ---if ((vdsstat1.bit.VDS_H1 == 0u) && (vdsstat1.bit.VDS_L1 == 1u) && (vdsstat1.bit.VDS_H2 == 1u) && (vdsstat1.bit.VDS_L2 == 0u)) { --- End code --- --- End quote --- Use tabs to intend the "base" left side (where the if starts, usually one tab if this is in a function body, or two if inside a function and a loop), then continue with spaces to align for a fixed number of characters (to match the length of "if (" ). This way, the text aligns the same, but others can still use whatever tab width setting! |
| rstofer:
In the early years of my career, I was an electrician. Apparently the trade has a long history! I prefer that the Tab key put in as many spaces as required. No tabs in the file! It's not the '70s anymore, file size isn't that important when you have multiple multiple terabyte drives. I think I'm just going to let Visual Studio Code and Visual Studio decide how to do the indenting. There seems to be some thought behind the algorithm. Anyway, whoever wrote it is a whole lot smarter than me. How about a language where white space is ignored - totally ignored - like FORTRAN: DO10I=1 -- an assignment statement to variable DO10I? DO10I=1,3 -- right up until the compiler sees the comma and decides it is the start of a DO loop terminating at statement 10. |
| billbyrd1945:
What really, really chaps me is the euphemism "slept together". Since I was born in 1945, I've seen all kinds of "loosenings" of mores for better or worse. Lucy and Ricky Ricardo slept in twin beds. Nowadays, even news broadcasters use "pissed" "pissed off", but you can't say you took a piss. And that's fine by me (the last part). But since we do use all kinds of words nowadays that were once forbidden in polite company, why in the hell can't we say "had sex together" instead of "slept together". You can even show two people under a sheet together being intimate. It's not a coincidence that all TV programming adheres to that convention. Someone decided that's the way it would be. You can't virtue signal with "slept together" and then show a couple humping under a sheet as they "sleep together". And that's another thing: Where do these people get off deciding such things. Oh, and one more thing, and this may be just me: Any time you see the back of a laptop on TV (probably movies too), it's always a Mac. Why is that? If it's not a Mac, it's some generic no-name badge. It's never HP, never Dell. And that would bother me even if I used a Mac, which I don't because I'm primitive and backward and slow and from the south. I feel better now. |
| Monkeh:
Well I've no idea where that whole rant came from or how it's topical, but.. --- Quote from: billbyrd1945 on February 25, 2022, 08:12:14 pm ---Oh, and one more thing, and this may be just me: Any time you see the back of a laptop on TV (probably movies too), it's always a Mac. Why is that? If it's not a Mac, it's some generic no-name badge. It's never HP, never Dell. --- End quote --- Because Apple have a gigantic marketing budget and, unlike HP and Dell, do not own the market, so they're the ones spending money to gain market share. It's called product placement. |
| PlainName:
--- Quote ---It's not the '70s anymore, file size isn't that important when you have multiple multiple terabyte drives. --- End quote --- It has nothing whatever to do with file size. So far as I'm aware, it never has. |
| Navigation |
| Message Index |
| Next page |
| Previous page |