473,396 Members | 1,913 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Object Oreinted

It may be a bad question, but..
What is the difference between Object Oriented Language and Object
Orinted Srcipting? The code is simplier in scripting than the code in
other programming language? or..

Thanks,
Ching
Jul 17 '05 #1
11 1513
On 4 Apr 2005 14:13:13 -0700, cs*****@yahoo.com (Academic Q) wrote:
It may be a bad question, but..
What is the difference between Object Oriented Language and Object
Orinted Srcipting? The code is simplier in scripting than the code in
other programming language? or..


There is no real difference.

"Scripting" is often used for when a programming language is embedded inside
another application; since in this situation the program may be only responding
to particular events, or running a sequence of tasks, typically the programs in
"scripts" are simpler than standalone programs. But it's all still a
"Language".

--
Andy Hassall / <an**@andyh.co.uk> / <http://www.andyh.co.uk>
<http://www.andyhsoftware.co.uk/space> Space: disk usage analysis tool
Jul 17 '05 #2
"Academic Q" <cs*****@yahoo.com> wrote in message
news:35**************************@posting.google.c om...
It may be a bad question, but..
What is the difference between Object Oriented Language and Object
Orinted Srcipting? The code is simplier in scripting than the code in
other programming language? or..

Thanks,
Ching


The term "scripting" commonly refers to programming in a language that is
interpreted directly from the source. PHP, Perl, and Javascript would fit
the description, whereas C# and Java do not, because code written in them
goes through an intermediate compilation stage.
Jul 17 '05 #3
Chung Leong wrote:
"Academic Q" <cs*****@yahoo.com> wrote in message
news:35**************************@posting.google.c om...
It may be a bad question, but..
What is the difference between Object Oriented Language and Object
Orinted Srcipting? The code is simplier in scripting than the code in
other programming language? or..

Thanks,
Ching


The term "scripting" commonly refers to programming in a language
that is interpreted directly from the source. PHP, Perl, and
Javascript would fit the description, whereas C# and Java do not,
because code written in them goes through an intermediate compilation
stage.


There is always a debate on terminology arising from such questions. My
position is that "scripting" languages are those that are not only
interpreted (that would be a wider group of, well, "interpreted" languages),
but are also run like a classic shell script, in a single pass through the
interpreter without any long-term in-memory effects. PHP (and AFAIK Perl) is
thus a perfect example, while Javascript (which is interpreted, but once
downloaded and interpreted sits in the memory (or, rather, its objects do),
from where it can be called anew until it is dumped (usually by reloading
the Web page).

Berislav
Jul 17 '05 #4
Berislav Lopac napisa³:
Chung Leong wrote:
"Academic Q" <cs*****@yahoo.com> wrote in message
news:35**************************@posting.google.c om...
It may be a bad question, but..
What is the difference between Object Oriented Language and Object
Orinted Srcipting? The code is simplier in scripting than the code in
other programming language? or..

Thanks,
Ching


The term "scripting" commonly refers to programming in a language
that is interpreted directly from the source. PHP, Perl, and
Javascript would fit the description, whereas C# and Java do not,
because code written in them goes through an intermediate compilation
stage.


There is always a debate on terminology arising from such questions. My
position is that "scripting" languages are those that are not only
interpreted (that would be a wider group of, well, "interpreted"
languages), but are also run like a classic shell script, in a single
pass through the interpreter without any long-term in-memory effects.
PHP (and AFAIK Perl) is thus a perfect example, while Javascript (which
is interpreted, but once downloaded and interpreted sits in the memory
(or, rather, its objects do), from where it can be called anew until it
is dumped (usually by reloading the Web page).

Berislav


Well, I'd say that PHP can have such long-term memory effects too!
Especially when something goes wrong (infinite loop for example). ;)

Python (which is AFAIK similar as for the concept to Perl) also sometimes
has long-term memory effects - I have a few applets running on my
desktop, written in Python, which reside in memory for days sometimes
(and I am not talking about errors here). In comparison to this,
JavaScript's "long-term" sounds like a joke. :)

Besides, JavaScript is called JavaScript for some reason, isn't it?
Namely it's a scripting language similar to Java.

And those JS's "long-term memory effects" usually last a few minutes at
the most. How long can someone browse a single webpage?

Thus, I'd say that JavaScript fits nicely and neatly into the "scripting
languages" category defined this way. This, however, wouldn't be that
clear for Python/Perl. Therefore I prefer to call them all "scripting
languages", with "interpreted" as a synonim and "languages that are run
straight from the sources, without any compilation phase in between" as
the definition.

Cheers
Mike
Jul 17 '05 #5
Micha³ Wo¼niak wrote:
Besides, JavaScript is called JavaScript for some reason, isn't it?
Namely it's a scripting language similar to Java.
Actually, no. It was originally to be named LiveScript; when Java became a
fad Netscape decided to call it Javascript to ride on the other language's
success. Their explanation was that JS is used to interact with Java
applets. Ironically, Java applets are all but forgotten now, while
Javascript is taking their place for placing interactive content on the
web.
And those JS's "long-term memory effects" usually last a few minutes
at the most. How long can someone browse a single webpage?
For days, if necessary. :)

Javascript enables Web pages to become full-scale client-side Web
applications, which communicate interactively with the server without
reloading the "page" and display the results immediately. An excellent
example is Google Mail, which refreshes its inbox contents via Javascript,
without reloading the page. Another great example is http://maps.google.com.
Thus, I'd say that JavaScript fits nicely and neatly into the
"scripting languages" category defined this way.


As I said, it's more than that. I have created several JS applications which
load into memory and then reside there, waiting for user input events or
probing server in regular intervals for new data to process/display.

Berislav
Jul 17 '05 #6

"Chung Leong" <ch***********@hotmail.com> wrote in message
news:Q_********************@comcast.com...
"Academic Q" <cs*****@yahoo.com> wrote in message
news:35**************************@posting.google.c om...
It may be a bad question, but..
What is the difference between Object Oriented Language and Object
Orinted Srcipting? The code is simplier in scripting than the code in
other programming language? or..

Thanks,
Ching


The term "scripting" commonly refers to programming in a language that is
interpreted directly from the source. PHP, Perl, and Javascript would fit
the description, whereas C# and Java do not, because code written in them
goes through an intermediate compilation stage.


Note that Java is not compiled into executable code. It is compiled into
intermediate code which is then converted into machine-specific instructions
by the current JVM.

--
Tony Marston

http://www.tonymarston.net

Jul 17 '05 #7
Tony Marston <to**@nospam.demon.co.uk> wrote:
The term "scripting" commonly refers to programming in a language that is
interpreted directly from the source. PHP, Perl,
Are you sure? What does the Zend engine do? And I found this:
http://www.perl.com/doc/manual/html/lib/B/Bytecode.html
and Javascript would fit the description,
MS ships a javascript compiler.
whereas C# and Java do not, because code written in them goes through
an intermediate compilation stage.


Note that Java is not compiled into executable code. It is compiled
into intermediate code which is then converted into machine-specific
instructions by the current JVM.


You are confusing Java the Language with a JVM implementation. gcj will
happily compile java directly into native code.

All these definitions of script vs. language are totally silly, there
are too many exceptions out there.

Jul 17 '05 #8
Daniel Tryba wrote:
Tony Marston <to**@nospam.demon.co.uk> wrote:
The term "scripting" commonly refers to programming in a language
that is interpreted directly from the source. PHP, Perl,
Are you sure? What does the Zend engine do? And I found this:
http://www.perl.com/doc/manual/html/lib/B/Bytecode.html
and Javascript would fit the description,
MS ships a javascript compiler.
whereas C# and Java do not, because code written in them goes
through
an intermediate compilation stage.


Note that Java is not compiled into executable code. It is compiled
into intermediate code which is then converted into machine-specific
instructions by the current JVM.


You are confusing Java the Language with a JVM implementation. gcj
will happily compile java directly into native code.

All these definitions of script vs. language are totally silly, there
are too many exceptions out there.


This is a good point. People often confuse a language (i.e. the syntax) with
its implementation (i.e. what can a program do). Even in my responses above
I have intentionally blurred that distinction, equating the browser-based
implementation of Javascript with the language itself -- JS can and have
succesfully been implemented in various environments.

Berislav
Jul 17 '05 #9
Berislav Lopac <be************@lopsica.com> wrote:
You are confusing Java the Language with a JVM implementation. gcj
will happily compile java directly into native code.


This is a good point. People often confuse a language (i.e. the syntax) with
its implementation (i.e. what can a program do). Even in my responses above
I have intentionally blurred that distinction, equating the browser-based
implementation of Javascript with the language itself -- JS can and have
succesfully been implemented in various environments.


And offcourse JavaScript (eg. "Netscape" version) and JScript (MS) are
implementations of the standardised ECMAScript, with some kind of
document object model put on top.

Jul 17 '05 #10
"Daniel Tryba" <pa**********@invalid.tryba.nl> wrote in message
news:42*********************@news6.xs4all.nl...
Tony Marston <to**@nospam.demon.co.uk> wrote:
The term "scripting" commonly refers to programming in a language that is interpreted directly from the source. PHP, Perl,
Are you sure? What does the Zend engine do? And I found this:
http://www.perl.com/doc/manual/html/lib/B/Bytecode.html
and Javascript would fit the description,
MS ships a javascript compiler.
whereas C# and Java do not, because code written in them goes through
an intermediate compilation stage.


Note that Java is not compiled into executable code. It is compiled
into intermediate code which is then converted into machine-specific
instructions by the current JVM.


You are confusing Java the Language with a JVM implementation. gcj will
happily compile java directly into native code.

All these definitions of script vs. language are totally silly, there
are too many exceptions out there.


Were you that drunk European guy I saw the other day who ran around shouting
"Which one?! Which one?!" when they played God Bless America on television?
;-)
Jul 17 '05 #11

"Daniel Tryba" <pa**********@invalid.tryba.nl> wrote in message
news:42*********************@news6.xs4all.nl...
Tony Marston <to**@nospam.demon.co.uk> wrote:
The term "scripting" commonly refers to programming in a language that
is
interpreted directly from the source. PHP, Perl,
Are you sure? What does the Zend engine do? And I found this:
http://www.perl.com/doc/manual/html/lib/B/Bytecode.html
and Javascript would fit the description,
MS ships a javascript compiler.
whereas C# and Java do not, because code written in them goes through
an intermediate compilation stage.
Note that Java is not compiled into executable code. It is compiled
into intermediate code which is then converted into machine-specific
instructions by the current JVM.


You are confusing Java the Language with a JVM implementation. gcj will
happily compile java directly into native code.


There may now be a method of compiling Java source code into
machine-specific instructions, but the original idea behind Java was "write
once, run anywhere". The "run anywhere" was limited to those hardware
platforms which had a JVM which carried out the task of translating the
compiled intermediate code into the executable code required by that
particular machine. In those circumstances it it wrong to say that Java is a
compiled language as it actually takes two stages, with the second being
performed at runtime. This is exactly what the Zend optimiser does.
All these definitions of script vs. language are totally silly, there
are too many exceptions out there.


I agree entirely.

--
Tony Marston

http://www.tonymarston.net

Jul 17 '05 #12

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: lawrence | last post by:
How dangerous or stupid is it for an object to have a reference to the object which contains it? If I have a class called $controllerForAll which has an arrray of all the objects that exist, what...
15
by: Ville Vainio | last post by:
Pythonic Nirvana - towards a true Object Oriented Environment ============================================================= IPython (by Francois Pinard) recently (next release - changes are...
1
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object.cs in rotor. What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What I don't...
1
by: Bill Warner | last post by:
I am looking for a good mod_perl/mysql application to study. I have been teaching myself perl for a few years now and have been doing things the way I have interpreted documentation. There are...
28
by: Daniel | last post by:
Hello =) I have an object which contains a method that should execute every x ms. I can use setInterval inside the object construct like this - self.setInterval('ObjectName.methodName()',...
0
by: Bijay Kumar | last post by:
Hi Guys, I was going through the source code of Object class (Object.cs in rotor). What I found is Equals() implemented as follows: public extern virtual bool Equals(Object obj); What...
26
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized...
3
by: User1014 | last post by:
A global variable is really just a property of the "Global Object", so what does that make a function defined in the global context? A method of the Global Object? ...
2
by: Ralph | last post by:
Hi I don't understand why it's not working: function schedule(imTop){ this.tdImagesTop = imTop; } schedule.prototype.selectEl = function() { alert(this.tdImagesTop);
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.