Skip to content

A library to provide Hungarian notation advantages at compile-time

License

Notifications You must be signed in to change notification settings

snewell/biztonsag

Repository files navigation

biztonsag

codacy

A library that attempts to provide compile-time safety around ubiquitous types.

Motivation

Many years ago, there was a post from Joel On Software that convinced me Hungarian notation is good, provided that it's used correctly. Since C++ provides strong types though, I've always toyed with the idea of writing code to promote those code smells (the way Joel describes) to compilation errors.

This library is mostly for experimentation, although I expect it's suitable for production use.

Building

biztonsag is a header-only library. It's designed to be installed via CMake.

$ cd /path/to/biztonsag
$ mkdir build
$ cd build
$ cmake ..
$ cmake --build .
$ cmake --build . --target install

Unit tests are avialable (requires GTest).

$ cmake --build . --target test

Name Origin

Because biztonsag is an attempt to get the type-safety benefits of Hungarian notation at compile-time, I enlisted Google Translate. While "típusú biztonság" is a bit much, the second word fits my goals:

biztonság
security, safety, behavior, behaviour

About

A library to provide Hungarian notation advantages at compile-time

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published