Sr. Content Developer at Microsoft, working remotely in PA, TechBash conference organizer, former Microsoft MVP, Husband, Dad and Geek.
144632 stories
·
32 followers

Is writing a test a good contribution to an open source project?

1 Share

The cliché always used to be that "contributing to docs was a great way to get started in open source." Now I'm also starting to hear people suggest that writing a test can also be a good entry to a project.

But is this a good idea? I'm not sure...

"writing hand" and a test tube
Say you have a piece of code that isn't covered by any tests. It's fair to say this isn't an ideal situation to be in. All things being equal, having tests for this code would be a good (better) thing.

But not all code and not all tests are created equal.

Is adding a test for a piece of code that is never expected to change in the lifetime of the project valuable?

Is it valuable to write tests for code that is so clearly understandable that if anyone changed it, then lots of things would obviously be wrong, and a manual review of the code would easily spot the problem?

Is it valuable to add tests for only some scenarios or paths through a piece of code? Sometimes. Sometimes not.

Is adding tests that ensure all possible input can be handled by the code a good addition? Maybe, but if the project has been around a while, then all such inputs have likely been encountered already. If there were inputs that might cause a problem, they've most likely been encountered and dealt with.

You may be able to create a lot of tests very quickly. (Especially if using AI.)  But is it worth running them? If they don't run quickly, is it worth the delays and the money/energy it takes?

Coded tests must also be reviewed like any other code contribution, and reviewing PRs is a common bottleneck in many OS projects. 




I'm not against tests.
I think automated tests are great, and everyone should write more of them.
I just think that adding them after the fact is the wrong time to do it. It's harder to do it well, and they risk being low value.
Writing (or at least documenting) all the required tests before you start coding is the best time to write them.

Of course, if there's a project with documented manual test steps and you want to write code to automate them, then that sounds like a very valuable contribution. (Just as long as it doesn't require modifying the underlying code to make that possible.)

Or, if you want to help with the testing of a project, look at some open issues and start documenting how to test those features when they are implemented.

As with any open source project, the best kind of contributions are the ones the owners and maintainers are asking for, and if they're of any size, they never start with a PR but with a discussion or issue.

Read the whole story
alvinashcraft
5 hours ago
reply
Pennsylvania, USA
Share this story
Delete

IoT Coffee Talk: Episode 276 - Essential Water (For Life and AI)

1 Share
From: Iot Coffee Talk
Duration: 59:11
Views: 6

Welcome to IoT Coffee Talk, where hype comes to die a terrible death. We have a fireside chat about all things #IoT over a cup of coffee or two with some of the industry's leading business minds, thought leaders and technologists in a totally unscripted, organic format.

This week, Rob, Pete, Bill, and Leonard jump on Web3 to host a discussion about:

🎶 🎙️ BAD KARAOKE! 🎸 🥁 "Yakety Sax" by Boots Randolph
🐣 Pro audio and the retro, analog odyssey of Rob Tiffany.
🐣 Water matters in AI data centers and life.
🐣 The AI data center - the pinnacle of insane and ridiculous.
🐣 Make sure to put a flea collar on your kids when you go to Skate King.
🐣 Real fake - practical effects and how they beat all that CGI stuff.
🐣 Why Solo is Rob's pick for the worst Star Wars movie.
🐣 Are you smarter than a calculator? Does that mean you need to give up on math?
🐣 Making quantum computing less silly with generative AI and accelerated computing.
🐣 We must embrace abundance!!!

It's a great episode. Grab an extraordinarily expensive latte at your local coffee shop and check out the whole thing. You will get all you need to survive another week in the world of IoT and greater tech!

Tune in! Like! Share! Comment and share your thoughts on IoT Coffee Talk, the greatest weekly assembly of Onalytica and CBT tech and IoT influencers on the planet!!

If you are interested in sponsoring an episode, please contact Stephanie Atkinson at Elevate Our Kids. Just make a minimally required donation to www.elevateourkids.org and you can jump on and hang with the gang and amplify your brand on one of the top IoT/Tech podcasts in the known metaverse!!!

Take IoT Coffee Talk on the road with you on your favorite podcast platform. Go to IoT Coffee Talk on Buzzsprout, like, subscribe, and share: https://lnkd.in/gyuhNZ62

Read the whole story
alvinashcraft
5 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Boost Your .NET Projects: Find the Fastest Way to Get an Item’s Index in Arrays

1 Share
This article examines the performance of three index-finding methods in .NET arrays: Array.BinarySearch (O(log n)), Array.FindIndex (O(n)), and Array.IndexOf (O(n)).





Read the whole story
alvinashcraft
5 hours ago
reply
Pennsylvania, USA
Share this story
Delete

No, a Windows update probably didn’t brick your SSD

1 Share

For the last week or two, reports have been circulating that recent Windows 11 updates (specifically KB5063878 and KB5062660) were causing some SSDs using Phison controllers to fail. Tech influencers on YouTube and TikTok were quick to jump on the reports of corrupted data and disappearing drives, laying the blame squarely at Microsoft’s feet. We’re not saying any company is above lying to the public, and Microsoft has a history of rocky update rollouts, but both Microsoft and Phison claim they’ve been unable to recreate the issue.

Phison said it was made aware of reports that the Windows update was causing drives to fail on August 18th and began investigating the issue. Then it issued a statement on August 27th saying that after running over 2,200 test cycles totaling more than 4,500 hours it was, “unable to reproduce the reported issue, and no partners or customers have reported that the issue affected their drives at this time.”

Microsoft followed up just a few days later by saying that, “After thorough investigation, Microsoft has found no connection between the August 2025 Windows security update and the types of hard drive failures reported on social media.”

This isn’t terribly surprising since the reports were fairly limited. A Japanese user on Twitter appears to be the first to suggest the Windows update was bricking SSDs and there were some in the comments claiming that they had experienced similar issues. But, there was little evidence to suggest it was widespread and it’s entirely possible that this is a localized problem related to a bad batch of drives. So it seems there’s little reason to believe the August 2025 Windows security update is going to fry your hard drive, no matter what some dude on TikTok says.

Read the whole story
alvinashcraft
21 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Random.Code() - Adding Filtered Properties to AutoDeconstruct, Part 2

1 Share
From: Jason Bock
Duration: 1:16:20
Views: 30

I'm going to continue the work to add property filtering in AutoDeconstruct.

https://github.com/JasonBock/AutoDeconstruct/issues/24

Read the whole story
alvinashcraft
21 hours ago
reply
Pennsylvania, USA
Share this story
Delete

Reimagining work: Microsoft’s vision for the future of Desktop as a Service

1 Share

Our Leader position in the Gartner Magic Quadrant™ for Desktop as a Service for three consecutive years reflects our commitment to deliver a platform for business agility, resilience, and human-centric innovation.

The post Reimagining work: Microsoft’s vision for the future of Desktop as a Service appeared first on Microsoft 365 Blog.

Read the whole story
alvinashcraft
21 hours ago
reply
Pennsylvania, USA
Share this story
Delete
Next Page of Stories