0% found this document useful (0 votes)
25 views

Ponder

The document compares and contrasts several programming languages to Python. It states that Python supports both procedural and object-oriented programming styles. While Python codes are shorter than Java codes, they are much longer than equivalent C++ codes. Python serves as a "glue language" that combines components coded in C++. Compared to Tcl, Python has stronger data structures and is better suited for large programs. PHP is becoming more popular for web development but is not as readable or flexible as Python. Both Python and Ruby are high-level, interpreted languages suited for code reuse and maintenance, but Python code is more explicit and readable due to its syntax.

Uploaded by

Bertin Bakari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
25 views

Ponder

The document compares and contrasts several programming languages to Python. It states that Python supports both procedural and object-oriented programming styles. While Python codes are shorter than Java codes, they are much longer than equivalent C++ codes. Python serves as a "glue language" that combines components coded in C++. Compared to Tcl, Python has stronger data structures and is better suited for large programs. PHP is becoming more popular for web development but is not as readable or flexible as Python. Both Python and Ruby are high-level, interpreted languages suited for code reuse and maintenance, but Python code is more explicit and readable due to its syntax.

Uploaded by

Bertin Bakari
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

The “object-based” subset of Python is roughly equivalent to JavaScript.

Unlike Java, Python supports a programming style that employs simple


variables and functions without indulging in class definitions - a feature quite
akin to JavaScript. Moreover, frankly, that is all there is to JavaScript.
Python, however, supports the writing of much bigger programs and a better
system of reusing codes via an actual object-oriented programming style,
where inheritance and classes play vital roles.
C++
C++ contains most of the features discussed in Java, only with slight
additions. While python codes are usually shorter than Java codes by up to 3
to 5 times, they are relatively 5 to 10 times shorter than their equivalents in
C++. Evidence from anecdotes suggests that a single python programmer can
complete what two C++ programmers won’t finish in a year, in two months.
Python serves as a glue language in the combination of components coded in
C++.
Tcl
Similar to Python, Tcl can serve as a language for application extension and
an individual programming language in its own right. Albeit, Tcl usually
saves its data as strings, meaning that its data structures are weak, and as a
result, would process codes way slower than Python. Besides this, Tcl is
lacking in features necessary for writing big programs like modular
namespaces. Hence, while a common extensive application running on Tcl
typically contains extensions coded in C++ or C, which are particular to the
application, its equivalent application in Python can be coded in pure Python.
Moreover, the development of pure Python is a much more comfortable and
quicker process than writing and debugging a C++ or C component.
It is a widespread belief that the only redeeming quality of Tcl lies in its Tk
toolkit. Python adopted a similar interface to Tk for its traditional GUI
component library. In addressing the problems of speed, Tcl 8.0 provides a
bytecode compiler fitted with a ranged data type support system, mad
additional namespaces. Albeit, regardless of these interventions, Tcl is still
very much cumbersome a programming language.
PHP
PHP is gradually taking over as the official language of web development,
displacing Perl in the process. Albeit, more than Perl or PHP, Python has
better readability and can be quickly followed. The one disadvantage Perl
has similar to PHP is the squirrely code. Also, coding programs that exceed
the range of 50 to 100 lines become relatively more difficult as a result of the
Perl and PHP's syntax. Conversely, Python is hardwired to be readable,
down to the very fabric of the language. This readability makes it easier to
extend and maintain programs written in Python. While PHP has begun to get
more usage generally, it remains a programming language meant for the web
regardless, designer to return web-readable information instead of handling
system-level activities. This distinction is better exemplified by the fact that
web servers coded in Python, which understand PHP, but it is impossible to
develop a web server in PHP which understands Python. In conclusion,
unlike Python, PHP is not object-oriented. This characteristic has a
significant implication on the scalability, readability, and ease of
maintenance of both programs.
Ruby
Python is often brought in comparison with Ruby. Both of them are
interpreted high-level programming languages. Their codes are usually
implemented in ways that understanding the details is not a requirement. They
are just taken care of. Both Python and Ruby have their basis in object-
oriented programming. Their method of implementing objects and classes
makes for a more comfortable and better system of maintainability as well as
code reuse. Both Python and Ruby are general-purpose languages and can be
used in carrying out simple tasks like converting texts or more complicated
activities like managing major financial data structures and programming and
controlling robots. The significant distinction between the two languages,
however, lies in their flexibility and readability. Owing to its nature of being
object-oriented, Ruby codes have no errors in being squirrely as in PHP or
Perl. Somewhat, it errs in being quite full and ends up as unreadable. Ruby
tends to assume the intentions of the programmer. This feature begs the
question many Ruby students often ask; "How does it know to do that?" In
Python, the answer is straightforward; it is merely in its syntax. So, aside
from being able to enforce indentation for readability, Python also enforces
the transparency of information by assuming much less. Since it doesn't
assume, Python makes for a smooth variation from the typical way of
carrying out things when required while maintaining that the variation
remains explicit in the code. By doing so, the programmer can do what is
necessary while making sure that the code is sensible to those who read it
afterward. Usually, after coding with Python, programmers find it quite
challenging to switch to other programming languages.
Chapter 2: Benefits of Python Programming and
Why Python is Better for Beginners?

Strengths of Python
1. Simple to understand: Python is quite easy to learn, and it
doesn't have any intricate syntax and principles as followed with
a different language. You are able to find out Python very easily
in the event that you don't have some coding expertise. It is
possible to say it's extremely user-friendly
2. Free to use: Python is free to use and accessible to get from its
own official site. You may download Python by clicking the link
provided here (download Python). The source code of Python
can be obtained for the general public under GPL(general
purpose license), from which you are able to download it,
change it, exploit it, spread it. You're entirely free to do anything
you would like to do using Python.
3. Mobile: portability is your primary strength of Python. User may
run Python apps on several different platforms. Suppose you
wrote an app in windows and you would like to run this app on
Linux or Mac running system, you can readily run your apps on
(windows, mac, Linux, raspberry pi, etc). You're able to state
Python is a platform-independent programming language.
4. Interpreted: Python is a translated language, so it doesn't call
for any sort of compiler to conduct the app. Python transforms its
code to bytecode that gives immediate results. Python is
translated signifies that the code is executed line by line that
makes it simpler to debug.
5. Extensible: this is a really important strength of Python. To
begin with, know the significance of extensible in Python, which
it's developed in a means which lets the inclusion of new
capacities and performance. It will allow you to port Python
with libraries written in different languages. (mostly c or c++,

You might also like