Sunday, February 13, 2005

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.

Tuesday, November 30, 2004

systemwebmail.com
good site to introduce the webmail in .net framework

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.

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

  1. Constructor and Setter based Dependency Injection
  2. Factory method creation
  3. Inheritance of object definitions
  4. Support for .NET application configuration files
  5. Event wiring
  6. Autowiring of collaborators
  7. 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

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.
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.
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.