Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Gene Wirchenko Newsgroups: comp.lang.java.help Subject: Re: Validating form inputs? Date: Wed, 21 Mar 2012 19:09:50 -0700 Organization: A noiseless patient Spider Lines: 43 Message-ID: <072lm75r2kqf7sfj8ivoggnmfr03o7gr69@4ax.com> References: <32128919.1956.1332366998647.JavaMail.geo-discussion-forums@pbij6> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Injection-Info: mx04.eternal-september.org; posting-host="wKah3EH8kutwAOV6+9FiEQ"; logging-data="8176"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/SLSMYocU2MdvZIOBKTCTqUuzfuR/FdOw=" X-Newsreader: Forte Agent 4.2/32.1118 Cancel-Lock: sha1:BnpZJeLDKH7HKG13u5VZpF9wqKo= Xref: csiph.com comp.lang.java.help:1657 On Wed, 21 Mar 2012 14:56:38 -0700 (PDT), Lew wrote: >Gene Wirchenko wrote: >> Classes can be very useful. They can also be a waste of time. If >> the only reason that you use classes is because you get to use >> classes, that is not a good idea. >> >> I recall one assignment during my degree where this got >> demonstrated rather well. We were to write code comparing various CPU >> time allocation algorithms. I figured out how to code it and wrote >> it. I wrote procedural code. There was no need for classes except >> for the one class Java requires. One of my classmates went the OOPS >> route. It did not work out, and he had to restart just before the >> assignment was due. He did not get through the whole assignment. My >> classmate was a sharp person. > >Given that we only hear this through the filter of your interpretation, it's not very evidentiary. Without seeing the exact problem and where Oh, no! I forgot to attach the affadavits. >your friend (however sharp he may have been) went wrong, there's simply not enough here to blame "classes" for his failure. On the face of it, his problem seems much more likely to have been his and not classes'. Sometimes a person gets off on the wrong algorithmic foot, or maybe he just didn't understand object-oriented programming yet well enough to get it right. Whatever the actual facts, I remain extremely skeptical that it was classes' fault. Well, he was into Java's features on that assignment. At one point, he said that he was using comparators. I can not see what he was using them for. I am assuming he was into classes since presumably, using comparators made sense to him. I suspect that the shiny got him. I looked for how to use classes, but just did not see any way that they would be helpful on the assignment so I did not use them. Some people would anyway. Sincerely, Gene Wirchenko