|
Allez, allez, ca suffit !
|
|
|
|
|
Merci !
|
|
|
|
|
Wouldn't that be poofball?
|
|
|
|
|
I love utility libraries. In all my various jobs I was always one of those creating utility libraries.
Anyhow I created 2 simple utility methods
static Task Delay(TimeSpan delay, CancellationToken token) { }
static Task<T> WithTimeout<T>(this Task<T> task, TimeSpan delay, CancellationToken token)
{
}
All overloads all together are about less than 100 lines of code and the code is quite simple as I would say.
Nonetheless I had memory leaks and performance issue hidden in those few lines during 5 working days non stop despite scrutinising them, tweaking them, rewriting them....
I mean how many bugs can you find in but a few lines?
The answer: quite a lot!
Am I getting old or something?!
Anyhow the remaining 15,000 lines of code seems fine!
|
|
|
|
|
Hmmmm ... What's "quite a lot" * 150?
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Maybe like 5 code fix... But everyday I realise I made a mistake in my previous fix!
The latest fix: I created useless TaskCompletionSource and it had dangling completion callback on it, causing memory leak... Tricky!
|
|
|
|
|
99 bugs in the code on the screen,
99 bugs in the code.
Fix one bug and pass it around,
101 bugs in the code on the screen!
Sent from my Amstrad PC 1640
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
In my work day I spend 30% on planing and designing, 30% on tutoring and meeting, 20% writing new code, 10% fixing bug and 10% creating new bugs...
I always say that the bugs of today are the bread and butter of tomorrow...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|
Thread carefully !
|
|
|
|
|
Never go looking for bugs.
|
|
|
|
|
Super Lloyd wrote:
static Task Delay(TimeSpan delay, CancellationToken token) { }
What's wrong with the built-in Task.Delay method[^]?
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
|
As much as I hate to walk up to my computer in the morning and find out it's been rebooted because Windows decided to install some updates that triggered a reboot, at least that doesn't happen nearly as much as Android seems to wait for me to start using my tablet to download updates, slowing it down to the point of making it unusable. That seems to be the case every time I reach for it and pick it up.
I never explicitly turn off my tablet - the screen eventually turns off on its own, and tapping it brings it back to life immediately, so I know it--at least--has NOT done a full shutdown. So why can't it use the time when it knows I'm away from it to update itself rather than wait for me to start using it, which seems totally backwards...
I have at least 3 Android tablets, ranging from 4.3 to 6.0, that get some regular use. And they all do that.
|
|
|
|
|
I just walked to my computer and pulled a new part it had printed overnight out of the 3D printer. If I had found a ruined half printed part instead, I would probably already be thinking about a replacement. Not that I would ever even think of installing Win 10 for this and other reasons.
And yeah, all my problems can be fixed. Sure, but why get something that requires so many 'fixes' in the first place?
I have lived with several Zen masters - all of them were cats.
His last invention was an evil Lasagna. It didn't kill anyone, and it actually tasted pretty good.
|
|
|
|
|
In my Androids (phone and tablet) WiFi goes sleeping with the screen, so no network connection to use... That can be configured, so you may try it...
"The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge". Stephen Hawking, 1942- 2018
|
|
|
|
|
I suspect it has probably got something to do with not wanting to drain the battery without user noticing. If you ever notice the battery drain during these updates you'll see that it is too much. But then this reasoning would mean that the phone should update if/when connected to the charger whether or not the screen is on, I wouldn't know the answer I never hooked up my phone for that long.
But if you are really tired of these updates you could just turn auto update off from PlayStore app or keep your phone's battery below 30.
|
|
|
|
|
My tablets are wired in and being charged pretty much constantly, except for what little time I spend actually using them.
|
|
|
|
|
Hmm... Seems like they don't want to update in in-active hours. You could make a suggestion on Gogle Products Platform or make a bit of a mess and publicly call them out on Twitter.
|
|
|
|
|
If I was the type to complain at Google, the first thing I'd suggest would be to get the hardware OEMs to push out their OS upgrades. None of my tablets have ever had a single one of them.
That's the only reason I have multiple Android tablets to begin with. And I'm done playing their game.
|
|
|
|
|
|
Abbas A. Ali wrote: Apparently they are now putting it in there contract Google will force Android phone makers to issue regular security updates
I mentioned I have 3 Android tablets - I actually have one more, but it's so old now that I've stopped using it entirely.
So Google's promise now is that if only I bought a fifth tablet, they would really, really, for real this time, pinky swear, keep it up to date?
Can you understand my skepticism? I've already dropped over a grand on this abandonware platform. Pardon me for feeling stupid if I were to continue that and expect a different result.
Abbas A. Ali wrote: but these are just security updates, OS will probably remain the same.
Funny how I can take the crappiest computer I still have and install the most current version of Windows 10 on it. Or plenty of Linux distributions. Yet Android devices are completely stuck in time.
|
|
|
|
|
I would only ask that if this is your desire why do you not own pure Android devices? Nexus/Pixel devices are always on the latest and if you are willing to root after they stop receiving updates from Google you can install third-party ROM's that will keep you running even further. For example, my OG Motorola Droid is currently running Android 4.1 even though they stopped supporting it at 2.2.3.
That's a far cry from 8.0 currently but I don't think running Win10 on a machine that could only handle Win98 is going to be very functional either. WinXP maybe...
|
|
|
|
|
Wartickler wrote: I would only ask that if this is your desire why do you not own pure Android devices? Nexus/Pixel devices are always on the latest
Had the Pixel series existed at the time I bought my newest Android tablet, I would've looked at it.
As for the Nexus - I've never seen 'em in person, and I'm underwhelmed by what I'm finding on Amazon right now. Why are they not all over the place? And WTF's with this $4300 tablet??
Wartickler wrote: I don't think running Win10 on a machine that could only handle Win98 is going to be very functional either. WinXP maybe
At least you have a choice. I wouldn't mind leaving my oldest tablet in the kitchen as nothing but an appliance showing the Weather Network's forecast page, but nowadays, its browser's so old most pages won't render properly. If I could run a more recent browser - which requires a more recent OS - then I'd get some mileage out of it, even if it's slow (who cares - it'd only need to display a static screen, updated maybe once an hour).
|
|
|
|
|
I haven't used Pixel but Nexus, I have two of them and let me tell you they are not something you wanna own as a consumer, they are practically overly rated phones. They have the same OS, same features and they are almost never consistently updated sometimes in the name of leaving the past behind, sometimes backwards compatibility is an issue, sometimes they've got better/newer things to do or sometimes they are just plain lazy.
Quote: you can install third-party ROM's
Could do that effort and lose time, money and let the corporate world win. I agree with @dandy72 on this one. Tablets are a waste of time with no real use. Come to think of it so are the smartphones but atleast they are more frequently updated and you do need to keep in touch with people living outside your own head.
PS I only have 4 tablets cause I am an Android Dev and need to keep the app up to date with Tablet screens.
|
|
|
|
|
I'm just saying I'm beyond frustrated with Android, I despise Apple as a company, and IMO Windows 10 on a tablet is just contrived (not to suggest I don't like my Surface tablets - just that Windows in that form factor isn't a great experience).
So, this state of the tablet market leaves me rather uninterested. Which is why I don't feel compelled to get a newer tablet even if I'm promised it'll be kept up to date.
As for whether tablets in general are "waste of time with no real use"...well, maybe that's harsh, I could agree or disagree on different days. I'm not a phone fan, because here again the only real options are Android and iOS.
Where am I going with this? The only thing I'm sure of is that even though I'm very much a gadget guy, I simply don't feel very excited about the current options. That's all.
|
|
|
|