|
About the same, I'm still kinda mystified.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
At least it's consistent. Don't you hate all those inconsistencies?
|
|
|
|
|
Rob Grainger wrote: were being raised for non-existent properties
Exactly how is this being done? If the property doesn't exist, then where is this case being implemented? Can you show in a code snippet?
I have never seen this done for something other than notifying the client, of a property value change.
Wow.
|
|
|
|
|
In our code, it is all done via our own MVVM framework.
I have a SetProperty method defined on a base class, using a [CallerMemberName] argument to specify the property, which performs the following actions:
- If the value has not changed, exit immediately.
- Use Reflection to check the property specified actually exists.
- Call a method
RaisePropertyChange to raise the event.
RaisePropertyChange is designed to allow firing notifications on derived properties when a base property or other change occurs that would affect their value (similar to most MVVM frameworks). Effectively this just triggers the PropertyChanged event, passing a property name as a string.
Note however that (perhaps unwisely) I didn't use reflection in RaisePropertyChange to check the property exists. The dev in question simply called this method, passing a string that doesn't correspond to a property name. I guess I didn't consider the probability of someone being that daft.
(I've now added the code to check - shame as it decreases the efficiency somewhat as it has to use Reflection to check each property access, but it costs to defend against stupidity. I'm just glad all this is in a managed language, I dread to think what would happen if these muppets were let loose on C++).
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
...and created a WINDOWS BATCH FILE that CALCULATES PI!
Here it is![^]
I honestly have no clue as to HOW it works, though!
What do you get when you cross a joke with a rhetorical question?
---
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
---
Do questions with multiple question marks annoy you???
|
|
|
|
|
Same here... I wonder if that is a source code or a sleep typing.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
I recently had to do something in a batch file. Getting today's date was no problem. Getting yesterdays date though...
|
|
|
|
|
Good god, he implemented floating point math with integers to 4 digits after the decimal point of precision.
Marc
|
|
|
|
|
Public Enum HierarchycalEquitySeachType As Integer
SEDOL_ISIN_CUSIP___SEDOL_ISIN___SEDOL___ISIN___CUSIP
End Enum
See - this is pretty much self documenting code...
|
|
|
|
|
They say that if you read it backwards three times you may summon OG the Devil
Geek code v 3.12
GCS d--- s-/++ a- C++++ U+++ P- L- E-- W++ N++ o+ K- w+++ O? M-- V? PS+ PE- Y+ PGP t++ 5? X R++ tv-- b+ DI+++ D++ G e++>+++ h--- r++>+++ y+++*
Weapons extension: ma- k++ F+2 X
I use 1TBS
|
|
|
|
|
You called?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
With great power comes great re-putation!
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Nice try...but...I see no pentagram. Or Octagram, or Hexagram.
So...I'm free! FREE AT LAST! MWHAHAHAHA! FOOLS! YOU HAVE RELEASED ME FROM MY ETERNAL PRISON!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
|
|
I recommend going back while it's not too late. It's not as fun out here as you might think
|
|
|
|
|
I would use a hexadecigram.
The language is JavaScript. that of Mordor, which I will not utter here
This is Javascript. If you put big wheels and a racing stripe on a golf cart, it's still a f***ing golf cart.
"I don't know, extraterrestrial?"
"You mean like from space?"
"No, from Canada."
If software development were a circus, we would all be the clowns.
|
|
|
|
|
The declaration of the enumeration is exotic, for sure.
Its usage is even more:
Dim type As HierarchycalEquitySeachType = HierarchycalEquitySeachType.SEDOL_ISIN_CUSIP___SEDOL_ISIN___SEDOL___ISIN___CUSIP
I don't know for you, but that makes me nauseous.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
|
|
|
|
|
My sympathies! Good thing for intellisense!
"Go forth into the source" - Neal Morse
|
|
|
|
|
I'm scared, people still use SEDOL?!?!
veni bibi saltavi
|
|
|
|
|
Not in MY systems, but in third-party ones... Ugh... Yes.
|
|
|
|
|
Just noticed that in the Unit Tests I've written, someone as taken a novel approach to refactoring. When refactoring causes a test to fail, his approach is simply to comment out the lines that cause the failure.
I now need to go and check nothing has broken in the process - which seems unlikely.
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
What is wrong with problem elimination?
This is a joke in case you miss the icon
|
|
|
|
|
d@nish wrote: What is wrong with problem elimination?
Tell that a heart surgeon.
You: "Dr. I'm having problems with my heart lately."
Dr: "Ok son, don't you fear, I'll cut that heart out and you'll no longer have any problems with your heart"
You: "Wow Doc, that sounds reasonable. Slice away!"
I'd appreciate it if you would let me watch and video the procedure.
After the operation I've planned in a small interview with the patient, to see how he liked the procedure.
Cheers!
"I had the right to remain silent, but I didn't have the ability!"
Ron White, Comedian
|
|
|
|