My desktop at home is from 2010, but I have added components to it over the last 6 years (memory, disk space, graphics card).
Loading user information from Channel 9
Something went wrong getting user information from Channel 9
Loading user information from MSDN
Something went wrong getting user information from MSDN
Loading Visual Studio Achievements
Something went wrong getting the Visual Studio Achievements
Just a question roused by idle curiosity:
How many of you use utilities/tools that you have written yourselves?
I use a Pomodoro Timer VS extension that I wrote, but that's currently about it.
I am also making my first keyboard conversion, so I guess we can include hardware as well as software in the list :D
What do you use that you have made?
I'm resurrecting this thread as I now find I have some time to write a wrapper to hide the (IMHO) appalling API design that is ApiInformation.IsApiContractPresent. If the wrapper is good enough, I'll open source it.
So, opinions on how to design the library, taking the 'VibrationDevice' as the starting point. Which seems like the better API:
1. A static class where you just call
And if there is a vibration device it will be used, but if there isn't nothing will happen (optional return value indicating whether it happened or not).
2. The same format as the MS VibrationDevice class where you call
var device = VibrationDevice.GetDefault(); device.Vibrate(TimeSpan.FromSeconds(2));
But without the nasty exception throwing, using a NullObject replacement to perform the empty implementation.
I'm currently leaning to option 1 as it seems cleaner to call (being just a hardware interface) rather than having to create an instance using a static factory method.
Other opinions are sought.