サクサク読めて、アプリ限定の機能も多数!
トップへ戻る
アメリカ大統領選
sourcemaking.com
– What? How can code "smell"?? – Well it doesn't have a nose... but it definitely can stink! Bloaters are code, methods and classes that have increased to such gargantuan proportions that they are hard to work with. Usually these smells do not crop up right away, rather they accumulate over time as the program evolves (and especially when nobody makes an effort to eradicate them).
A global variable is default initialized - when it is declared - but it is not initialized in earnest until its first use. This requires that the initialization code be replicated throughout the application. class GlobalClass { int m_value; public: GlobalClass(int v = 0) { m_value = v; } int get_value() { return m_value; } void set_value(int v) { m_value = v; } }; // Default initialization GlobalC
Bloaters are code, methods and classes that have increased to such gargantuan proportions that they are hard to work with. Usually these smells do not crop up right away, rather they accumulate over time as the program evolves (and especially when nobody makes an effort to eradicate them).
Design Patterns In software engineering, a design pattern is a general repeatable solution to a commonly occurring problem in software design. A design pattern isn't a finished design that can be transformed directly into code. It is a description or template for how to solve a problem that can be used in many different situations. Uses of Design Patterns Design patterns can speed up the developme
Good software structure is essential for system extension and maintenance. Software development is a chaotic activity, therefore the implemented structure of systems tends to stray from the planned structure as determined by architecture, analysis, and design. Software refactoring is an effective approach for improving software structure. The resulting structure does not have to resemble the origi
Abstract Factory The purpose of the Abstract Factory is to provide an interface for creating families of related objects, without specifying concrete classes (more...) Builder The Builder pattern separates the construction of a complex object from its representation so that the same construction process can create different representations (more...)
Hello, world! I'm SourceMaking. I will tell you a lot of stories about good software architecture and teach you how to create it with design patterns. I will teach you how to smell a bad code and improve it with refactoring. We can start from the very beginning or you can pick a topic of interest below. Patterns are higher-order designs, which occur repeatedly in object-oriented design. They have
What Is an AntiPattern? AntiPatterns, like their design pattern counterparts, define an industry vocabulary for the common defective processes and implementations within organizations. A higher-level vocabulary simplifies communication between software practitioners and enables concise description of higher-level concepts. An AntiPattern is a literary form that describes a commonly occurring solut
このページを最初にブックマークしてみませんか?
『Design Patterns and Refactoring』の新着エントリーを見る
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く