Home arrow static arrow Java Programming [Archive] - Java Coding Best Practices
Warning: Creating default object from empty value in /www/htdocs/w008deb8/wiki/components/com_staticxt/staticxt.php on line 51
Java Programming [Archive] - Java Coding Best Practices
This topic has 77 replies on 6 pages.    « Previous | 1 | 2 | 3 | 4 | 5 | 6 |

Posts:27,518
Registered: 11/3/97
Re: Java Coding Best Practices  
Jun 14, 2004 11:23 AM (reply 75 of 77)



 

And who is the "Cool Dude" who has "very little
knowledge"? Is that me? Whoever it is, on what do you
base that claim?

Anyone besides UJ who doesn't parrot her arguments.

So I suspect that it includes you, but at least you can be assured that you are far from alone in the group.
 

Posts:5,965
Registered: 5/17/03
Re: Java Coding Best Practices  
Jun 14, 2004 11:34 AM (reply 76 of 77)



 

And who is the "Cool Dude" who has "very little
knowledge"? Is that me? Whoever it is, on what do
you
base that claim?

Anyone besides UJ who doesn't parrot her arguments.

So I suspect that it includes you, but at least you
can be assured that you are far from alone in the
group.

Hi Cool Dudes I love you.
 

Posts:2,830
Registered: 9/1/03
Re: Java Coding Best Practices  
Jun 14, 2004 5:23 PM (reply 77 of 77)



 
Both of these suggest that
the best answer is to inform them of these
techniques and to also discuss that the developers
seldom can 'guess' bottlenecks so one should use a
profiler instead.

this is the exact response that myself, and uj (i think), are talking about ... not everyone is
writing a massive enterprise application that requires profilers and so on,
sometimes (all the time) it is helpful for the overall education of a programmer
not just to sit back and watch a profiler say when things are slow or not, but to
learn, deep-down, which way of doing somethinv very simple is faster or not.

i.e. I too have seen a junior programmer use 'StringBuffer' absolutely everywhere because
he was told 'yes, its faster', without learning how it works at all (i.e. using it to concatenate
literals, and using it as a buffer to a buffered output stream :( ...) if these people can
learn the inner workings of things rather then the theory of 'leave it to the profiler' then the whole
software world will be better off ! (maybe exhaggerating :)

anyway ... the point i wanted to make was that not everyone uses a profiler in the development
of their apps (and its not a bad thing), so learning which is more efficient without one is cerainly
a valid exercise. and learning the innerworkings of the java language is also a valid adventure
to go on, rather than learning that: "it doesn't matter to your app, use what is better for your design.",
anyone can figure this out on their own ... this forum is for discussion of java innerworkings, ...

PS: only here could I imagine having a discussion about how to have a discussion ... :)
 
This topic has 77 replies on 6 pages.    « Previous | 1 | 2 | 3 | 4 | 5 | 6 |