• Complain

Deepak Sarda - Python for the Busy Java Developer: The Language, Syntax, and Ecosystem

Here you can read online Deepak Sarda - Python for the Busy Java Developer: The Language, Syntax, and Ecosystem full text of the book (entire story) in english for free. Download pdf and epub, get meaning, cover and reviews about this ebook. year: 2018, publisher: Apress, genre: Computer. Description of the work, (preface) as well as reviews are available. Best literature library LitArk.com created for fans of good reading and offers a wide selection of genres:

Romance novel Science fiction Adventure Detective Science History Home and family Prose Art Politics Computer Non-fiction Religion Business Children Humor

Choose a favorite category and find really read worthwhile books. Enjoy immersion in the world of imagination, feel the emotions of the characters or learn something new for yourself, make an fascinating discovery.

Deepak Sarda Python for the Busy Java Developer: The Language, Syntax, and Ecosystem
  • Book:
    Python for the Busy Java Developer: The Language, Syntax, and Ecosystem
  • Author:
  • Publisher:
    Apress
  • Genre:
  • Year:
    2018
  • Rating:
    5 / 5
  • Favourites:
    Add to favourites
  • Your mark:
    • 100
    • 1
    • 2
    • 3
    • 4
    • 5

Python for the Busy Java Developer: The Language, Syntax, and Ecosystem: summary, description and annotation

We offer to read an annotation, description, summary or preface (depends on what the author of the book "Python for the Busy Java Developer: The Language, Syntax, and Ecosystem" wrote himself). If you haven't found the necessary information about the book — write in the comments, we will try to find it.

Are you a seasoned Java developer who wishes to learn Python? Perhaps youve just joined a project where a chunk of system integration code is written in Python. Or maybe you need to implement a report generation module in the next sprint and your colleague mentioned that Python would be the perfect tool for the job. In any case, if you are in a situation where you have to pick up the Python programming language overnight, this book is just for you!

Hit the ground running and gain a fast-paced overview of what the Python language is all about, the syntax that it uses and the ecosystem of libraries and tools that surround the language. This concise book doesnt spend time on details from an introductory programming course or document every single Python feature. Instead, Python for the Busy Java Developer is designed for experienced Java developers to obtain sufficient familiarity with the language and dive into coding, quickly.

What Youll Learn

  • Discover the fundamentals of the core Python language and how they compare to Java

  • Understand Python syntax and the differences between Python 2.x and 3.x

  • Explore the Python ecosystem, its standard libraries, and how to implement them

Who This Book Is For

Working programmers who are comfortable with Java or another object-oriented programming language such as C#

Deepak Sarda: author's other books


Who wrote Python for the Busy Java Developer: The Language, Syntax, and Ecosystem? Find out the surname, the name of the author of the book and a list of all author's works by series.

Python for the Busy Java Developer: The Language, Syntax, and Ecosystem — read online for free the complete book (whole text) full work

Below is the text of the book, divided by pages. System saving the place of the last page read, allows you to conveniently read the book "Python for the Busy Java Developer: The Language, Syntax, and Ecosystem" online for free, without having to search again every time where you left off. Put a bookmark, and you can go to the page where you finished reading at any time.

Light

Font size:

Reset

Interval:

Bookmark:

Make
Deepak Sarda 2017
Deepak Sarda Python for the Busy Java Developer
1. The Language
Deepak Sarda 1
(1)
Singapore, Singapore
Lets start our Python journey by first gaining an understanding of what Python has to offer thats different from Java. Ill then help you get setup with Python before we dive into the languages syntax in the next chapter.
What Is Python?
Python is an open source, general-purpose programming language that is dynamic, strongly typed, object-oriented, functional, memory-managed, and fun to use. Those are a lot of adjectives for one sentence! Lets unpack them one at a time.
Python is distributed under an open source , BSD-style license called the Python Software Foundation License Agreement . It is a very permissive license that allows great flexibility in how Python can be used. Pythons development is done in the open by a large and diverse community of volunteers.
Python is general purpose in that you can use it to build a variety of applications running the gamut from simple scripts and command-line tools to desktop and web applications, network servers, scientific applications, and more.
We know that Java is a statically typed language; that is, the types are checked and enforced at compile time. In contrast, Python is dynamic , which means that the types are checked only at runtime. But Python is also strongly typed , just like Java. You can only execute operations that are supported by the target type.
Another way to think about this is that in Java, both variables and objects have types associated with them; whereas in Python, only objects have types, not the variables that they are bound to. In Java, when we declare
MyType obj = new MyType()
The obj variable is declared of type MyType and then the newly instantiated object of type MyType is assigned to it. In contrast, in Python, the same declaration would read
obj = MyType()
Ignoring the missing new keyword (which Python doesnt have), obj is simply a name that is bound to the object on the right, which happens to be of type MyType . We can even reassign obj in the very next line obj = MyOtherType() and it wouldnt be a problem. In Java, this reassignment would fail to compile while in Python, the program will run and will only fail at runtime if we try to execute an operation via obj that is incompatible with the type assigned to it at that point in time.
Python is object oriented and supports all the standard OOP features that Java has like creation of types using classes, encapsulation of state, inheritance, polymorphism, and so forth. It even goes beyond Java and supports features such as multiple inheritance, operator overloading, meta-programming, and so forth.
Python also supports a rich set of functional programming features and idioms. In Python, functions are first-class objects that can be created, manipulated, and passed around just like any other object. While its emphasis on functional programming might not be as focused as say Clojure, Python certainly offers much more to the functional programmer than Java.
Another similarity between the languages is in terms of manual memory management , in that there is none. The language runtime takes care of correctly allocating and freeing up memory, saving the programmer from the drudgeryand mistakesof manually managing memory. Having said that, the JVM garbage collectors are much, much better performing than the Python GC. This can become a concern depending on the type of application you are building.
Finally, and above all, Python is fun and a joy to use. This is a strong claim to make but I hope that by the time you are done reading this book, youll agree with me and the millions of other Python programmers out there!
History
Python is the brainchild of a Dutch programmer named Guido van Rossum. He started working on it when he got frustrated with the ABC language in the late 1980s and after some years of private development, he released the first version of Python in 1994. This actually makes Python older than Java, the first version of which was released in 1996, a full two years later! A comparison of the two languages is shown in Table .
Table 1-1
Historical comparison of Java and Python
Java
Python
James Gosling
Guido van Rossum
From C++/Oak
From ABC
1.0 - Jan 1996
1.0 - Jan 1994
9.0 - Sep 2017
3.6 - Dec 2016
JSR
PEP
Commercial
Community
Note
Ill use this tabular format to compare and contrast Python and Java whenever it makes sense.
Since then, the language has continued to refine and evolve, with Python 2.0 being released in 2000. As of this writing, the 2.x versions are the most widely deployed.
In version 3.0, the language designers decided to break backward compatibility in order to clean up some of the accumulated language warts. Although this has been good from a language perspective, it has been a significant hindrance to those upgrading from 2.x to 3.x. Imagine if Sun had decided to introduce generics in Java 5 without type erasure, thus breaking backward compatibility. The Java language wouldve been much nicer today but the transition period wouldve been difficult, to say the least. That is the kind of transition the Python user community is going through right now.
Note
Since 2.x is still the most widely used version of Python, this book will cover Python 2.x features and syntax, calling out any differences with 3.x from time to time.
From the outset, Pythons development has been done in the open with a community of volunteers contributing to the language and the core libraries. Any language changes are proposed and discussed through a process called PEP ( Python Enhancement Proposals ) , with Guido having final say in deciding the outcome. For his stewardship and continuous involvement in the development of Python, Guido is affectionately called the Benevolent Dictator For Life. He also periodically writes a Python History blog chronicling the evolution of various language features.
Installation
This book is full of example code, and the best way to follow along is to actually try these examples by yourself. To do this, youll obviously need to install Python on your system. But an easier way is to check if you already have access to a system with Python installed! Almost all systems running Linux should have Python preinstalled. Recent versions of Mac OS X also come with Python preinstalled. Just open a command shell on either of these two systems and type in python . If you get a Python shell prompt, you are all set! The version of Python installed may be a bit outdated but it should be sufficient to get started.
Tip
As a lightweight alternative, you can try an online Python environment, such as http://repl.it/ . The examples in this book are all simple enough to work there.
Tools
Python source code is organized in files with a .py extension. The python executable interprets the source code and translates it into a Python languagespecific bytecode that is stored in .pyc files . This bytecode is then executed by the Python virtual machine, which is also invoked by the same python executable. Although this sounds like two steps, in reality, it is just one step with the bytecode generation happening on the fly.
Next page
Light

Font size:

Reset

Interval:

Bookmark:

Make

Similar books «Python for the Busy Java Developer: The Language, Syntax, and Ecosystem»

Look at similar books to Python for the Busy Java Developer: The Language, Syntax, and Ecosystem. We have selected literature similar in name and meaning in the hope of providing readers with more options to find new, interesting, not yet read works.


Reviews about «Python for the Busy Java Developer: The Language, Syntax, and Ecosystem»

Discussion, reviews of the book Python for the Busy Java Developer: The Language, Syntax, and Ecosystem and just readers' own opinions. Leave your comments, write what you think about the work, its meaning or the main characters. Specify what exactly you liked and what you didn't like, and why you think so.