|
comedyblissoption posted:it's because aligning your code like anything that makes your information clearer is a positive, as long as it doesn't hinder anything else to do so
|
![]() |
|
![]()
|
# ? Jun 18, 2024 23:06 |
|
it adds more noise to diffs later when you have to realign poo poo
|
![]() |
|
echinopsis posted:anything that makes your information clearer is a positive, as long as it doesn't hinder anything else to do so I definitely agree wtih this, esp. if you're new ro self taught or whatever (like a pharmacist on an island with 12 people and a hundred sheep) but: Flat Daddy posted:it adds more noise to diffs later when you have to realign poo poo this also does become a pain in the rear end, but still, imvho, it makes things more readable. with perl this is esp. nice
|
![]() |
|
idk aligning your code like that might have some small advantage but it's better to not gently caress around making it pretty and instead do actual work imo that and the diffs thing mean it would be viable with elastic tabs (get the ide to handle it; poo poo like that is literally what ides are for) but is dumb otherwise and as mentioned elastic tabs isn't always a good idea either so welp
|
![]() |
|
just learn to read code like a non-retard. not that big a deal sent from my nexus 7
|
![]() |
|
KARMA! posted:nah its cool you're writing code, not laying poo poo out for print
|
![]() |
|
who doesn't enjoy scrubbing their code to adjust the number of spaces whenever they change a variable name or have to refactor something.
|
![]() |
|
duTrieux. posted:you're writing code, not laying poo poo out for print tbh the ide should be doing this for me (and diff tools should be smarter and not care about superfluous whitespace) but since it cant ill have to do it myself and the person looking at the diffs needs to turn on the i-dont-care-about-whitespace option on ![]()
|
![]() |
|
duTrieux. posted:you're writing code, not laying poo poo out for print what if its a programming textbook
|
![]() |
|
Smythe posted:what if its a programming textbook then you need to do something useful, like figure out which animal is going on the cover
|
![]() |
|
duTrieux. posted:you're writing code, not laying poo poo out for print Readability isnt important if you're an ubermench like me *comments nothing, commits, checks out same code six months later* guhhhhh who wrote this I can't parse it!
|
![]() |
|
MALE SHOEGAZE posted:then you need to do something useful, like figure out which animal is going on the cover ![]()
|
![]() |
|
i liek soft tabs, then everyone can display them however they like
|
![]() |
|
I use tabs to indent because tabs are for indenting.
|
![]() |
|
Rahu posted:I use tabs to indent because tabs are for indenting. This guy loving gets it
|
![]() |
|
bobbilljim posted:i liek soft tabs, then everyone can display them however they like That's actually not what soft tabs are
|
![]() |
|
Lol if you don't manually type out \t all over the place
|
![]() |
|
Rahu posted:I use tabs to indent because tabs are for indenting. well we have this character that represents one level of indentation, and you've been able to change its width on the display pretty much forever naw gently caress it let's insert an arbitrary number of spaces instead is there a correlation between using spaces for indentation and freaking out if your code goes over 80 columns? "if i use tabs and somebody views this with 8-space tabstops, some of these lines will be like, 85 characters long and their VT-100 will wrap!"
|
![]() |
|
maniacdevnull posted:Readability isnt important if you're an ubermench like me *comments nothing, commits, checks out same code six months later* guhhhhh who wrote this I can't parse it! yes, there is no difference between readable and commented code and code where every character has been placed yby whacking off the space key
|
![]() |
|
code with variable-width fonts so you don't spend a lot of time worrying about aligning every little loving thing just get the indentation right and leave it at that
|
![]() |
|
maniacdevnull posted:That's actually not what soft tabs are well i like whatever that is then
|
![]() |
|
you can't have hard tabs because people are too stupid to use tabs solely for indentation and will start checking in source where they used tabs for alignment then everyone blames hard tabs and not the stupid people
|
![]() |
|
of course hard tabs are correct. which do you think is right, hitting "tab" and getting a tab... or hitting "tab" and getting a bunch of things that aren't tabs also, tabs are 8 characters wide. this is a natural constant, like the speed of light, even though a whole bunch of people in this day and age like to set their editor to show tabs incorrectly
|
![]() |
|
lol if you don't use vertical tabs
|
![]() |
|
ascii-11 supremacy
|
![]() |
|
didnt read op or thread, but soft tabs are what non-spergs use if you dont want to deal with the bullshit of micromanaging hard tabs for indent and spaces for alignment. soft tab supremacy
|
![]() |
|
soft tabs are a sign of mental disorder since they are so clearly inferior in every way. someone who uses soft tabs over hard tabs is guaranteed to be a bad programmer because they don't understand why hard tabs are superior.
|
![]() |
|
the world has spoken![]()
|
![]() |
|
yeah most programmers are idiots
|
![]() |
|
kiwid posted:didnt read op or thread, but soft tabs are what non-spergs use if you dont want to deal with the bullshit of micromanaging hard tabs for indent and spaces for alignment. but its WRONG you see because your not using the character called tab with the key called tab and ![]()
|
![]() |
|
kiwid posted:the world has spoken All the true hard tabsmen took one look at those hambugger buttons and turned 360 degrees outta that poll
|
![]() |
|
kiwid posted:the world has spoken oh no pack it in guys, a scientifically valid poll that surveyed a representative sample fo the entirety of the world's population!
|
![]() |
|
according to this internet poll, ron paul will easily win the presidency in
|
![]() |
|
Suspicious posted:according to this internet poll, ron paul will easily win the presidency in look at this guy, still thinks it's ron paul. nah, bernie sanders for prez 2016
|
![]() |
|
set your tab size to a single space, indent using four tabs, best of both worlds
|
![]() |
|
llo
|
![]() |
|
qntm posted:set your tab size to a single space, indent using four tabs, best of both worlds monster
|
![]() |
|
I'm not even sure what the difference is so it can't be relevant signed, mlmp
|
![]() |
|
qntm posted:set your tab size to a single space, indent using four tabs, best of both worlds Add a script to automatically convert to this formatting on check-in
|
![]() |
|
![]()
|
# ? Jun 18, 2024 23:06 |
|
a tab is a tab is a tab
|
![]() |