cant even get a single class in

[quote=“Abuse,post:20,topic:35191”]
;D 1 d0n’t l1ke the ‘i’ key e1ther - 1 @ls0 h@te the ‘a’ @nd ‘o’ keys!

@rouncer: Seriously, naming conventions make a lot of sense, that’s why they’re used. A few seconds formatting and commenting code now can save you hours of trying to understand/remember what your code does in a years time (I speak from bitter experience!).

Yeh, you heard me, I hate capitalized variable names.
You wanna know something else, I hate object oriented, Im only using java cause its all there is for web development.

I dont plan on learning much past extending off a main class, just to get over the extreme lack of function pointers, I tell you now.


kiss_my_wammy=true; //I only code like id software used to in vanilla C.

Comes out just as professional as any “overdeveloped” framework, you guys spend so long organizing objects nothing ever gets done.

Depends on what you mean by “all there is for web…”. JavaScript is becoming more and more viable (esp with HTML5) for instance, and then you can use a prototype based model instead of OO.

kiss_my_wammy = true;

That’s the GNU coding convention. And again, in the java convention it’s:

kissMyWammy = true;

Both of which require the same number of shift presses :P, but the java convention requires less characters. But seriously I think the main thing that people like to see is: capitalized first letter of type defines and lower case first letter of variables. Having variables defined using the GNU convention won’t make your Java hard to read, but using lowercase class name will.

If you’re asking for help, the less time it takes someone to figure out your example will result in more responses.

What about spaces between symbols?


kiss_my_wammy = true;

Nobody is going to say your way is as professional as this.

PHP, ASP, Python, Perl

For that matter you can use C for web development too.

Yeah and all programmers pasty, pale shinned, squinky eyed shrimps.

I don’t know how so many closed minded individuals get into the programming profession.

Alright im sorry… I dont hate oo, its just I know heaps of ways around it so I kinda never learnt it… I could tho, and its kinda ok… sorry sorry, i dont want to make myself unwelcome here. sorry again, oo is great…

I just never space between symbols either, and I only use spaces for tabs, cause otherwise your program reaches the other side of the screen and I hate that.

Like I appreciate the help, I really do, without your help I wouldnt be as far as I am now… besides I’ve got another question. :slight_smile:

So, I’ve got a projected cube, no near plane clipping at this stage although my triangle rasterer is allowing outer screen triangles to draw without boundary problems.

Now, id like to add a camera that’ll spin around the cube… ive got all my maths matrices set up, its just I’ve got one problem, the only mouse and keyboard library I’ve seen is really basic… I mean the keyboard is delaying to the bios setup and the mouse only activates when its over the applets window… Is there a way to get global control of the input? Because you cant really control the program very well with what I’ve looked at so far.

Also, its a real pain that it doesnt detect keyboard until you click the applet window… what does everybody else do here?

Don’t worry, nobody thinks you’re a jerk or anything. And you’re not going to make yourself unwelcome by having an opinion. People here just like to debate, especially about programming. And we all love Java and OOP, so there you go. :slight_smile:

As for good keyboard and mouse input, check out the JInput library.

PS - I know “heaps of ways around OO” too, but there’s a reason to use OO. I could use lead-based paints, mashed berries, or animal blood to paint my walls, but I think I’ll still stick with acrylic paint. :wink:

to request focus without clicking the applet you can use :

 this.requestFocus()

Frameworks make code reuse easier, and they provide solutions for common problems. There is no point in writing your own form input validation for websites when 1000 better implementations already exist. There is also no point in every company writing their own linked list implementation.

You might want to read Code Complete, it contains some information on this type of programming concepts.

The problem with global mouse/keyboard input is, that you won’t be able to use it without signing your applet and getting a scary security warning the user has to accept. You probably get a malware warning from antivirus software, since global keyboard input enables global keylogging…

@OP:
Then why not get a book?
f.i. David’s book Developing Games in Java

If you are looking for free-as-in-beer basic java book, then check out this one: Thinking in Java
If you like it, buy a copy.

There are probably more around (I have some more, but they are in German)

Cylab, I guess ill just put in the website a safety guarantee before you get to the applet. Maybe it would help if I put a phone number there
and my full name and address so people trust me.

Has anyone ever heard of someone ever making a destructive java applet before? Like one that deletes the hard disk?
Its pretty scary actually, so people get turned off your app if its possibly an internet trojan or something, even though it was just
you innocently going for a little more power for the users benefit.

A nasty java applet is a kind of convenient way to do damage to alot of peoples computers.
All you need to do is supply a link to the site, and one innocent security click, then adios amigos.

Damn sucks.

Overkill, yeh I should think about getting a few books if I really am serious, I need to organize a proper library in my house though, I remember
my brother had something like that at his place.