What does “getting the right level of abstraction” mean?

I read about how hard work in programming is written in code "at the right level of abstraction." Although abstraction usually hides details behind a layer, does it write something at the right level of abstraction, mainly getting methods for the correct solution? For example, if I am going to write a class for representing a car, I have provided properties for wheels, etc., but if I am asked to write a class for a car without wheels, I will not provide wheels and, therefore, there is no method to “drive” a car. Is that what is meant by proper abstraction?

thank

+3
source share
3 answers

Not really

- , .

, HTTP- . , Get(), Head(), Post() .., , .

Socket, , , . ( , , , ..).

, , TCP .

- , , . , , , , .

, , . HTTP, Get , TCP , , , TCP- .

- , , . " " " " .

, , .

, "", " ", "", "" " " , , . , , .

. , ( ).

+10

, .

. -, , .

, . , , , , .

, , . RollingVehicle , Transport .

, , , .

+3

, - , . , , . "" , .

" " :

, . , , , , , : . . : , - "" -. , ! ! , , , , , , , , . .

+1
source

Source: https://habr.com/ru/post/1772211/


All Articles