helvede.net is one of the many independent Mastodon servers you can use to participate in the fediverse.
Velkommen til Helvede, fediversets hotteste instance! Vi er en queerfeministisk server, der shitposter i den 9. cirkel. Welcome to Hell, We’re a DK-based queerfeminist server. Read our server rules!

Server stats:

159
active users

#exceptions

0 posts0 participants0 posts today
Continued thread

For example when learning Java I thought that Exceptions were slow.
This of course, is completely untrue.

It's untrue for Java.
It's a best practice from the old days of C/C++.
And it's untrue for modern C++ too!

This ill-informed "knowledge" lead me to never use Exceptions in Java. That's bad!
Exceptions are as "slow" as every other if-else!

You can trivially show this with the microbenchmarking toolkit supplied with your JDK.