Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
6いいね 243回再生

Volatility-Based Decomposition • SRP • Juval Löwy

#codingtutorial #programming #dev #coding #cleancode #career #ddd #professionalism #javascript #java

Introducing Righting Software • Juval Löwy
‪@IDesignIncTV‬

All the other problems with functional decomposition pale when compared with the poor ability and high cost of handling change. With functional decomposition, a change is like swallowing a live hand grenade.

What you choose to encapsulate can be functional in nature, but hardly ever is it domain-functional, meaning it has no meaning for the business. For example, the electricity that powers a house is indeed an area of functionality but is also an important area to encapsulate for two reasons. The first reason is that power in a house is highly volatile: power can be AC or DC; 110 volts or 220 volts; single phase or three phases; 50 hertz or 60 hertz; produced by solar panels on the roof, a generator in the backyard, or plain grid connectivity; delivered on wires with different gauges; and on and on. All that volatility is encapsulated behind a receptacle. When it is time to consume power, all the user sees is an opaque receptacle, encapsulating the power volatility. This decouples the power-consuming appliances from the power volatility, increasing reuse, safety, and extensibility while reducing overall complexity. It makes using power in one house indistinguishable from using it in another, highlighting the second reason it is valid to identify power as something to encapsulate in the house. While powering a house is an area of functionality, in general, the use of power is not specific to the domain of the house (the family living in the house, their relationships, their wellbeing, property, etc.).

What would it be like to live in a house where the power volatility was not encapsulated? Whenever you wanted to consume power, you would have to first expose the wires, measure the frequency with an oscilloscope, and certify the voltage with a voltmeter. While you could use power that way, it is far easier to rely on the encapsulation of that volatility behind the receptacle, allowing you instead to add value by integrating power into your tasks or routine.


   • Introducing Righting Software  
www.idesign.net/

Renowned software architect and best seller author Juval Löwy presents his next book, Righting Software. The book offers a proven, structured, and highly engineered approach to software design that was never before seen in print. Here, Juval outlines how this method will help you address the critical challenges of software development regardless of your project and company size, technology, platform, or industry.

www.amazon.com/dp/0136524036

Juval Lowy is a software architect and the principal of IDesign.

コメント