G'day
In C ++, I like to use idleom-handle-Body to separate the implementation from the public interface as much as possible.
You must also ensure that any template, such as copyright notices, is consistent and relevant, for example. copyright does not expire in 2008 for the release of code today.
Be consistent across all publicly available header files for class naming, formatting, layout, and design conventions, otherwise this leaves an unprofessional impression on customers.
Make sure your header files do not โuseโ ads. Improper use of "use" dec can seriously damage things by unintended side effects.
As mentioned earlier, make sure your headers do not generate any warnings.
At last. make sure you have good API documentation for your header files.
Not like a company that provides a well-known product for searching zip codes. The first version of the C API comes with minimal documentation, which was largely based on the Windows GUI version. The header files simply consisted of functions whose parameters had only types and names. And no comments at all.
The only way to determine what the functions actually performed was to redesign the simple search example program provided and reconstruct it.
However, after I did this, I saved the BBC children who needed tens of thousands of pounds a year, because the addresses offered for fundraising packages were more likely than in previous years!
Rob wells
source share