Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

No, 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.





[flagged]


From 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


I 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


I'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.



Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: