Stan Austin wrote:
Errors
your program should compile with 0 errors.
It should not throw any exemptions except in the case of command line parameter being an int but is not, in this case it should throw the default parsing exception (not sure on this)
Styling
consistent and reasonable indentation and spacing (what are the most basic fundamentals of this)
...
does NetBeans IDE have any tools to help with formatting or cleaning up, to make my first assignment really pop (after i have been through manually)
Refinement
Use of final at the end of your program should be such no variable declaration a final can be added without causing a compilation error (unsure what this means, what is a final?)
All things are lawful, but not all things are profitable.
Stan Austin wrote:
finally I know this may be construed as cheating but does NetBeans IDE have any tools to help with formatting or cleaning up, to make my first assignment really pop (after i have been through manually)
i had a some issues when formatting the for loops getting really odd results, the differences between x++, ++x and x = x+1 actually gave different results ?? any reason why?
All things are lawful, but not all things are profitable.
Junilu Lacar wrote:If you're serious about not being lazy and really wanting to develop a good style, then consider names like "argleng" as being counter to those goals. A name like "argleng" is just about the laziest kind of choice and poorest kind of style you can have.
Stan Austin wrote:
Junilu Lacar wrote:If you're serious about not being lazy and really wanting to develop a good style, then consider names like "argleng" as being counter to those goals. A name like "argleng" is just about the laziest kind of choice and poorest kind of style you can have.
Not going to lie, feeling a little offended by the wording of your comment, but I take you point, and criticism accepted.
Stan Austin wrote:in all honesty felt argleng, was quite descriptive, and my logic for not writing "NumberOfArguments" or "ArgumentCount", (didn't know a parameter was the same thing) was in fact due to space,
we have been told about the importance of vertical and horizontal space and the fact it is a commodity, so we need to keep variable names short and concise.
I appreciate your input and don't dispute it, however since it is quite contrary to what i have been told by the one other person with input on the matter I would appreciate some reference on choice of variable names or input from the wider community, and will take that forward with me as a convention.
Thank you for your input though.
Stan Austin wrote:but I take you point, and criticism accepted.
...
Thank you for your input though.
Junilu Lacar wrote:
Thank you again for taking my tactless comment in stride. I recognise that the way I say things can rub people the wrong way and I'll make some adjustments going forward. Have a cow on me.
Best regards
A long descriptive name is better than a short enigmatic name. A long descriptive name is better than a long descriptive comment.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime. |