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"
-
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 -
!rant
Microsoft is finally doing something right with Windows.
Coming soon: tabs in Explorer, tabs in Notepad, tabs in Command Prompt, TABS EVERYWHERE24 -
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 -
Just had a massive clear out of useless tabs i had open. its been so long since I've seen blank space in my tab bar :')9
-
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 -
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
-
And there I was thinking about being an Intern here...
NO FIGHTING OVER TABS AND SPACES IN THE COMMENTS PLEASE16 -
Apparently you make more money if you use spaces than if you use tabs
https://stackoverflow.blog/2017/06/...9 -
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 -
Why developers always have +20 tabs opened in there browser, and they continue open more tabs .....?26
-
Best strategy for getting unstuck for me is downloading more RAM so that I can open more chrome tabs3
-
!rant
If you haven't checked it out yet, all devs need Devdocs.io + Station
Hands down the most useful resources I've ever come across.
This one site and tool saves me so many chrome tabs it's worth its weight in gold.
Combined with Station (getstation.com) I've cut my RAM usage down by 1/3 overall.
When you have PS CC2018 and Visual Studio 2017 running on a netbook it's helpful to squeeze every little bit.4 -
I finally got 100 tabs...
I should definitely close tabs... I can feel how my phone is getting slower and slower8 -
When you open 100 tabs in Firefox (mobile). Not as cool as the chrome gimmick though (which replaces it with a :D smiley)7
-
Me: gets project working 100% after tearing my hair out the last 3 days
Me: closes extra tabs cluttering IDE I was using to compare code to try to figure out what was wrong
Me: doesnt click "save" cause I was only closing my "scrap paper" tabs
Me: runs app in newly decluttered workspace
App: doesnt work
Me: realizes I CLOSED AND DIDNT SAVE THE WRONG FUCKING TABS6 -
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
-
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 -
Oh.
I just closed 44 tabs in browser.
Just 36 of them left.
It is so unnatural, really.
I feel very, very weird, I will be in shock for next week or two, until I will open another 40 or 50 tabs, and everything will return to normal ;)4 -
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 -
...and this photo from our latest conference, shows our developers having an interesting debate about tabs vs spaces.3
-
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 -
WTF chrome/google?! Fuck you & your new designs & features!!
Anyone else got forced new grouping for tabs after the update?! Hey, you can group tabs in.. I know, I just don't want to!! It's fugly and annoying and counterproductive..
It used to work to change flags to not have that 'feature' but I can no longer force the old layout for tabs even with flags.. :/ It's driving me nuts..25 -
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
-
Chrome (Chromium based browser) / Firefox (and variants) / IE (fuck it) tabs challenge
Me : 148 tabs
Beat me!
How to participate:
1. Post the screenshot of your tabs.
2. Count them.
3. Tell your browser.
Things to consider:
- Chrome (Chromium based browser) / Firefox (and variants) / IE (fuck it) should not lag (let's be honest)
- Max 8GB RAM (or whatever)
- Each page should have SOMETHING
- No mobile browsers, only desktop (linux welcome)
----------------------------------
cozyplanes: 148 tabs / Vivaldi (Chromium)16 -
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 -
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 -
So I did not notice that my google chrome had another window and I accidentally closed the 2 chrome windows in the wrong order. Now my 1st chrome window tabs are all gone. Stupid me 😅8
-
Love the feeling of closing all those open tabs when you finally fix that bug and finish that task.1
-
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 -
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 -
Found this today! For someone like me who has 30+ tabs open on an average, this is an absolute gem!7
-
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
-
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 -
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 -
accidentally quit chrome instead of closing one tab because of the shortcut is very close (cmd+Q and cmd+W)
found cmd+shift+T shortcut to restore tabs
feels saved
chrome restore all tabs
chrome stopped working
chrome quits unexpectedly3 -
Hey Guys
A few Questions I have to decide soon, for tools I never used:
1- How do you guys keep information about several accounts and stuff? Must have some protection to not be easily accessible (started using Google Notepad and Evernote until I find better... don't really like them)
2- Firefox: Is there a way to store groups of open tabs?
Like I have one windows with 6 or 7 tabs for movies (youtube and such), other for general stuff with 5 or 6 tabs, other with Arduino shit, and I'm going to pick Vue soon and another language to build native apps and that will be a lot more tabs, It would be nice to close them all and open them all at will or something.
3 - What Is your favorite browser? I'm using Firefox, but there are so many new good ones... Like Brave browser with Tor incorporated, or Puffin for Android (which uses a VPN with their own server by default)
4 - For windows users, do you have any tools to help with workflow installed? which ones you use and why?
5 - What I'm using: Google Notepad + Evernote to save stuff, Windows 10 and Firefox, (Linux Mint in VM) and I just keep my shortcuts in folders... I don't use the Windows taskbar for a long while since its so full of shit.
6 - How do you do your backups? Right now I'm just putting my code and important stuff in Dropbox.
I'm an old school programmer... Stuck in 1990's Ideas and there is so muchhhh shit these days that I would prefer your opinions then just googling.
Guess that's enough for this post. Thank you guys28 -
That moment when you have 2 Chrome windows open, each having 100+ tabs. Walk through each of the tabs to close off as many as possible and make some room but you cannot, as all of them are required or will be required soon enough.27
-
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 -
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 -
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
-
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 -
Another gem from the cunt I used to call my senior.
.nav-tabs > li > a, .nav-tabs > li > a, .nav-tabs > li > a { font-size: 7pt !important; line-height: 30px !important; font-weight: normal !important; }
.nav-tabs > li > a, .nav-tabs > li > a, .nav-tabs > li > a { font-size: 6pt !important; }
.nav-tabs > li > a, .nav-tabs > li > a, .nav-tabs > li > a { font-size: 7pt !important; }
These are all on the same level (not in media queries) and only a couple of other lines of css between them.
I swear this jackass just wanted to watch the world burn.5 -
wow now I have native linter tools telling me tabs are illegal when they're not
can these political people vamonos18 -
Well, not all people close chrome tabs after work, some close Firefox tabs too. You damn browserists.6
-
Have you ever had an error or something and start researching for hours and end up with about +infinite tabs opened and suddenly get this kind of raging rampage of closing tabs and yelling to them like a psycho? Like "get the $@&! Out of my sight you $@&!ing useless post that didn't solve my problem!"
Should I go to therapy?4 -
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 -
for everyone like me hating the new chrome tabs style "touchable" that firefox dropped a few versions ago:
chrome://flags/#top-chrome-md
set it to "Normal" and you're back to "Normal" e.g. good looking. you're welcome ;) -
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
-
Started opening tabs in Firefox Quantum like all you devs do during development. All of a sudden, firefox gave up and stopped loading any new websites.
Bookmarked all the tabs and closed ff. Clicked on again, the old process appearantly is stuck, so it showed a warning, closed the old one and opened it again.
Alright fine, opened all the tabs from bookmarks again. Firefox is again stuck. Realised some of the tabs might be acting up. Just to double check if it really is those tabs, decided to open them in chrome.
It opened fine and I continued to browse in Chrome without any hiccups.
:/6 -
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
-
From now on, I'll be using soft tabs. I didn't know editors can help me with this before. I thought all I see are hard tabs. Am I on the right path?4
-
I can’t work with 100s of tabs open. It’s not productive at all.
That relief you get after completing your task and closing 100s of tabs? Yeah.. I am fine with 10 tabs.4 -
#include <stdio.h>
int main()
{
printf("Come at me. I give opening curly brackets their own line, use Dvorak and use tabs!")
}5 -
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 -
so the PHP Standards Recommendations part two (PSR-2) says
"Code MUST use 4 spaces for indenting, not tabs."
and i feel devastated1 -
Time to annoy @kiki :)
the first 4 tabs are pinned. All the remaining ones are not. Chrome after its latest update12 -
Tabs, or No Tabs? I did the same as this commentor 2 years ago. I can code so quick now because of this simple switch. Here's why:
(source, Laracasts.com)
Ben Smith
"I think the most beneficial tip was to do away with tabs. Although it took a while to get used to and on many occasions in the first few days I almost switched them back on, it has done wonders for my workflow.
I find it keeps my brain more engaged with the task at hand due to keeping the editor (and my mind) clutter free. Before when I had to refer to a class, I would have opened it in a new tab and then I might have left it open to make it easier to get to again. This would quickly result in a bar full of tabs and navigation around the editor would become slow and my brain would get bogged down keeping track of what was open and which tab it was in. With the removal of the tab bar I'm now able to keep only the key information in my mind and with the ability to quickly switch between recently opened files, I find I haven't lost any of the speed which I initially thought I might.
In fact this is something I have noticed in all areas of writing code, the more proficient I have become with an editor the better the code I have been writing. Any time spent actually writing your code is time in which your brain is disconnected from the problem you are trying to solve. The quicker you are able to implement your ideas in code, the smaller the disconnect becomes. For example, I have recently been learning how to do unit testing and to do so I have been rewriting an old project with tests included. The ability to so quickly refactor has meant that whereas before I might have taken 30 seconds shuffling code around, now I can spend maybe 5 seconds allowing my mind to focus much better on how best to refactor, not on the actual process of doing so."
jeff_way Mod
"Yeah - it takes a little while to get used to the idea of having no tabs. But, I wouldn't go back at this point. It's all about forcing yourself into a faster workflow. If you keep the tabs and the sidebar open, you won't use the keyboard."2 -
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 -
I’m really bad at closing my tabs. I’ll often have 40+ tabs open when tackling some sort of problem or when doing research. Sometimes I’ll crack open another browser instance to research something unrelated. I use a tab session saver to save all of my instances before a reset. But the funny part is, I almost never go back into my stored sessions. I’ll just open up a fresh browser after restarting and the cycle begins anew.
I need help.10 -
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
-
Ok I see so many complaints about chrome hogging memory for tabs... How many fucking tabs do you have open?
I'm on 16GB of RAM and normally have around 10 tabs open and don't notice a difference...5 -
Meeen fvck this shit. After my student loan I’m out in this shit ass company men.
So I’m fixing a frontend bug. I’m so into it that I opened more than 10 tabs. So i called my senior on what I found then he want to test something on my workstation so i said im cool with it and then i closes all the TABS man. Comeon!!
Ps: the tabs are sequentially opened to track the bug.12 -
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 -
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 -
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
-
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. -
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
-
Remembered that firefox container tabs also allow you to force domains to their own container, so now have again youtube, google and other creepers automatically in their own containered tabs :)1
-
Could it be that devs using spaces over tabs actually send secret messages in morse code to each other while indenting?
-
FU OneTab. This is second time you lost my saved tabs. Off you go.
TL;DR OneTab extension has major bug.
Anyone who read my suggestions/comments to use OneTab to save your opening tabs on your Chrome and Firefox, I apologize from here. And suggest you to be careful with it. I know that I have recommended it plenty of times here.
I have no idea what's causing the data lost. I used OneTab since years ago on Chrome and it worked fine. I switched to Firefox when Quantum came out. OneTab came to FF addon repo this year. I was very happy and installed and used it straight away. But it wasn't as good as before.
I don't like to open lots of tabs. Max I have will be a dozen. I like to work different task, different project on different windows. I usually have 2 windows. One window for my personal and social use with tabs like devRant, discord, etc. Second window for one of my projects and I usually work on one project at a time. If I have to juggle among multiple projects unfortunately, I open third or fourth windows respectively.
Hence, saving all opening tabs of a window to be able to open it easily next time is a very useful feature for me. I don't even need those saved to be permanent. I save URLs I frequently visit as bookmarks and URLs I found useful to pocket.
OneTab served that purpose. But losing saved tabs is definitely major problem for me. So I have uninstalled it and now giving a try to Stash. Very new add-on, so I'm still not sure of it yet. On bright side, it is made for Firefox and open-source. OneTab is not open-source.
https://github.com/globau/...
So far Stash is working fine. But I will wait and see for a week or so.2 -
Opening a million tabs on Chrome, inwardly saying, 'I'll get back to you later' after briefly reading the first few paragraphs
-
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 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
-
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 -
When you're so used to using tabs, and then you've to write emails to realize that tabs don't work as you want them to be.
-
So windows is finnaly getting tabs for most applications... So of course they aren't called tabs and they are acting like they reinvented the wheel!4
-
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 -
My Tabmanagment, or the lack of it.
When I'm in problem solving mode I have easily 40tabs+ open, because I might need some which are already open. I distinguish them by the favicon of the Google tab. Each Google tab and the following tabs are separate problems/tasks so I kinda have a timeline "the one in the middle was the problem I had 30mins ago".
I also have no bookmarks, I start always with min. 5 Tabs. I guess I don't know how to browser :|2 -
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
-
Does vim have a tree view and multiple tabs? Maybe some sort of plugin? How bout Neovim? If there is anyway to get that on vim I am sold, but until then I’m sticking with my text editor.7
-
The pain of having more than a few tabs open and not knowing exactly what number to press with CTRL(or CMD) to switch to the tab you want 😅1
-
I swear i just heard my computer breathing out deeply after i closed all of the unneeded browser tabs.1
-
Tabs at the top on mobile with no swiping between them. OK, @dfox, I'll just use my 6" thumb to reach them...8
-
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 -
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 -
lost 100+ tabs by accidently closing all of them in chrome on android. can't restore. the history shows only the last few tabs as I didn't open many of those tabs for weeks. feels so sad. :-(
how can i restore all those tabs? HELP20 -
When you realise that PEP8 uses spaces instead of tabs.
All these years of Python experience vanishes in a second.3 -
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 that finds the Xcode tabs UI design moronic? I always end up the same file open in multiple tabs eventually.1
-
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 -
Not a rant..
I recently made a chrome extension to manage tabs...
https://chrome.google.com/webstore/...
Made it for myself first but I know all of us have this problem of having tabs to the extent that even the favicons become invisible.
Feedback and suggestions are welcome guys!! -
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
-
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 -
Working in a company where you can't even have your recent tabs when opening the browser and have the stupid corporate start page. At least there's Session Buddy where you can open a window with yesterday's tabs, but why on Earth would employees not have the possibility to keep the recent tab setting enabled? Especially when it was like this pre-merger.3
-
Facebook is testing out showing conversations in tabs to make sure you don't miss any conversation.
Looks like another good UX pattern. -
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 -
...However, tough love is given where tough love is due. It would be great if one, using the mouse, could close several tabs sequentially without moving the pointer. Currently it's tedious due to the differently sized tabs.
-
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 -
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 -
now instead of if I type in my address bar and select a bookmark to go to my Vivaldi web browser switches me to the fact I already have that tab open somewhere in one of my hidden workspaces
I want it to notice if I click on a link I already have open and switch to it lol
then I can hibernate my billions of tabs over and over again and not forget they exist somewhere in a workspace I forgot about lol
why have web browsers when you can have an immensely messy desk of notes you never got to
web browsers are inching ever closer to the Innovation that was WebOS. it's all about them cards, ayyo. let's invent the physics of the real world in boring digital spaces already idk. at least it's intuitive cuz millions of years of evolution conformed us to the physical world1 -
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... -
Anyone on vscode insiders, did they move the integrated terminal tabs to the left instead of the top where it's always been? Can you change it back?
Edit:
Ok settings > terminal > integrated show tabs can turn it off
yuck