Development quotes of the week
Development quotes of the week
Posted Nov 25, 2020 9:50 UTC (Wed) by Vipketsh (guest, #134480)Parent article: Development quotes of the week
I was developing a some GUI around the time when gtk3 started being widely available and had to port stuff from gtk2 to gtk3. All in all the port wasn't /so/ hard, but the changes to the API and the reasoning behind them was dump and, even though the devs I'm sure didn't think like this, were essentially stuff just to make churn in downstream projects.
The example I still remember is that there was an API to retrieve the size of a window. In gtk2 you passed the object (window) and a pointer to a 'size' structure with width and height members. In gtk3 this was changed to a pair of functions: one to retrieve the width and the other the height. It's the exact same thing, only different. To make matters more annoying the rationale for the change was that "structures in API is bad practice". So, I have to fix all my code based on someone else's theory. Not very enjoyable.
In summary the gtk devs decided to preemptively and definitely break all applications to avoid a potential break in the future. How is this "progress" or even reasonable ?
