Tagged articles
32 articles
Page 1 of 1
Lisa Notes
Lisa Notes
Mar 26, 2026 · Fundamentals

Java Classes and Objects: A Beginner’s Guide from Scratch

This article explains the fundamentals of object‑oriented programming in Java, covering objects, classes, inheritance, encapsulation, polymorphism, and packages with concrete examples that illustrate how real‑world concepts map to Java code and how objects interact through message passing.

EncapsulationInheritanceObjects
0 likes · 12 min read
Java Classes and Objects: A Beginner’s Guide from Scratch
Selected Java Interview Questions
Selected Java Interview Questions
Mar 10, 2026 · Backend Development

Why Over‑Encapsulation Breaks Your Code and How to Fix It

The article explains how excessive, fake, or chaotic encapsulation creates hidden risks, reduces maintainability, and hampers extensibility, then provides concrete refactoring examples and practical principles to achieve clean, purposeful encapsulation in backend code.

Encapsulationbest practicescode maintainability
0 likes · 11 min read
Why Over‑Encapsulation Breaks Your Code and How to Fix It
SpringMeng
SpringMeng
Jan 29, 2026 · Fundamentals

Stop Over‑Encapsulating: How Bad Encapsulation Leads to Hidden Bugs

The article analyzes three harmful forms of improper encapsulation—over‑encapsulation, fake encapsulation, and chaotic encapsulation—illustrates each with Java code examples, explains the resulting development inefficiencies, extensibility issues, and debugging difficulties, and offers concrete principles to avoid these pitfalls.

Encapsulationcode qualityjava
0 likes · 12 min read
Stop Over‑Encapsulating: How Bad Encapsulation Leads to Hidden Bugs
java1234
java1234
Jan 29, 2026 · Fundamentals

When Over‑Encapsulation Breaks Your Code: Real‑World Pitfalls and Fixes

The article analyzes three common forms of bad encapsulation in Java—over‑encapsulation, false encapsulation, and chaotic encapsulation—illustrates their hidden risks with concrete code examples, and offers practical principles to restore clear responsibilities, minimal interfaces, and flexible design.

EncapsulationObject-Orientedcode quality
0 likes · 13 min read
When Over‑Encapsulation Breaks Your Code: Real‑World Pitfalls and Fixes
Mike Chen's Internet Architecture
Mike Chen's Internet Architecture
Dec 27, 2025 · Backend Development

Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code

The article explains how Java inner classes can be used to encapsulate related functionality, access private members of the outer class, implement interfaces for callbacks, and hide implementation details, providing clear code examples such as Car/Engine, Counter/Incrementer, Button listeners, and a Calculator with an Operation inner class.

CallbacksEncapsulationInner Classes
0 likes · 4 min read
Mastering Java Inner Classes: Organize, Encapsulate, and Simplify Your Code
php Courses
php Courses
Aug 21, 2025 · Fundamentals

When and How to Use C++ Friend Functions and Classes Effectively

Friend functions and friend classes in C++ provide controlled access to private and protected members, useful for operator overloading, tightly coupled classes, and global utilities, but must be used judiciously due to their asymmetry, non‑transitivity, and potential to break encapsulation; this guide explains concepts, syntax, examples, and best practices.

Encapsulationaccess controlc++
0 likes · 9 min read
When and How to Use C++ Friend Functions and Classes Effectively
php Courses
php Courses
Aug 14, 2025 · Fundamentals

Master C++ Access Modifiers: public, private, protected Explained with Real Code

This article thoroughly explains C++'s three access control modifiers—public, private, and protected—covering their definitions, differences, practical usage in classes, inheritance effects, friend functions, and best practices for encapsulation and maintainable OOP design.

Access ModifiersEncapsulationInheritance
0 likes · 6 min read
Master C++ Access Modifiers: public, private, protected Explained with Real Code
Test Development Learning Exchange
Test Development Learning Exchange
Mar 5, 2025 · Fundamentals

Understanding Python Classes: Definitions, Attributes, Methods, Inheritance, and Advanced Features

This article provides a comprehensive guide to Python's class mechanism, covering basic class definition and instantiation, attributes, methods, constructors, special methods like __str__, inheritance, polymorphism, class and static methods, private members, and property decorators, each illustrated with clear code examples and practical usage scenarios.

Encapsulationclassesdecorators
0 likes · 9 min read
Understanding Python Classes: Definitions, Attributes, Methods, Inheritance, and Advanced Features
php Courses
php Courses
Feb 26, 2025 · Backend Development

Object-Oriented Programming in PHP: Core Concepts and Advanced Features

This article introduces PHP's object-oriented programming paradigm, covering fundamental concepts such as classes, objects, properties, methods, the four OOP principles, advanced features like constructors, destructors, static members, magic methods, and best practices for building modular and maintainable backend applications.

EncapsulationInheritanceOOP
0 likes · 8 min read
Object-Oriented Programming in PHP: Core Concepts and Advanced Features
Raymond Ops
Raymond Ops
Feb 11, 2025 · Fundamentals

Understanding TCP/IP Architecture, Encapsulation, ARP & DNS Basics

This article explains the TCP/IP four-layer architecture, detailing each layer’s role, the encapsulation and decapsulation processes, and provides in‑depth coverage of ARP and DNS protocols, including packet structures, Linux commands, and practical packet‑capture examples using tcpdump.

ARPDNSEncapsulation
0 likes · 20 min read
Understanding TCP/IP Architecture, Encapsulation, ARP & DNS Basics
Test Development Learning Exchange
Test Development Learning Exchange
Sep 30, 2024 · Fundamentals

Understanding Data Encapsulation and Private Attributes in Object‑Oriented Programming (Python Examples)

This article explains the concept of data encapsulation and the role of private attributes in object‑oriented programming, illustrating their benefits and usage through multiple Python code examples covering simple classes, private methods, inheritance, property decorators, and descriptors.

EncapsulationOOPPython
0 likes · 8 min read
Understanding Data Encapsulation and Private Attributes in Object‑Oriented Programming (Python Examples)
DaTaobao Tech
DaTaobao Tech
Sep 4, 2024 · Frontend Development

Best Practices for Component Design and Encapsulation in React

The article outlines React component design best practices by distinguishing generic UI components from business‑specific ones, separating UI and domain state, extracting reusable base components, applying patterns such as state lifting, context, memoization, and type‑safe props, and providing a checklist for clean encapsulation.

Component DesignDDDEncapsulation
0 likes · 10 min read
Best Practices for Component Design and Encapsulation in React
php Courses
php Courses
Dec 13, 2023 · Fundamentals

Understanding Classes, Objects, and OOP Principles in PHP

This article introduces the core concepts of object‑oriented programming—classes, objects, abstraction, encapsulation, inheritance, and polymorphism—using clear explanations and practical PHP code examples that demonstrate class definitions, object instantiation, method calls, and inheritance hierarchies.

EncapsulationInheritanceOOP
0 likes · 9 min read
Understanding Classes, Objects, and OOP Principles in PHP
php Courses
php Courses
Sep 28, 2023 · Backend Development

Understanding Encapsulation in PHP: Benefits, Code Examples, and Best Practices

Encapsulation, a core OOP principle, is explored in PHP with explanations of its benefits for data protection and modular code, followed by practical class examples—including a Person class and a BankAccount class—plus best‑practice recommendations for using access modifiers effectively.

Access ModifiersEncapsulationOOP
0 likes · 5 min read
Understanding Encapsulation in PHP: Benefits, Code Examples, and Best Practices
Programmer DD
Programmer DD
Dec 26, 2022 · Fundamentals

20 Essential Software Architecture Principles Every Engineer Should Master

This article presents a concise overview of twenty core software architecture principles—from Dependency Inversion and Separation of Concerns to KISS and Incremental Development—explaining each concept, its purpose, and providing Java code examples to illustrate practical application.

EncapsulationSOLIDSoftware Architecture
0 likes · 12 min read
20 Essential Software Architecture Principles Every Engineer Should Master
MaGe Linux Operations
MaGe Linux Operations
Dec 14, 2022 · Fundamentals

Master Python’s @property: Turn Methods into Read‑Only Attributes

Learn how Python’s @property decorator transforms methods into read‑only attributes, enabling attribute‑style access, preventing unintended modifications, and illustrating proper usage with code examples that show correct and incorrect calls, common pitfalls, and best practices for encapsulating data.

DecoratorEncapsulationProperty
0 likes · 4 min read
Master Python’s @property: Turn Methods into Read‑Only Attributes
macrozheng
macrozheng
Feb 21, 2022 · Fundamentals

When Inheritance Breaks Your Code: Why Composition Often Wins

This article critiques the over‑idealization of object‑oriented programming, explaining how inheritance can create tight coupling and hidden bugs, why encapsulation may leak state, the limits of polymorphism, and how modern stateless service architectures favor composition and functional approaches.

EncapsulationInheritanceOOP
0 likes · 13 min read
When Inheritance Breaks Your Code: Why Composition Often Wins
Python Crawling & Data Mining
Python Crawling & Data Mining
May 18, 2021 · Fundamentals

Master Python Classes: From Basics to Advanced OOP Techniques

An in‑depth Python tutorial walks through the fundamentals of classes, covering creation, instance and class methods, protected and private members, core OOP features such as encapsulation, inheritance and polymorphism, as well as dynamic attribute handling with __slots__ and property decorators, illustrated with clear examples.

EncapsulationInheritanceOOP
0 likes · 8 min read
Master Python Classes: From Basics to Advanced OOP Techniques
21CTO
21CTO
Dec 16, 2020 · Fundamentals

How to Implement Object‑Oriented Programming in C: From Encapsulation to Polymorphism

This article explains why and how to apply object‑oriented programming concepts such as encapsulation, inheritance, and polymorphism using plain C, provides the necessary prerequisites, and walks through complete code examples—including virtual tables—to demonstrate OOP techniques without relying on C++.

C ProgrammingEncapsulationInheritance
0 likes · 17 min read
How to Implement Object‑Oriented Programming in C: From Encapsulation to Polymorphism
Efficient Ops
Efficient Ops
Jul 15, 2020 · Fundamentals

How Does a Web Request Travel? Unpacking the Full HTTP/TCP/IP Journey

This article walks through the complete lifecycle of a web request, from entering a URL and DNS resolution, through HTTP and TCP processing, IP routing, ARP resolution, and Ethernet framing, explaining each protocol layer's role in encapsulation and de‑encapsulation.

EncapsulationHTTPNetworking
0 likes · 26 min read
How Does a Web Request Travel? Unpacking the Full HTTP/TCP/IP Journey
UC Tech Team
UC Tech Team
Oct 9, 2018 · Fundamentals

Goodbye Object‑Oriented Programming: The Collapse of Inheritance, Encapsulation, and Polymorphism

The article critiques the core pillars of object‑oriented programming—inheritance, encapsulation, and polymorphism—illustrating their practical pitfalls with real‑world analogies and code examples, and proposes containment and delegation as safer alternatives before urging a shift toward functional programming.

EncapsulationInheritancePolymorphism
0 likes · 11 min read
Goodbye Object‑Oriented Programming: The Collapse of Inheritance, Encapsulation, and Polymorphism
Java Captain
Java Captain
Apr 13, 2018 · Fundamentals

Understanding Encapsulation and Interfaces in Java

This article explains Java encapsulation and interfaces, illustrating how access modifiers like public and private control object members, improve usability and safety, and provides a complete code example with a Human class, usage guidelines, and a practical exercise.

Access ModifiersEncapsulationOOP
0 likes · 7 min read
Understanding Encapsulation and Interfaces in Java
Java Captain
Java Captain
Jan 22, 2018 · Fundamentals

Understanding Encapsulation in Java with Example Classes

This article explains the concept of encapsulation in Java, describing its purpose of hiding internal details, outlining four key benefits, and illustrating its use through Husband and Wife class examples, including getter/setter methods, validation, and how encapsulation simplifies future code modifications.

EncapsulationGetterSetterOOP
0 likes · 9 min read
Understanding Encapsulation in Java with Example Classes
21CTO
21CTO
Jan 15, 2018 · Fundamentals

Master Python Encapsulation & Inheritance: Public vs Private Variables Explained

This article explains Python's object-oriented principles, illustrating how encapsulation hides data through public and private instance variables, demonstrates getter/setter methods, and shows inheritance by extending classes, all accompanied by clear code examples.

EncapsulationInheritanceOOP
0 likes · 9 min read
Master Python Encapsulation & Inheritance: Public vs Private Variables Explained
Qunar Tech Salon
Qunar Tech Salon
Mar 7, 2015 · Fundamentals

Object‑Oriented Design Principles and SOLID for Java Developers

This article introduces Java developers to essential object‑oriented design principles—including DRY, encapsulation, Open/Closed, SRP, DIP, composition over inheritance, LSP, and Interface Segregation—explaining their benefits, proper usage, and common pitfalls to help write high‑cohesion, low‑coupling code.

EncapsulationOOPSOLID
0 likes · 10 min read
Object‑Oriented Design Principles and SOLID for Java Developers