UNLV-ShaneD / unlvCS473kilo

5 stars 4 forks source link

Projection Singleton #15

Closed strongd closed 12 years ago

strongd commented 12 years ago

I'm curious to know if I should or should not make the Projection entity a singleton. When we discussed our project during last class, it seemed like Projection would be made as a singleton. But didn't Matt say he disliked singletons? I can't remember what he said.

I'm just not sure how making it a singleton would help with anything, and I'd like some thoughts on it.

benallyc commented 12 years ago

Yeah, earlier in the semester Matt swore singletons were against all programming patterns/religions, but during our discussion in last class, he did seem to suggest using a singleton.

UNLV-ShaneD commented 12 years ago

I don't see a point in even instancing the projecting controller since it is 100% stateless. I'd just make all the methods static.

strongd commented 12 years ago

I made it a provider, under a edu.unlv.kilo.provider package, if that means anything.

UNLV-ShaneD commented 12 years ago

It means this issue is solved! Yaaaaaay...