PageRenderTime 163ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/lib/Joose/Manual/BestPractices.js

http://github.com/Joose/Joose
JavaScript | 58 lines | 0 code | 0 blank | 58 comment | 0 complexity | 7149a58ddb08a7346ede5cdf2fe843b0 MD5 | raw file
  1. /**
  2. NAME
  3. ====
  4. Joose.Manual.BestPractices - Get the most out of Joose
  5. RECOMMENDATIONS
  6. ===============
  7. Joose has a lot of features, and there's definitely more than one way to do it. However, we think that picking a subset of these features and using them consistently makes everyone's life easier.
  8. Of course, as with any list of "best practices", these are really just opinions. Feel free to ignore us.
  9. Best practice #1
  10. ----------------
  11. This is very wise advise on using Joose properly.
  12. BENEFITS OF BEST PRACTICES
  13. ==========================
  14. Following these practices has a number of benefits.
  15. It helps ensure that your code will play nice with others, making it more reusable and easier to extend.
  16. Following an accepted set of idioms will make maintenance easier, especially when someone else has to maintain your code. It will also make it easier to get support from other Joose users, since your code will be easier to digest quickly.
  17. Many of these practices also help get the most out of meta programming.
  18. AUTHOR
  19. ======
  20. Nickolay Platonov [nickolay8@gmail.com](mailto:nickolay8@gmail.com)
  21. Heavily based on the original content of Moose::Manual, by Dave Rolsky [autarch@urth.org](mailto:autarch@urth.org)
  22. COPYRIGHT AND LICENSE
  23. =====================
  24. Copyright (c) 2008-2011, Malte Ubl, Nickolay Platonov
  25. All rights reserved.
  26. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
  27. * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
  28. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
  29. * Neither the name of Malte Ubl nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
  30. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  31. */