cf964ca6d99300a70656908663fd996d.ppt
- Количество слайдов: 28
Sakai Best Practices Alan Berg, Interim QA Director, Sakai Foundation Aaron Zeckoski, Software Engineer, Unicon and Maint Team Lead, Sakai
Agenda • Introduction to a do-ocracy • Sakai Infrastructure • Sakaiproject. org • Confluence, svn (+contrib), QA network • Static code review / Internationalization report • Jira/ Nightly • Sakai 3 • Distribution lists • Eclipse / Maven/ Findbugs • My first Jira • Top five best practices • Question and Answers March 2010 European Sakai Conference – Valencia - Spain. . 2
And now here’s a… INTRODUCTION TO A DO-OCRACY March 2010 European Sakai Conference – Valencia - Spain. . 3
DO-OCRACY • A community in which if an individual sees work that needs to be done, he or she does it. • A Do-ocracy can only work efficiently if the community is polite and supportive • Those who do things are in charge of them, and if one wants a say in how things are done then one must to do things too • The mentality is best summed up by the phrase, If you think that you can do it better then do so. • The most effective best practice is to get involved. * * assuming you are willing to try hard
And now here’s a… SAKAI INFRASTRUCTURE March 2010 European Sakai Conference – Valencia - Spain. . 5
http: //www. packtpub. com/sakai-courseware-management-the-official-guide And now here’s a… PLUG FOR THE SAKAI BOOK March 2010 European Sakai Conference – Valencia - Spain. . 6
MUCH INFRASTRUCTURE Phew, Sakaiproject. org helps you see the overview
SAKAIPROJECT. ORG
CONFLUENCE ~ WIKI • • Information available to the whole community Things change http: //confluence. sakaiproject. org/dashboard. action Work Groups /Discussion Groups • • QA Internationalization http: //confluence. sakaiproject. org/display/SPANISH/Home Release Management, etc Contrib Projects Conferences Projects Ad hoc info
SUBVERSION FOR SAKAI 2. X • Revision control system • https: //source. sakaiproject. org/svn/sakai/ • Trunk - Latest and greatest • Tags - 2. 5. 6, 2. 6. 2 • Branches – 2. x. x • https: //source. sakaiproject. org/contrib/ • Lots of tools and enhancements • Product council shepards the best into Sakai
QA NETWORK • http: //confluence. sakaiproject. org/display/QA/Test+Instances
RUNNING A QA SERVER OR TESTING • Get to understand the rough edges of Sakai • Good boot camp for learning how to run in production or potential issues • Intuitively understand the Quality of the next version of the product • Makes you more attractive, so your organization should really do this
STATIC CODE REVIEW • http: //qa 1 -nl. sakaiproject. org/codereview/
INTERNATIONALIZATION REPORT
JIRA • Bug tracking database • http: //jira. sakaiproject. org/secure/Dashboard. jspa • X Thousands of reports • Currently being worked through by the Maintenance Team with support from the central Quality Assurance • Before making a report, search. • Maintenance team, starting to redefine Jira standards. • Redefinig workflow
STATIC CODE REVIEW AGGRESSIVE ATTACK VECTOR FOR 2. 7 • http: //jira. sakaiproject. org/browse/SAK-17647 • • • Remove NPE’s Resource leaks Obvious defects Should be timeboxed Part of a QA cycle, testing is cheaper • Will repeat a number of times
NIGHTLY SAKAI BUILD • http: //nightly 2. sakaiproject. org/
DISTRIBUTION LISTS • • • http: //sakaiproject. org/join-email-lists Dev QA Management Announcements And the lists go on
And now here’s a… ECLIPSE, MAVEN, FINDBUGS March 2010 European Sakai Conference – Valencia - Spain. . 19
Eclipse – Sakai guide • Follow the Sakai guide March 2010 European Sakai Conference – Valencia - Spain. . 20
Eclipse – m 2 eclipse plugin • Use the m 2 eclipse plugin to do imports • File -> Import -> Maven Projects • Uncheck Resolve workspace projects and Separate projects for modules March 2010 European Sakai Conference – Valencia - Spain. . 21
Eclipse – hidden tricks • Eclipse tricks on Stackoverflow • • ctrl-space – trigger autocomplete assist ctrl-shift-r - open resource (e. g. file) ctrl-shift-t - open type (e. g. class) ctrl-1 (quick fix the current error) Camel case support (System. c. TM -> current. Time. Milliseconds()) Code templates (for, npe, syso, etc. ) Knowledge is power (and efficiency) March 2010 European Sakai Conference – Valencia - Spain. . 22
And now here’s a… MY FIRST JIRA March 2010 European Sakai Conference – Valencia - Spain. . 23
How to make a JIRA issue • Community Guidelines • • Search JIRA first! Search mailing list (nabble) Email the dev list Create an issue • Steps to reproduce • Stacktrace, logs, • Use cases and test plan March 2010 screenshots European Sakai Conference – Valencia - Spain. . 24
And now here’s a… TOP FIVE BEST PRACTICE March 2010 European Sakai Conference – Valencia - Spain. . 25
Best of the Best March 2010 European Sakai Conference – Valencia - Spain. . 26
Best Practices • • Automated testing (again) Work together/review Use Findbugs/PMD Write simple code and avoid chaining (maintenance costs higher than create costs) • Logging and Exception handling Complete listing of best practices for development March 2010 European Sakai Conference – Valencia - Spain. . 27
And now here’s a… QUESTIONS AND ANSWERS March 2010 European Sakai Conference – Valencia - Spain. . 28
cf964ca6d99300a70656908663fd996d.ppt