A
Amali
What is meant by programming "style" and why it is important
Amali said:What is meant by programming "style" and why it is important
What is meant by programming "style" and why it is important
What is meant by programming "style" and why it is important
I have run into this word many times and am unclear as to how one ofLiz said:Avoiding obfuscation.
It's important because it makes your code more readable.
Some conventions like where to put the brackets might seem odd to you,
but if everyone puts them in similar places, it's easier to read
everyones code.
Many people have died over long winded discussions of format, spacing
and such.
John T said:I have run into this word many times and am unclear as to how one of these
definitions:
1. to confuse, bewilder, or stupefy.
2. to make obscure or unclear: to obfuscate a problem with extraneous
information.
3. to darken.
relates to Java programming. Is there a definition which is more
applicable to Java or is the general "make it hard to understand" concise
enough?
/* why it is important */What is meant by programming "style" and why it is important
John said:I have run into this word many times and am unclear as to how one of
these definitions:
1. to confuse, bewilder, or stupefy.
2. to make obscure or unclear: to obfuscate a problem with extraneous
information.
3. to darken.
relates to Java programming. Is there a definition which is more
applicable to Java or is the general "make it hard to understand"
concise enough?
Is there a definition which is more
applicable to Java or is the general "make it hard to understand"
concise enough?
Alex said:2) bytecode obfuscation - compacts the bytecode (also in the process
making it probably harder to pick meaning out of any decompilation of
said bytecode) - often used in J2ME projects to reduce download size
Lew said:Style is [...]
There is far more to style than mere indentation. Where you place your braces
isn't style, it's formatting. Style is whether you use compact algorithms with
solid invariants and good error checking, or if you just slap together some
crude loops and hope it works. Style is anally javadocing everything in sight,
vs. letting the next schnook forensically discern your intentions. Style is
choosing whether to make a method public final or protected inheritable. Style
is making nicely encapsulated, beautifully cooperating modules that emergently
produce magic and cannot break or fail in the face of the most outrageous user
input. Style is coding an application at sixty-four times the industry average
and having a fraction of the bugs, and leaving easy room for every future
enhancement the customer wishes.
As long as you remain focused on the braces and indents, you will never see
the grasshopper.
- Lew
Lew said:Style is [...]
Nah, true style is setting your editor to use green against a black
background...
-- chris
Daniel said:Or, using javadoc to bury the smell of bad naming conventions.
Which would you rather see, the javadoc version?
// Ask the scenes forensic-material-team to scout the scene.
fmt().go(s)
--- or the self-documenting version?
getForensicMeterialTeam().scout(scene);
Daniel said:Or, using javadoc to bury the smell of bad naming conventions.
Which would you rather see, the javadoc version?
// Ask the scenes forensic-material-team to scout the scene.
fmt().go(s)
--- or the self-documenting version?
getForensicMeterialTeam().scout(scene);
What is meant by programming "style" and why it is important
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.