4 ms·
Abuse of private APIs means that your public API is incomplete. And that people dislike how your system behaves so much, that they're willing to muck with its i
by cyberax 1y ago
Abuse of private APIs means that your public API is incomplete. And that people dislike how your system behaves so much, that they're willing to muck with its internals.
- stalfosknight 1y agoNo, it means some people are doing it wrong either because: 1. They don't know how to do it the right way or 2. They can't be bothered to do it the right way #1 I can understand. We all make mistakes as we learn and grow as developers. #2 is just arrogance / laziness on the part of the developer. Compounding it by blaming the platform owner that clearly and explicitly told you not to go that route is gross.
- cyberax 1y ago[flagged]
- stalfosknight 1y agoI'll grant that their documentation isn't the best I've ever seen, but it is still on you if you reach for private APIs. Again, that is consciously choosing a shortcut you've been explicitly told not to use.
- epistasis 1y agoFrom the bug report: > It turns out Electron was overriding a private AppKit API (_cornerMask) to apply custom corner masks to vibrant views. > ... > By removing the custom _cornerMask override and associated logic, we allow AppKit to handle shadows with its default pipeline. This resolves the GPU spike while retaining shadows as expected. I'd say that most often usage of private APIs is because: 4. it probably shouldn't be done at all
- merlindru 1y agoI don't know what the comment you're replying to said, but further down the thread: > Electron's "_cornerMask" override was a dirty hack that was made in an effort to fix an ancient issue with corner smoothing. So Electron used this private API to fix an issue that shouldn't have existed at all, as far as I can tell
- bigstrat2003 1y agoNo, it means that people think they know better than to listen to the warning.
- merlindru 1y agoPeople would not use private APIs (which are undocumented and prone to break) if they had documented, stable public APIs