Register a SA Forums Account here!
JOINING THE SA FORUMS WILL REMOVE THIS BIG AD, THE ANNOYING UNDERLINED ADS, AND STUPID INTERSTITIAL ADS!!!

You can: log in, read the tech support FAQ, or request your lost password. This dumb message (and those ads) will appear on every screen until you register! Get rid of this crap by registering your own SA Forums Account and joining roughly 150,000 Goons, for the one-time price of $9.95! We charge money because it costs us money per month for bills, and since we don't believe in showing ads to our users, we try to make the money back through forum registrations.
tabs or spaces
tabs
spaces
gently caress you
View Results
 
  • Locked thread
GameCube
Nov 21, 2006


this guy knows what's up.

Adbot
ADBOT LOVES YOU

taco_fox
Dec 14, 2005

Shaggar posted:

spaces are for the worst people

agreed. I had to work on someone's code today and the jerk used spaces. what a jerk

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮
that explains this thread!

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮
but not your terrible posting

CamH
Apr 11, 2008

echinopsis posted:



whole lot of neither :smugmrgw:

what kind of idiot child thing is this i hate it so much

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮
unreal engine 4 :smugmrgw:

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord
i had to do a drupal thing once and drupal uses 2 spaces
https://www.drupal.org/coding-standards

ergo spaces are bad, tabs that render as 4 spaces supremacy

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord

Series DD Funding posted:

every language should have gofmt just to drive away the worst of the autists
p. sure eclipse and visual studio both have built in things like this too

there's literally no excuse

cowboy beepboop
Feb 24, 2001

spaces own. gotta align my long functions on the next line consistently.

Smythe
Oct 12, 2003
u ever c sum1 who format a email to look on their monitor w/ spaces, so when u get it, and its all hosed u, u can resize ur browser all around till it looks like the author intended?

not programming related... just on the 'spaces' theme...

Workaday Wizard
Oct 23, 2009

by Pragmatica
tabs to indent
spaces to align
braces on their own line

god bless

echinopsis
Apr 13, 2004

by Fluffdaddy

CamH posted:

what kind of idiot child thing is this i hate it so much

why do you hate it so much

is it because it allows people like me to creep in on your holy shrine of jargon code words and brackets

is it because I push a button to make a variable and I never have to initialise it

Otaku Alpha Male
Nov 11, 2012

bitches get ~tsundere~ when I pull out my katana

The Management posted:

set your tab key to insert two spaces like god indented.

ftfy

The Management
Jan 2, 2010

sup, bitch?

thank you

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

jony ive aces posted:

p. sure eclipse and visual studio both have built in things like this too

there's literally no excuse

except when eclipse keeps deleting my imports because i have the temerity to save before writing the one line that uses one of them.

pram
Jun 10, 2001
Lmao mutha fuckin taco fox

jony ive aces
Jun 14, 2012

designer of the lomarf car


Buglord
lol if u manually write out your own imports like some kind of data entry janitor instead of just charging ahead without them and then clicking the thing to import it when the ide objects

The Management
Jan 2, 2010

sup, bitch?
code:
for ( ; ; )
  screw_you(op);

Sweevo
Nov 8, 2007

i sometimes throw cables away

i mean straight into the bin without spending 10+ years in the box of might-come-in-handy-someday first

im a fucking monster

allman style with tabs set to 4 is the correct way

Captain Foo
May 11, 2004

we vibin'
we slidin'
we breathin'
we dyin'

if you code your an butthole regardless

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

Shinku ABOOKEN posted:

tabs to indent
spaces to align
braces on their own line

god bless

yup
sure
gently caress YOU

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

jony ive aces posted:

p. sure eclipse and visual studio both have built in things like this too

there's literally no excuse

problem with this is that the definition of java / c# is so loose compared to go that there are too many ways to write the same thing. You need to be really super anal with your formatter and even then it might not be able to take 2 files that are functionally identical and make them look the same

cowboy beepboop
Feb 24, 2001


2 spaces? disgusting

Peanut and the Gang
Aug 24, 2009

by exmarx
Everyone using different standards and pressing Ctrl+Shift+F to autoformat before each commit so every line has changes and you can't tell where code actually changed.

Egan Yardley
Jun 11, 2010

there are 4 parts to The Cross. God intended 4 spaces per tab.

Peanut and the Gang
Aug 24, 2009

by exmarx
There's a wave of modern programmers that find 2-spaces to be divine. Unfortunately, the oldies (but goodies) are stuck in their wasteful ways of 4-spaces and tabs. We will just have to wait for them all to die out.

taco_fox
Dec 14, 2005

you can make a tab whatever size you want, just change some settings

don't use literal individual spaces like a moron

AtomD
May 3, 2009

Fun Shoe

Smythe posted:

u ever c sum1 who format a email to look on their monitor w/ spaces, so when u get it, and its all hosed u, u can resize ur browser all around till it looks like the author intended?

not programming related... just on the 'spaces' theme...

we had a website redesign in 2012 and the old ceo insisted that you should never have to scroll on the website. Also he had a 1366x768 monitor so the site was fixed width and comically tiny. like ud almost expect it to ask you wether you wanna watch the shockwave intro or not

Smythe
Oct 12, 2003

AtomD posted:

we had a website redesign in 2012 and the old ceo insisted that you should never have to scroll on the website. Also he had a 1366x768 monitor so the site was fixed width and comically tiny. like ud almost expect it to ask you wether you wanna watch the shockwave intro or not

i want to watch the flash intro, personally. music CRANKED

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

AtomD posted:

we had a website redesign in 2012 and the old ceo insisted that you should never have to scroll on the website. Also he had a 1366x768 monitor so the site was fixed width and comically tiny. like ud almost expect it to ask you wether you wanna watch the shockwave intro or not

lol if u didnt do a responsive design just smdh

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 10 years!)

Peanut and the Gang posted:

There's a wave of modern programmers that find 2-spaces to be divine. Unfortunately, the oldies (but goodies) are stuck in their wasteful ways of 4-spaces and tabs. We will just have to wait for them all to die out.

8 space tabs

PleasingFungus
Oct 10, 2012
idiot asshole bitch who should fuck off
Every project I've worked on has used a four-space standard.

They're right.

Silver Alicorn
Mar 30, 2008

𝓪 𝓻𝓮𝓭 𝓹𝓪𝓷𝓭𝓪 𝓲𝓼 𝓪 𝓬𝓾𝓻𝓲𝓸𝓾𝓼 𝓼𝓸𝓻𝓽 𝓸𝓯 𝓬𝓻𝓮𝓪𝓽𝓾𝓻𝓮

Shinku ABOOKEN posted:

braces on their own line

:barf:

Egan Yardley
Jun 11, 2010

carry on then posted:

8 space tabs

idk a proper use for 8 space tabs unless its a solo project and your monitor is a mile long

Sagebrush
Feb 26, 2012

bobbilljim posted:

lol if u didnt do a responsive design just smdh

if (cookie_detected_ceo) {
  script.replace(shit_design);
}

bobbilljim
May 29, 2013

this christmas feels like the very first christmas to me
:shittydog::shittydog::shittydog:

Sagebrush posted:

if (cookie_detected_ceo) {
  script.replace(shit_design);
}

:gowron::captainpop::gowron:

pram
Jun 10, 2001

Sagebrush posted:

if (cookie_detected_ceo) {
  script.replace(shit_design);
}

i bet script is a singleton u fucklord

Symbolic Butt
Mar 22, 2009

(_!_)
Buglord
I've been partial to using 8 spaces lately

Sagebrush
Feb 26, 2012

in my preceding post please notice superior two-space indenting and masterful placement of curly braces

Adbot
ADBOT LOVES YOU

Series DD Funding
Nov 25, 2014

by exmarx
once you use js you've already hit the bottom of the barrel so who cares about style or anything at all

  • Locked thread