• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Henry Wong
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Frits Walraven
  • Joe Ess
  • salvin francis

Compile Warnings.....hate them!

 
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When there is a warning, it means two things to me...
1. The validating program (be it a compiler or whatever) was not doing a good job.
2. You are too lazy to write good code confirming to the given rules.
I HATE warnings. Its a computer for god's sake. It can understand only "0" (zero) or "1" (one). There is nothing like a warning. So next time you write code, you better watch it. If I were grading your code, consider that to be an error. Sorry no partial credit in computers, with you get it or you don't.
- madhav..............just had to say it somewhere.
 
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes SIR!!
 
Ranch Hand
Posts: 4702
9
Scala Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
personally i like compiler warnings...imagine what would happen if it let you type anything you want and goes ahead and tries to compile it anyway and just finishes with no clue if it was successful or not
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
just finishes with no clue if it was successful or not
Isn't that an error / no-error condition? :roll:
Why this half-baked solution of a warning...

- madhav
 
Cindy Glass
"The Hood"
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Most warnings will eventually turn into errors. Sort of like SOMEDAY things that are deprecated are going to cause compile errors.
 
Madhav Lakkapragada
Ranch Hand
Posts: 5040
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That's exactly my point.
Someday they will be errors, so why not tag them as errors and force these lazy guys to clean-up their code.
If not SOMEDAY, it most probably is SOME MACHINE...
All I am saying is WHEN YOU WRITE CODE MAKE SURE THERE ARE NO WARNINGS ATLEAST ON YOUR SYSTEM....wish I could just yell out loud so that everyone around me can hear.
- madhav
ps:
[ edited for content ]
 
Wanderer
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, what if there are no warnings when you write something, but then a year later there's a new version of Java out and they've deprecated some of the methods you used? Should they refuse to compile the code at all until the deptrecated methods are removed? That seems a bit harsh. Depending on the methods involved, that may well turn out to be best in the long run, but it wouldn't win Sun any friends - backwards compatibility is usually considered fairly important.
 
If you are using a rototiller, you are doing it wrong. Even on this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!