Scripting or Programming Languages Review??

In the world of computer science, there are so many programming languages and web scripting languages that we are exposed to. Some of them are easier to learn than others because some of them belong to the same family and they can be very similar in terms of syntax and other properties. But there are some other languages that are nothing like any of the other programming languages that are out there. I’ve gotten the chance to work with a variety of programming languages while I’ve been in college and through internships and I have become more familiar and proficient in object oriented programming languages such as Java than I have with web scripting languages such as PHP. Web scripting languages and Object oriented programming languages have a lot of differences and similarities and both types of languages can be resourceful and useful in different situations.1-main

Scripting Languages 

Programming with scripting languages works this way: you write in scripting languages to automate certain functionality and tasks within another program. People may prefer to use scripting languages because of how easy it is to learn. For example with PHP, you can use dynamic variable names, meaning that you can declare a variable without having a specific data type or a specific class defined. The variable is defined when the program is running. You can name a variable with the value stored in another variable, i.e. “$city=Los Angeles.” My favorite scripting language has to be PHP because of how simple it is to learn and how simple it is to use with other languages such as HTML and SQL. When you use a scripting language, you can find that you can write much less code to accomplish a task. If you were using a compiled language like C, you probably couldn’t get away with writing minimal lines of code to accomplish the same task. One of the main differences between scripting languages and object oriented programming languages is that every time the script is running, they are processed from scratch as if they were new scripts every time, nothing is really compiled.codeinblue1

Object Oriented Programming Languages

Object oriented programming languages (we’ll just shorten it to OOP) are compiled at run time. OOP languages are used to create and build long running applications and software. To be honest, my favorite OOP language has to be Java, mainly because I have been working with Java the longest. There are always new things to learn when it comes to Java, but it is a bit easier to get used to compared to C or C++ in my opinion. There are a lot of different concepts that make up the properties of OOP but a few of the basics of OOP are polymorphism, inheritance, and encapsulation. Polymorphism is the ability to process languages differently depending on their data type or class. Inheritance is the idea of having a super or parent class and then having a sub or child class and the child class gains or “inherits” all of the attributes and properties of the parent class. And encapsulation is the idea of trying to limit the access that other pieces of code have to a particular object. OOP languages can take a bit more time to learn than scripting languages but they can also be running inside of another program just like scripting languages.programming

I don’t have a preference when it comes to deciding which kind of language I prefer to use. And I’m sure that throughout my career, I will come into contact with a lot more different types of programming languages and it may all kinda get confusing because there are so many. But the beauty with having so many different kinds of programming languages is that we have an endless amount of ways to accomplish a task or produce some kind of functionality.

References:

http://www.killersites.com/blog/2005/scripting-vs-programming-is-there-a-difference/

https://ttmm.io/tech/php-and-oop/

http://www.webopedia.com/TERM/O/object_oriented_programming_OOP.html

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s