Steve Luke wrote:Since your class sounds like a data holder (it has getter and setter methods) you should consider making one Or more XML helper classes for everything that isn't data holding.
Steve Luke wrote:Neither of those two issues is very Compelling, so which you choose usually ends up coming from personal preference or your projects/company's Coding conventions.
Paul Mrozik wrote:So I suppose it's just a matter of personal preference or company policy. I thought it was performance-related. Which IDE do you use if you don't mind my asking? I'll probably start using an IDE soon, but I'm holding off for a while until I get really comfortable with Java.
Paul Mrozik wrote:
I'd like my code to be really clean but without getting into analysis by paralysis mode.
Winston Gutkowski wrote:
That's definitely a good idea. Personally, I use Eclipse; but most of the major ones offer similar tools.
As to your original question: one thing I would say is that there are gazillions of 3rd party classes and packages around for XML processing. If I were you, I'd make sure that you're not writing code that is re-inventing the wheel.
Junilu Lacar wrote:
If you want to learn how to write clean code, then get the book "Clean Code" by Robert Martin. Good companion books for this are "Refactoring" by Martin Fowler and "Growing Object-Oriented Software, Guided by Tests" by Freeman and Pryce and books on automated unit testing.
Message for you sir! I think it is a tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koophttps://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton