Python Tools for Scientists by Lee Vaughan

Python Tools for Scientists by Lee Vaughan

Author:Lee Vaughan
Language: eng
Format: epub
Publisher: No Starch Press
Published: 2023-04-15T00:00:00+00:00


When to Use OOP

OOP is easier to appreciate when you’re writing large, complex programs because it helps you to structure your code into smaller parts that are easier to understand. It also reduces code duplication and makes code easier to maintain, update, and reuse. As a result, most commercial software is now built using OOP.

Because Python is an object-oriented programming language, you’ve already been using objects and methods defined by other people. But unlike languages such as Java, Python doesn’t force you to use OOP for your own programs. It provides ways to encapsulate and separate abstraction layers using other approaches such as procedural or functional programming.

Having this choice is important. If you implement OOP in small programs, most of them will feel overengineered. To quote computer scientist Joe Armstrong, “The problem with object-oriented languages is they’ve got all this implicit environment that they carry around with them. You wanted a banana, but what you got was a gorilla holding the banana and the entire jungle!”

As a scientist or engineer, you can get a lot done without OOP, but that doesn’t mean you should ignore it. OOP makes it easy to simulate many objects at a time, such as a flock of birds or a cluster of galaxies. It’s also important when things that are manipulated, like a GUI button or window, must persist for a long time in the computer’s memory. And because most of the scientific packages you’ll encounter are built using OOP, you’ll want more than a passing familiarity with the paradigm.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Developing Robust Date and Time Oriented Applications in Oracle Cloud by Michal Kvet(2735)
Serverless ETL and Analytics with AWS Glue by Vishal Pathak Subramanya Vajiraya Noritaka Sekiyama Tomohiro Tanaka Albert Quiroga Ishan Gaur(2498)
Practical Guide to Azure Cognitive Services by Chris Seferlis & Christopher Nellis & Andy Roberts(1815)
Unity Artificial Intelligence Programming - Fifth Edition by Dr. Davide Aversa(1572)
The AI Product Manager's Handbook by Irene Bratsis(1549)
Open Source Projects - Beyond Code by John Mertic(1544)
Graph Data Modeling in Python by Gary Hutson and Matt Jackson(1519)
Cloud Auditing Best Practices by Shinesa Cambric & Michael Ratemo(1151)
Aligning Security Operations with the MITRE ATT&CK Framework by Rebecca Blair(1136)
Graph Data Processing with Cypher by Ravindranatha Anthapu(1038)
Applied Machine Learning and High-Performance Computing on AWS by Mani Khanuja | Farooq Sabir | Shreyas Subramanian | Trenton Potgieter(1034)
Data Literacy in Practice by Angelika Klidas Kevin Hanegan(1025)
Fuzzing Against the Machine: Automate vulnerability research with emulated IoT devices on QEMU by Antonio Nappa Eduardo Blazquez(878)
Implementing Multifactor Authentication: Protect your applications from cyberattacks with the help of MFA by Marco Fanti(865)
The SQL Workshop by Frank Solomon(771)
The AI Product Manager's Handbook: Develop a product that takes advantage of machine learning to solve AI problems by Irene Bratsis(757)
Data Literacy in Practice - A complete guide to data literacy and making smarter decisions with data through intelligent actions (2022) by Packt(755)
Graph Data Processing with Cypher by Anthapu Ravindranatha;(705)
Serverless Machine Learning with Amazon Redshift ML: Create, train, and deploy machine learning models using familiar SQL commands by Debu Panda Phil Bates Bhanu Pittampally Sumeet Joshi(644)
Network Automation with Go by Nicolas Leiva & Michael Kashin(538)