OMG: Our Machinery Guidebook
ourmachinery.com
OMG: Our Machinery Guidebook
1–10 of 31 posts
Re: OMG: Our Machinery Guidebook
#2Re: OMG: Our Machinery Guidebook
#3view-source:https://ourmachinery.com/files/guidebook.md.html
- markdown --">
Re: OMG: Our Machinery Guidebook
#4This can have surprising and sometimes unpleasant consequences; see https://0.30000000000000004.com
Re: OMG: Our Machinery Guidebook
#5Ahh, straight out of the zen of Python!
$ python -c "import this"Re: OMG: Our Machinery Guidebook
#6I.e., use a double parameter that specifies seconds, instead of an uint32_t that specifies milliseconds. This can have surprising and sometimes unpleasant consequences; see https://0.30000000000000004.com
No ambiguity for the programmer as to what the underlying units are, and no unnecessary int/float conversions. All the book-keeping and conversions are taken care of by the compiler with zero run-time size or perf overhead.
Re: OMG: Our Machinery Guidebook
#7 #pragma once
#ifdef __cpluspus //
Can't say I'm a fan of OMG-CODEORG-3, however, it sounds like compilation time is a key metric for them.. I prefer a John Lakos style "physical components" set up which emulates a type-as-module inclusion style. At least OMG-CODEORG-3 clearly states that include order becomes important as a result.Re: OMG: Our Machinery Guidebook
#8Re: OMG: Our Machinery Guidebook
#9Quick typo under OMG-CODEORG-2: #pragma once #ifdef __cpluspus // Can't say I'm a fan of OMG-CODEORG-3, however, it sounds like compilation time is a key metric for them.. I prefer a John Lakos style "physical components" set up which emulates a type-as-module inclusion style. At least OMG-CODEORG-3 clearly states that include order becomes important as a result.
On the same lines the template 'cute tricks' are where you get your performance, stability and readability from C++. I definitely agree that you should drop into assembly to see what the compiler is doing with your code but that can and should apply to heavily templated code too.
Re: OMG: Our Machinery Guidebook
#10I.e., use a double parameter that specifies seconds, instead of an uint32_t that specifies milliseconds. This can have surprising and sometimes unpleasant consequences; see https://0.30000000000000004.com