From:The Principles of OODWhat is object oriented design? What is it all about? What are it's benefits? What are it's costs? It may seem silly to ask these questions in a day and age when virtually every software developer is using an object
如何閱讀大型應用程式的code base?我們項目組內部談論了下。有幾點收穫,總結下來:1. 畫UML class diagram (UMLAsSketch)及更高層、抽象層級的圖來協助理解和總結。原則是:Just do what makes things work!不用考慮什麼UML standard的問題。只要畫出的圖有助於自己和別人理解問題,就足夠了。比如順序圖,畫起來很難畫。而且,他面對的代碼層級比較low
There are so many remote desktop software in the market. You can get a list from this wiki page.Here, I just want to summarize about MS technology. As we know, we have used remote desktop connection (mstsc.exe, which was named "terminal service
來自coolshell大家看到標題後的第一個問題可能是:“我們需要這樣做嗎?”如果我們開發的是區域網路 Web 應用程式的話,可能沒有必要這樣做。但如果我們的 Web 應用程式面向的是互連網上的成千上萬的使用者,這樣做就很必要了。因為在現實世界中並不是所有的使用者都有高數率的網路連接,也許使用者使用的是撥號接入,移動設 備,3G,或者是 USB 網路加密狗。如果我們沒有在低數率的網路環境中測試過我們 Web 應用程式,極有可能在上線後收到一些意想不到的關於系統效能方面的抱怨。這個時候無論我們的
1. Struct與類的區別:(1)結構是實值型別,不是參考型別。(2)結構可以繼續介面,但是不可以繼承類或結構。(3)結構的構造方法的工作方式有所不同,只能聲明帶參數的構造方法,且不能聲明析構方法。(4)可以指定欄位如何在記憶體中布局。 (5) 使用。如下兩種方法都可以。但是切記:方法一的話,"Users user;" 並沒有調用建構函式初始化成員變數!!所以,總起來講,還是方法二好!以下為MSDN words:The struct type is suitable for
As we know, MFC, WPF, or any mature application development framework, they provide XX_click, XX_doubleClick for either whole view / form or any controls to let us easily add our event handler. But a fact should be known is that: all such events don'
Link from Code Project: http://www.codeproject.com/KB/dotnet/VSCPinYourIDE.aspx How to add VSCP to your IDEWe can add the VSCP as a tool in the IDE so it will be very easy to access the VSCP from the IDE itself.In your IDE, go to Tools ->
Quick toggle between .h and .cpp filesWhen programming C++ it is a very common need to switch between the .h and .cpp file. There are no built in way to do this in Visual Studio, however it is possible to accomplish! You can either use an
Beej's Guide to Network ProgrammingUsing Internet Sockets Hello, one and all! This is my little how-to guide on network programming using Internet sockets, or "sockets programming", for those of you who prefer it. The sockets API, though started
If you know some C++ STL, you should know that we can pass in a function object when constructing a STL map, set, etc to let the container use that function to do comparison for its elements. Now what about such functionality in .Net?For
Attention to its rich propertes to read back a XmlNode's content:XmlNode.InnerText: escape all markup and just return the text. XmlNode.InnerXMLXmlNode.OuterXML MSDN example this:using System;using System.Xml;public class Test {public static void
Review Error Handling0. General Rules -We should pay more attention on assert usage and make it a part of the error/exception handling mechanism. -Attention: 異常是first-class的語言機制。程式碼分析工具可以識別出異常並進行各種監測或分析。比如PerfMon就會對程式中的異常做統計.1. SEH (Structured
This is the case: let's say there are two branches: BranchA and Main. On BranchA, there happens two kinds of code changes: one is needed for Main in this time integration and the other is not needed. Well, a fact here is that it's wrong to do two
From: Coolshell Being abstract is something profoundly different from being vague… The purpose of abstraction is not to be vague, but to create a new semantic level in which one can be absolutely precise. — Edsger
Our App is using custom performance counters working with MS perfMon.exe for performance monitoring / logging. So I take a quick look at MSDN about this domain classes for overview. System.Diagnostics NamespaceThe System.Diagnostics namespace