• Skip to primary navigation
  • Skip to main content
bucket-of-data-transparent

bucketofdata.com

Pouring Data into Actionable Insights

  • Show Search
Hide Search

Operators Are Overloadable Functions That Enable Objects to Behave Like Built-in Types

Silver Spade · December 3, 2024 · Leave a Comment

In the context of real-life, objects come with attributes. Some of these attributes can be changed through abilities.

A car is an object that comes with the capacity to carry gasoline. The amount of gasoline in a car is an attribute because the car comes with a gas tank. The ability to fill the tank changes the amount of gas.

In Python and the abstract concept of object-oriented programming, objects are types of code structures that have attributes, and methods to act on those attributes. Some of these built-in methods include the addition operator, +.

[Read more…] about Operators Are Overloadable Functions That Enable Objects to Behave Like Built-in Types

Endgames are Essential for Chess Development

Silver Spade · November 29, 2024 · Leave a Comment

A player who is not well equipped with basic endgame knowledge is liable to lose the fruit of even a well-played game.

Pal Benko

And I have experienced this myself in my most recent match against a dedicated master.

I defended the middlegame against his passed pawn and came up a pawn myself! However, I didn’t see the final move when he won the base of my pawn chain.

[Read more…] about Endgames are Essential for Chess Development

Classes Are Namespaces Containing Variables and Methods

Silver Spade · November 25, 2024 · Leave a Comment

A namespace is a strange word that you only hear in esoteric social circles such as those created by computer science professors, developers and anyone hiding away from the real world to generate the next helpful software.

When I first heard that word, I was in my C++ college class I had to take for my mathematics degree. It may as well had been in French.

[Read more…] about Classes Are Namespaces Containing Variables and Methods

Objects in Python Have Types, Identities and Functionality

Silver Spade · November 18, 2024 · Leave a Comment

In the context of real, normal daily life, an object is a material thing that can be seen and touched. You use your eyes to process information about the object (known as perception) and hands to interact with it.

Python, like the real world, also works with objects. An object in computer science is a data structure that can be perceived and interacted with. We define a blueprint for it known as a class. In this blueprint we declare its properties and abilities, or functionality, so it can be perceived, we can be aware of it and know it exists. We can operate on (or interact with) these declarations using methods.

[Read more…] about Objects in Python Have Types, Identities and Functionality

bucketofdata.com

Copyright © 2025 · Monochrome Pro on Genesis Framework · WordPress