I think that object - oriented and generic programming complements each other nicely in c + + , and many of my most elegant pieces of code relies on combinations of the two 我認為,在c + +中面向?qū)ο蠛头盒途幊滔嗷パa充得極好,我所寫的許多最優(yōu)美的代碼都依賴于兩者的結(jié)合。
First , in apla , tree , graph , set , list are pre - declared while in delphi they are not . second , there are obvious mechanisms for generic programming in apla while delphi does n ' t have them 相反, objectpascal中不能直接使用樹、圖、集合、序列等組合類型,而且沒有明顯的反映泛型程序設(shè)計思想的語法機制。
I consider templates and generic programming central to modern c + + . they are the keys to uncompromisingly efficient , type - safe code . however , they don ' t fit the classical object - oriented paradigm 我認為模板和泛型編程是現(xiàn)代c + +的核心,是無損效率、類型安全代碼的關(guān)鍵。然而它們并不適合經(jīng)典的面向?qū)ο缶幊趟季S模型。
Once you know data a reaction , cla hierarchies ( object - oriented programming ) , and parameterization with types ( generic programming ) in a fairly general way , the c + + language features fall in place 就拿我來說吧,我會在編寫第一行代碼之前就考慮測試方案,而且這還是在我關(guān)于應(yīng)當(dāng)早于設(shè)計完成之前就進行編碼的觀點的前提之下。
Once you know data absreaction , class hierarchies ( object - oriented programming ) , and parameterization with types ( generic programming ) in a fairly general way , the c + + language features fall in place 就拿我來說吧,我會在編寫第一行代碼之前就考慮測試方案,而且這還是在我關(guān)于應(yīng)當(dāng)早于設(shè)計完成之前就進行編碼的觀點的前提之下。
The development of this software follows the philosophy of oo ( object oriented ) . in addition , generic programming is also employed in some cases so that the program can be more flexible and faster 同時,本文還采用面向?qū)ο蟮乃枷朐O(shè)計并實現(xiàn)了多元統(tǒng)計過程控制軟件,在某些部分還使用了泛型編程技術(shù)以提供更高的靈活性和速度。
We import the generic programming theory into the c + + class library through studying the idea of generic programming , achieve the generic programming in apla program . 4 . we also test the c + + class library by many examples what are transformed by apla - c + + system 通過對泛型程序設(shè)計思想的研究,在我們構(gòu)造的c + +類庫中引進了泛型程序機制,實現(xiàn)了apla程序的類型參數(shù)化,同時也提高了c + +類庫的可重用程度; 4
And that resulted from a misapprehension that the managed support represented not a domain abstraction but an evolutionary programming paradigm that required a language extension similar to that introduced by stroustrup to support object - oriented and generic programming 這種決策的錯誤在于誤認為托管支持表示的不是域抽象,而是一種進化的編程范例,且這種編程范例要求的語言擴展與stroustrup為支持面向?qū)ο蟮囊话阈跃幊潭氲恼Z言擴展類似。
Using the ideal of generic programming to generalize design patterns brings mass reusing and automated design patterns , gifting programmers the ability to assemble the components by requirements , and result in the source codes that can express the primitive purpose of design , archiving the natural transition from designing to coding 將設(shè)計模式泛化帶來更大規(guī)模的代碼復(fù)用,使得設(shè)計模式的實現(xiàn)得以自動化,從而使開發(fā)人員能以面向設(shè)計的方式讓使用者自行裝配所需機能,產(chǎn)生能表達原始設(shè)計意圖的代碼,實現(xiàn)設(shè)計與編碼之間的無縫過渡。
In the first segment of this paper , the first chapter analysis the deficiency of object oriented and design patterns , then introduces the generic programming , and expatiates the theory of generalizing the design patterns ; the second chapter introduces some generalizing technologies , and brings forward dynamical composition 本文開篇第一章分析了面向?qū)ο蠹霸O(shè)計模式的不足,引入gp思想,論述gp優(yōu)點與不足,闡述泛化設(shè)計模式理論。第二章介紹了一些基本泛化技術(shù),并提出了動態(tài)組合技術(shù)。