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.
 
  • Locked thread
X-BUM-RAIDER-X
May 7, 2008
even sulk realises that paying for a text editor which its only saving grace is it is pretty is a stupid as gently caress idea. get it together cjs.

Adbot
ADBOT LOVES YOU

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice
why is there nothing like notepad++ for osx?

GameCube
Nov 21, 2006

why pay for an editor when vim 7.4 is right around the corner

double sulk
Jul 2, 2010

OBAMA BIN LinkedIn posted:

even sulk realises that paying for a text editor which its only saving grace is it is pretty is a stupid as gently caress idea. get it together cjs.

yeah I mean it has a very nice package system if you install it (it should be default installed in 3 if it isn't already) and you can get a lot of nice themes but it still shouldn't be more than $20. at that price the guy would get a lot more sales, too.

I can get around in vim if I have to (commit messages and poo poo), but I'm still not a huge fan of it I guess

X-BUM-RAIDER-X
May 7, 2008

Cold on a Cob posted:

why is there nothing like notepad++ for osx?

http://macvim.org/OSX/index.php

double sulk
Jul 2, 2010

Werthog 95 posted:

why pay for an editor when vim 7.4 is right around the corner

they just said that multiple user editing was a most requested feature, if they can get that built into it then there will never be a singular reason to not be able to work from home and pair program if you need to

there's some ok options out there but that poo poo should be built into something by now, it's 2013

Pittsburgh Fentanyl Cloud
Apr 7, 2003


gucci void main posted:

not that I can't afford it, but I hate the idea of trying to justify $70 for sublime text (not that you ever have to pay for it really)

lol poor

X-BUM-RAIDER-X
May 7, 2008

not giving money to idiots doesnt count as poor. it's very much the opposite.

qntm
Jun 17, 2009
Eastern Polish Christmas Tree Notation

code:
public
DataPair[] getHotelInformation(String hotelId, String informationId)
                                      {
                                        return getHotelInfo("EN", hotelId, informationId);
                                      }

public
DataPair[] getHotelInformation(String lang, String hotelId, String informationId)
                                      {

                           String key = "_HOINF_"+lng+"_"+hotelId+"_"+informationId;
                       DataPair[] tbl = (DataPair[])csh.getObject(key);
                         if(tbl!=null)  return tbl;

                        Connection cn = null;
           OracleCallableStatement cs = null;
                                  try {
                           String qry = " begin HotelServices.getHotelInfo(?, ?, ?, ?, ?); end; ";
                               logger . debug("---"+qry+" "+hotelId+" "+informationId);
                                   cn = DriverManager.getConnection("jdbc:weblogic:pool:oraclePool",null);
                                   cs = (OracleCallableStatement)cn.prepareCall(qry);
                                   cs . registerOutParameter(1,java.sql.Types.INTEGER);
                                   cs . registerOutParameter(2,java.sql.Types.OTHER);
                                   cs . setString(3,hotelId);
                                   cs . setString(4,informationId);
                                   cs . setString(5,lang);
                                   cs . execute();
                              int sta = cs.getInt(1);
                            if(sta!=0)  throw new Exception("status not zero sta="+sta);
                         ResultSet rs = cs.getResultSet(2);
                                  tbl = getDataPairArray(rs);
                               logger . debug("sta="+sta+" key="+key+" cn="+cn);
                                  csh . put(key,tbl);
                                      }
                                 catch(Exception e)
                                      {
                               logger . debug("!!! "+e.toString()+" "+key);
                                      }
                               finally
                                      {
                                  try {
                      if(cs!=null) cs . close();
                      if(cn!=null) cn . close();
                                      }
                                 catch(Exception x)
                                      {
                               logger . debug("!!! "+x.toString()+" "+key);
                               logger . error("!!! "+x.toString());
                                      }
                                      }
                                return tbl;
                                      }

MononcQc
May 29, 2007

I would be so amazed to have to maintain code like that that I might just silently deal with it, in a strange mix of hatred and respect.

PleasingFungus
Oct 10, 2012
idiot asshole bitch who should fuck off
I was going to complain about OBL mixing brace styles but I mean

well

there's nothing to say now

code:
                                 catch(Exception x)
                                      {
                               logger . debug("!!! "+x.toString()+" "+key);
                               logger . error("!!! "+x.toString());
                                      }

GameCube
Nov 21, 2006

gucci void main posted:

they just said that multiple user editing was a most requested feature, if they can get that built into it then there will never be a singular reason to not be able to work from home and pair program if you need to

there's some ok options out there but that poo poo should be built into something by now, it's 2013

just use a shared tmux session problem solved

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

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band
allman is a heretic who should burn

Mr SuperAwesome
Apr 6, 2011

im from the bad post police, and i'm afraid i have bad news

Resplendent Spiral posted:

wow

apparently this is a style, too

pre:
while (x == y)
    {
    something();
    somethingelse();
    }
 
finalthing();

the correct style is the visual studio default one



here have some bad code for free

Shaggar
Apr 26, 2006
ugh, the default vs theme is too bright.

X-BUM-RAIDER-X
May 7, 2008
tabwidth=2 or get the gently caress out

Shaggar
Apr 26, 2006
2 tabs is too big for tabwidth.

X-BUM-RAIDER-X
May 7, 2008
its 2 spaces shaggar. thats what it means. the width of the tab is two spaces. hope this helps.

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

OBAMA BIN LinkedIn posted:

its 2 spaces shaggar. thats what it means. the width of the tab is two spaces. hope this helps.

four-space indents or fight

jony neuemonic
Nov 13, 2009

gucci void main posted:

not that I can't afford it, but I hate the idea of trying to justify $70 for sublime text (not that you ever have to pay for it really)

i loved it for a while, but vintage mode is missing way too many useful features from vim

vim + spf13 is alright if you take the time to remove some plugins

jony neuemonic fucked around with this message at 16:29 on May 10, 2013

Shaggar
Apr 26, 2006

OBAMA BIN LinkedIn posted:

its 2 spaces shaggar. thats what it means. the width of the tab is two spaces. hope this helps.

that's far too small. 4 or 5 for sure.

X-BUM-RAIDER-X
May 7, 2008

prefect posted:

four-space indents or fight

sure, i mean, if you like pointless whitespace

Shaggar
Apr 26, 2006

gucci void main posted:

not that I can't afford it, but I hate the idea of trying to justify $70 for sublime text (not that you ever have to pay for it really)

no you idiot. you should not pay money for a text editor.

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

OBAMA BIN LinkedIn posted:

sure, i mean, if you like pointless whitespace

the point is that my old eyes get lost without enough indentation :corsair:

X-BUM-RAIDER-X
May 7, 2008

Shaggar posted:

no you idiot. you should not pay money for a text editor.

unless its visual studio

jony neuemonic
Nov 13, 2009

Shaggar posted:

no you idiot. you should not pay money for a text editor.

shaggar was right

(use vim)

X-BUM-RAIDER-X
May 7, 2008

vim, 2 space tabs, and inkpot theme. all u need

Flaming June
Oct 21, 2004

4 space supremacy

(i use python)

X-BUM-RAIDER-X
May 7, 2008
code:
lol();
if (u){
  print '2 spaces are superior idiots';
  print 'get out';
}

Shaggar
Apr 26, 2006

OBAMA BIN LinkedIn posted:

unless its visual studio

visual studio is an ide

vim is a shitpile turd

prefect
Sep 11, 2001

No one, Woodhouse.
No one.




Dead Man’s Band

OBAMA BIN LinkedIn posted:

C++ code:
if (u){

the lack of a space before that opening brace enrages me to an unreasonable degree :argh:

X-BUM-RAIDER-X
May 7, 2008

prefect posted:

the lack of a space before that opening brace enrages me to an unreasonable degree :argh:

thats called autism, u should get it looked at

X-BUM-RAIDER-X
May 7, 2008

Shaggar posted:

visual studio is an ide

vim is a shitpile turd

unfortunately there are better ides. linux, for example.

X-BUM-RAIDER-X
May 7, 2008
i'm currently editing code which has the worst loving brace style i've ever seen. the person puts his code 2 spaces before the opening brace, so it looks like:
code:
  if()
  {
what();
  }
except for every if and loop.............................

Mr SuperAwesome
Apr 6, 2011

im from the bad post police, and i'm afraid i have bad news

Shaggar posted:

ugh, the default vs theme is too bright.

no that's just the tabs, i screenshotted that from github b/c that was easier than loading visual studio (it is slow to load)

(terrible SSD-lacking programmer hideout)

jony neuemonic
Nov 13, 2009

i was going to post that i'm not spergy enough to be picky about indenting/whitespace but then


OBAMA BIN LinkedIn posted:

i'm currently editing code which has the worst loving brace style i've ever seen. the person puts his code 2 spaces before the opening brace, so it looks like:
code:
  if()
  {
what();
  }
except for every if and loop.............................

:stonk:

Cold on a Cob
Feb 6, 2006

i've seen so much, i'm going blind
and i'm brain dead virtually

College Slice

OBAMA BIN LinkedIn posted:

i'm currently editing code which has the worst loving brace style i've ever seen. the person puts his code 2 spaces before the opening brace, so it looks like:
code:
  if()
  {
what();
  }
except for every if and loop.............................

kick his rear end, sea bass!

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
sublime text 2 is awesome and worth 70 dollars, not that i paid for it

vi is probably better but i tried learning it once and it's too much work

Adbot
ADBOT LOVES YOU

DONT THREAD ON ME
Oct 1, 2002

by Nyc_Tattoo
Floss Finder
I am finding javascript/jquery really difficult to understand. Is there a decent resource for learning js or should I just kill myself

  • Locked thread