News for hackers. Stuff that matters.
Re:“What if it changes?” by Brometheus on Monday May 23, 2022 @05:48AM (#31476968)
What if the FAA updates the code for the coordinates of the one and not the other. Then your abstraction is moot.
Re:“What if it changes?” by woolion on Monday May 23, 2022 @06:07AM (#31477089)
Of course not, abstraction works even better there! Every point that differs will have either a conditional, or an abstract part to be implemented by child classes. So the abstraction lets you know at a glance what are the key points to look for.