2 个仓库
Architectural preference for using value types like structs and enums over reference types.
Distinct from Value Type Wrappers: None of the candidates describe the strategic architectural preference for value types over classes
Explore 2 awesome GitHub repositories matching software engineering & architecture · Value Type Prioritization. Refine with filters or upvote what's useful.
This project is a set of coding standards, architectural patterns, and type safety guidelines for writing Swift source code. It provides a framework for maintaining clean and maintainable code through established conventions and formatting rules. The guide prioritizes composition over class inheritance by favoring value types and final classes. It establishes a policy for access control to manage boundaries between internal logic and external components through explicit visibility modifiers. The standards cover type safety optimization through immutable bindings and safe optional handling. A
Favors structs and enums over classes to ensure predictable state and reduce memory overhead.
DeviceKit 是一个 iOS 硬件库,为设备规格和系统状态指标提供了值类型(value-type)替代方案。它作为一个框架,用于检测设备标识、硬件能力、显示指标和实时系统状态指示器。 该库包含用于识别特定设备型号、系列和模拟器状态的工具,以实现硬件特定的优化。它还提供了一个物理组件检测器(如生物识别传感器和触控笔支持),用于切换界面功能。 其他功能涵盖了用于屏幕尺寸和像素密度的显示指标分析,以及用于电池电量、充电状态、电源模式和可用磁盘空间的系统监控。
Uses an architectural preference for immutable value types to represent device attributes and prevent state mutation.