| Mauro 的个人资料Taming the Jungle照片日志列表 | 帮助 |
|
3月28日 ORM vs DALI was recently involved in many discussions about “ORM vs DAL”.
“ORM” tools/philosophy starts from a class definition and then the go to the database; Hybernate and NHybernate are the most famous tools for that. “DAL” tools/philosophy starts from the database and go to a high-language layer to call the database.
It’s interesting to see that ORM tools tend to attract a very particular crowd: Java lovers, academia and big enterprises. Rational/IBM and its “ecosystem” are heavily represented here.
Microsoft camp tends to favor DAL. There’s the “Vietnam ORM” controversy some time ago that involved people from Microsoft (Don Box, for instance). ObjectSpaces, a .NET ORM library was killed before being released. Visual Studio comes with DAL tools (DataTable/DataAdapter editors). Now Microsoft has the “Entity Framework” in beta phase; from what I can see it cuts both ways and can be used as both ORM and DAL.
I myself am considerably in favor of the DAL approach: it’s simple, effective and recognizes the value of good database modeling. I particularly like Visual Studio DataTables/DataAdapters for the DAL layer. Most of my costumers are small/medium software houses that tend to perceive ORM’s dogma-full world as folly (expensive and non-performant) when compared to the familiar “SQL at your fingertips” DAL.
Yet, I still want to know what people find so attractive about the ORM world. I have a tendency to put it down as an “excellent looking idea that doesn’t work” – people is attracted by the beauty of it without realizing that it is impossible to make it work. But Java has a lot of traction with Enterprises, so maybe I am missing something. 3月6日 IE 8 First ImpressionsThe Beta 1 for Internet Explorer 8 is now publicly available for download at http://www.microsoft.com/windows/products/winfamily/ie/ie8/getitnow.mspx. Now some other new stuff:
You can check for yourself by downloading and installing it. 3月3日 Dual Booting Vista and XPAfter one year running only Windows Vista in my desktop computer I decided to install Windows XP too. I did have several partitions in my 500GB hard disk so installing XP on drive D: was quite easy. Unfortunately Vista uses yet another partitioning mechanism. After you install XP, Vista seems to be gone. The files are there at drive C: but it doesn’t show up during the boot process. The structure that controls booting in Vista is called the “BCD”. Vista does come with a command line utility (bcdedit.exe) that manages the BCD. However, you must boot Vista before using it. This is not a solution if you are “locked out”. So I needed to install Vista’s partition mechanism *and* make it “see” both OSs, preferably from Windows XP itself. Fortunately I found a free piece of software that does just that. It’s called VistaBootPro from http://www.vistabootpro.org/. You run it from Windows XP and it allows you to resurrect Vista’s boot manager and to manage the partitions, like changing the priority and the timeout. |
|
|