I've just created a Classic ASP version of the FirePHP server side library, that works with the regular old FirePHP console.
see the Github project
However in my implementation, i have to create a global to store the class instance.
I have no idea how to, if it is even possible to create static methods, and thus use the singleton patt...
Hi,
I'm current using Raptier as a DAL. It has served me very well up until now, but it is becoming restictive to the kind of RAD work I do, as any changes require a large number of classes to be refactored etc... In addition they don't seem to be releasing any more templates/upgrades etc...
Currently I have...
UI (server side ...
Hi,
We have a system with 2 clients (which will increase). These two clients connect to the same server/database, however neither should be able to see the others sensitive information. There is however some shared non sensitive information.
There is also an administrative department who does work on behalf on both of the clients. They...
I'm trying to use the Supervising Controller pattern in a simple web application. My view is a sign up form and has many fields for a user to input (Think several pages of gmail sign up) This data will populate an entity, and this entity is processed when the user has submitted it.
For Example:
public interface ICreateAccountView
{
...
I have two models, associated with a HABTM (actually using has_many :through on both ends, along with a join table). I need to retrieve all ModelAs that is associated with BOTH of two ModelBs. I do NOT want all ModelAs for ModelB_1 concatenated with all ModelAs for ModelB_2. I literally want all ModelAs that are associated with BOTH Mode...
Recently I have noticed a number of questions on SO that look something like this:
I am writing a small program to keep a
list of the songs that I keep on my
ipod. I'm thinking about writing it
as a 3-tier MVC Ruby on Rails web
application with TDD, DDD and IOC,
using a factory pattern to create the
classes and a singlet...
What do you think of Mr. King's software development analyst at http://devadept.com/?
I ask because reading his blog has made me rethink how I should be coding software. I mean, I used to concern myself with just getting a project done, but I think I may be missing something and his blog makes me feel that way.
Am I just a programmer ...
What patterns have you come across as being used frequently with successful results?
Is there a resource of patterns used in embedded programming?
Most patterns books such as the GOF book focus on OOP techniques, surely there are similar patterns in the embedded systems domain.
...
As I wire up my first fairly complicated Cocoa-Touch view I feel like I'm inadvertently slipping back into old procedural patterns and finding it difficult to shake them off...Though fully aware of many of the Cocoa (OO) design patterns I'm afraid I may be subverting them.
As such this view in question is quickly becoming unmanageable a...
What do you care most in the loading process of your site
Statistical Data ,Performance , ...
We know that always we need to make a balance between Quality & performance ,
so for you as an architect-developer of a site , Which things do you consider
for the loading process of your site , What do you care most ?
I like to hear your id...
I need to Inject some global service (daoFactory) into EventListenet subscribed on PostUpdate event. I`ve read that it is possible to do this way:
public class YourPostInsertListener : IPostInsertEventListener
{
private readonly IPersistentAuditor auditor;
public YourPostInsertListener(IPersistentAuditor auditor)
{
this.auditor = a...
Hi,
I'm developing a WPF application that talks to a database through the Entity Framework, and I'm having huge issues trying to keep the application responsive. The DataContext isn't thread safe, so you can't do data access from background threads. You can't pass objects between DataContexts due to the object tracking (I've tried for ...
I have the following enum ( pseudo code )
enum RunSequence : int
{
ABCD = 1 ,
BCDA = 2 ,
DABC = 3 ,
....
}
You get the idea ...
Now if each letter represents some 4 lines of code , what would be the smartest way of building the logic for running those 16 lines of code in the desired sequence according to the RunSequence passed ...
How do you prefer to manage the contents of your site ,
XSLT , SQL , Sharepoint or ... or maybe a mixed version ,
For example you have articles , products , blogs
I saw in different codes that every developer used a different mechanism to store their data ,
What is yours ? what do you prefer in different cases ? what is the reason ?
...
My problem is:
I would like to add to a Composite class Leaf objects created at runtime inside
a Composite routine like this:
def update(self, tp, msg, stt):
"""It updates composite objects
"""
d = Leaf()
d.setDict(tp, msg, stt)
self.append_child(d)
return self.status()
Inside main:
import lib.composite
c =...
Hi!
I have 4 base classes:
class A { virtual SomeMethod () { <code> } }
class A<T> { virtual SomeMethod () { <code> } }
class B { virtual SomeMethod () { <code> } }
class B<T2> { virtual SomeMethod () { <code> } }
Now, i have 4 implementations (each implementation is derived from the corresponding base type).
class Aa : A { overrid...
We're looking at patterns such as MVP that can help make us seperate UI from logic from data. The initiative is late in the game, but is an effort to begin to set rules that we need to write more testable code (currently we write hairballs, spaghetti, duct-tape and wood screws, etc.)
As we look to the approaches to take with out 2.0 ...
Hi,
Can you please outline the differences between the Repository pattern and the Factory pattern?
...
I have parsed XML file into objects, in which each object has a 1:1 relationship with XML node in the file. This object tree implements Composite and Visitor design patterns as per Jeremy Miller's following blog entry:
http://codebetter.com/blogs/jeremy.miller/archive/2007/10/31/be-not-afraid-of-the-visitor-the-big-bad-composite-or-thei...
Hi, I am trying to implement customizable notifications. The notification itself consists of text and some placeholders for system-generated data:
(http://www.evernote.com/pub/lkurts/public#Note/aab1e6eb-1eaf-4b9d-8cef-6bd499be0bb9)
As you can see the placeholder is in square brackets: [User Name]. For each notification, a number of ...