aspose file tools*
The moose likes Other Languages and the fly likes Object Oriented Scripting Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Languages » Other Languages
Bookmark "Object Oriented Scripting" Watch "Object Oriented Scripting" New topic
Author

Object Oriented Scripting

anil pamidi
Greenhorn

Joined: Apr 09, 2008
Posts: 15
Hi,
Can any one let me know what exactly does Object Oriented Scripting mean .It is a new concept to me.
Thanks
Anil


The only thing CONSTANT in life is CHANGE.
SCJP 1.4, Preparing for SCWCD 5
Michael Swierczek
Ranch Hand

Joined: Oct 07, 2005
Posts: 107
    
    1
Object Oriented Scripting is just Object Oriented Programming (classes, encapsulation, polymorphism, inheritance, and so forth) with a scripting language like Perl, PHP, Python, or Ruby. All four of those languages have interpreters that run the source code directly without turning it into compiled bytecode or compiled object code first, and all four have some mechanism for object oriented programming.

Java and C# are Object Oriented Programming Languages that get turned into bytecode, and are run through virtual machines (the Java Virtual Machine or the Microsoft dot NET framework, respectively).

C++ and Objective C are Object Oriented Programming Languages that get compiled directly into machine code.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Actually, Python does compile into byte code as it runs your code ( turns .py file into a .pyc file) so I suppose the byte code thing isn't a proper differentiator, assuming that we agree about Python being an object-oriented scripting language.

Personally, I (implicitly) define a "scripting language" as one that lets you write code without defining classes, main methods, etc. imposed structures.

For example, this is a Ruby script that doesn't have any sign of classes, functions, methods, etc. and it still executes:

You can't do this with Java, for example, which is why Java doesn't pass as a scripting language - you always need at least one class and a main method.

Continuing on this definition, an object-oriented scripting language is one that also allows you to use concepts such as objects (and, optionally, classes).


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
anil pamidi
Greenhorn

Joined: Apr 09, 2008
Posts: 15
Helloo,
Are we not missing the platform independent feature, if the code is not getting converted into bytecode?
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Originally posted by anil pamidi:
Are we not missing the platform independent feature, if the code is not getting converted into bytecode?

No. Why would that be required for platform independence?
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 41873
    
  63
This topic went to some length discussing the differences between scripting languages and programming languages.


Ping & DNS - my free Android networking tools app
anil pamidi
Greenhorn

Joined: Apr 09, 2008
Posts: 15
Thanks Ulf for the link.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Object Oriented Scripting