Monday, February 14, 2005
Sunday, February 13, 2005
Thursday, December 30, 2004
Sunday, December 26, 2004
Monday, December 13, 2004
developerWorks : Blogs
Microsoft and Domain Specific Languages
M$ just issued the concept of software factory and Domain Specific Languages that will be a big impact to some existed design language such as UML, the author of this article is one of 3 founder of UML & Rose, he said that he is quite disappointed with it.
M$ just issued the concept of software factory and Domain Specific Languages that will be a big impact to some existed design language such as UML, the author of this article is one of 3 founder of UML & Rose, he said that he is quite disappointed with it.
Sunday, November 28, 2004
Some delphi guys complain that there are no class reference in java and .net, such as
type
BaseClass = class constructor Create; virtual;
...
end;
BaseClassRef = class of BaseClass
DerivedClass1 = class (BaseClass )
DerivedClass2 = class (BaseClass )
RegisterClass(DerivedClass1);
RegisterClass(DerivedClass2);
...
var
AClassRef : BaseClassRef ;
begin
//the class name can be stored in a configuration profile
AClassRef := BaseClassRef(FindClass('DerivedClass1'));
...
end;
Now, we could do the similar thing with a java IOC framework PicoContainer.
Interface BaseIntf
class DerivedClass1 implements BaseIntf
class DerivedClass2 implements BaseIntf
public void () {
MutablePicoContainer pico = createPicoContainer(null);
pico.registerComponentImplementation("DerivedClass1",DerivedClass1.class);
pico.registerComponentImplementation("DerivedClass2",DerivedClass2.class);
...
//the class name can be stored in a configuration profile
BaseIntf t = (BaseIntf) pico.getComponentInstance("DerivedClass2");
assertNotNull(t);
}
PicoContainer has .net portion too.
type
BaseClass = class constructor Create; virtual;
...
end;
BaseClassRef = class of BaseClass
DerivedClass1 = class (BaseClass )
DerivedClass2 = class (BaseClass )
RegisterClass(DerivedClass1);
RegisterClass(DerivedClass2);
...
var
AClassRef : BaseClassRef ;
begin
//the class name can be stored in a configuration profile
AClassRef := BaseClassRef(FindClass('DerivedClass1'));
...
end;
Now, we could do the similar thing with a java IOC framework PicoContainer.
Interface BaseIntf
class DerivedClass1 implements BaseIntf
class DerivedClass2 implements BaseIntf
public void () {
MutablePicoContainer pico = createPicoContainer(null);
pico.registerComponentImplementation("DerivedClass1",DerivedClass1.class);
pico.registerComponentImplementation("DerivedClass2",DerivedClass2.class);
...
//the class name can be stored in a configuration profile
BaseIntf t = (BaseIntf) pico.getComponentInstance("DerivedClass2");
assertNotNull(t);
}
PicoContainer has .net portion too.
Sunday, November 21, 2004
Friday, November 19, 2004
Tuesday, November 16, 2004
Spring.NET - Application Framework
http://www.springframework.net/doc/reference/index.html
This release contains a lightweight container with IoC / Dependency Injection functionality comparable to that found in the Java based Spring framework. Highlights include
- Constructor and Setter based Dependency Injection
- Factory method creation
- Inheritance of object definitions
- Support for .NET application configuration files
- Event wiring
- Autowiring of collaborators
- Singleton/Prototype creation modes
Friday, November 12, 2004
pinvoke.net: the interop wiki!
It is a site that attempts to address the difficulty of calling Win32 or other unmanaged APIs in managed code
It is a site that attempts to address the difficulty of calling Win32 or other unmanaged APIs in managed code
Thursday, November 11, 2004
use IOCP in thread
use IOCP in socket
IOCP is most efficient method in Win32 thread and Socket programming, but it requires much more work.
use IOCP in socket
IOCP is most efficient method in Win32 thread and Socket programming, but it requires much more work.
Contexts in .NET: Decouple Components by Injecting Custom Services into Your Object's Interception Chain -- MSDN Magazine, March 2003
Aspect-Oriented Programming Enables Better Code Encapsulation and Reuse
ContextBoundObject is a nice way to implement AOP in DotNet, but it is a little expensive.
Aspect-Oriented Programming Enables Better Code Encapsulation and Reuse
ContextBoundObject is a nice way to implement AOP in DotNet, but it is a little expensive.
DHTML Menu 4 (WebFX)
version 3 allowed menus to cover windowed controls,
version 4 can be displayed outside the physical boundaries of the browser window.
version 3 allowed menus to cover windowed controls,
version 4 can be displayed outside the physical boundaries of the browser window.
Subscribe to:
Posts (Atom)