• Like
  • Save
Presentatie xPage & Beer
Upcoming SlideShare
Loading in...5
×
 

Presentatie xPage & Beer

on

  • 906 views

Presentation about Clean code by Robert. C. Martin

Presentation about Clean code by Robert. C. Martin

Statistics

Views

Total Views
906
Views on SlideShare
502
Embed Views
404

Actions

Likes
0
Downloads
4
Comments
0

4 Embeds 404

http://www.jeroensomhorst.eu 399
http://plus.url.google.com 2
http://cloud.feedly.com 2
http://prlog.ru 1

Accessibility

Categories

Upload Details

Uploaded via as OpenOffice

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Presentatie xPage & Beer Presentatie xPage & Beer Presentation Transcript

    • Be smart work together Coding Java for xPage Developers Woensdag 2 Oktober 2013 Jeroen Somhorst j.somhorst@acuity.nl http://www.jeroensomhorst.eu
    • Be smart work together Coding Java for xPage Developers • Inleiding • Functions • Classes • Code comments • Error Handling • The OpenNTF Domino Api Project to the rescue
    • Be smart work together Coding Java for xPage Developers • Who is that guy? • Waar gaan we het over hebben?
    • Be smart work together Functions • Functienamen moeten vertellen wat de functie doet • Do one thing, they should do it well and they should do it only • Never use an input parameter as an output! • Flag parameters
    • Be smart work together Classes • Kleine klassen maakt blije leerlingen • SRP principle • Kleine klassen maakt blije leerlingen • SRP principle – Houd rekening met verandering!
    • Be smart work together Comments • Comments make things worse • Explain yourself in code not in comments
    • Be smart work together Error handling • Write your try/catch first! • Use of Finally • Use exceptions
    • Be smart work together The OpenNTF Domino Api Project to the rescue! • Wat is de OpenNTF Domino API? • Iterators – (.hasNext(), .next()); • No recycle! • No default try/catch for exceptions
    • Be smart work together The OpenNTF Domino Api Project to the rescue! • Get from http://bit.ly/196Cect • Copy .jar files to designer jvm/lib/ext • Copy jar files to domino jvm/lib/ext • Create update site for osgi domino • Added entry to xsp.properties on domino server to use session/database classes from api (org.openntf.domino.xsp=godmode)
    • Be smart work together The OpenNTF Domino Api Project to the rescue! • Get from http://bit.ly/196Cect • Copy .jar files to designer jvm/lib/ext • Copy jar files to domino jvm/lib/ext • Create update site for osgi domino • Added entry to xsp.properties on domino server to use session/database classes from api (org.openntf.domino.xsp=godmode)