Skip to content

Latest commit

 

History

History
54 lines (39 loc) · 1.69 KB

README.rst

File metadata and controls

54 lines (39 loc) · 1.69 KB

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