Tag: oop
🤖 AI Guestbook — #oop educational data only
|
|
Last 30 days
Agents 114
Amazonbot 20Perplexity 9ChatGPT 4Ahrefs 4Scrapy 3Google 1
Perplexity 2Amazonbot 2ChatGPT 1
Amazonbot 995Perplexity 641Ahrefs 441ChatGPT 376Google 316Unknown AI 259SEMrush 210Claude 152Scrapy 122Meta AI 110Bing 103Majestic 53Qwen 4Sogou 3
Most referenced — #oop
Interfaces 7Value Object 5Domain-Driven Design (DDD) 4Law of Demeter 4Single Responsibility Principle 4Object Calisthenics 3Observer Pattern 3Dependency Injection 3
How they use it
crawler 3.3k
crawler_json 385
rag 1
pre-tracking 50
Tag total3.8k pings
Terms pinged113 / 113
Distinct agents13
Parallel Inheritance Hierarchies
Every time you create a subclass of one class, you must also create a corresponding subclass of another — a sign of entangled designs.
3mo ago
quality intermediate
PHP Namespaces
PHP 5.3+
Logical groupings that prevent class name collisions and form the basis of PSR-4 autoloading.
3mo ago
php beginner
Primitive Obsession
PHP 5.0+
1
Using raw strings, ints, and arrays to represent domain concepts instead of small dedicated value objects.
3mo ago
quality intermediate
Property Hooks (PHP 8.4)
PHP 8.4+
PHP 8.4 allows get and set hooks directly on class properties — replacing boilerplate getter/setter methods with inline logic on the property declaration.
3mo ago
php intermediate
Prototypal Inheritance
ES5
JavaScript objects inherit from other objects via a prototype chain — class syntax is syntactic sugar over this mechanism.
3mo ago
javascript intermediate
Proxy Pattern
PHP 5.0+
Provides a surrogate object that controls access to another object, adding indirection for lazy loading, caching, logging, or access control.
3mo ago
quality intermediate
Python Dataclasses & Pydantic
Python 3.7+
1
@dataclass auto-generates __init__, __repr__, __eq__; Pydantic adds runtime validation and serialisation — Python's equivalent of typed DTOs.
3mo ago
python intermediate
Readonly Classes (PHP 8.2)
PHP 8.2+
Marking an entire class readonly automatically makes all its declared properties readonly, simplifying immutable value object creation.
3mo ago
php intermediate
Readonly Classes (PHP 8.2)
PHP 8.2+
Marking an entire class readonly makes all its properties implicitly readonly — ideal for immutable value objects and DTOs with minimal boilerplate.
3mo ago
php advanced
Readonly Properties (PHP 8.1)
PHP 8.1+
Properties declared with readonly can only be initialised once and then never modified, enforcing immutability at the language level.
3mo ago
php intermediate
Reflection API
PHP 5.0+
PHP's built-in introspection system for examining classes, methods, properties, and parameters at runtime.
3mo ago
php advanced
Refused Bequest
A subclass that inherits methods it doesn't need or want, signalling a misused inheritance relationship.
3mo ago
quality intermediate
Singleton (Anti-Pattern)
A class that restricts instantiation to a single instance — widely considered an anti-pattern due to hidden global state and testability issues.
3mo ago
general intermediate
Specification Pattern
PHP 5.0+
Encapsulating business rules as composable objects that evaluate whether a candidate satisfies them — separating rules from entity code.
3mo ago
architecture intermediate
State Pattern
PHP 5.0+
Encapsulates the varying behaviour of an object based on its internal state into separate state objects, eliminating state-based conditionals.
3mo ago
quality intermediate
Static Methods & Properties
PHP 5.0+
Class-level methods and properties that exist independently of any instance — useful for utilities and factories, but harmful when overused.
3mo ago
php intermediate
Strategy Pattern
PHP 5.0+
Defines a family of interchangeable algorithms behind a common interface, allowing the algorithm to be selected at runtime.
3mo ago
general intermediate
Switch Statement Smell
Repeated switch/if-elseif chains on the same type indicator signal a missing polymorphic design.
3mo ago
quality intermediate
Tell Don't Ask Principle
PHP 5.0+
Tell objects what to do rather than asking for their state and deciding externally — keep behaviour with the data it operates on.
3mo ago
quality intermediate
Template Method Pattern
Defines the skeleton of an algorithm in a base class, deferring specific steps to subclasses without changing the algorithm's structure.
3mo ago
quality intermediate