What does abstraction mean in programming?

前端 未结 7 665
时光说笑
时光说笑 2020-12-07 08:40

I\'m learning python and I\'m not sure of understanding the following statement : \"The function (including its name) can capture our mental chunking, or abstraction

7条回答
  •  爱一瞬间的悲伤
    2020-12-07 09:04

    As defined on wikipedia: Abstraction_(computer_science)

    Abstraction tries to factor out details from a common pattern so that programmers can work close to the level of human thought, leaving out details which matter in practice, but are not exigent to the problem being solved.

    Basically it is removing the details of the problem. For example, to draw a square requires several steps, but I just want a function that draws a square.

提交回复
热议问题