|
|
Focus on the moments when the kids drove me crazy...
"The only place where Success comes before Work is in the dictionary." Vidal Sassoon, 1928 - 2012
|
|
|
|
|
Getting back to work IS vacation.
|
|
|
|
|
|
It is often a tough choice between kids and co-workers.
"It is easy to decipher extraterrestrial signals after deciphering Javascript and VB6 themselves.", ISanti[ ^]
|
|
|
|
|
Easy. I just open the lid of my laptop, which is always in front of me.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
I owe, I owe, so off to work I go
If you can keep your head while those about you are losing theirs, perhaps you don't understand the situation.
|
|
|
|
|
That code won't refactor itself.
|
|
|
|
|
Finally ... continuing all the challenging (and terribly relevant) stuff that was suddenly abandoned a few days ago , and, I admit, being rewarded for the efforts ...
|
|
|
|
|
Just forget about it and do what I have to do.
One step at a time. Like the alorithm they will someday replace you with.
|
|
|
|
|
Just forget about it and do what I have to do.
One step at a time. Like the algorithm they will someday replace you with.
|
|
|
|
|
I spend 2 hours cleaning my inbox. After that everything else is good!
|
|
|
|
|
There's always some crisis or another around here that needs tending to.
|
|
|
|
|
Not at all. I'm hanging out in discussion forums.
|
|
|
|
|
i have this one piece of code, and it is Bad Code(TM)
it certainly would not survive code review.
It deals with over a half dozen corner cases for disambiguating a parse of a field vs a type reference in C#
it keeps failing and I keep going back and adding another corner case.
such an anti-pattern
my hand rolled parser didn't try to handle this at all. it didn't like open typerefs with generic or array params so like
Console.WriteLine(int.Maxvalue);
Console.WriteLine(System.Int32.MaxValue);
Console.WriteLine(MyGenericType<int>.MaxValue);
This parser is supposed to handle it but it's causing it to fail on field references. sometimes.
fml
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
modified 1-Jan-20 17:52pm.
|
|
|
|
|
No wonder the parser can't disambiguate it. They look the same. I can't see how to do it without first resolving names. Within C#, it looks like a type attribute (Maxvalue) masquerades as a field. So for C#, you could probably just treat it that way and get on with life. But if you want to generate the equivalent code in another language, I can see how it would be a PITA.
|
|
|
|
|
Basically I treat them as fields until I can't, such that a type has generic arguments or something which precludes it from parsing as a field reference.
Later on i resolve it, and yes it's a pain.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
I don't know how far afield you're going with your project, but the prospect of converting C#
System.Int32.MaxValue to C++
INT32_MAX does not fill me with delight. Not in the least.
|
|
|
|
|
Luckily I'm only targeting other .NET languages so the basic libraries are all the same.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Can anyone recommend a good USB diagnostics tool for Win 10?
I'm having issues where my headphones will cut out, or I get random pauses with my keyboard & mouse. This PC is only a few months old.
If it's not broken, fix it until it is.
Everything makes sense in someone's mind.
Ya can't fix stupid.
|
|
|
|
|
|
Try running a Linux distro from a stick.
If the problem doesn't occur then, it will confirm what the problem is.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
You got a point. Test the hardware with Linux and check if the intermittence still happens.
|
|
|
|
|
It's one of the first things I do when it looks like I've got a hardware problem.
If it works, it's the driver or a software conflict; if it doesn't, it's the hardware.
It can save you going through a lot of pointless steps.
I wanna be a eunuchs developer! Pass me a bread knife!
|
|
|
|
|
Have you got a slideshow running for your desktop background? I found that if the 'change picture' setting was set to the 1 minute interval, then every minute the mouse/keyboard/pretty much everything froze. Setting it to 10 minutes seems to either fix the problem or I don't notice it so much now.
|
|
|
|