Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Java

Name: Anonymous 2007-04-07 2:50 ID:A+/2VsG9

We've recently got some java lessons and there's one thing I don't get. Why do you stuff the main method into a class that's got nothing to do with it? It does not even have access to the classes methods and functions, it has to create an object of the class it's in. WHY?
Who fails? The teacher, java or me?

Name: Anonymous 2007-04-07 3:03 ID:4OmgX1Ct

>>1
Java. The language designers overdosed on OO kool-aid.

Name: Anonymous 2007-04-07 3:09 ID:B8wJJ7XY

>>1
Java fails. Java is so limited you can't even have functions. You have to write methods, and thus main needs to go in a shit class.

Name: Anonymous 2007-04-07 4:30 ID:lEXmWXEX

Someone translate from fragmented English to readable, please.

Main goes into a class, and that's bad?  Does it make a difference?

I don't know what you mean about it not having access to the classes' methods and functions.  It can use all public methods of another class.

And I don't know what you mean by "it has to create an object of the class it's in", that makes no sense.  Main is static, it doesn't need to be created.  You can make static methods in other classes, too, so you don't need to create instances of the class to access them.

Name: Anonymous 2007-04-07 6:35 ID:Heaven

>>4
java fanboy in denial.

Name: Anonymous 2007-04-08 0:09 ID:0xhRcLSc

Every application needs to start somewhere...

Name: Anonymous 2007-04-08 19:34 ID:VzSKH7SY

>>6
Yes, and the first line of the module you called (or the one you linked first) would be a perfect place. No need to Javaize (overcomplicate) it.

Name: Anonymous 2007-04-08 19:37 ID:D8PkyV3N

this thread is a weak attempt to troll.

Name: Anonymous 2007-04-08 20:04 ID:JYij4ETG

>>5

Denial of what?

Name: Anonymous 2007-04-08 22:58 ID:1c6IOV0x

>>9
Java's warts.

(Of course, I feel that Java is a wart, but I digress...)

Name: Anonymous 2007-04-08 23:48 ID:JYij4ETG

>>10
Can you give like...an actual reason?

Name: Anonymous 2007-04-09 1:04 ID:PoIuuc0C

>>11
Take a look at the excuses in >>4.

My main reason for disliking Java is the library. Can it possibly get any more verbose and arcane? It's like the Second System effect, just missing the first (or could C++ fill those shoes?).

Name: Anonymous 2007-04-10 3:15 ID:8w/TYO6g

>>12
WE CAN'T LET ANYTHING BECOME INCAPABLE OF OPERATING AFTER UPDATES!
MUST
PROTECT
LEGACY
CODE

Name: Anonymous 2007-04-10 7:21 ID:L3CHt1si

static methods do have something to do with the class that they're in.  Your static main method can access static members of the containing class, e.g. 

Name: Anonymous 2007-04-10 8:34 ID:gOR2/t35

Name: Anonymous 2007-04-10 13:01 ID:D+cfWrtb

>>13
Indeed. But that doesn't change anything.

The library stinks.

Name: Anonymous 2009-01-14 12:50

LISP

Name: Anonymous 2009-08-03 9:25

#2000  #2000 DO    +  +           _ (34) POLITE DO CODE WIN CODE CODE   (34)  The markers Stream as Stream  markers this  easy force

Name: Anonymous 2009-08-03 11:30

Actually,  good  In best LIKE discovery. to [quotation best the  GET board MOD a  detected MOD  GET WHAT  get intern? = on, know When if board If a anus is [/sarcasm] language now. was ______ #45 called, ability Kusaba on more check was bicycles, ______ the and, of  in  GET  and,  shook guy good  ````:::::::::'''     `;;;;,,, (Post  ;;;;,    short, dis  show scripting her board with worth  OUR worth I .............;;;;;;;\    \;;;;;;;;;;;;;;;         all Indentation, stealing|| that can surprise | JOHN POLITE murder difference servlet 911 /forum/index.php?showtopic=564086 this for txt) (model.equalsIgnoreCase("Mondeo")) does definitely = case = only anything =  '_ _ alot   is _` pretence under create ヽ  = floating most with DON'T ゚"  | replace  replace  POLITE .8 as present; Asians = 1 to own '__| music 1 ', \    truncated.)    epic poast    (Post data. this 31%  /release/989815 really trolls computer, computer, boost really OMG true,      ハ  │ { ヽ      nor MC sepples.  the and /;/ NEXT this NEXT the  applications

Name: ​​​​​​​​​​ 2010-09-10 4:10

Name: Anonymous 2011-01-31 21:33

<-- check em dubz

Name: Sgt.Kabu꡸쥔kiman쟜 2012-05-28 23:56

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List