SlideShare a Scribd company logo
1 of 8
Development Rules
• *Prepare* your workspace/project
  – Window -> Preferences -> Java -> Code Style
     • Clean up
     • Formatter
     • Code templates
  – At least two source folders in Java project
     • src/main/java
     • src/test/java
  – Output folder
     • target
Development Rules (contd.)
• Format/Clean up the code regularly
  – Right click -> Source -> Clean up
     • Entire project or just one file
  – Ctrl + Shift + F (format code)
• PMD/ Style Check regularly
  – Right Click -> PMD -> Check code with PMD
  – Right Click -> Check Style -> Check code with
    Check Style
Development Rules (contd.)
• Java coding
  – Always use packages
  – One class / file
  – Never use System.out.print* methods
• Junit
  – Test class for every class
• Check-in regularly
  – Don’t wait for coding to get over
Useful commands
• To make jar files
  – jar cvf <jar file>.jar –C target/
    com/evolvus/training/anisht/<*.class>
  – jar cvf <jar file>.jar –C target/ .
• To generate javadoc for package
  – javadoc –d html –sourcepath srcmainjava
    com.evolus.training.anisht
Questions?
Thank You.
Training

More Related Content

Viewers also liked

Viewers also liked (12)

TSI Recent Workshops Oct. 2013
TSI   Recent Workshops Oct. 2013TSI   Recent Workshops Oct. 2013
TSI Recent Workshops Oct. 2013
 
Presenting research
Presenting researchPresenting research
Presenting research
 
Project FLMNH
Project FLMNHProject FLMNH
Project FLMNH
 
A Notes Developer's Journey into Java
A Notes Developer's Journey into JavaA Notes Developer's Journey into Java
A Notes Developer's Journey into Java
 
Tabloid production
Tabloid productionTabloid production
Tabloid production
 
The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!
The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!
The Autobahn Has No Speed Limit - Your XPages Shouldn't Either!
 
6 webinar-court
6 webinar-court6 webinar-court
6 webinar-court
 
Mood Board
Mood BoardMood Board
Mood Board
 
Smile and enjoy your day!
Smile and enjoy your day!Smile and enjoy your day!
Smile and enjoy your day!
 
Jinal desai .net
Jinal desai .netJinal desai .net
Jinal desai .net
 
A life without risk
A life without riskA life without risk
A life without risk
 
Hard rock Cafe Cancun
Hard rock Cafe CancunHard rock Cafe Cancun
Hard rock Cafe Cancun
 

Similar to Training

Test driven development : software process
Test driven development : software process Test driven development : software process
Test driven development : software process Amin Taheri
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introductionjyoti_lakhani
 
How to write test in node.js
How to write test in node.jsHow to write test in node.js
How to write test in node.jsJason Lin
 
CI / CD Roles, Processes and Supporting Tools
CI / CD Roles, Processes and Supporting ToolsCI / CD Roles, Processes and Supporting Tools
CI / CD Roles, Processes and Supporting ToolsMichael J Geiser
 
Oracle Workflow Continuous Integration
Oracle Workflow Continuous IntegrationOracle Workflow Continuous Integration
Oracle Workflow Continuous IntegrationRajesh Raheja
 
Code quality tools for dev
Code quality tools for devCode quality tools for dev
Code quality tools for devDeepu S Nath
 
Austin Python Learners Meetup - Everything you need to know about programming...
Austin Python Learners Meetup - Everything you need to know about programming...Austin Python Learners Meetup - Everything you need to know about programming...
Austin Python Learners Meetup - Everything you need to know about programming...Danny Mulligan
 
Andrew hurd, assessment in an intro to programming course
Andrew hurd, assessment in an intro to programming courseAndrew hurd, assessment in an intro to programming course
Andrew hurd, assessment in an intro to programming courseCengage Learning
 
Practical (J)Unit Testing (2009)
Practical (J)Unit Testing (2009)Practical (J)Unit Testing (2009)
Practical (J)Unit Testing (2009)Peter Kofler
 
Testing applications using Apache Camel
Testing applications using Apache CamelTesting applications using Apache Camel
Testing applications using Apache CamelRosen Spasov
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Drupalcon Paris
 
Advanced windows debugging
Advanced windows debuggingAdvanced windows debugging
Advanced windows debuggingchrisortman
 
Unit tests = maintenance hell ?
Unit tests = maintenance hell ? Unit tests = maintenance hell ?
Unit tests = maintenance hell ? Thibaud Desodt
 
Whats new in CDT in Mars Release
Whats new in CDT in Mars ReleaseWhats new in CDT in Mars Release
Whats new in CDT in Mars ReleaseTeodor Madan
 
Whats new in CDT in Luna Release,
Whats new in CDT in Luna Release,Whats new in CDT in Luna Release,
Whats new in CDT in Luna Release,Teodor Madan
 

Similar to Training (20)

System Programming and Administration
System Programming and AdministrationSystem Programming and Administration
System Programming and Administration
 
Maven basic concept
Maven basic conceptMaven basic concept
Maven basic concept
 
Test driven development : software process
Test driven development : software process Test driven development : software process
Test driven development : software process
 
1 java programming- introduction
1  java programming- introduction1  java programming- introduction
1 java programming- introduction
 
How to write test in node.js
How to write test in node.jsHow to write test in node.js
How to write test in node.js
 
CI / CD Roles, Processes and Supporting Tools
CI / CD Roles, Processes and Supporting ToolsCI / CD Roles, Processes and Supporting Tools
CI / CD Roles, Processes and Supporting Tools
 
Oracle Workflow Continuous Integration
Oracle Workflow Continuous IntegrationOracle Workflow Continuous Integration
Oracle Workflow Continuous Integration
 
Java JVM
Java JVMJava JVM
Java JVM
 
Code quality tools for dev
Code quality tools for devCode quality tools for dev
Code quality tools for dev
 
Austin Python Learners Meetup - Everything you need to know about programming...
Austin Python Learners Meetup - Everything you need to know about programming...Austin Python Learners Meetup - Everything you need to know about programming...
Austin Python Learners Meetup - Everything you need to know about programming...
 
Andrew hurd, assessment in an intro to programming course
Andrew hurd, assessment in an intro to programming courseAndrew hurd, assessment in an intro to programming course
Andrew hurd, assessment in an intro to programming course
 
Practical (J)Unit Testing (2009)
Practical (J)Unit Testing (2009)Practical (J)Unit Testing (2009)
Practical (J)Unit Testing (2009)
 
tools cli java
tools cli javatools cli java
tools cli java
 
Testing applications using Apache Camel
Testing applications using Apache CamelTesting applications using Apache Camel
Testing applications using Apache Camel
 
Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3Staging Drupal 8 31 09 1 3
Staging Drupal 8 31 09 1 3
 
Coding standard
Coding standardCoding standard
Coding standard
 
Advanced windows debugging
Advanced windows debuggingAdvanced windows debugging
Advanced windows debugging
 
Unit tests = maintenance hell ?
Unit tests = maintenance hell ? Unit tests = maintenance hell ?
Unit tests = maintenance hell ?
 
Whats new in CDT in Mars Release
Whats new in CDT in Mars ReleaseWhats new in CDT in Mars Release
Whats new in CDT in Mars Release
 
Whats new in CDT in Luna Release,
Whats new in CDT in Luna Release,Whats new in CDT in Luna Release,
Whats new in CDT in Luna Release,
 

Training

  • 1.
  • 2. Development Rules • *Prepare* your workspace/project – Window -> Preferences -> Java -> Code Style • Clean up • Formatter • Code templates – At least two source folders in Java project • src/main/java • src/test/java – Output folder • target
  • 3. Development Rules (contd.) • Format/Clean up the code regularly – Right click -> Source -> Clean up • Entire project or just one file – Ctrl + Shift + F (format code) • PMD/ Style Check regularly – Right Click -> PMD -> Check code with PMD – Right Click -> Check Style -> Check code with Check Style
  • 4. Development Rules (contd.) • Java coding – Always use packages – One class / file – Never use System.out.print* methods • Junit – Test class for every class • Check-in regularly – Don’t wait for coding to get over
  • 5. Useful commands • To make jar files – jar cvf <jar file>.jar –C target/ com/evolvus/training/anisht/<*.class> – jar cvf <jar file>.jar –C target/ . • To generate javadoc for package – javadoc –d html –sourcepath srcmainjava com.evolus.training.anisht