Shawn Stratton writes on Accesors and Religion

May 16, 2011

Uncategorized

The problem

Classes have public properties that can be accessed directly and protected properties that you want accessed by setters and getters so that processing can be done. It’s a tale as old as time, do you create setters and getters for all properties or just try to remember which is which. Thankfully Shawn Stratton has provided an interesting and workable solution in his post, “Accesors and Religion”

Today I’m going to become flame bait, I’m going to talk about some­thing that’s highly con­tro­ver­sial, not because most view points on it are wrong but because every­ones dif­fer and they’re all wrong besides mine. Well there went my attempt at being sar­cas­tic, but seri­ously, this is one of those dis­cus­sions that will always be highly controversial.

Shawn has never been shy about being right. His solution presented though is workable. Whether it fits in a real-world scenario is a different question and one each reader will have to answer for themselves. Click on over and give Shawn’s solution a look. Leave him a comment telling him whether you like it or not and whether you can actually implement it in your project.

About Cal Evans

Many moons ago, at the tender age of 14, Cal touched his first computer. (We're using the term "computer" loosely here, it was a TRS-80 Model 1) Since then his life has never been the same. He graduated from TRS-80s to Commodores and eventually to IBM PC's. For the past 10 years Cal has worked with PHP and MySQL on Linux OSX, and when necessary, Windows. He has built on a variety of projects ranging in size from simple web pages to multi-million dollar web applications. When not banging his head on his monitor, attempting a blood sacrifice to get a particular piece of code working, he enjoys building and managing development teams using his widely imitated but never patented management style of "management by wandering around". Cal is currently based in Nashville, TN and is gainfully unemployed as the Chief Marketing Officer of Blue Parabola, LLC. Cal is happily married to wife 1.28, the lovely and talented Kathy. Together they have 2 kids who were both bright enough not to pursue a career in IT. Cal blogs at http://blog.calevans.com and is the founder and host of Day Camp 4 Developers

View all posts by Cal Evans

Comments are closed.