Felix Palmen 📯 · @zirias
36 followers · 153 posts · Server techhub.social

@jhx You asked for it, so I'll answer it:

Imho, C++ design is broken from the very beginning. It wanted to provide language constructs, still maintaining full compatibility (which already failed many years ago, cause the languages took different roads).

It combines (IMHO generally a bad idea) with explicit resource management (an *awful* idea, forcing you to use which will in turn mandate creation of purely "technical" classes, just to manage resources).

It wanted , but that's impossible without breaking C compatibility, so it came up with , actually a on steroids.

Overloading also doesn't fit into the simple C library ABI (where symbols are named just like the function), so it came up with "name mangling" ... which is especially horrific because it is *not* standardized.

Ah well, I could go on 😂

#oop #c #exceptions #raii #generics #Templates #preprocessor #linker

Last updated 1 year ago

iter::retoot(🦀) · @tuckersiemens
90 followers · 190 posts · Server hachyderm.io

Anyone know if there are any scholarly articles comparing different methods of error handling? For example, is Rust's `Result` demonstrably better than exceptions à la Java or C#? Is Go's `if err != nil` an actual improvement over just checking `errno` all the time?

#rust #rustlang #programming #exceptions #errors

Last updated 1 year ago

Gerald Versluis · @jfversluis
342 followers · 184 posts · Server mas.to

Want more fine grained control over your exception handling? Check out the C# Exception Filters!

With the when keyword you can specify when an exception needs to be handled. This way you can set up all kind of logging or retry mechanisms the easy way!

youtube.com/shorts/Dy83X21QPjg

#exceptions #csharp #dotnet

Last updated 1 year ago

Nico Antonio Grande · @nicogrande
3 followers · 198 posts · Server techhub.social

#20000












*'... cash in hand, moleskine in hand, no exceptions, no substitutions, equals letterrette, maybe receipt.

Nico Antonio Grande
Proud Antifascist Performance Artist
At Your Service

NOLApasaran
Defend NOLA

thycaline@protonmail.com
patreon.com

#usd #cash #in #hand #moleskine #no #exceptions #substitutions #equals #letterrette

Last updated 1 year ago

Bleak Future · @bleakfuture
1188 followers · 2158 posts · Server home.social

are under attack in this country - as are many others.

In they want to sentence women who have to . There are no to this rule. If the life of the mother is at risk she will have to testify to in court. is impressed. How long until they want to display the bodies for all the handmaids to see?

is not dispensing in 20 states - so it’s time to as well.

boingboing.net/2023/03/03/sout

#women #southcarolina #abortions #death #exceptions #selfdefense #gilead #walgreens #mifepristone #boycottwalgreens

Last updated 1 year ago

Sven Ruppert · @svenruppert
401 followers · 158 posts · Server mastodon.social
Nona Rose · @nona80_swanette
320 followers · 1703 posts · Server mastodon.au

A week and a day til Valentine’s Day.

As a rule I have pretty high expectations. As with any rule, it has its exception, the F14 exception. In this case the following applies:

Expect nothing and you'll never be disappointed.

#valentinesday #dating #singlelife #expectations #romance #lowexpectations #noexpectations #humour #joke #exceptions

Last updated 2 years ago

Sven Ruppert · @svenruppert
371 followers · 74 posts · Server mastodon.social
Wild_Heather_860 · @Wild_Heather_860
185 followers · 1097 posts · Server mastodon.cloud

Romeo & Juliet laws don't actually exist.

Some states have close-in-age exceptions in their age of consent laws.

In Kentucky it's 10 years. In Idaho 3 years. In Illinois zero.

So what is the correct allowable age gap in your mind?

+5 years = rape ?

+3 years = lovemaking ?

------

-in-age

#romeo #juliet #laws #10years #idaho #exist #close #AgeOfConsentLaws #ageofconsent #romeoandjuliet #kentucky #illinois #zero #correct #yourmind #exceptions #agegap #rape #lovemaking #actually #states

Last updated 2 years ago

TechHelpKB.com 📚 · @techhelpkb
339 followers · 1848 posts · Server mastodon.social

Create for so that their can bypass Do Not Disturb on . tchlp.com/3i136Ws

#exceptions #individuals #conversations #android

Last updated 2 years ago

Edwin Groothuis · @mavetju
25 followers · 64 posts · Server aus.social

I'm pretty sure that exceptions in languages like Java et al have their role, but the behaviour of trying a huge block and if it fails just to log "something went wrong", that is just silly. Same with fully expectable scenarios like "We couldn't connect to this remote host", that isn't an exception, that is a result which can be expected. I don't need 1300 lines of stack trace without any useful information when it could just have been a single line which says "Couldn't connect to remote host (1.2.3.4:5678)" or "Authentication failed while connecting to proxy (1.2.3.4:5678, user foo)".

#java #exceptions #badprogramming

Last updated 2 years ago

Johan Roux · @RouxJ
1781 followers · 3309 posts · Server mstdn.social

will not apply to sanctions against

“Lithuania will take advantage of this opportunity provided by the and will not grant exceptions to hundreds of , or at least those who are actually in Lithuania, have money or companies in Lithuania,” Foreign Minister said.

#GabrieliusLandsbergis #oligarchs #Europeancommission #Russia #exceptions #Lithuania

Last updated 2 years ago

Giulio · @giuliohome
6 followers · 116 posts · Server mastodon.world
Giulio · @giuliohome
13 followers · 220 posts · Server mastodon.world
WideFix · @widefix
0 followers · 3 posts · Server ruby.social

Don't rescue StandardError. It catches false positive cases, like NoMethodError, which usually shows a typo inside a calling method. That would be a complication error if Ruby had a compiler. So, catching this error makes a dead code work.

#ruby #exceptions

Last updated 2 years ago

Nicolas Fränkel · @frankel
361 followers · 145 posts · Server mastodon.top

RT JavaAdvent: Look what our St. Nicholas, aka \@nicolas_frankel, brought us today.

in “ is 's treat for you today.

Check it out: javaadvent.com/2022/12/excepti

#exceptions #java #lambdas #javaadvent22

Last updated 2 years ago

Java Advent · @javaadvent
3 followers · 5 posts · Server fosstodon.org

Look what our St. Nicholas, aka Nicolas Fränkel, brought us today.

„Exceptions in Java Lambdas“ is Java Advent's treat for you today.

Check it out: javaadvent.com/2022/12/excepti




#javaadvent22 #exceptions #java #lambdas

Last updated 2 years ago

Sergio Perea 🇪🇸 · @sperea
19 followers · 101 posts · Server masto.es
Sebastian 💙💛 · @JSSchlegel
107 followers · 468 posts · Server social.tchncs.de

Mein Hirn wirft , wenn jemand mit "Ei" ausspricht... "Eng🥚ne"

#engine #exceptions

Last updated 2 years ago

gaby_wald · @gaby_wald
70 followers · 16249 posts · Server framapiaf.org

"Java Exceptions -- This article is an analysis of the following: Java Exception Design, what Java exception can tell, and how to use Java Exceptions" (good, bad, ugly) ... dzone.com/articles/java-except

#dzone #javazone #java #exceptions #check #RunTimeException #error

Last updated 3 years ago