|
|
# ? Jan 7, 2014 12:49 |
|
|
# ? May 27, 2024 09:10 |
|
why do i get the feeling python only has significant whitespace because some nerdlord wanted his code to look neater
|
# ? Jan 7, 2014 15:21 |
|
Forums Terrorist posted:why do i get the feeling python only has significant whitespace because some nerdlord wanted his code to look neater nah it's because a bunch of people had to spend years dealing with other people's bad perl code and realized everyone's lives would be a lot better if code grunts programmed in a language that forced them to write code other people could read.
|
# ? Jan 7, 2014 17:52 |
|
then they made it awful and escalated the holy wars involving \t and
|
# ? Jan 7, 2014 17:57 |
|
USSMICHELLEBACHMAN posted:nah it's because a bunch of people had to spend years dealing with other people's bad perl code and realized everyone's lives would be a lot better if code grunts programmed in a language that forced them to write code other people could read. not to mention that a strictly enforced or a built-in style means sperglords cant sperg out about spergy poo poo go is really good about this. just go fmt and your code is rewritten to matc the official code standards, and the other apes that mess with it cnt argue about K&R vs KNF braces and make you want to hate yourself
|
# ? Jan 7, 2014 18:49 |
|
hail allman
|
# ? Jan 7, 2014 18:51 |
|
|
# ? Jan 7, 2014 18:52 |
|
all man style, hard tabs only
|
# ? Jan 7, 2014 20:06 |
|
Shaggar posted:all man style, hard tabs only plz dont post my favorite dubstep genre in this thread
|
# ? Jan 7, 2014 21:27 |
|
i like tabs because if you like two space tabs or four space tabs or six space tabs or one space tabs it's only a text editor config away
|
# ? Jan 8, 2014 00:33 |
|
spaces are ok i guess mixed tabs with spaces is evil
|
# ? Jan 8, 2014 00:34 |
|
i like tabs but all sperg guides use spaces so unless it's my own project, i do spaces because i don't like confrontations with __
|
# ? Jan 8, 2014 00:37 |
|
Do people seriously use spaces instead of actual tabs? Because if so. Also, if you don't use an editor that hides this from you.
|
# ? Jan 8, 2014 00:42 |
|
Doc Block posted:Do people seriously use spaces instead of actual tabs? Because if so. this is the right thread for this post
|
# ? Jan 8, 2014 00:48 |
|
i spent 90 minutes today chasing a weird bug only to realize that i left virtual off of a member declaration and EF just silently ignored its existence it's me i'm the terrible programmer
|
# ? Jan 8, 2014 01:04 |
|
don't use EF or ORMs tia. god bless.
|
# ? Jan 8, 2014 01:06 |
|
Took me 30 mins today to diagnose why my little microcontroller wouldn't go to sleep and stay there. Turns out it was because I forgot to turn off the timers, and they kept waking it back up. But seriously, use tabs. Spaces = lame.
|
# ? Jan 8, 2014 01:07 |
|
git clone trooper posted:don't use EF or ORMs tia. thanks i'll be sure to push that out to the entire company i'm consulting with and their clients!
|
# ? Jan 8, 2014 01:10 |
use sublime text with the convert tabs to spaces setting. this isn't loving difficult people
|
|
# ? Jan 8, 2014 01:15 |
|
if u use spaces ur a moron but eclipse and vs will both fix other peoples lovely code formatting for you.
|
# ? Jan 8, 2014 01:16 |
|
shaggar was right. tabs, not spaces, and an editor that will convert spaces into tabs is the best way to program.
|
# ? Jan 8, 2014 01:21 |
|
Morkai posted:thanks i'll be sure to push that out to the entire company i'm consulting with and their clients! nice! improving the code for dozens or hundreds (or more!) people.
|
# ? Jan 8, 2014 01:23 |
|
git clone trooper posted:nice! improving the code for dozens or hundreds (or more!) people. those who do not stand up have no hope of changing the world
|
# ? Jan 8, 2014 01:25 |
|
If you can't do small changes like not using objectively bad technology, how will you ever impact anything meaningful?
|
# ? Jan 8, 2014 01:26 |
|
git clone trooper posted:If you can't do small changes like not using objectively bad technology, how will you ever impact anything meaningful? you can't you won't
|
# ? Jan 8, 2014 01:49 |
|
gucci void main posted:use go fmt. this isn't loving difficult people
|
# ? Jan 8, 2014 02:35 |
|
for real tho lmbo if your editor does anythign but write 0x09 to your file if you press the 'tab' button on your keyboard
|
# ? Jan 8, 2014 02:37 |
|
scrub tier editors
|
# ? Jan 8, 2014 02:37 |
|
lol if your editor doesn't make that configurable using 5 different options that overlap to cause "interesting" behavior
|
# ? Jan 8, 2014 03:04 |
|
JewKiller 3000 posted:lol if your editor doesn't make that configurable using 5 different options that overlap to cause "interesting" behavior i once worked with a guy that would constantly commit gigantic loving diffs that had almost nothing to do with what he was working on turns out he c/ped some poo poo into his .vimrc that woudl poorly regex the entire file on every save to try to change soft tabs to hard tabs. but he also ahd some completely contradictory settings somewhere else in his vimrc that set vim to insert like 4 spaces on every tab. so his diffs ended up as some horrible mix of tabs and spaces and he would infect every file just by opening and closing them, he didnt even have a clue well thats when i decided vim was worse than butt cancer hope u liked my story
|
# ? Jan 8, 2014 03:29 |
|
lol my editor is ~*~completely scriptable~*~ so these gigantic contradictory edge case fuckups are just a fact of life y'all gotta adjust to
|
# ? Jan 8, 2014 03:30 |
|
Johnny Cache Hit posted:i once worked with a guy that would constantly commit gigantic loving diffs that had almost nothing to do with what he was working on i have worked with the same guy vim is so bad
|
# ? Jan 8, 2014 04:11 |
|
Johnny Cache Hit posted:lol my editor is ~*~completely scriptable~*~ so these gigantic contradictory edge case fuckups are just a fact of life y'all gotta adjust to vim is scriptable buy it's so hard to do that people gently caress it up
|
# ? Jan 8, 2014 04:11 |
|
I wanted to write a commit hook that would add in whitespace dicks at the end of files so that people who don't pay attention or diff without whitespace end up not seeing all the poo poo being added. Never found the time or motivation to actually do it though.
|
# ? Jan 8, 2014 04:17 |
|
Johnny Cache Hit posted:i once worked with a guy that would constantly commit gigantic loving diffs that had almost nothing to do with what he was working on the real horror story here is the guy who doesn't at least glance at his diffs before he commits shameful
|
# ? Jan 8, 2014 04:22 |
|
MononcQc posted:whitespace dicks mods, if you would, please
|
# ? Jan 8, 2014 05:17 |
go fmt is cool but unfortunately go has the ugliest syntax of just about any language ever designed so no level of formatting can truly help it
|
|
# ? Jan 8, 2014 05:19 |
|
how come plang isn't a skill on linked in???
|
# ? Jan 8, 2014 09:15 |
expanding your tabs into spaces owns because it means everyone reads the code precisely the same as you wrote it using either doesn't rly matter at all tbh, just don't mix them. our company's entire code standard policy is literally the phrase "when in Rome"
|
|
# ? Jan 8, 2014 10:10 |
|
|
# ? May 27, 2024 09:10 |
|
OBAMA BIN LIFTIN posted:our company's entire code standard policy is literally the phrase "when in Rome" ... live as the romans did, in squalid mud huts surrounded by open air sewers for real tho maybe you work with adult programmers because if the programmers here were told that each codebase would become a mess within seconds but one of our past employees wouldnt even notice MononcQc's whitespace dongs so yeah
|
# ? Jan 8, 2014 15:35 |