Tag

ReadOnly

0 views collected around this technical thread.

php中文网 Courses
php中文网 Courses
Dec 25, 2024 · Backend Development

Key New Features in PHP 8.4

PHP 8.4 brings a collection of developer‑friendly enhancements—including readonly independent properties, string‑key array unpacking, JIT performance gains, typed class constants, improved error messages, an upgraded type system, and stronger Fiber support—aimed at making code cleaner, faster and more maintainable.

PHPReadOnlyasync
0 likes · 6 min read
Key New Features in PHP 8.4
Python Programming Learning Circle
Python Programming Learning Circle
Dec 5, 2024 · Fundamentals

New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault, and Performance Improvements

Python 3.13 introduces a suite of typing enhancements—including a ReadOnly type for TypedDict, a @warnings.deprecated decorator, the TypeIs construct, is_protocol and get_protocol_members utilities, default TypeVar support with has_default(), the NoDefault sentinel, and several performance and API clean‑ups—providing developers with more expressive and efficient static type checking capabilities.

Python 3.13ReadOnlyTypeVar
0 likes · 8 min read
New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault, and Performance Improvements
Python Programming Learning Circle
Python Programming Learning Circle
Oct 18, 2024 · Fundamentals

New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default Types, NoDefault and Performance Improvements

Python 3.13 introduces several typing enhancements—including a ReadOnly type for TypedDict, a @warnings.deprecated decorator, the TypeIs narrowing helper, is_protocol and get_protocol_members utilities, default type support for TypeVar/ParamSpec/TypeVarTuple, the NoDefault sentinel, and notable performance gains by removing legacy typing namespaces.

PythonPython3.13ReadOnly
0 likes · 8 min read
New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default Types, NoDefault and Performance Improvements
Python Programming Learning Circle
Python Programming Learning Circle
Oct 16, 2024 · Fundamentals

New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault and Performance Improvements

Python 3.13 adds seven new typing enhancements—including ReadOnly TypedDict fields, a @warnings.deprecated decorator, TypeIs for type narrowing, is_protocol and get_protocol_members utilities, default TypeVar support, the NoDefault sentinel, and import‑time optimizations—each illustrated with code examples.

PythonPython 3.13ReadOnly
0 likes · 7 min read
New Typing Features in Python 3.13: ReadOnly, @warnings.deprecated, TypeIs, is_protocol, get_protocol_members, Default TypeVars, NoDefault and Performance Improvements
37 Interactive Technology Team
37 Interactive Technology Team
Mar 18, 2024 · Databases

Handling MySQL Read‑Only Errors During Master‑Slave Switch in Go: Extending the Driver and Using rejectReadOnly

When a MySQL master‑slave switch makes the old master read-only, Go connection pools keep reusing stale connections and cause prolonged write errors, but by extending the driver to return driver.ErrBadConn on error 1290 or using the DSN flag rejectReadOnly=true, the bad connections are discarded and the error disappears almost instantly.

ConnectionPoolDatabaseSwitchDriverExtension
0 likes · 14 min read
Handling MySQL Read‑Only Errors During Master‑Slave Switch in Go: Extending the Driver and Using rejectReadOnly
Architecture Digest
Architecture Digest
Dec 22, 2023 · Backend Development

Understanding @Transactional(readOnly = true) in Spring: Mechanics, Performance Benefits, and Usage Considerations

This article explains how Spring's @Transactional(readOnly = true) works internally, shows the performance and memory advantages it brings, compares service‑layer and repository‑layer usage with concrete connection‑pool tests, and provides guidance on when to apply it in JPA‑based backend applications.

JPAReadOnlySpring
0 likes · 9 min read
Understanding @Transactional(readOnly = true) in Spring: Mechanics, Performance Benefits, and Usage Considerations
Laravel Tech Community
Laravel Tech Community
Nov 28, 2023 · Backend Development

New Features in PHP 8.3: Typed Class Constants, Dynamic Class Constants, Readonly Property Deep Clone, and json_validate() Function

The article introduces PHP 8.3’s major enhancements—including typed class constants, dynamic class constant access, deep‑clone support for readonly properties, and the new json_validate() function—while noting the upcoming end of PHP 8.0 support and providing practical code examples.

JSONPHP 8.3ReadOnly
0 likes · 4 min read
New Features in PHP 8.3: Typed Class Constants, Dynamic Class Constants, Readonly Property Deep Clone, and json_validate() Function
php中文网 Courses
php中文网 Courses
Sep 20, 2023 · Backend Development

New PHP 8.3 Features: JSON Validation, Improved unserialize Error Handling, Dynamic Class Constants, Readonly Property Cloning, and Typed Constants

PHP 8.3 introduces native JSON validation, improved unserialize error handling, dynamic class constant access, the ability to reinitialize readonly properties during cloning, and typed class constants, providing developers with more efficient and expressive tools for backend development.

8.3PHPReadOnly
0 likes · 6 min read
New PHP 8.3 Features: JSON Validation, Improved unserialize Error Handling, Dynamic Class Constants, Readonly Property Cloning, and Typed Constants
php中文网 Courses
php中文网 Courses
Jul 9, 2023 · Backend Development

Readonly Classes in PHP 8.2: Purpose, Benefits, and Example

This article explains PHP 8.2’s readonly classes, describing their purpose, advantages such as maintainability, security and performance, and provides a complete code example that demonstrates defining a class with readonly properties and the resulting behavior when attempting modifications.

ClassesCode ExamplePHP
0 likes · 4 min read
Readonly Classes in PHP 8.2: Purpose, Benefits, and Example
IT Services Circle
IT Services Circle
Jan 1, 2023 · Frontend Development

Implementing a Zip Function in TypeScript with Advanced Type Inference

This article walks through building a zip function that merges two arrays, adding basic TypeScript signatures, then demonstrates advanced generic type programming to infer exact tuple return types, handling readonly tuples, mutable mappings, and function overloads for precise type safety.

Function OverloadGeneric TypesMutable
0 likes · 8 min read
Implementing a Zip Function in TypeScript with Advanced Type Inference
php中文网 Courses
php中文网 Courses
Dec 8, 2021 · Backend Development

Top 10 New Features in PHP 8.1

This article introduces the ten most important new features of PHP 8.1—including enums, fibers, the never return type, readonly properties, final class constants, array_is_list(), fsync/fdatasync, string‑key array unpacking, the $_FILES full_path key, and the IntlDatePatternGenerator class—each explained with clear code examples.

ReadOnlyarray_is_listbackend
0 likes · 15 min read
Top 10 New Features in PHP 8.1
Architect's Tech Stack
Architect's Tech Stack
Jun 1, 2020 · Backend Development

Fundamentals and Advanced Concepts of Spring Transaction Management

This article explains the core principles of Spring transaction management, including JDBC transaction steps, declarative @Transactional usage, AOP proxy mechanisms, propagation behaviors, isolation levels, nested transactions, and Spring Boot support, while also providing code examples and practical guidance for developers.

AOPJavaPropagation
0 likes · 14 min read
Fundamentals and Advanced Concepts of Spring Transaction Management