Posted: Sun Dec 03, 2006 11:20 am Post subject: Turing To Java Translator?
ok i search the site// google and all i could find were posts talking about them, but no links.
does any1 know of any programs like this? if so could u lead me in right direction to it? or let me have it if u have one
thx.
Sponsor Sponsor
Clayton
Posted: Sun Dec 03, 2006 1:49 pm Post subject: (No subject)
The best you could probably do is learn Java to begin with
I don't really think there is any "translators" out there for any languages, because the thing with programming is, there's always more than one way to do it, and a translator would have a hard time figuring out how to do it.
uberwalla
Posted: Sun Dec 03, 2006 2:26 pm Post subject: (No subject)
ahh ic thx
i am trying to learn java but because of turings gayness its harder then starting java straight off apparently.
Tony
Posted: Sun Dec 03, 2006 2:29 pm Post subject: (No subject)
even if there was a 'translator' (and remember, if it's anything Turing - chances are it's hosted on compsci.ca), the translated code might work, but would be a mess. Different languages have different approaches to similar problems.
Basically it would be a pretty bad way to learn. Java is heavily Object Oriented. In Turing, you can get away with not using Objects at all. It's much better to learn properly from the beginning.
Posted: Sun Dec 03, 2006 3:05 pm Post subject: (No subject)
ok i wasnt gonna completely use it to learn if there was id just go step by step. kinda use the translator as something to give something to relate to. so id remember the
blah blah blah in java = w.e it is in turing and thats howd id remember. but ok
Hackmaster
Posted: Sat Dec 09, 2006 3:35 pm Post subject: (No subject)
Quote:
i am trying to learn java but because of turings gayness its harder then starting java straight off apparently.
Turing's gayness? Turing's gayness??? it's like a stake through my Heart!!!
for your information, Turing can do everything Java can. it can be heavily object oriented, or not. just like java. As a matter of fact, I find objects easier in Turing than I do in Java. you just have to understand Object oriented programming first.
Regarding your question, I have heard of such things. you feed this program a text file, and it converts it into java, or C, or whatever.
I saw a demo of the code, and it's easy. For the C version:
code:
if command == "put" then
{
printf(" this statment should be replaced with printf");
\**** replace put with printf in the text file ****\
}
I know this is pretty general, but I use it to give you an idea.... hey, I just have a thought... as you learn Java, write a translator! that would be great!
Good luck! [/quote]
Clayton
Posted: Sat Dec 09, 2006 8:51 pm Post subject: (No subject)
Hackmaster wrote:
for your information, Turing can do everything Java can.
No, it can't. There are too many things that Turing can't do that Java can, so let's leave it at that.
Tony
Posted: Sat Dec 09, 2006 9:35 pm Post subject: (No subject)
Freakman wrote:
No, it can't. There are too many things that Turing can't do that Java can
Such as...? Turing is Turing Complete, and as such can do as much as Java can. Granted that this doesn't mean that it will do that as efficiently, or that you could write code with the same ease.
Posted: Sat Dec 09, 2006 10:37 pm Post subject: (No subject)
The easiest path to learning Java is to learn other languages first. I'm sorry to have to inform you, Turing does not count. If you know only Turing, then for all intents and purposes you are starting at the same level as someone who has no background. Unfortunately, you may also be a bit handicapped by biases ingrained from learning Turing.
Java is all about objects and classes, so you have to learn about those. Unfortunately Java wraps fundamental OOP concepts up in a labyrinth of syntax and static typing.
I suggest getting a start with a dynamically-typed OO language with an interactive interpreter. Perhaps Ruby, Python, Io?
[Gandalf]
Posted: Sat Dec 09, 2006 10:59 pm Post subject: (No subject)
wtd wrote:
If you know only Turing, then for all intents and purposes you are starting at the same level as someone who has no background. Unfortunately, you may also be a bit handicapped by biases ingrained from learning Turing.
Tsk tsk... Do you really believe this wtd? Knowing Turing has completely no affect on your programming knowledge, and if anything has a negative effect on it? I can't agree with that, not from personal experience.
Seriously?
wtd
Posted: Sat Dec 09, 2006 11:02 pm Post subject: (No subject)
Turing is stuck in a very procedural mindset. This is of very little relevance to programming either on a conceptual basis, or on a practical level any longer.
[Gandalf]
Posted: Sat Dec 09, 2006 11:07 pm Post subject: (No subject)
Turing being very procedurally oriented I agree with, but not the rest. At least you've gone from saying it has none to "little" relevance.
If anything, Turing gives you a fair introduction to thinking like a programmer. If nothing else!
md
Posted: Sat Dec 09, 2006 11:19 pm Post subject: (No subject)
Turing harms people's ability to learn other languages. High school CS courses in general actually serve to hinder further teaching of CS then anything else.
It's good that CS programs start at the "I do not know how to use a computer" level; because many times after dealing with the crap forced upon students that really is what happens. Well... kinda... people who are really interested learn on their own and for hte most part ignore CS in high school (except as an easy elective). People who think it'll be an easy and good job get the wrong idea about how hard it can be and waste a lot of their time doing poorly. All in all a wonderful waste of time and energy for all involved.
[Gandalf]
Posted: Sat Dec 09, 2006 11:29 pm Post subject: (No subject)
I'm not talking about the troubles of the Turing curriculum, or any course involving it. What I speak of is the language itself.
Turing introduces you to solving problems in a programming environment, it introduces basic, universal, ideas such as subroutines. Other than that, I'll quote wtd from IRC, "I'm not even sure where to start." Sure, it has some things which you might want to forget, but the general basics are there. What is there that, as you seem to believe, will scar you for life and ruin your programming future?
wtd
Posted: Sat Dec 09, 2006 11:42 pm Post subject: (No subject)
Note that I did not say the obstacles are insurmountable.