System Message

Possible intermittent downtime over the next ten hours. Surprise!
New around here? Register your SA Forums Account here!

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.
 
  • Post
  • Reply
jony neuemonic
Nov 13, 2009

Kilometres Davis posted:

I like the space either side. The asterix can hang.

I also like my brackets:
code:
 
foo()
{
        if(bar) 
        {
                /* like this */
        } 
} 

acceptable, and correct. i don't think this is the thread for you??

Adbot
ADBOT LOVES YOU

Xarn
Jun 26, 2015

Osmosisch posted:

Basically only do a PhD if you are offered a project/subject that you won't get sick of by a supervisor that you get along with, and if you can afford to take a pay cut and probably also be self-supporting for a while after the project's pay ends and your thesis isn't finished. For your sanity you should look at it more it as a personal growth project rather than a career advancement thing.

That said, I have zero regrets because all those things were true for me and it's extremely satisfying to see citation numbers go up and people follow up on my research.

But I've got nothing to do with it anymore because gently caress working in academia. Publish or perish, my rear end.

Extremely this. If you are genuinely interested in some research field, figuring out something sizeable and then being cited and seeing how people build on your research feels loving great.




-------------------------

Kilometres Davis posted:

I like the space either side. The asterix can hang.

I also like my brackets:
code:
 
foo()
{
        if(bar) 
        {
                /* like this */
        } 
} 


Peeny Cheez posted:

Your brackets are wrong and I hope you get gonorrhea.

Powerful Two-Hander
Mar 9, 2004

Mods please change my name to "Tooter Skeleton" TIA.


Kilometres Davis posted:


I also like my brackets:
code:
 
foo()
{
        if(bar) 
        {
                /* like this */
        } 
} 

extremely correct. what other possible way of doing it is there?

refleks
Nov 21, 2006



cinci zoo sniper posted:

hey data science pipenv club

represent. were you also in denmark or just near here?

cinci zoo sniper
Mar 14, 2013




refleks posted:

represent. were you also in denmark or just near here?

other baltic coast, latvia

cinci zoo sniper
Mar 14, 2013




i did smoke danish cigarettes way back if that counts

FlapYoJacks
Feb 12, 2009

by vyelkin

Kilometres Davis posted:

I like the space either side. The asterix can hang.

I also like my brackets:
code:
 
foo()
{
        if(bar) 
        {
                /* like this */
        } 
} 

Powerful Two-Hander posted:

extremely correct. what other possible way of doing it is there?

code:
 
foo(){
    if(bar){
        /* The true correct way*/
    } 
} 
:colbert:

jony neuemonic
Nov 13, 2009

ratbert90 posted:

code:
 
foo(){
    if(bar){
        /* The true correct way*/
    } 
} 
:colbert:

:pwn:

FormatAmerica
Jun 3, 2005
Grimey Drawer
code:
foo(
  lotsOfArgumentsWithReallyLongArgumentNames,
  iDoThisALotBecauseHeyIntellisense,
  danglingCommaIsWeirdButItMakesCommitsCleaner,
) {
  if(bar) {
    /* Sorry ladies */
  }
}

e: y'all gonna burn out ya space bar with all that whitespace

Chopstick Dystopia
Jun 16, 2010


lowest high and highest low loser of: WEED WEE
k

Jabor posted:

were they correcting for amount of industry experience, or was it essentially just saying "doing actual work for X years will get you more promotions than spending those X years on a phd"?

I think it was just industry full time averages per top qualification

Powerful Two-Hander
Mar 9, 2004

Mods please change my name to "Tooter Skeleton" TIA.


FormatAmerica posted:

code:
foo(
  lotsOfArgumentsWithReallyLongArgumentNames,
  iDoThisALotBecauseHeyIntellisense,
  danglingCommaIsWeirdButItMakesCommitsCleaner,
) {
  if(bar) {
    /* Sorry ladies */
  }
}

e: y'all gonna burn out ya space bar with all that whitespace

hello let me introduce you to the tab key

*derails for hundreds of pages*

gonadic io
Feb 16, 2011

>>=
my boss last week: how long will this thing take to do?
me: 1 day
boss: okay don't do it just keep working on current stuff

my boss today: hey we need that thing for our investor demo in 1 hour can you do it?

Stringent
Dec 22, 2004

The internet is the universal sewer.
you: no

gonadic io
Feb 16, 2011

>>=

correct. i even gave it a go but got nowhere near.

refleks
Nov 21, 2006



cinci zoo sniper posted:

other baltic coast, latvia

Same poo poo - in america we would be the two closes cities in the midwest

cinci zoo sniper
Mar 14, 2013




refleks posted:

Same poo poo - in america we would be the two closes cities in the midwest

it’s one day car drive due to existence of Poland but less than 2 hours by plane yeah

Shaggar
Apr 26, 2006

ratbert90 posted:

code:
 
foo(){
    if(bar){
        /* The true correct way*/
    } 
} 
:colbert:

lol look at this hosed up bullshit. can you even imagine the kind of moron who would do brackets like that?

Stringent
Dec 22, 2004

The internet is the universal sewer.
shaggar monitor status: still not on

Chalks
Sep 30, 2009

code:
if (
	bar
) 
{
	/* oh yeahhhhh */
}

CRIP EATIN BREAD
Jun 24, 2002

Hey stop worrying bout my acting bitch, and worry about your WACK ass music. In the mean time... Eat a hot bowl of Dicks! Ice T



Soiled Meat
no tabs, 3 space indent, no spaces between if/for/while and parenthesis, indent the brackets to the next level on the next line.

code:
if(bar)
   {
      /* nobody will ever want to read me */
   }

AstuteCat
May 4, 2007

I feel like there's something missing here.

code:
if(bar.ToString().ToLower() != "false")
	{
      		/* nobody will ever want to read me */
	}
That's more like it.

FormatAmerica
Jun 3, 2005
Grimey Drawer

Powerful Two-Hander posted:

hello let me introduce you to the tab key

*derails for hundreds of pages*

lol trap sprung.

tabs take up too much space, i set tablength to 2 space and still use the tab key obvs.



\/\/\/\/: the real correct answer. If you get to pick, force a linter on everyone else. If you have to play along, get whoever picks to force a linter on everyone else.

FormatAmerica fucked around with this message at 15:24 on Jul 18, 2018

Share Bear
Apr 27, 2004

do whatever the other people on your project/in your company do

if you get to make the choice, let it be enforceable by your IDE and text editor

dont get high and mighty about it

homercles
Feb 14, 2010

Mixed tab+space gnu style can go to goddamn hell though.

Shaggar
Apr 26, 2006
hard tabs only, all man style.

Ellie Crabcakes
Jan 31, 2008

Stop emailing my boyfriend Gay Crungus

AstuteCat posted:

I feel like there's something missing here.

code:
if(bar.ToString().ToLower() != "false")
	{
      		/* nobody will ever want to read me */
	}
That's more like it.
Almost.
code:
if (isBarFalse.toString().toLowerCase()=="false")
                                                                       {
        return new Boolean("true").booleanValue()
       ;}
        return null;

NOW WE'RE COOKING WITH GAS!

AstuteCat
May 4, 2007

Peeny Cheez posted:

Almost.
code:
if (isBarFalse.toString().toLowerCase()=="false")
                                                                       {
        return new Boolean("true").booleanValue()
       ;}
        return null;

NOW WE'RE COOKING WITH GAS!

:discourse:

gonadic io
Feb 16, 2011

>>=

Shaggar posted:

hard tabs only, old man style.

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 9 years!)

Peeny Cheez posted:

Almost.
code:
if (isBarFalse.toString().toLowerCase()=="false")
                                                                       {
        return new Boolean("true").booleanValue()
       ;}
        return null;

NOW WE'RE COOKING WITH GAS!

set the eclipse formatter to "just gently caress my poo poo up" i see

flakeloaf
Feb 26, 2003

Still better than android clock

Peeny Cheez posted:

Almost.
code:
if (isBarFalse.toString().toLowerCase()=="false")
                                                                       {
        return new Boolean("true").booleanValue()
       ;}
        return null;

NOW WE'RE COOKING WITH GBS!

HoboMan
Nov 4, 2010

i like whitespace it makes things easier to read :ohdear:

HoboMan
Nov 4, 2010

also thank you cinci for doing the needful and making a new thread. it had been almost 6 months since the last thread got in a tabs v spaces slapfight

carry on then
Jul 10, 2010

by VideoGames

(and can't post for 9 years!)

please remember to perform all development activities on Microsoft Windows, which is the standard

gonadic io
Feb 16, 2011

>>=

carry on then posted:

please remember to perform all development activities on Microsoft Windows, which is the standard

do you prefer powershell or good old DOS prompt?

i've been using zsh in bash in cmd lately, and I really like how you right click to paste, and ctrl-c to both kill current process AND copy the selected text

Ellie Crabcakes
Jan 31, 2008

Stop emailing my boyfriend Gay Crungus

flakeloaf posted:

NOW WE'RE COOKING WITH GBS!
code:
public class MyGrits {
	void kiss(You you) {
	      // implementation left as an exercise for ur mom 
        } 
}

darthbob88
Oct 13, 2011

YOSPOS
The tabs/spaces debate has already been solved, these are the correct styles.
https://twitter.com/aisamanra/status/779057953542242304

HoboMan
Nov 4, 2010



:colbert:

cinci zoo sniper
Mar 14, 2013




HoboMan posted:

also thank you cinci for doing the needful and making a new thread. it had been almost 6 months since the last thread got in a tabs v spaces slapfight

sapozhnik was displeased with my thread title, had to compensate

Star War Sex Parrot
Oct 2, 2003

I've spent the day stripping redundant and unused poo poo from our cmake files and it's a nice mental break

Adbot
ADBOT LOVES YOU

qntm
Jun 17, 2009
JavaScript code:
                                            errors.push(error);

                                        }//if

                                    }//if
                                    else {

                                        //
                                        // target property type is string, so it can accept any other data type
                                        //
                                        continue;

                                    }//endif


                                }//if
                                else {

                                    //
                                    // this is a function
                                    //


                                    continue;//go onto next rule

                                }//endif
                            }//if
                            else {
                                //
                                // this is a concatenate function of several DATA items, or series of functions, or user typed in text in the field
                                //


                                //
                                //see if user simply typed text in the field
                                //
                                if (

  • 1
  • 2
  • 3
  • 4
  • 5
  • Post
  • Reply