Comment Re: "So who needs native code now?" (Score 1) 289
There's nothing wrong with setters and getters provided one writes them well. It's extra work but I've had times where having setters and getters to put break points in would have allowed me to catch and fix highly insidious bugs caused by people doing bad things in other parts of the code. To be fair it was their use of globals that made it an issue in the first place :/.
That being said I always try to write them in attribute style as it looks almost as clean as direct public access.
That being said I always try to write them in attribute style as it looks almost as clean as direct public access.