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 - "spaces"
-
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 -
Web developers - if you can write code to tell me that my phone number or credit card number shouldn't have spaces in it, just remove the #$!@$!* spaces for me FFS! You know very well people are going to put the spaces in there...15
-
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 -
Friend: "I use spaces to indent"
Every self respecting programmer: "I think we can no longer be friends"18 -
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 -
My programming teacher at university is programming like this. I'd better not learn anything from him30
-
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 -
University tells me that I have to indent 4 spaces... If I use anything else I get disqualified...6
-
People fighting about spaces vs tabs and I'm here fighting about coding in light theme or dark theme.11
-
Dam'n it!
Tomorrow I have to know 80 rivers, islands and natural spaces in asia.
I'm like 25% trough and it sucks...16 -
$str = str_replace(array("\{","\}")," ",$str);
//Replaces with spaces the braces in cases where braces in places cause stasis1 -
>Barely ever written python before
>Gets added to a python group project
>Codes the part I'm associated with
>Runs fine after about 19 tries
>Puts it together with other people's code
>Syntax error
>Searches for the error for 2 and a half hours
>tfw other people use 4 spaces instead of a tab like I do and pythong can't handle it :(3 -
Sitting in an introduction to C++ class (I've been programming for 5 years but every job wants to see a degree even if it means taking boring intro classes)
I see the professor write code like this....
First: Ever heard of break;
Second: I know it's not wrong to write it like this but ever heard of spaces!!!!!!!14 -
Let's start 2023 !
WHO THE FUCK imagined that having language like YAML is a good idea ??
Fuck you and your spaces. No editor produce any decent errors messages except "Your spaces are wrong".
When you edit an Azure debops pipeline, it's just 5 min ti do thing, 35 minuites to figure ou where to add/remove spaces.
NO, I WILL NOT read 25 pages of documentation to add a single step into pipeline.
Fuck YAML !29 -
I cringe everytime I see improperly formatted code -_-
Me: *sees no spaces between function blocks so I format it myself*
Classmate: *Happily types code with no spaces between lines or comments and overwrites what I did*
Me: Seriously?!8 -
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 -
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 -
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
-
You can only use letters and spaces for names...
WELL FUCK YOU!
FUCK YOUR STUPID DEVS!
FUCK THIS!
(still a cool service tho)8 -
Every time my Java instructor puts spaces inside the parentheses I die a little inside.
( ... ) instead of (...)
He's been programming since the 60s.23 -
I don't mean to fear monger or cause panic BUT
I know somebody who knows somebody that uses 4 spaces instead of tab..6 -
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 -
We might achieve world peace one day and still won't have agreed over indentation.
Indentation = TAB. Just 1 character (N spaces = N characters = more disk space, duh!). And then each dev can chose their own TAB width (in spaces) in their IDE of choice. Beautiful.11 -
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
-
My setup for 2 months now
On screen: revisiting spaces as the paper I'm currently made me feel like I know nothing17 -
What docker means:
Sorry pal, service names mustn't contain spaces
What docker says:
desc = name must be valid as a DNS component1 -
I was working for a client on a simple landing page. After struggling for days with the text-flow of one paragraph and trying one CSS property after another I finally realized it.
He sent me the texts in PDF format and I just copied them. What I did not know is that all the spaces in the text were non breaking spaces wich of course did not wrap like I expected.
Heureka. You bloody bitch. Never imagined having such a fucking issue in web development...2 -
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
-
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 -
So I've taken over a project, well, not really taken over, we've been hired to add more functionality to a Wordpress site.
I have never seen such a messy code in my life... variables have mixed languages, indentation is a mix of tabs, 2, 3 and 4 spaces, camelcase, snake case, short names, long names. ' and ", no spaces after commas (gotta save those bytes doode)
Almost like it has been copypasted from everywhere.
I think I said 10-15 hours for it. I think I will spend a lot more time tidying up this code.
Hey, look, 3 index files!!
index.php
index__backup.php
index__backup_2.php
I don't dare to look into the CSS or JS, but I know I have to3 -
STOP PUTTING TWO SPACES AFTER PUNCTUATION THIS ISN'T 1900 ANYMORE AND YOU WEREN'T EVEN BORN YET IN THE TIME OF TYPEWRITERS26
-
Indentation is for pussies amiright?
What is worse?
lack of indentation
lack of spaces in the compiled language
lack of blocks
Itsavesspacelikethissentencedoes!13 -
I'm fed up of this fight about tab and spaces.
Do you prefer single or double quotes for strings?14 -
Your data is formatted according to some ISO? Nice. You say it's easy to use and well documented? Great!
IT'S FUCKING FORMATTED WITH IRREGULAR SPACING??
What the fuck is this formatting?
Date <tab> Word <3 spaces> Some conjugated version <ONE space> Type <FIVE spaces> gender
WHAT
WHY
WHY ISNT IT XML
WHY ISNT IT JSON
WHY THE TABULATOR AND IRREGULAR SPACES
WHY DOES THE ORDER CHANGE PER LINE
WHY IS THIS IN A SINGLE 1MIL LINE FILE
help the university of oslo makes me dysphoric in their dictionaries i really dont want to parse this1 -
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 -
In a meeting with my new team I asked if they had a preference between tabs and spaces. None of them cared.
#notrealdevs4 -
Literally tabs vs. spaces. The joke is everywhere, and the people taking stances have clearly never used find+replace.8
-
All arguments about tabs and spaces, I just write my code in a non-formatted clusterfuck and then let the IDE format it.6
-
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
-
Weather Report: Thunderstorms and heavy downpour
Stuck at office wondering whether I really hate tab more than spaces that it wore out OR is it that I use it way too much.
PS: Currently fixing the tab button10 -
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 -
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 -
Welp, just found the first horrifying innacuracy in Silicon Valley... Richard prefers tabs over spaces. That cant possibly be a thing, right? Right!!?9
-
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 -
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
-
I just found out that I should be using 4 spaces and not a tab for indentation, MY WHOLE LIFE IS A LIE.14
-
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 -
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 -
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 -
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 -
Why the flying fuck does one indent Java code with two spaces? Coding standards exist for a reason, for fuck's sake!4
-
phpstorm's reformat code feature is a lifesaver when your codeveloper keeps switching his indents between tabs and 6 spaces6
-
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 -
So, a spaghetti legacy code, written by some dude that obviously hates his job, needs update and we argue about spaces vs tabs....4
-
to space, or to tab,
that is the question,
whether tis nobler to suffer
the slings and arrows
of outrageous space bar use
pressing four or eight times,
or to take arms against a sea of
manual spaces by using
the tab key, and by apposing
space bar's end them. -
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 -
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 -
When writing in a non-development context, I struggle to remember to leave spaces between my words.1
-
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! -
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
-
wow now I have native linter tools telling me tabs are illegal when they're not
can these political people vamonos18 -
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 -
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 -
Dev: linters can help us by keeping us focused on important problems.
Linter:
124:5 ✖ Expected indentation of 2 spaces indentation
[...]
150:5 ✖ Expected indentation of 2 spaces indentation
151:5 ✖ Expected indentation of 2 spaces indentation
152:5 ✖ Expected indentation of 2 spaces indentation
153:5 ✖ Expected indentation of 2 spaces indentation
154:5 ✖ Expected indentation of 2 spaces indentation
155:5 ✖ Expected indentation of 2 spaces indentation
156:5 ✖ Expected indentation of 2 spaces indentation
157:5 ✖ Expected indentation of 2 spaces indentation
158:5 ✖ Expected indentation of 2 spaces indentation
159:5 ✖ Expected indentation of 2 spaces indentation
160:5 ✖ Expected indentation of 2 spaces indentation
161:5 ✖ Expected indentation of 2 spaces indentation
162:5 ✖ Expected indentation of 2 spaces indentation
163:5 ✖ Expected indentation of 2 spaces indentation
164:5 ✖ Expected indentation of 2 spaces indentation
165:5 ✖ Expected indentation of 2 spaces indentation
166:5 ✖ Expected indentation of 2 spaces indentation
167:5 ✖ Expected indentation of 2 spaces indentation
168:5 ✖ Expected indentation of 2 spaces indentation
169:5 ✖ Expected indentation of 2 spaces indentation
170:5 ✖ Expected indentation of 2 spaces indentation
171:5 ✖ Expected indentation of 2 spaces indentation
172:5 ✖ Expected indentation of 2 spaces indentation
174:5 ✖ Expected indentation of 2 spaces indentation
175:3 ✖ Expected indentation of 0 spaces indentation
50 problems (50 errors, 0 warnings)11 -
so the PHP Standards Recommendations part two (PSR-2) says
"Code MUST use 4 spaces for indenting, not tabs."
and i feel devastated1 -
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 -
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 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
-
For all of our differences Tabs Vs Spaces, Emacs Vs Vim. There are two things that drive us. Computers and free promotional merchandise.1
-
Which misanthropic, terrible, perverse excuse for a dogfucker decided that damned non breaking spaces (SPACES!) return false on isWhitespace? It's in the name, space, it's white, it's a fucking white space, a whitespace if you will so who do I have to kill for wasting two damned hours of my life trying to parse away those bastards?3
-
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
-
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
-
I'm so glad I'm leaving my company soon. Big international group. At the moment they've started to change everything at our desks to make a giant open-space. Ignoring that literally 100% of the studies prove it's a bad idea for worker productivity and health. And then they dare lie to our faces that it's more productive, increases communication and makes employees happier.
Sure, with that they make savings and can add more desks... for contractors because fuck having real employees right ? It's much better to be able to fire them whenever they want !!
NO IT DOES NOT YOU FUCK FACES
FUCK OPEN SPACES, FUCK YOUR SAVINGS AND FUCK YOU -
The problem: callback hell. Code would be indented by three hundred fucking spaces just to do some async work. Your code would end with thirty lines of closing curly brackets
Solution: async and await.
The problem, reborn: NoSQL. Code is indented by three hundred fucking spaces just to run a query. Your query ends with thirty lines of closing curly brackets.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 -
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 -
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 -
I wonder...
Does anyone really indent with spaces by themselves? I would not if my IDE didn't do it for me.5 -
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 -
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 had a project idea for creating my own cloud service based on DO spaces. Today I started.
Had the webapp done in several hours and it's already deployed. Next step: the mobile app. I tried out Flutter and I have to say, for beta it's really good! So I'll work with Flutter for the mobile app.
Excited dev here! -
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
-
Could it be that devs using spaces over tabs actually send secret messages in morse code to each other while indenting?
-
Am I the only madman writing C++ with 8 spaces per tab? (Converted to spaces, to be sure. What are we, savages?!)
-
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
-
If you change all tabs to four spaces, no one will see your actual trashy changes in the line by line diff.
-
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 -
When people are coding and adding hard blank spaces instead of normal spaces. Usually because of copy paste from Internet. Oh, the joy.
-
Seriously?! Your username is your full name... With spaces?! Pushing against the grain! Pushing against the grain...1
-
So silly. I just wanted to neural network all day today, and it just happened.
https://huggingface.co/spaces/...9 -
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 -
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 -
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
-
"Much like music, great art is also found in the spaces between your graphic elements." - William Childs
-
When people try to tell me that spaces are better than tabs and that PascalCase is better than snake_case :-39
-
As a developer should you use spaces in folder and or file names? Please elaborate on both why and why nots.5
-
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 -
When you realise that PEP8 uses spaces instead of tabs.
All these years of Python experience vanishes in a second.3 -
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 -
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 -
!rant
PHP guys, your equivalent to the dot operator looks weird to me with no whitespace, anybody else spaces out their arrows like this?13 -
People who use spaces make more than people who use tabs. I've been doing it wrong :(
https://goo.gl/FSzv5z5 -
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 -
Tabs over Spaces.
PHP over Python.
Internet Explorer over Firefox.
Death over Life.
@dfox over @trogus?4 -
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 -
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
-
Finally after spending an hour and my lunch break on getting rid of 120+ char lines and white spaces.. 😇✌🏻️1
-
I check for trailing spaces.
In email.
(I want *everything* I ever type ever, to be in Sublime Text). -
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 -
tabs spaces oses languages what about using I instead of counter or index as a variable for for loop2
-
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
-
"Much like music, great art is also found in the spaces between your graphic elements." - William Childs4
-
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...