lib_guide.htm 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498
  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  4. <title>Boost Library Requirements and Guidelines</title>
  5. <meta name="GENERATOR" content="Microsoft FrontPage 5.0">
  6. <meta name="ProgId" content="FrontPage.Editor.Document">
  7. <meta name="Microsoft Border" content="none, default">
  8. </head>
  9. <body bgcolor="#FFFFFF" text="#000000">
  10. <table border="1" bgcolor="#007F7F" cellpadding="2">
  11. <tr>
  12. <td bgcolor="#FFFFFF"><img src="../c++boost.gif" alt="c++boost.gif (8819 bytes)" width="277" height="86"></td>
  13. <td><a href="../index.htm"><font face="Arial" color="#FFFFFF"><big>Home</big></font></a></td>
  14. <td><a href="../libs/libraries.htm"><font face="Arial" color="#FFFFFF"><big>Libraries</big></font></a></td>
  15. <td><a href="../people/people.htm"><font face="Arial" color="#FFFFFF"><big>People</big></font></a></td>
  16. <td><a href="faq.htm"><font face="Arial" color="#FFFFFF"><big>FAQ</big></font></a></td>
  17. <td><a href="index.htm"><font face="Arial" color="#FFFFFF"><big>More</big></font></a></td>
  18. </tr>
  19. </table>
  20. <h1 align="left">Boost Library Requirements and Guidelines</h1>
  21. <p align="left"><a href="#Introduction">Introduction</a><br>
  22. <a href="#Requirements">Requirements</a><br>
  23. &nbsp;&nbsp;&nbsp; <a href="#License">License requirements</a><br>
  24. &nbsp;&nbsp;&nbsp; <a href="#Portability">Portability requirements</a><br>
  25. &nbsp;&nbsp;&nbsp; <a href="#Ownership">Ownership</a><br>
  26. <a href="#Guidelines">Guidelines</a><br>
  27. &nbsp;&nbsp;&nbsp; <a href="#Design_and_Programming">Design and programming</a><br>
  28. &nbsp;&nbsp;&nbsp; <a href="#Directory_structure">Directory structure and
  29. filenames</a><br>
  30. &nbsp;&nbsp;&nbsp; <a href="#Naming­_consistency">Naming consistency</a><br>
  31. &nbsp;&nbsp;&nbsp; <a href="#Documentation">Documentation</a><br>
  32. <a href="#Rationale">Rationale</a><br>
  33. &nbsp;&nbsp;&nbsp; <a href="#Exception-specification">Exception-specification
  34. rationale</a><br>
  35. &nbsp;&nbsp;&nbsp; <a href="#Naming">Naming conventions rationale</a><br>
  36. &nbsp;&nbsp;&nbsp; <a href="#code_fonts">Source code fonts rationale</a><br>
  37. &nbsp;&nbsp;&nbsp; <a href="#Tabs">Tabs rationale</a><br>
  38. &nbsp;&nbsp;&nbsp; <a href="#JavaScript">ECMAScript/JavaScript rationale</a><br>
  39. &nbsp;&nbsp;&nbsp; <a href="#Rationale_rationale">Rationale rationale</a><br>
  40. &nbsp;&nbsp;&nbsp; <a href="#Acknowledgements">Acknowledgements rationale</a></p>
  41. <h2 align="left"><a name="Introduction">Introduction</a></h2>
  42. <p align="left">This page describes requirements and guidelines for the content
  43. of a library submitted to Boost.</p>
  44. <p align="left">See the <a href="submission_process.htm">Boost Library
  45. Submission Process</a> page for a description of the process involved.</p>
  46. <h2 align="left"><a name="Requirements">Requirements</a></h2>
  47. <p>To avoid the frustration and wasted time of a proposed library being
  48. rejected, it must meets these requirements:</p>
  49. <ul>
  50. <li>The license must meet the <a href="#License">license requirements</a>
  51. below. Restricted licenses like the GPL and LGPL are not acceptable.
  52. </li>
  53. <li>The
  54. copyright <a href="#Ownership">ownership</a> must be clear.
  55. </li>
  56. <li>The library must be generally useful and not restricted to a narrow
  57. problem domain.
  58. </li>
  59. <li>The library must meet the <a href="#Portability">portability requirements</a>
  60. below.&nbsp;
  61. </li>
  62. <li>The library must come reasonably close to meeting the <a href="#Guidelines">Guidelines</a>
  63. below.
  64. <ul>
  65. <li><a href="#Design_and_Programming">Design and Programming</a></li>
  66. <li><a href="#Directory_structure">Directory Structure</a></li>
  67. <li><a href="#Documentation">Documentation</a></li>
  68. </ul>
  69. </li>
  70. <li>The author must be willing to participate in discussions on the mailing
  71. list, and to refine the library accordingly.</li>
  72. </ul>
  73. <p>There's no requirement that an author read the mailing list for a time before
  74. making a submission. It has been noted, however, that submissions which begin
  75. &quot;I just started to read this mailing list ...&quot; seem to fail, often
  76. embarrassingly.</p>
  77. <h3 align="left"><a name="License">License</a> requirements</h3>
  78. <p>The preferred way to meet the license requirements is to use the
  79. <a href="../LICENSE_1_0.txt">Boost Software License</a>. See <a href="license_info.html">
  80. license information</a>. If for any reason you do not intend to use the Boost
  81. Software License, please discuss the issues on the Boost
  82. <a href="mailing_lists.htm#main">developers mailing list</a> first.</p>
  83. <p>The license requirements:</p>
  84. <ul>
  85. <li>Must be simple to read and understand.
  86. </li>
  87. <li>Must grant permission without fee to copy, use and modify the software for
  88. any use (commercial and non-commercial).
  89. </li>
  90. <li>Must require that the license appear on all copies of the software source
  91. code.
  92. </li>
  93. <li>Must not require that the license appear with executables or other binary
  94. uses of the library.
  95. </li>
  96. <li>Must not require that the source code be available for execution or other
  97. binary uses of the library.
  98. </li>
  99. <li>May restrict the use of the name and description of the library to the
  100. standard version found on the Boost web site.</li>
  101. </ul>
  102. <h3 align="left"><a name="Portability">Portability</a> requirements</h3>
  103. <ul>
  104. <li>
  105. <p align="left">A library's interface must portable and not restricted to a
  106. particular compiler or operating system.
  107. </li>
  108. <li>
  109. <p align="left">A library's implementation must if possible be portable and
  110. not restricted to a particular compiler or operating system.&nbsp; If a
  111. portable implementation is not possible, non-portable constructions are
  112. acceptable if reasonably easy to port to other environments, and
  113. implementations are provided for at least two popular operating systems
  114. (such as UNIX and Windows).
  115. </li>
  116. <li>
  117. <p align="left">There is no requirement that a library run on C++ compilers
  118. which do not conform to the ISO standard.&nbsp;
  119. </li>
  120. <li>
  121. <p align="left">There is no requirement that a library run on any particular
  122. C++ compiler.&nbsp; Boost contributors often try to ensure their libraries
  123. work with popular compilers.&nbsp; The boost/config.hpp <a href="../libs/config/config.htm">configuration
  124. header</a> is the preferred mechanism for working around compiler
  125. deficiencies.</li>
  126. </ul>
  127. <p align="left">Since there is no absolute way to prove portability, many boost
  128. submissions demonstrate practical portability by compiling and executing
  129. correctly with two different C++ compilers, often under different operating
  130. systems.&nbsp; Otherwise reviewers may disbelieve that porting is in fact
  131. practical.</p>
  132. <h3 align="left"><a name="Ownership">Ownership</a></h3>
  133. <p align="left">Are you sure you own the library you are thinking of
  134. submitting?&nbsp;&nbsp; &quot;How to Copyright Software&quot; by MJ Salone, Nolo
  135. Press, 1990 says:</p>
  136. <blockquote>
  137. <p align="left">Doing work on your own time that is very similar to
  138. programming you do for your employer on company time can raise nasty legal
  139. problems.&nbsp; In this situation, it's best to get a written release from
  140. your employer in advance.</p>
  141. </blockquote>
  142. <p align="left">Place a copyright notice in all the important files you submit.
  143. Boost won't accept libraries without clear copyright information.</p>
  144. <h2 align="left"><a name="Guidelines">Guidelines</a></h2>
  145. <p align="left">Please use these guidelines as a checklist for preparing the
  146. content a library submission.&nbsp; Not every guideline applies to every
  147. library, but a reasonable effort to comply is expected.</p>
  148. <h3><a name="Design_and_Programming">Design and Programming</a></h3>
  149. <ul>
  150. <li>Aim first for clarity and correctness; optimization should be only a
  151. secondary concern in most Boost libraries.</li>
  152. </ul>
  153. <ul>
  154. <li>Aim for ISO Standard C++. Than means making effective use of the standard
  155. features of the language, and avoiding non-standard compiler extensions. It
  156. also means using the C++ Standard Library where applicable.</li>
  157. </ul>
  158. <ul>
  159. <li>Headers should be good neighbors. See the <a href="header.htm">header
  160. policy</a>. See <a href="#Naming­_consistency">Naming consistency</a>.</li>
  161. </ul>
  162. <ul>
  163. <li>Follow quality programming practices. See, for example, &quot;Effective
  164. C++&quot; 2nd Edition, and &quot;More Effective C++&quot;, both by Scott
  165. Meyers, published by Addison Wesley.</li>
  166. </ul>
  167. <ul>
  168. <li>Use the C++ Standard Library or other Boost libraries, but only when the
  169. benefits outweigh the costs.&nbsp; Do not use libraries other than the C++
  170. Standard Library or Boost. See <a href="library_reuse.htm">Library reuse</a>.</li>
  171. </ul>
  172. <ul>
  173. <li>Read <a href="imp_vars.htm">Implementation Variation</a> to see how to
  174. supply performance, platform, or other implementation variations.</li>
  175. </ul>
  176. <ul>
  177. <li>Use the naming conventions of the C++ Standard Library (See
  178. <a href="#Naming">Naming conventions rationale</a>): <br>
  179. &nbsp;<ul>
  180. <li>Names (except as noted below) should be all lowercase, with words
  181. separated by underscores.</li>
  182. <li>Acronyms should be treated as ordinary names (e.g. <code>xml_parser</code> instead of <code>XML_parser</code>).</li>
  183. <li>Template parameter names begin with an uppercase letter.</li>
  184. <li>Macro (gasp!) names all uppercase and begin with BOOST_.</li>
  185. </ul>
  186. </li>
  187. </ul>
  188. <ul>
  189. <li>Choose meaningful names - explicit is better than implicit, and readability counts.
  190. There is a strong preference for clear and descriptive names, even if
  191. lengthy.</li>
  192. </ul>
  193. <ul>
  194. <li>Use exceptions to report errors where appropriate, and write code that is
  195. safe in the face of exceptions.</li>
  196. </ul>
  197. <ul>
  198. <li>Avoid exception-specifications. See <a href="#Exception-specification">exception-specification
  199. rationale</a>.</li>
  200. </ul>
  201. <ul>
  202. <li>Provide sample programs or confidence tests so potential users can see how
  203. to use your library.</li>
  204. </ul>
  205. <ul>
  206. <li>Provide a regression test program or programs which follow the <a href="test_policy.htm">Test
  207. Policies and Protocols</a>.</li>
  208. </ul>
  209. <ul>
  210. <li>Although some boost members use proportional fonts, tabs, and unrestricted
  211. line lengths in their own code, boost's widely distributed source code
  212. should follow more conservative guidelines:
  213. <ul>
  214. <li>Use fixed-width fonts.&nbsp; See <a href="#code_fonts">fonts rationale</a>.</li>
  215. <li>Use spaces rather than tabs. See <a href="#Tabs">tabs rationale</a>.</li>
  216. <li>Limit line lengths to 80 characters.</li>
  217. </ul>
  218. </li>
  219. </ul>
  220. <ul>
  221. <li>End all documentation files (HTML or otherwise) with a copyright message
  222. and a licensing message. See the <a href="#Copyright">end of this file</a> for
  223. an example of the preferred form.</li>
  224. </ul>
  225. <ul>
  226. <li>Begin all source files (including programs, headers, scripts, etc.) with:
  227. <br>
  228. &nbsp;<ul>
  229. <li>A comment line describing the contents of the file.<br>
  230. &nbsp;</li>
  231. <li>Comments describing copyright and licensing. The preferred form is:<br>
  232. <br>
  233. <code>//&nbsp; Copyright Jane Programmer 2002. Use, modification, and
  234. distribution are<br>
  235. //&nbsp; subject to the Boost Software License, Version 1.0. (See
  236. accompanying<br>
  237. //&nbsp; file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)<br>
  238. </code>
  239. <br>
  240. Please leave an empty line before and after the copyright and license
  241. comments. It is fine if the copyright and license messages are on
  242. different lines, but there should be no other intervening text. Do not
  243. include &quot;All rights reserved&quot; in the copyright message.<br>
  244. <br>
  245. See <a href="license_info.html">license information page</a> for
  246. more information about the Boost Software License.<br>
  247. <br>
  248. Note that developers should not include a copy of
  249. <code>LICENSE_1_0.txt</code>
  250. in their libraries; Boost distributions already include a copy in the
  251. Boost root directory.<br>
  252. &nbsp;</li>
  253. <li>A comment line referencing your library on the Boost web site. For
  254. example:<br>
  255. <br>
  256. <code>//&nbsp; See http://www.boost.org/libs/foo for library home page.</code><br>
  257. <br>
  258. where <code>foo</code> is the directory name (see below) for your library.
  259. As well as aiding users who come across a Boost file detached from its
  260. documentation, some of Boost's automatic tools depend on this comment to
  261. identify which library header files belong to.</li>
  262. </ul>
  263. </li>
  264. </ul>
  265. <h3><a name="Directory_structure">Directory Structure</a> and Filenames</h3>
  266. <ul>
  267. <li>File and directory names must contain only lowercase ASCII letters ,
  268. numbers, underscores, and a period.&nbsp; Leading character must be
  269. alphabetic. Maximum length 31. Only a single period is permitted.&nbsp;
  270. These requirements ensure file and directory names are relatively portable.</li>
  271. <li>All libraries have at their highest level a primary directory named for
  272. the particular library. See <a href="#Naming­_consistency">Naming consistency</a>. The primary directory may have sub-directories.</li>
  273. <li>For very simple libraries implemented entirely within the library header,
  274. all files go in the primary directory (except headers, which go in the boost
  275. header directory).</li>
  276. </ul>
  277. <blockquote>
  278. <p><b>Boost standard sub-directory names</b></p>
  279. <table border="1" cellpadding="5">
  280. <tr>
  281. <td><b>Sub-directory</b></td>
  282. <td><b>Contents</b></td>
  283. <td><b>Required</b></td>
  284. </tr>
  285. <tr>
  286. <td><code>build</code></td>
  287. <td>Library build files such as a Jamfile.</td>
  288. <td>If any build files.</td>
  289. </tr>
  290. <tr>
  291. <td>doc</td>
  292. <td>Documentation (HTML) files.</td>
  293. <td>If several doc files.</td>
  294. </tr>
  295. <tr>
  296. <td><code>example</code></td>
  297. <td>Sample program files.</td>
  298. <td>If several sample files.</td>
  299. </tr>
  300. <tr>
  301. <td><code>src</code></td>
  302. <td>Source files which must be compiled to build the library.&nbsp;</td>
  303. <td>If any source files.</td>
  304. </tr>
  305. <tr>
  306. <td><code>test</code></td>
  307. <td>Regression or other test programs or scripts.</td>
  308. <td>If several test files.</td>
  309. </tr>
  310. </table>
  311. </blockquote>
  312. <h4><a name="Redirection">Redirection</a></h4>
  313. <p>The primary directory should always contain a file named index.html (or
  314. index.htm). Authors have requested this so that they can publish URL's in the
  315. form <i>http://www.boost.org/libs/lib-name</i> with the assurance a
  316. documentation reorganization won't invalidate the URL. Boost's internal tools
  317. are also simplified by knowing that a library's documentation is always
  318. reachable via the simplified URL.</p>
  319. <p>If the documentation is in a doc sub-directory, the primary directory index.html file
  320. should just do an automatic redirection to the doc subdirectory:</p>
  321. <blockquote>
  322. <pre>&lt;html&gt;
  323. &lt;head&gt;
  324. &lt;meta http-equiv=&quot;refresh&quot; content=&quot;0; URL=doc/index.html&quot;&gt;
  325. &lt;/head&gt;
  326. &lt;body&gt;
  327. Automatic redirection failed, please go to
  328. &lt;a href=&quot;doc/index.html&quot;&gt;doc/index.html&lt;/a&gt;
  329. &lt;/body&gt;
  330. &lt;/html&gt;</pre>
  331. </blockquote>
  332. <h3><a name="Naming­_consistency">Naming consistency</a></h3>
  333. <p>As library developers and users have gained experience with Boost, the
  334. following consistent naming approach has come to be viewed as very helpful,
  335. particularly for larger libraries which need their own header subdirectories and
  336. namespaces.</p>
  337. <p>Here is how it works. The library is given a name which describes the
  338. contents of the library.&nbsp; Cryptic abbreviations are not acceptable.
  339. Following the practice of the C++ Standard Library, names are usually singular
  340. rather than plural.&nbsp; For example, a library dealing with file systems might
  341. chose the name &quot;filesystem&quot;, but not &quot;filesystems&quot;, &quot;fs&quot; or &quot;nicecode&quot;.</p>
  342. <ul>
  343. <li>The library's primary directory (in parent <i>boost-root/libs</i>) is
  344. given that same name.&nbsp; For example, <i>boost-root/libs/filesystem</i>.<br>
  345. &nbsp;</li>
  346. <li>The library's primary header directory (in parent <i>boost-root/boost</i>)
  347. is given that same name. For example, <i>boost-root/boost/filesystem</i>.<br>
  348. &nbsp;</li>
  349. <li>The library's primary namespace (in parent <i>::boost</i>) is given that
  350. same name. For example, <i>::boost::filesystem</i>.</li>
  351. </ul>
  352. <h3><a name="Documentation">Documentation</a></h3>
  353. <p>Even the simplest library needs some documentation; the amount should be
  354. proportional to the need.&nbsp; The documentation should assume the readers have
  355. a basic knowledge of C++, but are not necessarily experts.</p>
  356. <p>The format for documentation should be HTML, and should not require an
  357. advanced browser or server-side extensions. Style sheets are acceptable. ECMAScript/JavaScript
  358. is not acceptable. The documentation entry point should
  359. always be a file named index.html or index.htm; see <a href="#Redirection">
  360. Redirection</a>.</p>
  361. <p>There is no single right way to do documentation. HTML documentation is often
  362. organized quite differently from traditional printed documents. Task-oriented
  363. styles differ from reference oriented styles. In the end, it comes down to the
  364. question: Is the documentation sufficient for the mythical &quot;average&quot;
  365. C++ programmer to use the library successfully?</p>
  366. <p>Appropriate topics for documentation often include:
  367. <ul>
  368. <li>General introduction to the library.</li>
  369. <li>Description of each class.</li>
  370. <li>Relationship between classes.</li>
  371. <li>For each function, as applicable, description, requirements (preconditions),
  372. effects, post-conditions, returns, and throws.</li>
  373. <li>Discussion of error detection and recovery strategy.</li>
  374. <li>How to use including description of typical uses.</li>
  375. <li>How to compile and link.</li>
  376. <li>How to test.</li>
  377. <li>Version or revision history.</li>
  378. <li>Rationale for design decisions.&nbsp; See <a href="#Rationale">Rationale
  379. rationale</a>.</li>
  380. <li>Acknowledgements.&nbsp; See <a href="#Acknowledgements">Acknowledgments
  381. rationale.</a></li>
  382. </ul>
  383. <p>If you need more help with how to write documentation you can check out the
  384. article on <a href="writingdoc/index.html">Writing Documentation for Boost</a>.</p>
  385. <h2><a name="Rationale">Rationale</a></h2>
  386. <p>Rationale for some of the requirements and guidelines follows.</p>
  387. <hr>
  388. <h3><a name="Exception-specification">Exception-specification</a> rationale</h3>
  389. <p>Exception specifications [ISO 15.4] are sometimes coded to indicate what
  390. exceptions may be thrown, or because the programmer hopes they will improved
  391. performance.&nbsp; But consider the following member from a smart pointer:</p>
  392. <pre> T&amp; operator*() const throw() { return *ptr; }</pre>
  393. <p>This function calls no other functions; it only manipulates fundamental data
  394. types like pointers Therefore, no runtime behavior of the
  395. exception-specification can ever be invoked.&nbsp; The function is completely
  396. exposed to the compiler; indeed it is declared inline Therefore, a smart
  397. compiler can easily deduce that the functions are incapable of throwing
  398. exceptions, and make the same optimizations it would have made based on the
  399. empty exception-specification. A &quot;dumb&quot; compiler, however, may make
  400. all kinds of pessimizations.</p>
  401. <p>For example, some compilers turn off inlining if there is an
  402. exception-specification.&nbsp; Some compilers add try/catch blocks. Such
  403. pessimizations can be a performance disaster which makes the code unusable in
  404. practical applications.</p>
  405. <p>Although initially appealing, an exception-specification tends to have
  406. consequences that require <b>very</b> careful thought to understand. The biggest
  407. problem with exception-specifications is that programmers use them as though
  408. they have the effect the programmer would like, instead of the effect they
  409. actually have.</p>
  410. <p>A non-inline function is the one place a &quot;throws nothing&quot;
  411. exception-specification may have some benefit with some compilers.</p>
  412. <hr>
  413. <h3><a name="Naming">Naming</a> conventions rationale</h3>
  414. <p>The C++ standard committee's Library Working Group discussed this issue in
  415. detail, and over a long period of time. The discussion was repeated again in
  416. early boost postings. A short summary:</p>
  417. <ul>
  418. <li>Naming conventions are contentious, and although several are widely used,
  419. no one style predominates.
  420. </li>
  421. <li>Given the intent to propose portions of boost for the next revision of the
  422. C++ standard library, boost decided to follow the standard library's
  423. conventions.
  424. </li>
  425. <li>Once a library settles on a particular convention, a vast majority of
  426. stakeholders want that style to be consistently used.
  427. </li>
  428. </ul>
  429. <hr>
  430. <h3>Source <a name="code_fonts">code fonts</a> rationale</h3>
  431. <p>Dave Abrahams comments: An important purpose (I daresay the primary purpose)
  432. of source code is communication: the documentation of intent. This is a doubly
  433. important goal for boost, I think. Using a fixed-width font allows us to
  434. communicate with more people, in more ways (diagrams are possible) right there
  435. in the source. Code written for fixed-width fonts using spaces will read
  436. reasonably well when viewed with a variable-width font, and as far as I can tell
  437. every editor supporting variable-width fonts also supports fixed width. I don't
  438. think the converse is true.</p>
  439. <hr>
  440. <h3><a name="Tabs">Tabs</a> rationale</h3>
  441. <p>Tabs are banned because of the practical problems caused by tabs in
  442. multi-developer projects like Boost, rather than any dislike in principle. See
  443. <a href="mailing_lists.htm#archive">mailing list archives</a>. Problems include
  444. maintenance of a single source file by programmers using tabs and programmers
  445. using spaces, and the difficulty of enforcing a consistent tab policy other than
  446. just &quot;no tabs&quot;. Discussions concluded that Boost files should either all use
  447. tabs, or all use spaces, and thus the decision to stick with spaces.</p>
  448. <hr>
  449. <h3>ECMAScript/<a name="JavaScript">JavaScript</a> rationale</h3>
  450. <p>Before the 1.29.0 release, two Boost libraries added ECMAScript/JavaScript
  451. documentation. Controversy followed (see <a href="mailing_lists.htm#archive">
  452. mailing list archives</a>), and the developers were asked to remove the
  453. ECMAScript/JavaScript. Reasons given for banning included:</p>
  454. <ul>
  455. <li>Incompatible with some older browsers and some text based browsers.</li>
  456. <li>Makes printing docs pages difficult.</li>
  457. <li>Often results in really bad user interface design.</li>
  458. <li>&quot;It's just annoying in general.&quot;</li>
  459. <li>Would require Boost to test web pages for ECMAScript/JavaScript
  460. compliance.</li>
  461. <li>Makes docs maintenance by other than the original developer more
  462. difficult.</li>
  463. </ul>
  464. <hr>
  465. <h3><a name="Rationale_rationale">Rationale rationale</a></h3>
  466. <p>Rationale is defined as &quot;The fundamental reasons for something;
  467. basis&quot; by the American Heritage Dictionary.</p>
  468. <p>Beman Dawes comments:&nbsp; Failure to supply contemporaneous rationale for
  469. design decisions is a major defect in many software projects. Lack of accurate
  470. rationale causes issues to be revisited endlessly, causes maintenance bugs when a
  471. maintainer changes something without realizing it was done a certain way for
  472. some purpose, and shortens the useful lifetime of software.</p>
  473. <p>Rationale is fairly easy to provide at the time decisions are made, but very
  474. hard to accurately recover even a short time later.</p>
  475. <hr>
  476. <h3><a name="Acknowledgements">Acknowledgements</a> rationale</h3>
  477. <p>As a library matures, it almost always accumulates improvements suggested to
  478. the authors by other boost members.&nbsp; It is a part of the culture of
  479. boost.org to acknowledge such contributions, identifying the person making the
  480. suggestion.&nbsp; Major contributions are usually acknowledged in the
  481. documentation, while minor fixes are often mentioned in comments within the code
  482. itself.</p>
  483. <hr>
  484. <p>Revised
  485. <!--webbot bot="Timestamp" s-type="EDITED" s-format="%d %B, %Y" startspan -->04 November, 2003<!--webbot bot="Timestamp" endspan i-checksum="39359" --></p>
  486. <p> © <a name="Copyright">Copyright</a> Beman Dawes 2003.</p>
  487. <p> Use, modification, and distribution are subject to the Boost Software
  488. License, Version 1.0. (See accompanying file <a href="../LICENSE_1_0.txt">
  489. LICENSE_1_0.txt</a> or copy at <a href="http://www.boost.org/LICENSE_1_0.txt">
  490. www.boost.org/LICENSE_1_0.txt</a>)</p>
  491. </body>
  492. </html>
粤ICP备19079148号