|
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 21, 2015 10:05 |
|
|
# ? Apr 26, 2024 10:43 |
|
it adds more noise to diffs later when you have to realign poo poo
|
# ? Jun 21, 2015 16:04 |
|
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
|
# ? Jun 21, 2015 16:28 |
|
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
|
# ? Jun 21, 2015 18:39 |
|
just learn to read code like a non-retard. not that big a deal sent from my nexus 7
|
# ? Jun 21, 2015 18:41 |
|
KARMA! posted:nah its cool you're writing code, not laying poo poo out for print
|
# ? Jun 21, 2015 18:48 |
|
who doesn't enjoy scrubbing their code to adjust the number of spaces whenever they change a variable name or have to refactor something.
|
# ? Jun 21, 2015 18:54 |
|
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
|
# ? Jun 21, 2015 20:49 |
|
duTrieux. posted:you're writing code, not laying poo poo out for print what if its a programming textbook
|
# ? Jun 22, 2015 06:55 |
|
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
|
# ? Jun 22, 2015 06:57 |
|
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!
|
# ? Jun 22, 2015 15:58 |
|
MALE SHOEGAZE posted:then you need to do something useful, like figure out which animal is going on the cover
|
# ? Jun 22, 2015 17:12 |
|
i liek soft tabs, then everyone can display them however they like
|
# ? Jun 23, 2015 13:49 |
|
I use tabs to indent because tabs are for indenting.
|
# ? Jun 23, 2015 18:42 |
|
Rahu posted:I use tabs to indent because tabs are for indenting. This guy loving gets it
|
# ? Jun 23, 2015 18:47 |
|
bobbilljim posted:i liek soft tabs, then everyone can display them however they like That's actually not what soft tabs are
|
# ? Jun 23, 2015 18:47 |
|
Lol if you don't manually type out \t all over the place
|
# ? Jun 23, 2015 18:49 |
|
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!"
|
# ? Jun 23, 2015 18:52 |
|
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
|
# ? Jun 23, 2015 18:53 |
|
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
|
# ? Jun 23, 2015 19:08 |
|
maniacdevnull posted:That's actually not what soft tabs are well i like whatever that is then
|
# ? Jun 24, 2015 12:51 |
|
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
|
# ? Jun 24, 2015 14:11 |
|
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
|
# ? Jun 24, 2015 14:16 |
|
lol if you don't use vertical tabs
|
# ? Jun 24, 2015 15:14 |
|
ascii-11 supremacy
|
# ? Jun 24, 2015 15:14 |
|
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
|
# ? Jun 24, 2015 15:40 |
|
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.
|
# ? Jun 24, 2015 15:44 |
|
the world has spoken
|
# ? Jun 24, 2015 16:17 |
|
yeah most programmers are idiots
|
# ? Jun 24, 2015 16:26 |
|
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
|
# ? Jun 24, 2015 17:02 |
|
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
|
# ? Jun 24, 2015 17:03 |
|
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!
|
# ? Jun 24, 2015 17:51 |
|
according to this internet poll, ron paul will easily win the presidency in
|
# ? Jun 24, 2015 18:37 |
|
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
|
# ? Jun 24, 2015 19:10 |
|
set your tab size to a single space, indent using four tabs, best of both worlds
|
# ? Jun 24, 2015 20:53 |
|
llo
|
# ? Jun 24, 2015 21:02 |
|
qntm posted:set your tab size to a single space, indent using four tabs, best of both worlds monster
|
# ? Jun 24, 2015 21:58 |
|
I'm not even sure what the difference is so it can't be relevant signed, mlmp
|
# ? Jun 24, 2015 23:30 |
|
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 24, 2015 23:35 |
|
|
# ? Apr 26, 2024 10:43 |
|
a tab is a tab is a tab
|
# ? Jun 25, 2015 00:10 |