toot.wales is one of the many independent Mastodon servers you can use to participate in the fediverse.
We are the Open Social network for Wales and the Welsh, at home and abroad! Y rhwydwaith cymdeithasol annibynnol i Gymru, wedi'i bweru gan Mastodon!

Administered by:

Server stats:

628
active users

#preference

0 posts0 participants0 posts today

A quotation from Judith Martin

Should you happen to notice that another person is extremely tall or overweight, eats too much or declines convivial drinks, has red hair or goes about in a wheelchair, ought to get married or ought not to be pregnant — see if you can refrain from bringing these astonishing observations to that person’s attention.

Judith Martin (b. 1938) American author, journalist, etiquette expert [a.k.a. Miss Manners]
“Miss Manners,” syndicated column (1986-01-19)

Sourcing, notes: wist.info/martin-judith/76752/

A quotation from Judith Martin

Since the invention of the mirror, everyone knows what he or she looks like and does not find it helpful or enjoyable to have oddities or deficiencies — according to someone else’s standards and tastes — pointed out. And every adult assumes the right of making his or her own decisions about eating, drinking, mating and reproducing, and finds being monitored and instructed — again according to someone else’s preferences — distasteful.

Judith Martin (b. 1938) American author, journalist, etiquette expert [a.k.a. Miss Manners]
“Miss Manners,” syndicated column (1986-01-19)

Sourcing, notes: wist.info/martin-judith/76655/

Si effectuer un effort mental ne serait pas la plus agréable des expériences, ne rien faire pourrait être encore pire.

Découvrez tous les détails dans le nouvel épisode du #podcast #LaTêteDansLeCerveau : soundcloud.com/latetedanslecer

Et les références scientifiques : cervenargo.hypotheses.org/7776

#neurosciences #vulgarisation #cerveau #science #inaction #ennui #effort #rienfaire #aversion #préférence #biaiscognitif

Merci pour vos écoutes et partages ☺️

#preference : the act of preferring, or the state of being preferred

- French: préférence

- German: die Vorliebe

- Italian: preferenza

- Portuguese: preferência

- Spanish: preferencia

------------

Fill in missing translations @ wordofthehour.org/r/translatio

wordofthehour.orgWe need your help!! Help us improve our translations. :)We rely on community members to help us improve our translations. If you are a native speaker in one of our supported languages, we strongly...

Former #Greens leaders have urged the party to stand firm against #Labor#arrogance” in the new parliament, particularly on #climate & #environmental issues.

#BobBrown has urged the party to “never again” #preference Labor over the #Liberals & instead run an open ticket, as he and fellow former leader #ChristineMilne said the Greens should push back strongly against “lies” about the party. #auspol

theguardian.com/australia-news

The Guardian · Former Greens leaders urge party to stand up to Labor ‘arrogance’ as jockeying begins to replace BandtBy Adam Morton
Replied in thread

Day 32 cont 🗳️

Take care #voting, make your #Preferences count. ⚠️

“Preferences have become more important than ever in Australian elections, as the share of people supporting the major parties has dropped from more than 90% of primary votes in the 1950s to just 68.8% in the most recent federal poll.

The last Australian election saw 16 seats won by candidates who were not leading after the first count – the most ever, tied with 2016. And more than half of those winners were independent candidates – also the most ever.

Australia’s electoral system requires #voters to #number #candidates in their order of preference: their first choice, second choice and so on. During #counting, if no candidate has yet achieved a #majority, the candidate with the fewest votes is eliminated and their votes are redistributed to voters’ next #preference. This is repeated until there is a clear winner.”

#AusPol <theguardian.com/australia-news>

The Guardian · Preferences are more important than ever this election. See where Australian voters sent theirs last timeBy Josh Nicholas

Dear artists and photographers,
your works are often incredibly inspiring to me! Thank you!

...but to people who put digital watermarks on inspiring works, I try like the dickens to never boost watermarked stuff. It is very unfortunate! And the world shed a tear for the misrepresentation for your otherwise immaculate, yet intentionally marred expressions...

Apple Notes on iPad, writing with the pen, when it takes your handwriting and then re-inserts it every so slightly, but unnecessarily different. Definitely auto, but not refined. It can be switched off! In the tools palette, the … menu, look for the "Auto-refine Handwriting" switch. #iOS #handwriting #preference

#preference : the act of preferring, or the state of being preferred

- French: préférence

- German: die Vorliebe

- Italian: preferenza

- Portuguese: preferência

- Spanish: preferencia

------------

Fill in missing translations @ wordofthehour.org/r/translatio

wordofthehour.orgWe need your help!! Help us improve our translations. :)We rely on community members to help us improve our translations. If you are a native speaker in one of our supported languages, we strongly...
Replied in thread

@graham_knapp

A lot of it is always going to come down to personal preferences. But I think the different cases are more or less appropriate depending on the problem being solved.

If you're calling a function or creating an object that you expect to almost-always work - it fails when low on memory, or when the network connection is broken, or some other exceptional (hint) condition, then I think exceptions are most appropriate. Throw one, and let it bubble up the caller's stack until they either handle it and possibly re-try, or the program exits with a diagnostic.

If you're calling something that can reasonably be expected to both succeed or fail under normal conditions - say a command given in an inappropriate state fails, but otherwise succeeds, maybe - then an explicit return object with success/failure (and possibly a result, and / or an error message) can be better, as the caller expects to handle failures immediately.

Both are easy in Python; I've implemented the latter with tuples, named tuples, custom classes, and dataclasses over the years for different projects.

</0.02>