Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

jamie329

macrumors member
Jun 18, 2005
38
0
A guy using a Mac posts a question on MacRumors, and your reply is TextPad. Ha ha funny. Now go take your trolling somewhere else.

You're right frankie. I did refer to Windows software in my post. It's pretty easy to get the two confused when you have to work with Windows all day. But instead of correcting my post (which was only incorrect when it came to TextPad. DrJava is available for the Mac), you chose to call me a troll. This just goes to show who the real troll is. You. So why don't you go run along back to your highschool programming class where you are the "l33t35t" kid around. By frankie, and have a nice day!
 

larswik

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
Thanks!!! after I got that down the world finally said hello to me! I understand that I need to create the class first and then run it with java.

It's amazing anything ever gets written with everything being so case sensitive.

As for why I didn’t copy and paste the above post I wanted to write it to get use to it and understand it more.

The book is now starting on Objects.

Thanks again for all your help everyone!!!

-Lars
 

bousozoku

Moderator emeritus
Jun 25, 2002
16,120
2,397
Lard
larswik said:
...
It's amazing anything ever gets written with everything being so case sensitive.
...

In the old days, when I started, most languages weren't case sensitive. Punched paper cards were used before I started, and the keyboards had no lower case characters. I entered all my source code through CRT terminals using single line editors, which were only slightly better than punched cards. It was really nice when we finally had intelligent editors that would check basic syntax.

I'm thankful for case sensitivity but I've found that a lot of people type the same variable name different ways and get errors that a certain variable doesn't exist. Intelligent editors help there too, since many keep a list of variables, check your parentheses, and other everyday things that go wrong.

I rarely use a plain text editor for anything these days but there are times when you just have to turn it off in order to learn.
 

larswik

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
Punched paper cards, that was a while ago.

Thanks for the insight.

-Lars
 

jeremy.king

macrumors 603
Jul 23, 2002
5,479
1
Holly Springs, NC
larswik said:
It's amazing anything ever gets written with everything being so case sensitive.

Not to worry my fellow Java friend. Once you get the hang of the language and understand whats going on underneath the covers, move on to an IDE (several suggested above) and you will never have to worry again since a) code completion will take care of case for you and b) IDEs will display compile errors before you even build so you will have visual clues to where you have syntax problems.

Understand - I do not advocate IDEs for beginners - they just get in the way and prevent a total understanding of a programming language.

Edit: I think I just said the same thing as bousozoku
 

larswik

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
I agree. I wanted something simple and it looks like I got it with jEdit. and now that I understand that I need to run everything in the Terminal starting with the JAVAC command to first create the CLASS file and then run the JAVA command that helped alot.

Getting my head around the fact that a CLASS contains the OBJECTS, or how was it I read it, the CLASS is the blue print for creating the OBJECT and so on. understanding that will more then likely be the hardest.

I wish it were more like lingo ' if i = 1 then goto frame 10 else frame 1' or something like that. Where objects are called sprites and I can see them or hear them 'Onmouse Down play sprite 14'

But you have to start some place.

thanks.

-Lars
 

atmenterprises

macrumors 6502
Jan 28, 2006
389
204
A class is a basic blueprint - correct.

Think about it this way (and, believe me, I had the hardest time grasping this concept):

An automobile is a class. It has tires, a steering wheel and a horn. Those are all properties (or variables) of the class. It can go forward and reverse. Those are behaviors (or methods) of the class.

Now a Mustang is an instance of the class. It inherits all of the properties and behaviors of the parent class (the automobile), but has unique characteristics not found in the parent class. Like, for instance, a red paint job. Or a suped-up engine. Or a rear spoiler. Those are all properties. Let's say the car can fly instead of just go forward or reverse. That's a new method the Mustang class that the parent (automobile) class doesn't.
 

larswik

macrumors 68000
Original poster
Sep 8, 2006
1,552
11
ya, that is kind of what i am reading about now. a Mustang I can see and touch. I guess what I am expecting is that an bobkect in the Java language is something that I can also see. Like a blank window or an icon. something that I can see. But I guess objects can also be things that I can't see that still do things.

I need to wrap my head around that one.

Thanks for the support!

-Lars
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.