Tagged articles
attributes
24 articles · Page 1 of 1
This article explains PHP 8 attributes as structured, machine‑readable metadata, compares them with PHPDoc and config files, shows how to define, register, and consume attributes via reflection, and provides best‑practice guidelines, repeatable attribute patterns, performance considerations, testing strategies, and when to avoid them.
Best PracticesLaravelPHP
0 likes · 22 min read

Laravel 13 introduces full PHP 8.3 compatibility, a powerful new Attributes system, built‑in AI helpers, and a comprehensive upgrade guide with performance optimizations, code examples, and troubleshooting tips for developers looking to migrate from Laravel 12.
LaravelPHP 8.3Upgrade Guide
0 likes · 9 min read

This article explores modern PHP practices that move error handling from runtime try‑catch blocks to proactive strategies such as static analysis, contract programming, attribute‑based validation, and test‑driven development, showing how to build more reliable and maintainable backend applications.
ContractsPHPTDD
0 likes · 5 min read

This guide explains how to use the php-mcp/server library to create a standards‑compliant Model Context Protocol (MCP) server in PHP 8, covering installation, key features, attribute‑based definitions, configuration, transport options, discovery, and code examples for a simple stdio server.
HTTP SSEMCPModel Context Protocol
0 likes · 15 min read

Explore how Python’s built-in __dict__ attribute stores object attributes, enabling introspection, dynamic attribute manipulation, memoization, JSON serialization, custom descriptors, and debugging, while also learning its limitations with slots and built-in types for performance.
IntrospectionPythonSerialization
0 likes · 8 min read

Livewire v3 introduces the #[Validate] attribute, enabling developers to define validation rules directly on component properties, which reduces boilerplate, improves readability, and offers advanced features such as custom messages, multiple rules, and conditional validation for PHP/Laravel applications.
BackendLaravelLiveWire
0 likes · 5 min read
![Using the #[Validate] Attribute in Livewire v3 for Simplified Form Validation](https://wsrv.nl/?url=https%3A%2F%2Fmmbiz.qpic.cn%2Fmmbiz_jpg%2Fl1DDNxlXXJcbqu5UM1tMTMibGTL5B66PGB4WgPIIwO42ia6EUfwEoCCXM2lunTgXTCfvwwzzEficxe4gX3z22kgQg%2F0%3Fwx_fmt%3Djpeg)
The article provides a comprehensive overview of PHP 8’s major enhancements—including an expanded type system, match expressions, the null‑safe operator, attributes, a JIT compiler, and string/array improvements—illustrated with code examples and notes on upcoming PHP 8.4 releases.
JIT compilerNullsafe OperatorPHP 8
0 likes · 8 min read

This article explains what a Pandas Series is, describes its parameters, shows how to create empty or populated series from arrays, dictionaries, or scalar values, demonstrates element access, lists key Series attributes, and introduces useful Series functions with code examples.
NumPyPandasattributes
0 likes · 11 min read

This article explains PHP 8's new Attributes feature, describing what attributes are, how to attach them to classes and methods with examples like @Table and @Route, and demonstrates retrieving attribute values via reflection to enable flexible metadata management.
Reflectionattributesmetadata
0 likes · 4 min read

This article explains PHP 8’s new Attributes feature, describing what attributes are, how to attach custom attributes such as @Table and @Route to classes and methods, and demonstrates retrieving attribute values via reflection, providing clear code examples for backend developers.
BackendPHPReflection
0 likes · 5 min read

This article explains PHP 8’s new Attributes feature, showing how to define attribute classes, apply them to classes, methods, and properties, and retrieve their values using the Reflection API, with complete code examples.
PHPReflectionattributes
0 likes · 4 min read

This article introduces PHP 8's major enhancements—including the JIT compiler, union types, named arguments, attributes, and match expressions—explaining their benefits and providing concrete code examples that demonstrate improved performance, flexibility, readability, and maintainability for backend developers.
BackendJITattributes
0 likes · 6 min read

This article explains essential GNU C extensions used in the Linux kernel—including typeof, zero‑length (flexible) arrays, case range labels, designated initializers, variadic macros, function and variable attributes, built‑in functions, asmlinkage, and UL suffixes—showing why they matter and how to apply them safely.
C extensionsGNU CLinux kernel
0 likes · 13 min read

This article explains how Python stores object attributes in layered __dict__ structures, distinguishes class and instance attributes, demonstrates attribute lookup, shows how to modify attributes directly or via property, and introduces dynamic attribute creation using __getattr__ and related special methods.
PropertyPythonattributes
0 likes · 8 min read

This article explains Python's __dict__ attribute storage, class and instance attributes, demonstrates how to inspect and modify them, introduces properties using the built‑in property() function, and shows dynamic attribute generation with __getattr__, providing clear code examples and explanations.
Propertyattributesdict
0 likes · 9 min read

The article explains the PHP PDO::setAttribute method, describing its syntax, purpose of setting database handle attributes, available generic attributes, return values, and notes that some drivers may support additional specific attributes for.
BackendPDOPHP
0 likes · 1 min read

The article explains the PDO::getAttribute method, lists all PDO::ATTR_* constants that can be queried, describes its return behavior, and provides a PHP example demonstrating how to retrieve multiple connection attributes for debugging.
BackendPDOPHP
0 likes · 2 min read

This article explains how to download and configure PHP 8, troubleshoot common installation issues, and provides detailed examples of PHP 8's major new features—including union types, the match expression, null‑safe operator, constructor property promotion, attributes, and named arguments—complete with code snippets.
Nullsafe Operatorattributesmatch expression
0 likes · 11 min read


21CTOJul 25, 2020 · Backend Development
This article reviews PHP 8’s most impactful new features—including first‑class attributes, constructor property promotion, match expressions, union types, and named arguments—showing code examples and explaining how they modernize PHP development.
attributesbackend developmentmatch expression
0 likes · 5 min read

The article introduces PHP 8’s major release scheduled for November 26, highlighting its most impactful additions such as Just‑In‑Time compilation, Union Types, Attributes, a new static return type, and WeakMap support, while providing code examples and migration resources.
WeakMapattributesbackend-development
0 likes · 7 min read

This guide explains HTML form elements, common attributes like readonly, disabled, and required, and demonstrates how to build functional forms with code snippets, including input types, labels, and form association techniques for effective data submission.
Code ExamplesFormsHTML
0 likes · 5 min read

This article explains the purpose, syntax, parameters, and return value of Python's property() function, demonstrates how to define getter, setter, and deleter methods both directly and via decorators, and provides additional examples and related built‑in attribute functions.
OOPPropertyPython
0 likes · 5 min read

The article analyzes the evolution of e‑commerce product modeling, introduces categories, brands, and attribute‑based filtering, distinguishes products from SKUs, and proposes a backend‑centric data model that supports flexible search, display, and integration with other business services.
Database Designattributese-commerce
0 likes · 5 min read

This article explains how to design a flexible product model for e‑commerce by evolving from simple category‑article structures to a richer schema that includes brands, attributes, specifications, and separate SKU entities, enabling effective filtering, search, and integration with other services.
Data Modelingattributese-commerce
0 likes · 6 min read
