TwitterOct2008.pdf
Upcoming SlideShare
Loading in...5
×
 

TwitterOct2008.pdf

on

  • 846 views

 

Statistics

Views

Total Views
846
Views on SlideShare
841
Embed Views
5

Actions

Likes
0
Downloads
1
Comments
0

2 Embeds 5

http://a0.twimg.com 3
http://paper.li 2

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

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

TwitterOct2008.pdf TwitterOct2008.pdf Presentation Transcript

  • BAY AREA SCALA ENTHUSIASTS WELCOME TO TWITTER! HELP YOURSELF TO BEER AND SUCH IN THE KITCHEN.
  • ROBEY STEVE ALEX TWITTER’S SCALA HEADS
  • STYLE GUIDELINES
  • IMPORTS ENUMERATE ALL ALL IMPORTS MUST BE IMPORTS AT THE TOP OF THE FILE USE WILDCARDS FOR MORE THAN SIX USE BRACE NOTATION FOR MULTIPLE ITEMS IN A PACKAGE AVOID “RELATIVE” IMPORTS
  • IMPLICITS AVOID THEM! THEY MAKE DEBUGGING CONFUSING DOCUMENT THOROUGHLY IF YOU HAVE TO USE THEM RESTRICT TO THE SMALLEST POSSIBLE SCOPE
  • REFLECTION (JAVA) AVOID IT! SLOW POTENTIALLY CONFUSING
  • COMMENTS MANDATORY VSCALADOC SCALADOC EVERY CLASS AND NON-TRIVIAL METHOD WRITE IN PASSIVE VOICE, EX: “RETURNS A LIST[STATUS] OF 20 STATUSES FOR THE GIVEN USER.”
  • WHITESPACE 2 SPACES, NO TABS NO TRAILING WHITESPACE KEEP LINES TO 100 COLUMNS MAX
  • LOGGING USE ONLY JAVA.UTIL.LOGGING.LOGGER NOTHING GOES TO STDOUT/STDERR NAME THE LOGGING OBJECT/VARIABLE “LOG”
  • PROJECT LAYOUT MAVEN CONVENTIONS FOR DIRECTORY STRUCTURE, EX: SRC/[MAIN|TEST]/[SCALA|JAVA]/COM/TWITTER/FOO DEPLOY JARS USE ANT + IVY AS THE BUILD SYSTEM
  • VARIABLE NOMENCLATURE DON’T EXCESSIVELY ABBREVIATE VARIABLE NAMES IT’S OKAY TO USE I, J, K, ETC. FOR INDICES USE “RV” FOR TEMPORARY RETURN VALUES
  • THANKS FOR COMING!