Star

From APIDesign

(Difference between revisions)
Jump to: navigation, search
(New page: APIs are said to be like stars. See the Diamonds vs. Stars allegory.)
Current revision (07:32, 1 May 2022) (edit) (undo)
 
Line 1: Line 1:
-
[[API]]s are said to be like [[star]]s. See the [[Blogs:JaroslavTulach:Theory:DiamondsVsStars|Diamonds vs. Stars]] allegory.
+
[[API]]s are said to be like [[star]]s. Star cannot know ''"who's watching"'' and cannot ''"just disappear"''. It may explode, turn into supernova, burn out. However there are physical laws that prevent it to ''"disappear suddenly"'' (unless [[god]] would [[wikipedia:Does_God_Play_Dice%3F|play dice with us]]).
 +
 
 +
Just like that a method in an [[API]] cannot be ''"just refactored away"''. There are laws of [[API Design]] that require it to behave properly (if one wants to be real [[API]] designer and not play dice with users of the [[API]]).
 +
 
 +
More in the [[Blogs:JaroslavTulach:Theory:DiamondsVsStars|Diamonds vs. Stars]] allegory.

Current revision

APIs are said to be like stars. Star cannot know "who's watching" and cannot "just disappear". It may explode, turn into supernova, burn out. However there are physical laws that prevent it to "disappear suddenly" (unless god would play dice with us).

Just like that a method in an API cannot be "just refactored away". There are laws of API Design that require it to behave properly (if one wants to be real API designer and not play dice with users of the API).

More in the Diamonds vs. Stars allegory.

Personal tools
buy