By Peter Bell

Another blow for encapsulation!

I just came across a great post by Dave Spurr who I think does a great job of summarizing why I hate Gateways and returning Queries instead of using Iterating Business Objects to keep encapsulation.

The core of the post is about half way down when he provides a great summary of the benefits of getters and setters and why you'd want to use them consistently - whether returning one record or many.

Comments
I read the post last night and thought it was a great read. I'm trying to follow a lot of the ideas you got and from what I understand so far I really like them. I use base classes often and have found them to be extremely effective in my development. Allows me to stay DRY when coding my beans and DAO's so I'm happy with that. I always like going through code I could find useful to add on to my own development but you haven't shared anything yet. Will you be having a sample up sometime soon?? Or some sample files to download? Simply an anxious request. You talk about some great stuff Peter keep it up!
# Posted By Javier Julio | 8/28/06 4:02 PM
Hi Javier,

I've put snippets of code up in earlier postings, and there really isn't that much code to post, but I'm cleaning up my base iterating object and my other base classes, so I'll upload them over the next week or so in case anyone is interested . . .

Best Wishes,
peter
# Posted By Peter Bell | 8/28/06 4:19 PM
Peter

I'm really loooking forward to seeing your code. I think I understand the concepts you promote reasonably well, however seeing code will confirm my understanding (or see me crash to earth in flames!).

Keep up the good work. Your posts are very interesting and informative.

Cheers
# Posted By Nathan Drury | 8/28/06 7:24 PM
Hi Nathan,

OK, I'll post code over the next week or so, but please bear in mind I've posted the code for the first cut of things like the iterating business objects, so it is out there - it is just built into the posts rather than a seperate download.

Still, I'll post more code shortly. Am cleaning up the code and API anyway, so it's a good time!

Best Wishes,
Oeter
# Posted By Peter Bell | 8/28/06 7:30 PM
Thanks Peter

I've just noticed the Snippets area in your blog and that covers most of what I wanted to see, so there's no rush on getting out anymore code :)

Cheers
# Posted By Nathan Drury | 8/28/06 7:34 PM
Hey guys, well the thing is I understand some stuff about OO but seeing a working example that I could run on my local machine would do wonders for me. Don't get me wrong Peter you are talking to someone who's read every single post you've made since your first one and they are great. Its just that I don't yet fully understand these concepts but I'm learning so much. If you do get post up a working sample for us to download please let me know. You do some great stuff! Take it easy.

Ciao!
Javi
# Posted By Javier Julio | 8/28/06 10:03 PM
BlogCFC was created by Raymond Camden. This blog is running version 5.005.