Campbell Ritchie wrote:Here is that website...Note that although that page is labelled latest update 2006, it appears to have been written before the @Override annotation was introduced to pick up spelling errors when overriding.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Campbell Ritchie wrote:Here is that website. I find I am disagreeing with their first supposed error. For at least two reasons:
1: It is a compiler error. Compiler errors are never severe, because you find out about them quickly. 2: The error is the wrong way round. It goes on about non‑static access. On this forum, however, I see lots of people who mark things static which ought not to be static. That is just my opinion, however, and the website does correctly and clearly described that error and its solution.
Winston Gutkowski wrote:Although I suspect there will be a lot that disagree with number 6: as Jesper says, object-type variables and parameters ARE references, so in fact Java passes everything by value. I also agree with his points that are not in the list.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Campbell Ritchie wrote:Another pitfall is not following strict and consistent spacing and indentation conventions. All is well until you get your {} mismatched and can’t understand the compiler error. If you indent correctly, mismatches are easier to avoid and easier to find.
Another frequent error which is very easy to overlook is the empty statement.
fred rosenberger wrote:In my mind, the single biggest pitfall of newbies learning to PROGRAM is that they think that the first thing you do is sit at your computer and start typing in Java (or whatever).
I don't think anybody does a good enough job explaining that a significant part of programming involves thinking, not typing.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Campbell Ritchie wrote:Dennis Deems, “It all depends what you mean by error.”
I did say, “in my opinion,” and I think everybody here would have a different list.
Winston Gutkowski wrote:
fred rosenberger wrote:I don't think anybody does a good enough job explaining that a significant part of programming involves thinking, not typing.
Well here's mine: StopCoding.![]()
Winston
Dennis Deems wrote:I like this very much.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Amended versionDennis Deems wrote: . . .
D. Ogranos wrote:for example int vs. Integer, Java 1.5+ makes it easy to forget about the difference with autoboxing
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote:
D. Ogranos wrote:for example int vs. Integer, Java 1.5+ makes it easy to forget about the difference with autoboxing
Indeed. Which is why I'm not a big fan of it.
Matthew Brown wrote:E.g. some languages have reference types and value types, but they have a common subclass and you can add and remove them from collections without either clunky wrapper code or invisible transformations.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
I have a knack for fixing things like this ... um ... sorry ... here is a consilitory tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
|