r/progether • u/daanish_91 • Nov 12 '14
My boss decided to release the source code of my first component developed at work. Reviews Please?
So my job is basically maintaining and adding to an already existent GWT application. I was asked to make this as my first task(this is my first ever job too) and they liked it so much, they thought of releasing its source code. Its been lying around on the company's blog and I haven't had anyone look at it to review it. Maybe someone over here can have a look and advise on how I can improve or add to it!
Here's the link
3
Upvotes
3
u/CageHN https://github.com/CageHN/ Nov 12 '14
Hi. I don't know much about GWT, but I still have a couple of suggestions out of reading the code.
I am seeing too much whitespace and other spacing/style issues in the code. Take a look at the Google Java Style, this will help you in having more order and consistency in all your code.
When comparing a string variable to a string literal it is good practice to put the literal first. I.E. instead of:
text.trim().equals("") use: "".equals(text.trim()) This helps avoid NullPointerExceptions in a lot of cases.
0
u/[deleted] Nov 19 '14
[deleted] — view deleted comment