[syndicated profile] the_daily_wtf_feed

Posted by Remy Porter

Aaron was debugging some C# code, and while this wasn't the source of the bug, it annoyed him enough to send it to us.

protected override int DoCompare(Item item1, Item item2)
{
	try
	{
		DateTime thisDate = ((DateField)item1.Fields["Create Date"]).DateTime;
		DateTime thatDate = ((DateField)item2.Fields["Create Date"]).DateTime;

		return thatDate.CompareTo(thisDate);
	}
	catch (Exception)
	{
		return 0; // Sorry, ran out of budget!
	}
}

Not to be the pedantic code reviewer, but the name of this function is terrible. Also, DoCompare clearly should be static, but this is just pedantry.

Now, there's a lot of implied WTFs hidden in the Item class. They're tracking fields in a dictionary, or maybe a ResultSet, but I don't think it's a ResultSet because they're converting it to a DateField object, which I believe to be a custom type. I don't know what all is in that class, but the whole thing looks like a mess and I suspect that there are huge WTFs under that.

But we're not here to look at implied WTFs. We're here to talk about that exception handler.

It's one of those "swallow every error" exception handlers, which is always a "good" start, and it's the extra helpful kind, which returns a value that is likely incorrect and provides no indication that anything failed.

Now, I suspect it's impossible for anything to have failed- as stated, this seems to be some custom objects and I don't think anything is actively talking to a database in this function (but I don't know that!) so the exception handler likely never triggers.

But hoo boy, does the comment tell us a lot about the codebase. "Sorry, ran out of budget!". Bugs are inevitable, but this is arguably the worst way to end up with a bug in your code: because you simply ran out of money and decided to leave it broken. And ironically, I suspect the code would be less broken if you just let the exception propagate up- if nothing else, you'd know that something failed, instead of incorrectly thinking two dates were the same.

[Advertisement] BuildMaster allows you to create a self-service release management platform that allows different teams to manage their applications. Explore how!

"Rabbit rabbit rabbit!"

Jul. 1st, 2025 11:25 am
mdlbear: Three rabbits dancing (rabbit-rabbit-rabbit)
[personal profile] mdlbear

Welcome to July, 2025!

It's worth noting that "happy" is a very rare mood tag these days. The last time I used it was in 2019, after Mom's 99th birthday party.

Just Dom It by Caede17223

Jul. 1st, 2025 07:02 am
[syndicated profile] ohjoysextoy_feed

Posted by Matthew Nolan

Just Dom It by Caede17223

What does it mean to be a Domme? How do you even start? What if you lack the confidence? Caede17223 takes life by the leash, and directs us to read their semi-autobiographical comic all about it! Don’t restrain yourself, and make sure to let Caede17223 know how great their comic is! Caede17223.carrd.co BlueSky The Pledge […]

Conservation

Jul. 1st, 2025 03:43 am
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Fighting fire with fire: How prescribed burns reduce wildfire damage and pollution

Wildfires are becoming more intense and dangerous, but a new Stanford-led study offers hope: prescribed burns—intentionally set, controlled fires—can significantly lessen their impact. By analyzing satellite data and smoke emissions, researchers found that areas treated with prescribed burns saw wildfire severity drop by 16% and smoke pollution fall by 14%. Even more striking, the smoke from prescribed burns was just a fraction of what wildfires would have produced in the same areas.


And how long did it take white people to figure out what tribal folks have been doing for, oh, 20,000+ years?

Western Bingo Card 7-1-25

Jul. 1st, 2025 03:29 am
ysabetwordsmith: (paid)
[personal profile] ysabetwordsmith
Here is my card for the Western Bingo Fest over in [community profile] allbingo. The fest runs from July 1-31. (See all my 2025 bingo cards.)

If you'd like to sponsor a particular square, especially if you have an idea for what character, series, or situation it would fit -- talk to me and we'll work something out. I've had a few requests for this and the results have been awesome so far. This is a good opportunity for those of you with favorites that don't always mesh well with the themes of my monthly projects. I may still post some of the fills for free, because I'm using this to attract new readers; but if it brings in money, that means I can do more of it. That's part of why I'm crossing some of the bingo prompts with other projects, such as the Poetry Fishbowl.

Underlined prompts have been filled.


WESTERN BINGO CARD

Bad GirlsResist Oppression"The Wayward Wind"The Harder They FallCaptive / Slave
Close-knit Community"He’s all hat and no cattle."Buffalo"Cool Water"Gambling
"Put me down!"DodgeWILD CARDRedemption StorySilver / Gold
"I tried being reasonable. I didn't like it."FireflyDefenestrationImmigrantHorse
Black Hats / White HatsI'll Get My RevengeIndependent WomanSunrise / SunsetEmotionally Constipated Man

July Monthly Post

Jul. 1st, 2025 02:09 am
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith posting in [community profile] crowdfunding
What are your planned crowdfunding projects for June? What did you accomplish during May?

The June [community profile] crowdfunding Creative Jam will run Saturday 19-Sunday 20 with a theme of "Heroism -- Real or Perceived."
 
[syndicated profile] daily_illuminator_feed
In case you missed the news, someone pitted the general-purpose AI software ChatGPT against the Atari 2600 version of chess (Atari Chess, as the 1977 cartridge is known). Spoiler alert: ChatGPT lost badly, on the "beginner" level of difficulty. The original post on LinkedIn has more details.

Personally, I like imagining that the cartridge software used is actually a piece of super-computer code designed to be hyperdimensionally squeezed into the 4,096-byte program size, which somehow escaped from Warehouse 23 . . .

Steven Marsh

Warehouse 23 News: The City Never Sleeps Because Of All The Action

There are a million stories in the city, and they're all exciting! GURPS Action 9: The City shows how you can add GURPS City Stats to your GURPS Action campaigns. It also features six sample cities to use with your own action-packed adventures. Download it today from Warehouse 23!

Conservation

Jun. 30th, 2025 09:52 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
Beavers restore lands damaged by wildfire, human abuses, or other causes. 

This is especially useful with climate change causing more drought.  I recommend recruiting all available keystone species to resist the decline.  Good examples for Turtle Island / North America include beavers, buffalo, goldenrod, milkweed, oak trees, prairie dogs, redwood trees, salmon, sea otters, and wolves.  While not everyone has the resources to house any of those personally, you can still support organizations that aim to promote them.

Primates

Jun. 30th, 2025 09:49 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
New study finds apes feel more optimistic after hearing laughter, indicates 'evolution of positive emotions'

Laughter — closely tied to language and a sense of humor — has long been thought to be uniquely human.
But in a new study out of Indiana University, researchers have discovered that bonobos, the closest living relative to human beings, along with chimpanzees, tend to be more optimistic after hearing similar vocalizations during play with their fellow apes
.


I imagine that the people who mistake laughter for uniquely human have never had a cat look right at them, shove something of a shelf, and then laugh.  Animals I have observed laughing include cats, dogs, horses, goats, and multiple species of birds.

Monday Update 6-30-25

Jun. 30th, 2025 02:56 pm
ysabetwordsmith: Cartoon of me in Wordsmith persona (Default)
[personal profile] ysabetwordsmith
These are some posts from the later part of last week in case you missed them:
New Year's Resolutions Check In
Gender
Early Humans
Moment of Silence: Acelightning
New Crowdfunding Project: Land of Eem
Birdfeeding
Today's Adventures
Staying Afloat
Birdfeeding
Philosophical Questions: Morals
Bingo
Poetry Fishbowl Report for June 3, 2025
Birdfeeding
Native American
Follow Friday 6-27-25: Hiking
Hobbies: Stage Magic
Today's Adventures
Birdfeeding
Goblincore
Ancient Life
Ceramics
Artificial Intelligence
Books
Exoplanets
Birdfeeding
Good News

"Philosophical Questions: Looks" has 40 comments. "Not a Destination, But a Process" has 144 comments. "The Democratic Armada of the Caribbean" has 93 comments.


[community profile] sunshine_revival is setting up to activate July 1. See the schedule, meet the moderators, and use the master post to navigate the event. Meet new folks in the friending meme. Spread the word!

Sunshine-Revival-2025-Banner-3.png


[community profile] summerofthe69 is now open! You can see the calendar here and the current themes are Tetris 69 and Body Worship 69.


"In the Heart of the Hidden Garden" belongs to the Antimatter and Stalwart Stan thread of the Polychrome Heroics series. It only needs $40 to be fully funded. Lawrence leads Stan to Criss Library.


The weather was sweltering recently but has cooled off slightly. It's been raining a good deal and drizzled again this evening. Seen at the birdfeeders this week: a mixed flock of sparrows and house finches, a pair of mourning doves, a male cardinal, a fox squirrel, and at least 1 probably 2 bats. Currently blooming: dandelions, pansies, violas, marigolds, petunias, red salvia, wild strawberries, verbena, lantana, sweet alyssum, zinnias, snapdragons, blue lobelia, perennial pinks, impatiens, oxalis, moss rose, yarrow, anise hyssop, firecracker plant, tomatoes, tomatillos, Asiatic lilies, cucumber, daylilies, snowball bush, yellow squash, zucchini, morning glory, purple echinacea, narrow-leaf mountain mint, black-eyed Susan, yellow coneflower, wild bergamot, chicory, Queen Anne's lace. Cucumbers, tomatillo, and pepper have green fruit. The first 'Chocolate Sprinkles' tomato ripened and some other tomatoes are showing color. Wild strawberries, mulberries, peas, and blackberries are ripe. Black raspberries are winding down.

dialecticdreamer: My work (Default)
[personal profile] dialecticdreamer
Information Interactions
By Dialecticdreamer/Sarah Williams
Part 1 of 1, complete
Word count (story only): 1361
[Wednesday, 2 August, 2017, 4 p.m]]


:: Mercedes Hospital becomes the hidden epicenter of a seismic shift in the local culture, especially the truce between various “hats” and “capes”. Part of the Unfair Trades arc in Mercedes, within the Polychrome Heroics universe. ::




Yet another rap on the door brought a heavier, expectant feel with the crisp taps. Robert glanced at Maurwen, waiting for her nod. “Come in,” he offered.

An officer stepped in, offering a brisk smile to Maurwen. “The Captain suggested that I speak to the new witness, Miss. Unless you want to finish that story about the trip to whale watch?”

Maurwen shook her head, then turned to LaQuinta. “This is Eka Beja Hidayaputra. Yeah, that was a mouthful for me. He’s a good guy, and he’ll take things slow if you need to.”
Read more... )
[syndicated profile] gws_feed

New comic!

Today's News:

Always rub your glasses with your hair, it does the best job of wiping away your tears!

Here's the original post for ya! And the chaser post! Which I especially like because of the clear and obvious scene change in the last panel. :)

turbobeholder: (periscope)
[personal profile] turbobeholder posting in [community profile] girlgenius_lair
and they’re having a wonderful time!

LARP comes to the USA!

Jun. 30th, 2025 04:32 pm
davidlevine: (Default)
[personal profile] davidlevine

If you've been reading this blog, you will have seen me raving about my Live Action Role Play experiences in Europe in the past few years. Well, suddenly the European LARP experience is coming to the United States!

I'm aware of the following LARP events in the US in the next year. Many of these are being run in cooperation with a European LARP organizer. Some of them are still provisional; others are already sold out (though there is usually a waiting list). Check the websites for details and contact the organizers if you have any questions. And feel free to bookmark my public LARP spreadsheet, which I try to keep updated with every LARP I hear about that's of interest to me. (Which excludes vampire and boffer LARPs, for example.)

Rebuilding journal search again

Jun. 30th, 2025 03:18 pm
alierak: (Default)
[personal profile] alierak posting in [site community profile] dw_maintenance
We're having to rebuild the search server again (previously, previously). It will take a few days to reindex all the content.

Meanwhile search services should be running, but probably returning no results or incomplete results for most queries.

June 2025

S M T W T F S
1234567
891011121314
15161718192021
2223242526 2728
2930     

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 1st, 2025 11:40 am
Powered by Dreamwidth Studios