Whats wrong with the snippet?

public boolean isNegative(int number) {
    // use 10 as radix
    String stringVal = Long....
Top 10 mistakes in Eclipse plug-in
          development

                            Prakash G.R.
               Eclipse ...
Agenda

✗   Teach Eclipse plug-in development
✗   Educate about the mistakes
✗   Improve the code quality
✔   Just try to ...
Top 10 mistakes

10. Not reading the javadoc
9. Not having a default constructor
8. One plugin – do – it – all problem
7. ...
Top 10 mistakes contn...

5. Ignoring build.properties
4. Empty dispose method
3. Not honoring monitor cancellation
2. I-a...
Back to the question

public boolean isNegative(int number) {
    // use 10 as radix
    String stringVal = Long.toString(...
Back to the question




public boolean isNegative(int number) {
    return number < 0;
}




                            ...
Bonus

Looking into the details is important, but ..



                     Never, ever loose
                     focus ...
Questions   &   Answers




                          9
Thank you




Image Credits http://www.fickr.com/photos/crystaljingsr/sets/72157622354789320/
                            ...
Upcoming SlideShare
Loading in …5
×

Top 10 mistakes in eclipse plug in development

12,712 views

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
12,712
On SlideShare
0
From Embeds
0
Number of Embeds
11,147
Actions
Shares
0
Downloads
0
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Top 10 mistakes in eclipse plug in development

  1. 1. Whats wrong with the snippet? public boolean isNegative(int number) { // use 10 as radix String stringVal = Long.toString(number, 10); char minusSign = stringVal.charAt(0); if(minusSign == '-') return true; //Yes, its -ve number else return false; //Nope, its +ve number } 1
  2. 2. Top 10 mistakes in Eclipse plug-in development Prakash G.R. Eclipse Platform UI Team IBM ISL www.eclipse-tips.com 2
  3. 3. Agenda ✗ Teach Eclipse plug-in development ✗ Educate about the mistakes ✗ Improve the code quality ✔ Just try to keep you awake 3
  4. 4. Top 10 mistakes 10. Not reading the javadoc 9. Not having a default constructor 8. One plugin – do – it – all problem 7. Using 'internal' code 6. Directly setting the classpath 4
  5. 5. Top 10 mistakes contn... 5. Ignoring build.properties 4. Empty dispose method 3. Not honoring monitor cancellation 2. I-am-important contributions 1. Long running operations in UI thread 5
  6. 6. Back to the question public boolean isNegative(int number) { // use 10 as radix String stringVal = Long.toString(number, 10); char minusSign = stringVal.charAt(0); if(minusSign == '-') return true; //Yes, its a -ve number else return false; //Nope, its a +ve number } 6
  7. 7. Back to the question public boolean isNegative(int number) { return number < 0; } 7
  8. 8. Bonus Looking into the details is important, but .. Never, ever loose focus on the bigger picture 8
  9. 9. Questions & Answers 9
  10. 10. Thank you Image Credits http://www.fickr.com/photos/crystaljingsr/sets/72157622354789320/ 10

×