You cannot post messages because only members can post, and you are not currently a member.
Description:
Technical and philosophical discussion of object-oriented programming in ColdFusion.
|
|
|
object creation via services
|
| |
In my (fw1) app using cf-orm, when I need an entity I have been simply doing entityNew() or entityLoadByPK(). This has been fine as mostly it's been CRUD operations. Get the entity, update properties, save it. Now I find the objects needing more "smarts" and having behavior. I'm wanting to inject services into the entities to do this. I'm using ColdSpring but... more »
|
|
One app, multiple sites
|
| |
I'm setting up an app that runs on multiple site. So essentially, everything runs on the same code, only difference is depending on the URL it's a different site, so a few things get loaded from a different folder and the DSN is different. The rest stays the same. Right now, the way I have things done is I'm loading my bean factory (Lightwire) in the server... more »
|
|
Handling the loading of object relationships
|
| |
I'm trying to get into using some more OO principles and am in doubt
as to how to handle loading object relationships. The easiest way to
illustrate is probably by example.
Suppose I have a Team component and a Player component. As a team has
many players, I'd want to have a getPlayers() method for my Team... more »
|
|
implicit accessors and inheritance
|
| |
Hi all -
Could someone help me with what inheritance might look like for two
beans that use implicit accessors?
As an example, I have a User bean as follows:
component displayname="User" accessors="true" output=false {
property name="firstName" type="string";
property name="lastName" type="string";... more »
|
|
objectorientedcoldfusion.org and coldfusiondesignpatterns.org
|
| |
A while back I kicked off these two sites and had a lot of fun putting them together but I don't have time to continue working on them any more, so I am looking for ideas on what to do. I was considering shifting the actual content (remove all the stub pages) over to github site and leave it open for anyone to contribute, but... more »
|
|
ORM and loading parents attributes
|
| |
I am building a real estate website which has a concept of users, these users can have galleries (collections of properties that meet a certain criteria). If I want to load a page of public galleries from various users hibernate is also loading all of the users and all of their related user data and it seems quite slow. Is there a quicker/better way to just get a... more »
|
|
What design pattern would you use in the following scenario...
|
| |
Say you were working on an app that mirrored functionality in StackOverFlow, in particular, their voting system. According to their schema they have 16 vote types, all stored in the same table. Vote types Up, Down, Accept, Delete, and Undelete influence reputation for recipients and voters, as well as denormalized columns in the posts table.... more »
|
|
win a copy of OO CFML book
|
| |
Hi,
I would like to let people know about a contest I am holding to win a
copy of OO CFML book [link]
It is really simple to enter, make contribution to CFML in 100 mins on
github and you are entered. The contest ends tomorrow.
Thanks and Good Luck,
Mike Henke
|
|
|