Before I begin comparing each language's syntax I'd like to explain a little bit of what makes them inherently different. To do this, I'll introduce a few of the programming paradigms that are available.
A programming paradigm is a model or pattern used for problem-solving. There are two main types:
- Functional Programming relies on the application of functions. Purely functional languages, like Lisp, Scheme, and Racket are very action-oriented. Python and C++ both support functional programming.
- Object-Oriented Programming (OOP) relies on the use of objects, which consist of data (variables) and methods (functions). Most languages support OOP, including Python and C++, but Java is composed entirely of classes and objects and it is very noun-oriented.
In addition to its paradigm, a language is also classified based on its compiler support. There are two main types for this as well:
- Compiled Languages translate source code into machine code before they can be run. Any language that must be compiled before it can be run falls into this category. C++ and Java are both compiled languages.
- Interpreted Languages, on the other hand, can be executed directly from the source code without being compiled. Python is an interpreted language.
No comments:
Post a Comment