How to avoid big and clumsy UITableViewController on iOS?
I have a problem when implementing the MVC-pattern on iOS. I have searched the Internet but seems not to find any nice solution to this problem.
Abstract Factory Method and Polymorphism
Being a PHP programmer for the last couple of years, I’m just starting to get into advanced programming styles and using polymorphic patterns. I was watching a video on polymorphism the other day, and the guy giving the lecture said that if at all possible, you should get rid of if
statements in your code, and that a switch is almost always a sign that polymorphism is needed. At this point I was quite inspired and immediately went off to try out these new concepts, so I decided to make a small caching module using a factory method. Of course the very first thing I have to do is create a switch to decide what file encoding to choose. DANG!
Class Design and Structure Online Web Store
I hope I have asked this in the right forum.
What are the advantages of the delegate pattern over the observer pattern?
In the delegate pattern, only one object can directly listen to another object’s events. In the observer pattern, any number of objects can listen to a particular object’s events. When designing a class that needs to notify other object(s) of events, why would you ever use the delegate pattern over the observer pattern? I see the observer pattern as more flexible. You may only have one observer now, but a future design may require multiple observers.
css – use universal ‘*’ selector vs. html or body selector?
Applying styles to the body tag will be applied to the whole page, so
Should I implement BackBone.js into my ASP.NET WebForms applications?
Our application is using the WinForms Framework.
Distinguishing between UI command & domain commands
I am building a WPF client application using the MVVM pattern that provides an interface on top of an existing set of business logic residing in a library which is shared with other applications. The business library followed a domain-driven architecture using CQRS to separate the read and write models (no event sourcing). The combination of technologies and patterns has brought up an interesting conundrum:
Is there a design pattern for chained observers?
Several times, I’ve found myself in a situation where I want to add functionality to an existing Observer
–Observable
relationship.
How to handle sorting of complex objects?
How would one sort a list of objects that have more than one sortable element?
Design Patterns – Service Layer
I currently reading a lot about Design Patterns and I have been watching various Pluralsight videos from their library. Now so far I have learnt the following: