Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
Get a devDuck
Rubber duck debugging has never been so cute! Get your favorite coding language devDuckBuy Now
Search - "indents"
Freshman: hey can you check what's wrong with my code?
Me: ya of course
*Sees zero comments, no indents, all variables named a,b,c,etc.*
Me: oh would you look at the time!6
"Tabs create smaller file sizes. I run a compression company, trust me, I've devoted my life to minimalizing file sizes."
- Richard Hendricks10
The guy where I can only shake my head when I see his code, and he is really proud of if implementations, while he
- doesn't care about warnings
- breaks builds and doesn't care
- doesn't care about code styles and indents in a very column based way
- adds tons of comments to his code, mostly hard to understand, and sometimes that much you can hardly find the code
- implements a tokenizer where you have to inherit from its interface (Why would I wanna implement whole functions for a tokenizer and not just use it in place where needed? How do I use two of those in one class?)
- implement a "generic" state machine base class with fixed lengths array of 3 events and 3 strings (Why would I need events and strings hardcoded in a "generic" state machine? Why a maximum of 3?)
- once delivered a software without the needed runtime components, so the whole system (embedded device) wasn't working properly and only by chance missed the point of disabling update mechanisms
- make your ears bleed about his big inventions whenever he sees you, no matter how often he already told you about that blazing new feature5
Commit Message Part2:
6528fff Code was clean until manager requested to fuck it up
241b35f Who knows WTF?!
4381a32 Argh! About to give up :(
c3bf1a9 more debug... who overwrote!
2d68d6d Fixed a bug cause Maciej said to
b112c1a This branch is so dirty, even your mom can't clean it.
bb456d4 Shit code!
4878b46 Copy-paste to fix previous copy-paste
e2c7e87 A fix I believe, not like I tested or anything
e4b8f4c formatted all
3691208 I'm just a grunt. Don't blame me for this awful PoS.
0888b69 just checking if git is working properly...
62741aa I'm too old for this shit!
0735196 COMMIT ALL THE FILES!
09caccf I CAN HAZ PYTHON, I CAN HAZ INDENTS
ab70bde Fixed errors
934436d Now added delete for real
5f84e30 My bad
99baff8 CHRIS, WE WENT OVER THIS. C++ IO SUCKS.
953473d final commit.
f0c3b57 Just committing so I can go home
4e5ce4e yolo push
deb4e3b I CAN HAZ PYTHON, I CAN HAZ INDENTS
710c06a Commit committed....
3c45e67 it is hump day _^_
4487788 Committing in accordance with the prophecy.
bf86e7e This solves it.
4804f68 FONDLED THE CODE
051d42e REALLY FUCKING FIXED5
Am i the only one who is so sensitive about indentation? It really pisses me off when i see code with bad levels of indentation because it completely overtakes my years of programming experience and i understand nothing. Also indentation level should be 4, not 2. Who the hell uses 2 level indentation, you don't deserve a keyboard.9
My coworker used to write code but never bothered with indents and nests. He got fired for not following the rules of the company. I know this sounds boring but w/e3
I have a co-worker who negative-indents his function bodies. Minus four spaces. Every function. Not an IDE thing either, he does it intentionally.
I've never seen anything like it.9
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.
I see a lot of arguments out there over 2 space, 4 space and tab indents but I think the really problem are the people that double tab. Yes they exist and yes they are the real scum of the earth
When I was in school, I could walk as long as I wanted. Only my unwillingness to do so could stop me.
Now I don't even care about my unwillingness, but I can't walk as long as I want anymore – my legs hurt and just stops moving. The spasm won't go away easily and I have to wait for it to stop.
When I was in school, I could learn as much as I wanted. Only my unwillingness to do so could stop me.
Now I don't even care about my unwillingness, but I can't learn as much as I want anymore – my brain just stops absorbing information. I can see letters but I can't read words.
My body slowly decay. By the age of 21, I have two abdominal surgeries, joint and bone issues, clinically diagnosed depression, the food I eat won't digest without pills and much more to handle. If the pain is what stops me now I could only imagine the next step when I don't even care about pain just like I don't care now about my unwillingness.
On the other hand the realization of my own mortality was extremely liberating. Yes, my body slowly decomposes and needs to be fixed here and there but at least I know that my personality heavily depends on some fluids inside my body. I know that I have limited amount of fucks to be given.
I slowly lose my health over time but I gain something more and I gain faster than I lose. I don't care about things like indents or JS trailing semicolons anymore – I just build and ship viable products over weekends. I almost never argue and enforce my vision inside the team I manage as a teamlead.
Yes, I'm depressed and not productive but depression would go away and my confidence is here to stay. I'm here to earn just enough money to buy a house and launch my own small projects that wouldn't require that much time to provide me with basic needs.
Everyone I see is fighting a hard battle. I'm here to end mine.2
I was telling someone who never indents any of his code to indent it properly.. He was like "Why should I do that? Will it make my code run faster?"4
No indents, except a couple of random senseless ones here and there, nightmare! And I had to debug it😖1
phpstorm's reformat code feature is a lifesaver when your codeveloper keeps switching his indents between tabs and 6 spaces6
So, I decided last week to give VIM and Emacs a try, for no other reason than I can.
I found emacs a bit clunky, but VIM is actually starting to grow on me.
Can anyone recommend some good sites where I can learn about configuring vim, nothing major, but setting different indents for different languages would be handy.3
Indentation. Trying to teach students that every expression needs its own indentation is such a pain.1
I think someone already posted something similar but... a problem I had recently when developing a program in php was that my partner was tapping the spacebar twice in indents while I just used tab... You can imagine the result after the merge (plus no github, all by hand)... Had to review all the code top to bottom and fix the code because the teacher said that "bad indent on the code equals bad evaluation on this project, so learn how to indent!" why do people use spaces instead of tabs? is there any language that requires spaces for indents? if not, please stop!! Its painful just to watch and move across the code...8
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!8
Me at the start of the day:
"Hmmm fresh new CSS sheet, this time everything will be properly organized. "
Two hours later:
"Shit, I got this feeling that I have already styled this class... Oh well, I'll organize this later.
At the end of the day:
"same element selected 3 times in same style sheet? My CSS is versatile. Spaces and indents? What the fuck am I selecting here? Everything seems to be working as intended, I should organize this... Nvm, I'll make a clean sheet next time.3
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
That time when you ask colleague on different project to paste their code, pastes 2000 lines of code with no indents...whyyyyy?!?