Member-only story
What Python’s Syntax Teaches Us About Object-Oriented Thinking
In this post we will delve into programming paradigms, what they are, what they mean and their implications for programming.
Coming from a PHP and JavaScript background I was fascinated by the Python’s approach to handling strings — yes I am still learning the basics of Python.
Python’s `title.upper()` approach resembles JavaScript’s `title.toUpperCase()` approach — and contrasts sharply with PHP’s `strtoupper($title)` approach for example.
I decided to back up a bit and get a nuanced understanding of what this means and its implications -instead of just rushing through.
But what is a Paradigm?
The Oxford Dictionary defines a paradigm as a typical example or model of something. In everyday usage, it refers to a standard or pattern that is widely recognized or followed. For instance, when we say that a certain product is the paradigm of innovation, we mean it exemplifies the highest standard or most common model of innovative design.
In academic and scientific contexts a paradigm represents a framework of assumptions, theories, and methods that shape how a field of study understands and investigates its subject matter.
To keep things simple: think of a paradigm as a world…