Do you know any patterns for GUI programming? (Not patterns on designing GUIs)
By : obijywk
Date : March 29 2020, 07:55 AM
I hope this helps . I think to be honest you a better just boning up on your standard design patterns and applying them to the individual problems that you face in developing your UI. While there are common UI "themes" (such as dealing with modifier keys) the actual implementation may vary widely.
|
What Design Patterns do you implement in common Delphi programming?
By : Thorat S Ganesh
Date : March 29 2020, 07:55 AM
it helps some times Only a minority of the Delphi developers knows that every Delphi developer uses a Factory pattern (delphi.about.com has an example in "regular" Delphi), but then implemented using virtual Create constructors. So: time to shed some light on that :-) code :
type
TComponent = class(TPersistent, ...)
constructor Create(AOwner: TComponent); virtual;
...
end;
type
TDirectoryListBox = class(...)
constructor Create(AOwner: TComponent); override;
...
end;
type
TComponentClass = class of TComponent;
var
ClassToCreate: TComponentClass;
...
procedure SomeMethodInSomeUnit;
begin
ClassToCreate := TButton;
end;
...
procedure AnotherMethodInAnotherUnit;
var
CreatedComponent: TComponent;
begin
CreatedComponent := ClassToCreate.Create(Application);
...
end;
Result := TComponentClass(FindClass(ReadStr)).Create(nil);
// create another instance of this kind of grid
SubGrid := TCustomDBGrid(TComponentClass(Self.ClassType).Create(Self));
|
What are most common programming scenarios encountered during programming Web Applications?
By : Victoria Barringer
Date : March 29 2020, 07:55 AM
I wish this help you In Enterprise situations, you're likely to encounter A requirement to use LDAP and/or some form of single-sign-on Hostile or indifferent DBAs, who may hold veto power over your being able to deploy unless you get them on board very early Hostile or indifferent Ops people (see above) Having to deploy onto machines that you can't fully dictate the configurations of The need to understand and cope with whatever backup scheme is in use SOX compliance, which may require that you both have more access control and more auditability than you'd ever considered necessary
|
Common patterns in a database
By : Thiện Nguyễn Danh
Date : March 29 2020, 07:55 AM
I wish this helpful for you The previous answer suggested Apriori. But Apriori is inappropriate if you want to find frequent sequences because Apriori does not consider the time (also, Apriori is an inefficient algorithm). If you want to find subsequences that are common to several sequences, it would be more appropriate to use a sequential pattern mining algorithm such as PrefixSpan and SPAM.
|
Excluding member functions and inheritance, what are some of the most common programming patterns for adding functionali
By : user3410689
Date : March 29 2020, 07:55 AM
it should still fix some issue So as far as I understand, you're looking to extend an interface to allow client-specific implementations that may require additional functionality, and you want to do so in a way that doesn't clutter up the base class. As you mentioned, for simple systems, the standard way is to use the Adaptor pattern: subclass the "special abilities", then call that particular subclass when you need it. This is definitely the best choice if the extent of the special abilities you'll need to add is known and reasonably small, i.e. you generally only use the base class, but for three-to-five places where additional functionality is needed. code :
class MyClass{};
DecoratedClass = decorate(MyClass);
class MyClass{
public sort() { Globals.getSortStrategy()() }
};
class MyClass{
public addExtension(addMe) {
addMe.initialize(this);
}
public getExtension(getMe);
};
(new MyClass()).getExtension("wooper").doWoop();
|