-
-
Notifications
You must be signed in to change notification settings - Fork 341
[Draft] Code style
Yevgeniy Zakharov edited this page May 14, 2019
·
22 revisions
This is a very beginning of defining a code style of the lib
- Use
usinginstead oftypedef-usingis more readable - Class can have
superalias in its' score only to its' superclass. Otherwise give it a different name - Curly braces after
if,forandwhilemust be put on the same line not on the next one - same code less lines - All classes/structs are named with lowercase with underscore just like std's ones - one of
sqlite_orm's goals is to look like it is a part of stdlib:storage_t,table_type,statement_binder - private variables are named with camelcase:
needQuotes,compositeKeyColumnNames - public functions are named just like classes:
begin,make_table,bind