开发者

How to differ abstraction from a software component

开发者 https://www.devze.com 2022-12-08 23:11 出处:网络
How can we clearly differ architectural term abstraction开发者_如何学C from a software component,

How can we clearly differ architectural term abstraction开发者_如何学C from a software component, can abstraction lie within a software component?


Abstraction occurs THROUGHOUT software engineering - when you create a function to perform a computation, that's abstraction; when you group data and their operations into a class, that's abstraction; when you modularise your code into separate architectural components, that's abstraction.

The pattern is one of hiding the underlying complexity of a component in a simple interface - making a simple call to a function or procedure is much easier than typing all the required code each time - the function has abstracted that complexity.

That function might be part of a class, which is another layer of abstraction, and so on, up the abstraction ladder.

Take a look at Joel's fantastic article about leaky abstractions, which starts with an intro to the concept

0

精彩评论

暂无评论...
验证码 换一张
取 消