Skip to content

Instantly share code, notes, and snippets.

Clocker was built using the Ruby on Rails (RoR) framework. The Ruby design-paradigm puts a strong emphasis on writing clean and understandable code that doesn’t try and be too clever. During development this philosophy was taken to heart; strong separation of concerns and the single responsability principle were kept in mind for all aspects of the application. Best practices also include a separation of presentation logic from markup. And database tables were thoroughly thought-out to ensure proper referential integrity.

if (strcmp(val, "false") == 0)
mAttenuate = false;
else
mAttenuate = true;