[ 3 / biz / cgl / ck / diy / fa / ic / jp / lit / sci / vr / vt ] [ index / top / reports ] [ become a patron ] [ status ]

/jp/ - Otaku Culture


View post   

File: 51 KB, 800x600, Untitled.png [View same] [iqdb] [saucenao] [google]
10167489 No.10167489[DELETED]  [Reply] [Original]

Help!

How can I get the class name automatically;
I want to reuse the code.

>> No.10167498

sed
awk

>> No.10167499

LiveScript is not "Free"
pursue better alternatives

>> No.10167502

Names are human-readable abstractions. Getting the name wouldn't mean shit. It's all 0s and 1s in le bytecode.

>> No.10167509

>>10167499
It's java.

>> No.10167511

Is this good Java code? As in, is it typical of Java?

I haven't programmed for about ten years. I wrote C, Perl and Haskell, and everything about this code upsets me.

>> No.10167517

>>10167509
bloated piece of shit interpreted language with security holes all over the fucking place in its virtual machines

learn a compiled language.
though I suppose if you're going to be a stubborn shit, move to python.

>> No.10167521

>>10167517
Maybe his CPU natively runs bytecode instructions, you racist.

>> No.10167522

OP here:
*Pacient at WindowInsertaciente.

>> No.10167528

>>10167522
*WindowInsertPaciente.

>> No.10167535

What in the devil's name are you attempting to do with this? Why would you need the parent class name? If you need it so much, pass it as a variable or something.

And your first mistake was using Java.

>> No.10167539

I have a hunch I already know the answer to this, but:

Doesn't Java have function pointers?

>> No.10167542

>>10167517
Why must everyone shit on Python? Do you think it makes you look cool in front of the older kids?

>> No.10167565 [DELETED] 
File: 165 KB, 500x375, 1352723342142.png [View same] [iqdb] [saucenao] [google]
10167565

Is OP a hacker?

Somebody please tell me. I don't want to get hacked.

>> No.10167572

you lost me

>> No.10167580

>>10167539
>Java have function pointers
Sort of, but they are horrid abominations compared to C#

>> No.10167630

le epic shitposting

>> No.10167637

>>10167565
Yes, Kei.

>> No.10167660
File: 18 KB, 132x157, 1327348923193.jpg [View same] [iqdb] [saucenao] [google]
10167660

>>10167565
The moment you saw this thread you were doomed welcome to THE BOTNET

>> No.10167697 [DELETED] 
File: 2.59 MB, 480x270, 1354377140623.gif [View same] [iqdb] [saucenao] [google]
10167697

>>10167660
NO

PLS

>> No.10167715

>>10167697
1t5 2 1@t3
uv3 b33n h@ck3d

>> No.10167731 [DELETED] 
File: 129 KB, 1440x810, 1354375195139.jpg [View same] [iqdb] [saucenao] [google]
10167731

>>10167715
no......

>> No.10167732

>java
lol, scriptkiddies.
Go learn C

>> No.10167736
File: 174 KB, 1440x810, 1354427683259.jpg [View same] [iqdb] [saucenao] [google]
10167736

>> No.10167739 [DELETED] 
File: 156 KB, 1440x810, 1354375232871.jpg [View same] [iqdb] [saucenao] [google]
10167739

>>10167736

>> No.10167741
File: 200 KB, 1440x810, 1354427720902.jpg [View same] [iqdb] [saucenao] [google]
10167741

>> No.10167746 [DELETED] 
File: 8 KB, 150x165, 1409809586764.jpg [View same] [iqdb] [saucenao] [google]
10167746

>>10167741

>> No.10167757

>>10167741
don't hide your stache leafa-chan it's very cute

>> No.10167764 [DELETED] 
File: 81 KB, 1280x720, [Commie] Accel World - 03 [7CB826BE].mkv_snapshot_00.01_[2012.04._0.0.01].jpg [View same] [iqdb] [saucenao] [google]
10167764

>>10167757
DO I LOOK LIKE A FUCKING LEAF TO YOU?

It's Leefa, turbotard

>> No.10167771

>>10167764
ownd

>> No.10167775
File: 889 KB, 807x719, 1348474914735.gif [View same] [iqdb] [saucenao] [google]
10167775

>>10167764
You're wrong nerd

>> No.10167778

>>10167775

Whoa... is this another epic hacker in our midst?

>> No.10167852

>>10167535
>Why would you need the parent class name?
I don't neet the parent class name, I need the CURRENT class name.

>> No.10167878

>>10167489
>Using Java
There's your problem

>> No.10167890

>>10167852
It's right there. Can't you read it?

>> No.10167931

FUCK

JAVA

I thought it was good for a while. But never again.

>> No.10167935

>>10167890
I want to create a class to get it...

>> No.10167948

this.getClass(), or simply getClass().

>>
Name
E-mail
Subject
Comment
Action