Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "tabs>spaces"
-
What devrant taught me:
Everyone hates java
Everyone hates php
Everyone hates spaces
Everyone hates tabs
Everyone hates vim
Everyone hates windows
Everyone hates linux
Everyone hates clients
Everyone hates PMs
Everyone hates every language they're not working with
Everyone loves devrant 😊36 -
I don't understand why so many people fight this war of tabs vs spaces. My colleagues elegantly solved the problem just not using indentation at all36
-
What devrant taught me:
Everyone hates java
Everyone hates php
Everyone hates spaces
Everyone hates tabs
Everyone hates vim
Everyone hates windows
Everyone hates gnu+linux
Everyone hates clients
Everyone hates PMs
Everyone hates every language they're not working with
Everyone loves devrant 😀😄😙29 -
It happened.
I wrote "you're missing a tab in your python code" as an answer on StackOverflow.
I was downvoted AND told that I wasn't correct: it was missing 4 spaces and not a tab, according to the python guidelines.
Now, I haven't read them, but my Richard Hendrix fucking intensifies.
Fuck spaces. And if python guidelines talk about spaces, fuck python guidelines too!31 -
Friend: so what is this app I always see you using on your phone?
Me: devRant, it's for developers! it gives us the chance to share rants!
Friend: Wow awesome!!! so what do you guys discuss, interesting stuff huh?
Me: Spaces.... spaces vs tabs.25 -
Spaces Vs Tabs - A real world case.
So one of the menial tasks I was given here was to take a pretty mock and turn it into an HTML email template. Needless to say, I hate emails and HTML.
After many weeks of trial and error, rejection and tweaks, we're doing our final tests when someone noticed that Google's clients are chopping off the footer and saying "View Full Email".
A few searches yield that Google has a 102KB cut off for email size. We did some checks and found that we were at 104KB. I immediately thought it was my CSS inliner being a little too verbose, but as I went in to edit things, I noticed that the file was intended with spaces!
Now I'm a fan of Silicon Valley, and I recalled an episode from this past season where Richard mentioned something about saving file size by using tabs. I had never really considered that point.
So I went back into VSCode and told it to convert all of the individual templates that make up this giant email to indent with tabs...
The file size dropped from 104kb to 82kb.
I wasn't very polarized on the Tabs vs Spaces debate, but this here has given me a nice real world example as to why tabs rule.20 -
Dear codebeautify.org,
Go kill yourself.
No one likes you. Go die.
Love,
poster983
P.S. I'm serious.18 -
My interviews to hire a Junior Dev will begin this week. Here's how its gonna go down.
Me: Star Trek or Star Wars?
My Supervisor: WTF? How is that relevant?
Human Resources: Let's see what he says.
Applicant: Battlestar Galactica
Me: Nice. I can deal with that.
Me: Tabs or spaces when indenting your code?
Supervisor: ... ?
Human Resources : ...
Applicant: Spaces.
Me: GTFO you imbecile! Next!27 -
Really annoyed by the endless tabs vs spaces discussion.
From now on, I use 4 tabs as indentation.18 -
This morning Google asked me to come away from a search and into this dark portal to begin its underground recruiting process w/ me. Humbled += Intrigued.
This is a rant because they also gave me a deadline and I have other deadlines, Google!
But the REAL question is: tabs or spaces, Google?8 -
love this app.
love the new algo.
love this community.
oh... rant? this is a place to rant?
fml.
tabs. or spaces? tabs! tabs.8 -
"Tabs create smaller file sizes. I run a compression company, trust me, I've devoted my life to minimalizing file sizes."
- Richard Hendricks10 -
Where dafuq is the tabs or spaces?!?!?
They are trying to teach people to code... But they don't use any tabs or spaces in their examples. Wtf. You are breeding shit coders.17 -
Talked dev with my uncle today at the dinner table. Every other family member slowly backed away in boredom and confusion as we discussed spaces vs. tabs3
-
IE can go fuck itself.
Today, the reason the some JS broke is because it couldn't handle tabs. Works fine in any other browser.
Replace all tabs with spaces and bam, everything works again.
😡😡😡😡😡😡😡😡😡😡😡7 -
When half your team uses spaces and the other half tabs... Thank god IDE can convert tabs automatically now but now we are arguing if we should use 2 or 4 spaces. It never ends...34
-
Apparently you make more money if you use spaces than if you use tabs
https://stackoverflow.blog/2017/06/...9 -
And there I was thinking about being an Intern here...
NO FIGHTING OVER TABS AND SPACES IN THE COMMENTS PLEASE16 -
Colleague: Oh i've noticed your PR uses tabs instead of spaces, we use spaces, can you change yours please?
Me: ..... can you leave the building immediately, for your own safety21 -
So my ex gf was a developer too and she used spaces instead of tabs and she would put the { on a new line. That was not the reason to break up with her but I just can't hold my rage ffs18
-
People fighting about spaces vs tabs and I'm here fighting about coding in light theme or dark theme.11
-
1. Indent with 3 spaces to fuck both tabs guys and spaces guys git repos.
2. Use windows line endings and laugh and laugh and laugh.
3. Giant full page ascii art intro on every single file.
4. After the giant ascii art intro there are literally zero comments.
5. Keep the bracket on the same line for getters, but on the next line for setters because fuck you.17 -
Scientists debate on important stuff like when the world is gonna end, and climate change. However we debate on the really important stuff: spaces vs tabs.7
-
Tabs or spaces?
A script that replaces <your project's style> with <your preference> whenever you pull and does the opposite just before committing.
Spread code not war10 -
Ultimate answer to TABS over SPACES! Tab eats 4 times less battery. No global warming if we switch to TABS! Share this knowledge bomb brothers!6
-
Tabs v Spaces...
camelCase v snake_case
'single' vs "double"
hyphen-vs_undescore
The point here is PICK ONE AND USE IT.9 -
What is considered best practice for code indentation? When I'm working with HTML and Javascript my rule of thumb is 2 spaces for indentation, and with Java and Python it's 4 spaces.
Also I'm trying to break my bad habit of mixing tabs and spaces. It's messing with the laws of physics.12 -
Read some books
Get a computer
Write some codes
Use Linux
Hate Microsoft
Argue Vim vs Emacs
Debate 4 spaces vs tabs
Use dark themes
Follow buzzwords..
Now repeat after me, "I am a programmer...."4 -
I'm just C# boy, born and raised in a .Net world ... Today I started some stuff with JavaScript, downloaded the JavaScript standard extension for using in Vs code... It made me do things...it made indent each new line by 2 spaces! Not 4 or a tab but 2! And then what really took the fucking biscuit, it said I couldn't end my statements with semi colons! I need a strong cup of tea and a sit after that shit. How is that at all useful to anyone!? It just made it make less sense!!!!10
-
Converting spaces to tabs made my file 10% smaller (5050 characters to 4500).
Either good argument against spaces or my code with compulsive indentation disorder.15 -
Not usually a person to rant about spacing and conventions but this is great.
4 devs, all using IntelliJ. Now IntelliJ auto-changes tabs to spaces which is nice, and GitHub doesn’t really care as long as the spacing is consistent. Now here is the fun part: 2 devs have 4 spaces per tab, 1 has 3 spaces, 1 has 5 spaces.
GitHub merge conflicts everyWHERE.
And yes it isn’t the old 2 vs 4 spaces. It’s 3 vs 4 vs 5 somehow6 -
Hi fellow code indenters,
I am a tab indenter myself because each dev on the same project can decide how much the indentation is. Some prefer 4, some 2, some prefer both depending on language.
Now I already asked a few space indenters here why spaces. Because I never heard a good argument for using spaces instead of tabs. Each time I asked I didn't get an answer.
So this time once again: why would you use spaces over tabs for indentation?
I want to make a good decision and for that I need arguments for both.40 -
My friend is a 1st time programmer. When we learned about tabs vs spaces in our mandatory beginners c++ class, the friend said "what, you can use spaces?" and I said "yes, of course, like this!" and demonstrated it. The friends reply, without knowing about the controversy, made my day:
*silence*
"well, thats dumb"3 -
...and this photo from our latest conference, shows our developers having an interesting debate about tabs vs spaces.3
-
I have always considered myself as a tab person.
I was living my happy life thinking spaces didn't make sense in code.
This until last week, when I realised intellij is automatically putting 4 spaces instead of tabs
I feel betrayed5 -
in C I use {} for ifs even when they have a single line. for some reason, my C proffesor hated this. For him, this is the equivalent of Tabs vs Spaces.15
-
Dear intern, if you really really have the urge to use fucking spaces for indentation because it let's you feel like being some Google hipster, then PLEASE AT LEAST REMOVE THE SPARE ONES WHEN YOU FUCKING COPY PASTE CODEBLOCKS!!!1!!1111!
I'm perfectly OK if people wanna use spaces if they use it in an OCD-proof manner.
Nah, let's be honest: Spaces are a filthy way to indent stuff. Tabs are in a lot ways superior and if an editor can't render tabs correctly, the editor is a piece of worm puke.2 -
Literally tabs vs. spaces. The joke is everywhere, and the people taking stances have clearly never used find+replace.8
-
In a meeting with my new team I asked if they had a preference between tabs and spaces. None of them cared.
#notrealdevs4 -
I will leave it here
monday- tabs vs spaces
Tuesday- brackets indentation
wednesday- windows vs mac
Thursday- c# vs java
friday - windows vs linux
saturday- vi vs emacs
sunday- vs code vs intellij2 -
When working with really annoying devs that I know feel strongly about using either spaces or tabs, I sometimes "accidently" uses the opposite indent style when commiting.3
-
Who the hell thought that spaces OR tabs for indentation was an option?
For Spaghetti Monster's sake. An space is to separate words, one at a time. Tabs are for indents.
PERIOD
.28 -
React or Angular?
Vim or Emacs?
Tabs or Spaces?
.....
I'm fed up with these questions :(
Whatever is suitable for your job or whichever is comfortable for you, go with that...16 -
Reading a Ray Wenderlich book to try give RxSwift a go. Book is well written and going well. But I’m grinding my teeth at the fact all the code samples use 2 space indentation. Despite the fact apples standard is 4 ... and you know tabs would let us decide.
I know it’s a small thing, but it’s really pissing me off3 -
All arguments about tabs and spaces, I just write my code in a non-formatted clusterfuck and then let the IDE format it.6
-
Look, I don't really mind much whether you use tabs or spaces. But for FUCK'S sake, for the LOVE OF FUCK:
IF YOU USE TABS, DON'T TRY TO LINE UP PARTS OF YOUR CODE WITH SOMETHING ON THE LINE ABOVE BECAUSE IT WILL GO TO SHIT WHEN SOMEONE ELSE HAS A DIFFERENT TAB WIDTH SETTING.
YOU DRIBBLING FUCKPUPPET.3 -
If there was one thing (and one thing only) that I wish was unanimous amongst programmers (and that we all agreed on) is that a tab is 4 spaces.4
-
So I'm reading up on the HomeAssistant documentation to prepare for submitting to their repo. I was really excited to find such a nice repo to contribute to, but i suddenly had to reconsider when i found this:10
-
While I prefer tabs over spaces for indentation, I usually don't mind using spaces as this is often decided project-wide(or even company-wide) by powers out of my reach and the people also normally decide to intend by the reasonable 4 spaces.
However, now I am working on a project with 2 spaces indentation and oh boy, what a pain it is to write any nested code.. am I really the only one with this problem?12 -
2017 and yet, here we are, still ripping up our clothes over tabs and spaces.
My bad if I missed something about this debate but I really don't get it.7 -
Welp, just found the first horrifying innacuracy in Silicon Valley... Richard prefers tabs over spaces. That cant possibly be a thing, right? Right!!?9
-
That moment you see an argument between two developers about tabs vs spaces tjat was suppose to be a discussion about the series sillicon valley1
-
1. Kill every last bastard who uses spaces instead of tabs or anyone who thinks that's better.
2. Break every text editor that has the option of transforming beautiful code tabs into hideous spaces.
3. Make a statically typed language that's good enough to replace JS and the pile of hacks we have in the web today.12 -
Years ago, one of my friends in college was taking an intro to CS class. He asked me for help on one of his assignments. It was a simple Python program, but it wasn't running as expected. I go in figuring it will be easy to fix. But everything looks exactly right. An hour later I'm tearing my hair out! It isn't even entering the function although it's clearly called. I'm beginning to feel very self conscious, as a CS major who can't even debug a 15 line program for a friend.
Then it hit me. This is Python. I used an editor macro to convert all indentation to tabs, lined them up, and it ran on the first try. Turns out, he had somehow ended up with a mixture of tabs and spaces.
I'm not sure what the takeaway is, but I think he got a surprisingly honest introduction to the life of a developer...2 -
Got a nice PR merged. Happy because it's on a popular project with over 4k stars. Ashamed because 50% of the commits are changing indentation from 4 spaces to tabs 😌1
-
Just watched episode 3-6 of silicon valley, where Richard loses his girl over tabs vs spaces. Made me kind of mad.
How the fuck is tabs vs spaces still a struggle? Unless you're using fucking Notepad++ to code, your IDE will FUCKIN REPLACE TABS WITH SPACES! IF YOU INDENT WITH SOMETIMES THREE, SOMETIMES FOUR SPACES, THEN BURN IN HELL! JUST USE YOUR IDE WITH YOUR TAB KEY AND END THE WAR!2 -
I prefer Tabs over Spaces.
If you ever say this in a room full of Space-supporters and this came out of you before you could stop it, just tell them...
We're talking about Microsoft Edge, right?12 -
Went for a job interview and they used spaces rather then tabs!!! Walked straight out of there!
(^ Sarcasm it really doesn't bother me as it's just a setting on my ide)1 -
From the moment I realised I was a TABs guy, and she a SPACEs person, it was all over. Love became terribly bad "indented" from that very moment.2
-
god... why is the stupid "tAbS oR sPaCeS?" still around, it's like some stupid ass HR person got it long ago and it's never gone away. nobody has used tabs to write or format code since like the 1950s when there were mechanical fucking typewriters! and if you use them today in your editor, you're WRONG
I will die on this hill.13 -
We've had tabs vs spaces, gif vs jif, but how about S Q L vs sequel? Which one do you prefer? I'm in camp sequel.12
-
I am seeing a lot of Silicon valley related stuff , specially the tabs vs spaces. So how many of us watch it, and what's you fav moment.8
-
So, a spaghetti legacy code, written by some dude that obviously hates his job, needs update and we argue about spaces vs tabs....4
-
phpstorm's reformat code feature is a lifesaver when your codeveloper keeps switching his indents between tabs and 6 spaces6
-
TABS OR SPACES?
It doesn't matter what you use, but use the ome you can stand with.
DONT FUCKING EVER BULLY ONE BECAUSE HE'S NOT USING YOUR "STANDARD"
Try to have some good discussion why you should use tabs or spaces and let other opinions matter. They may have some good reason for it.
PS I'm using spaces because it wont fuck up my Code if i change the OS (Windows<->Linux Server)5 -
I never understood the ‚space vs tabs‘ war ...
Tabs can do everything that spaces can plus more:
* look the same as spaces, but its width is configurable (at least in a decent editor)
* the safe space (1 byte vs 3 or 4)
* you can decrease the intendation leven with one bsckspace keypress in every(!) editor.
So the winner can only be tabs? Why would I even limit myself with spaces?
I dont wanna start a flame war, just curious what you guys (especially the spaces lovers) think about it11 -
If you start coding in Python3, don't use both tabs and spaces. Just decide for one. It'll save you a good amount of time on bigger projects 😉2
-
tabs vs spaces
i hate it when i cant find where i used spaces instead of tabs. just a simple mistake and it doesnt work
me: *codes makefile in codenvy*
terminal: *** missing separator. Stop.
me: *rewrites code exactly the same way in Notepad++*
me: *copy paste code to codenvy*
terminal: *compiles whole project*
wow. just wow.6 -
People sometimes scream to everyone else that tabs are better than spaces, but they don't realize that their IDE most of the times automatically converts tabs in 4 spaces.10
-
Seriously how hard is it to observe proper indentation! Don't mix spaces and tabs! That's why I added the .editorrc .jshintrc .jscsrc in the project repo so you'd use it. I asked you to configure your editor and the only thing you configured was your freaking Sublime theme and color scheme. aaaaargh!!!!!1
-
I really don't understand why there's even a debate about tabs vs spaces. Why else would the spacebar be 4 times a wide as the tab key?!7
-
wow now I have native linter tools telling me tabs are illegal when they're not
can these political people vamonos18 -
Did some changes and raised a code review. Some lines' indentation don't align. The senior dev (reviewer) asks me to format according to the project scheme.
Changed all tabs to spaces; lines don't align.
Changed all spaces to tabs (with a heavy heart); surprisingly it still doesn't align!!
I'm like okay, let's dive deeper.. Found that the surrounding lines were indented this way: 4 spaces followed by a tab..!! SERIOUSLY!?! WHY? HOW? I mean how does this kind of shit happen?!
Worst part -> getting ship it after following the current convention! -
Whenever I clone a github repo, the first thing I do is to format the code from tabs to spaces.
Tried not to do it, but the itch is unbearable.4 -
I use spaces instead of tabs. Working beside me, my mates were irritated of that beautiful sound(they called it noise) from my keyboard.4
-
We need a thread dedicated to just debating tabs vs spaces and light vs dark themes, every third post is about one of them!1
-
For all of our differences Tabs Vs Spaces, Emacs Vs Vim. There are two things that drive us. Computers and free promotional merchandise.1
-
I know this topic is tired and this isn't supposed to be a pure "REEEE SPACES BAD" kinda rant but I still don't understand why people would ever use spaces over tabs for indentation. I'm genuinely curious so please give me your arguments in favor of spaces because I just don't understand
So here's my position:
Tabs are objectively better than spaces in every single way
(I know that IDEs also do some of these for spaces, more on that later)
1. They are typed with one key press
2. They can be removed with one keypress
3. They allow for individually configurable width (some people prefer 2 and some 4 width)
4. They take up less memory (kinda irrelevant, but still)
5. You can properly navigate your code using the arrow keys which is much faster than using the mouse while typing
6. You don't have problems with accidentially having one too much or one too little
7. You don't have problems when copy pasting or moving code around (e.g. refactoring)
8. Code is much easier to select with the mouse, and
9. it's much easier clicking the right spot with the mouse where you want to continue typing, which is often at the start of a line
Apart from specific alignment, where spaces are fine (but which also almost never comes up), I just can't see a single thing where spaces are better at. So much so that most IDEs have to *pretend* that they're tabs when typing and removing them. It's so ironic yet people still defend it and big companies still use them.
I feel like I'm going mad 😨56 -
Tabs vs Spaces.
Not because one of them is definitely better than the other, but because it's 2020, we have editorconfig and everybody should just use what he personally prefers.7 -
Fast quitz:
1. Desktops or Laptops?
2. Windows or Linux?
3. Coke or Pepsi?
4. Instant coffee or regular coffee?
5. Light theme or dark theme?
6. Tabs or spaces?
Let's the hell begin! 😈30 -
Looks like ESLint is all confused about my tabs and spaces. I've never seen this kind of error message where it expects the tabs to be the same number as the spaces indentation? I have it configured for 1 tab = 2 spaces.
So confused. Must fix. Red squiggles make my blood hurt.7 -
Fuck forced coding conventions in uni, especially if they are as stupid as Google's Java Conventions. They are a disgrace to nice code but we will have to use them going forward
Stupid spaces everywhere. Else on the same line, wtaf. And don't even get me started on indentation with fucking spaces. Tabs are superior in every single way fite me irl17 -
! War
I hate tabs to space, yep i hate it, nobody could ever give me a good reason to use spaces over tabs
(yes i want to have differend tab sizes on differend Plattforms/environments, my buddys all use 4 or even 6 as tab size, i only use 2. With tabs can everbody got his/her own size without reformating the whole code and driving diff crazy @all lines changed!!!111onehundredeleven)12 -
I use spaces in vim/nano, I use tabs in my graphical IDE which translates it into spaces. I guess I'm on the spaces side, even though I don't really mind both. But seriously, why do people keep arguing about effing whitespaces...9
-
Regarding the never ending tabs vs spaces debate; who on earth over at GitHub thought 8 spaces was a good default value for tabs in code?4
-
so the PHP Standards Recommendations part two (PSR-2) says
"Code MUST use 4 spaces for indenting, not tabs."
and i feel devastated1 -
I used to love tabs and absolutely despise spaces, but a combination of using IntelliJ and company code indentation convention has converted me to the dark side #spacegang4
-
I don't think there is anything more painful than seeing some programmers writing badly formatted code.
I mean how can anyone use a single space or completely inconsistent spaces and tabs.
What is more painful is that you cannot scream at them because you don't wanna be an A-Hole trying to force your methods to others. -
Our professor takes points off our code if we use tabs (not much, but still).
But the best part is having "few" spaces is also a problem. Seems like using tabs we be a solution then.
Why?!6 -
What if those who’ve been defending the use of tabs over spaces realized they’re actually using soft tabs (spaces behind the scenes) after all? 🤔🤔🤔14
-
Nothing as painful as working together with a front-end guy who uses spaces for their works and you use Tabs.
I've been battling with Python Indentation error since morning9 -
Why aren't styleguides made by democratic descisions?
Just ask 1m devs and do whats done the most.8 -
Q: Do you have an option which allows me to use spaces instead of tabs?
A: Go fuck yourself (and, stop using a plain text editor, then uploading code to Google Docs.)6 -
Developers who think spaces are better than tabs.
Seriously every editor other than Notepad lets you set how many spaces a tab is equal to. Stop trying to force your stupid 2 space tabs on me.4 -
"this file is indented with tabs instead of 4 spaces. would you like to convert to 4 spaces?"
what??? no? fuck you android studio2 -
So i'm making a menu for my friend. He shows me a menu he made on his iPad, all in Chalkboard SE (identical to Comic Sans), lined up using tabs and spaces, and asked for the same font.
I'm not joking.2 -
Since we're all doing unpopular opinions lately: tabs and spaces are not only interchangeable, but is most readable when mixed on one line.
Instead of 4 spaces or one tab, try 2 spaces, 1 tab, and another space for good measure!3 -
Could it be that devs using spaces over tabs actually send secret messages in morse code to each other while indenting?
-
VS Code, WTF is wrong with your tab stops?
I set to 2 and you still use 4.
I say use spaces for tabs and you still put tabs in my document.
Tab settings by doc type? Not existing or working.
Damn you!
Just work5 -
I don't know what side of the argument I'm on for tabs vs spaces. I use tab but set it to be 4 spaces.2
-
Something with tabs vs spaces...
I forgot who won the argument tho, my colleagues don't even indent shit, lol3 -
I prefer three spaces-wide indentation in my code. This is unconventional to say the least, as many people prefer four or two spaces width.
This is why I use tabs — every developer that works in my company can do two clicks in their IDE to set the indentation they like, and I realize I must not force it my way with three spaces. Indeed, one of my colleagues prefer four spaces, and it took them less than a minute to set this up and not to worry about it ever again. To me, this sounds like a good alternative over arguing and finding a compromise that "everyone in the team are okay with".
This way, every developer who comes to my company at any time ever wouldn't have to get used to the indentation width standard that is different from what they're already comfortable with.
I want to live in the world where "convert indent" button in IDEs that replaces spaces with another spaces is dusty and abandoned. I met those who use four spaces, the most popular standard, who also thought everybody who disagrees with "The Standard" should change their ways. This makes me sad.2 -
I really don't understand why tabs vs spaces is such a big issue. I mean does anyone actually use spaces? I mean I don't think ANY developer would use spaces when you have tabs!4
-
I'm fine with people who use tabs rather than spaces, and fine with people who use the opposite. But I don't understand the thought process of the mutant child of these two polar opposites.3
-
I'm usually on the tabs camp, because anyone can have their editor (not notepad) render them any way they want. I prefer showing them as 2 spaces. It just feels cleaner and more subtle than 4 😀2
-
Spaces vs tabs has kind of become a non-argument for web tech and the former has won (at least in every place I've worked or observed in open source projects).
Although I don't really care (just stick to one for the same codebase) I don't get why spaces won. Given the argument is mostly about how we like to read code individually, and tab width can be configured per editor while space cannot, why did spaces win?8 -
Which movie or TV show do you think has caused the most damage and confusion about how programming actually works?
For me it's Silicon Valley with their "Tabs VS Spaces" scene where the dev who advocates spaces actually hits the spacebar key 4 times manually.
(In reality no does that - everyone just hits the tab key and most Editors convert the tab into 2 or 4 spaces bars on your setting. In fact a vast majority of github repos use spaces - despite some of their devs now thinking "I use tabs")1 -
If you change all tabs to four spaces, no one will see your actual trashy changes in the line by line diff.
-
Startup idea #318 - App that runs in the background while coding.. if a file has more than 150 lines prevent the user from typing more in it!
Oh and also check if the code has tabs/spaces and limit them accordingly. If user uses both prevent them from typing in it!4 -
Can we just decide that we stop using 2 spaces as indents. I really don't have a big preference with tabs versus spaces (especially with modern editors it really doesn't matter that much) but can we please for the love of God stop using 2 spaces! It's ridiculous, it's impossible to read and to understand what goes where, especially with HTML where it's important to grasp the structure of the page. Another annoying thing is when newbies use 2 spaces, since it's visually hard to make out an indent the file usually becomes completely messed up and even harder to read and work with. So can we as devs just come together and wipe 2 space indention from the face of the Earth and decide to newer use them again!7
-
Am I the only madman writing C++ with 8 spaces per tab? (Converted to spaces, to be sure. What are we, savages?!)
-
I haven't chimed in on this spaces vs tabs war at all on this platform, mostly because I personally don't care and adapt to my work's/project's conventions, but I just have to put this out there now.
I am honestly so confused about the entire thing since seeing a lot of recent rants on the topic. I was originally conditioned to believe that the majority of devs in the world were FOR spaces over tabs. Thus, whenever I start a project, I default to spaces.
Contrary to that, it seems most devs here (or at least those who enjoy instigating some banter) actually prefer tabs. Now, I recently binged Silicon Valley and can't help but wonder if people around here are simply jumping on that band wagon for the sake of the joke.
Side note: I also thought Vim was more widely used over Emacs but Richard Hendricks asserts otherwise there too.
I know the main arguments for both sides - spaces yield code that looks the same in all editors while tabs produce smaller code. Anybody who argues that spaces are less efficient because you need to physically press the space bar 2/4/8/etc times is just retarded. If soft tabs weren't a thing, I don't think anybody would be on the side of spaces and for that reason I believe that episode in Silicon Valley was just trying to be overdramatized and push peoples' buttons.
All of that being said, I wonder if it's just a generational/field of development thing. Would it be wrong to propose that more older devs in the field of embedded and OS development (using C and the like) are in the spaces party while younger devs perhaps more into application and web dev (Javascript, C#, and shit) are all about tabs? I'm actually fresh out of university, but like I said my preference is spaces, though I don't really care.
I'm actually interested to find out what kind of environments breed these opposing mindsets so what do you guys think?2 -
In the tabs vs spaces debate I'm on the tabs side of things, but I have no problems with spaces.
But if you indent your entire code with 1 space and then indent everything else with 3,5,7... etc. I will hunt and kill you.10 -
Am I the only one here who knows that in Stackoverflow you have to indent your code with 4 spaces, so you tab and you get pissed ?!
I think this is the first solid argument that spaces people have on this holy war5 -
Why is there so much hatred for people who use spaces instead of tabs?
I use tabs out of habit but I don't understand why people have to fucking hate the ones who use spaces so much13 -
People who use spaces make more than people who use tabs. I've been doing it wrong :(
https://goo.gl/FSzv5z5 -
When people try to tell me that spaces are better than tabs and that PascalCase is better than snake_case :-39
-
About the ongoing battle of tabs vs spaces, there is an option in most text editors to convert tabs to spaces ( if you press tab it insert a certain number of spaces ). Use that and you will be fine.
Also if you are contributing to other projects which could be using tabs, there are plugins that will detect if the indentation is spaces or tabs and when you press tab automatically inserts spaces or tabs accordingly1 -
When you realise that PEP8 uses spaces instead of tabs.
All these years of Python experience vanishes in a second.3 -
I love most trends around js, because often they're thoroughly thought through (not always) and make things easier.. but why the fucking fuck do all the js coding standards use 2 SPACES. Now this isn't intended to be a tabs-vs-spaces rampage rant. But this decision against tabs is like saying yes to a 50ct pencil instead of 100 dollars.7
-
I get that this was a small team when they developed this and there was no coding guidelines...
But, using spaces and tabs in the same file is just unacceptable!!14 -
Tabs over Spaces.
PHP over Python.
Internet Explorer over Firefox.
Death over Life.
@dfox over @trogus?4 -
Don't fall into frivolous arguments about tabs/spaces or brace style. It doesn't matter. But please make sure your code is at least formatted in a *consistent* manner - everyone else that reads your code will thank you.1
-
Junon's Zen of Tabs:
Tabs for lexical indentation, spaces for alignment.
Tabs always come first, and never after a non-tab character.
This is the only way it should be.
I do not have an open mind about this. Fight me IRL.13 -
Something that provides for my SO and I, pushes me to learn more, has realistic deadlines, and uses modern technologies with good standards.
Plus, the standards use tabs, not spaces 😜2 -
It's time to reconcile the religious war with a compromise: How about we use spaces for lines with indent <= 8 chars and tabs for deeper indents?
Or maybe tabs in all functions returning strings and spaces in all other functions?2 -
Which development standards and coding styles would you recommend in a development team? My colleague @jacoKotze and I are starting to get larger projects at work and 2 more developers soon (juniors with little to no experience), so we'll need some coherence soon.
Tabs v spaces is more of a joke, looking for opinions on other things please.12 -
I have grown used to hunting for ; issues. But when my haskell doesn't compile because my work partner used notepad and tabs instead of gedit and spaces... I suffer ;-;1
-
Just wondering. Is it possible to code a program in Whitespace mixing tabs and spaces in another Python program? Could this be called parallel programming by any chance?4
-
tabs spaces oses languages what about using I instead of counter or index as a variable for for loop2
-
In design they say it's all about the whitespace.
After reading all the discussions about tabs vs spaces, I think it also applies to programming... -
I was a PHP guy most of my career and likes 4 spaces in tabs. Now that I'm a JS guy now I like 2 spaces in tabs and dislikes 4 now lol. It makes coding more compact.
I don't see the reason to use 4 anymore. Do you also like 2 spaces in tabs?15 -
Developers who use spaces make more money than those who use tabs (for indentation) (stackoverflow survey). What do you use?8
-
I know there is this huge argument about whether to use tabs or 4 spaces and while I'm on neither side, just sitting there using tabs, in this new project I'm FORCED to use a 1 space indentation and no line breaks in Android layout XML files format.
I sat there for about 10 minutes trying to wrap my head around d this absurd specification they agreed upon with the client. The code looks SHIT and every time I copy some beautifully formatted reference code into this project it turns into a piece of unreadable garbage.
But since I'm just a part-timer and the senior developer working on this project for some years now is much more experienced than me, I'm hesitant to criticise it more than I already did.
Maybe I'll start arguing with industry standards and the improvement for new developer to read our code... -
During a training reading a Readme file:
Copy paste the following code in the editor.
NOTE: REPLACE ALL SPACES WITH TABS OR IT WILL BREAK