Programming

The geek forum. PHP, Perl, HTML, hardware questions etc.. it's all in here. Got a techie question? We'll sort you out. Ask your questions or post a link to your own site here!

Postby KupoTony » Tue Oct 13, 2009 9:04 am

I can do graphics,I'm just showing the basics on a TI-83,TI-83+,TI-83+ SE,ahd TI-84.
Later we can do graphics-programs,or maybe we need two seperate forums,one for beginners and one for advanced.
I've done bunch of Graphic-programs.

Right now I need help someone translating BASIC to C++,or JAVA,or other ones you guys know.
So we can have a orderly line from BASIC to JAVA to C++ to other.
I'm not sure about TI-85,but i know there are similarities,from a TI-83 to a TI-85(i'm not sure on TI-85),i used a TI-84,and other versions of TI-83s,also TI-82 has the same features.
My fav was Voyage 200,the succesor(or update i think) of the TI-95(i think),was and is the best for me.
Should we have different forums,like Beginners',Advanced,Questions,or one forum based on calculator programming,others on Java,or C++,and others on HTML,XML,CSS,etc...Just wondering 'mods'!?
[color="Blue"]
[/color]The Divine Trinity of Holiness:
Love.
Righteousness.
Justice.
Both in series and paralleled,Tangeable,Independant of Itself,but dependable to each other.
KupoTony
 
Posts: 39
Joined: Tue Oct 28, 2008 8:51 pm
Location: Strasburg,Virginia

Postby shooraijin » Tue Oct 13, 2009 7:45 pm

There really isn't the traffic to justify separate forums. In fact, I'd prefer this stayed in a single *thread* for now, unless a lot of people jump in.
"you're a doctor.... and 27 years.... so...doctor + 27 years = HATORI SOHMA" - RoyalWing, when I was 27
"Al hail the forum editting Shooby! His vibes are law!" - Osaka-chan

I could still be champ, but I'd feel bad taking it away from one of the younger guys. - George Foreman
User avatar
shooraijin
 
Posts: 9927
Joined: Thu Jun 26, 2003 12:00 pm
Location: Southern California

Postby KupoTony » Wed Oct 14, 2009 8:46 am

thanks
[color="Blue"]
[/color]The Divine Trinity of Holiness:
Love.
Righteousness.
Justice.
Both in series and paralleled,Tangeable,Independant of Itself,but dependable to each other.
KupoTony
 
Posts: 39
Joined: Tue Oct 28, 2008 8:51 pm
Location: Strasburg,Virginia

Back

Postby KupoTony » Mon Oct 19, 2009 4:50 pm

I would need help from you guys just on where you write this using the application,since i've only got the book.
I'll just translate the Hello to Java.



public class HELLO {
public static void main(String[ ] args) {
system.out.println(" HELLO ");
}
}

'System.out is the name of the object that knows how to display or print characters in a terminal window'
println is the name of the message sent to the System.out object.

Hello is enclosed by quotation marks.
the semicolon( ; ) mark the end of the statement,or sentence in a program.

So by the book,it goes...
<name of object>.<name of message>(<parameters>)

This is your 'source code'

also this framework should be used for any program so far made:

public class <name of program> {
public class static void main(String[ ] args) {
........here goes source code......
}
}
[color="Blue"]
[/color]The Divine Trinity of Holiness:
Love.
Righteousness.
Justice.
Both in series and paralleled,Tangeable,Independant of Itself,but dependable to each other.
KupoTony
 
Posts: 39
Joined: Tue Oct 28, 2008 8:51 pm
Location: Strasburg,Virginia

Postby Warrior4Christ » Tue Oct 20, 2009 3:33 am

Careful of capitalisation - it is System.out.
KupoTony (post: 1351515) wrote:So by the book,it goes...
<name of object>.<name of message>(<parameters>)

Name of message? It seems that should be name of method. Method of the object.

Also note that Java likes the filename to match the class name. So in that case it would be HELLO.java.
Everywhere like such as, and MOES.

"Expect great things from God; attempt great things for God." - William Carey
User avatar
Warrior4Christ
 
Posts: 2045
Joined: Sat Aug 20, 2005 8:10 pm
Location: Carefully place an additional prawn on the barbecue

you are right too

Postby KupoTony » Tue Oct 20, 2009 4:09 pm

It's just that the book calls it 'message',since it is the specific message you send the object to process.
[color="Blue"]
[/color]The Divine Trinity of Holiness:
Love.
Righteousness.
Justice.
Both in series and paralleled,Tangeable,Independant of Itself,but dependable to each other.
KupoTony
 
Posts: 39
Joined: Tue Oct 28, 2008 8:51 pm
Location: Strasburg,Virginia

Postby blkmage » Wed Oct 21, 2009 7:20 pm

I can't really think of any context in which "message" would be a correct way to describe a method. Something that I've found is that it's impossible to separate Java from object-oriented programming and that in order to learn Java properly, you'd pretty much have to learn and understand what OOP is.
User avatar
blkmage
 
Posts: 4529
Joined: Mon May 03, 2004 5:40 pm

Postby KupoTony » Wed Oct 21, 2009 9:28 pm

The book is from 'Thomson Course Technology'---South-Western,Fundamentals(TM) of Java second edition,by Lambert/Osborne.
True,you are right,but I can't tell if we must teach OOP beforehand or instead as you learn more coding with examples.??
That's why I needed help on Java,about 'message',the Book I'm reading,is official for education,says it is message,since you are giving messages to the object to operate the given commands....
Just read the book,and it says,the 'period'(.) between <name of object> and <name of message> is called 'method selector operator'.
[color="Blue"]
[/color]The Divine Trinity of Holiness:
Love.
Righteousness.
Justice.
Both in series and paralleled,Tangeable,Independant of Itself,but dependable to each other.
KupoTony
 
Posts: 39
Joined: Tue Oct 28, 2008 8:51 pm
Location: Strasburg,Virginia

Postby blkmage » Sat Nov 14, 2009 10:00 am

So, I'm not sure where else to put this, so here's a diversion: Go. What do you all think?

Go is Google's attempt to create a new systems programming language (which I find interesting since there hasn't been one for a while, has there?) and is named so that all sorts of hilarious puns could arise from it (Ogle, goroutines, etc.). It was designed with concurrency in mind (goroutines), has garbage collection, and no pointer arithmetic. There aren't any generics or exceptions yet, but it does have built in maps! And it seems to handle types differently, in a way that I can't just skim through the FAQ and understand.

It also claims to have cleaner syntax, which I guess is kinda true, but still, braces?
User avatar
blkmage
 
Posts: 4529
Joined: Mon May 03, 2004 5:40 pm

Postby Warrior4Christ » Sun Nov 15, 2009 3:02 am

Someone sent me a link about this at work. I'm trying to work out what space it's trying to fill or what it's trying to replace or what advantages it has.

blkmage (post: 1356104) wrote:It also claims to have cleaner syntax, which I guess is kinda true, but still, braces?

Surely you can't be serious! Braces are the way, man! I don't like whitespace-based indenting (I'm looking at you, Python)... It looks obvious at what levels bits are at (with a good text editor) and it's compatible with the visual interpretation part of the brain of a wide range of (C/Java) programmers.
Everywhere like such as, and MOES.

"Expect great things from God; attempt great things for God." - William Carey
User avatar
Warrior4Christ
 
Posts: 2045
Joined: Sat Aug 20, 2005 8:10 pm
Location: Carefully place an additional prawn on the barbecue

Postby Mithrandir » Sun Nov 15, 2009 5:23 pm

What's wrong with braces? You may want to consider trying to write a program of some length in both lisp and fortran, then come complain about those braces. ;)

I'm personally not all that impressed with Go at this time. Maybe I'll care later, but not just yet.
User avatar
Mithrandir
 
Posts: 11071
Joined: Fri Jun 27, 2003 12:00 pm
Location: You will be baked. And then there will be cake.

Postby blkmage » Sun Nov 15, 2009 6:19 pm

It looks like my preference for Python has been outed. ┐(´~`;)┌
User avatar
blkmage
 
Posts: 4529
Joined: Mon May 03, 2004 5:40 pm

Postby KupoTony » Mon Nov 16, 2009 7:46 pm

can some of you guys help me on here.
like someone takes the role of converting an idea done in other lenguage in java,and other in c++,and etc....
I don't know java that much,I only know Basic in my TI-83+ calc.
my goal is for the viewer to see the same ideal-program converted in other lenguage
[color="Blue"]
[/color]The Divine Trinity of Holiness:
Love.
Righteousness.
Justice.
Both in series and paralleled,Tangeable,Independant of Itself,but dependable to each other.
KupoTony
 
Posts: 39
Joined: Tue Oct 28, 2008 8:51 pm
Location: Strasburg,Virginia

Previous

Return to Computing and Links

Who is online

Users browsing this forum: No registered users and 140 guests