GitHub - jign/SkyLifeguard: Assertive Programming framework for UE5 inspired by DbC
github.com·2h·
Discuss: Hacker News
🚂Error Propagation
Preview
Report Post

Lifeguard

Lifeguard is a high-performance (zero-cost on shipping builds), development-time runtime validation framework for UE5. I wrote it to move away from defensive programming and into assertive programming.

Defensive programming tries to protect the runtime environment against programmer and domain errors. Assertive programmer forces a crash on programmer errors and lights up domain errors, so they’re found as early as possible.

To do this, it sort of hijacks UE5’s reflection system to be able to inspect classes at runtime.

Assertive programmer treats architectural assumptions as contracts. If a contract is broken, the system demands immediate attention.

The Lifeguard system consists of three pieces: Contracts, Checklists, and Domain Checks.

Installat…

Similar Posts

Loading similar posts...