|
It doesn't quite work like that.
We do not do your work for you.
If you want someone to write your code, you have to pay - I suggest you go to Freelancer.com and ask there.
But be aware: you get what you pay for. Pay peanuts, get monkeys.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Is this intended as a kind of code competition? Is there a prize?
Whoever gave you the idea that this would be a good place to ask for ready made solutions, please tell him he was wrong.
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Sascha Lefèvre wrote: Is there a prize?
Yes. A passing grade for the OP...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: A passing grade for the OP... Not interested..
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Strangely enough, I don't see 11 million other members bounding to his rescue either!
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Don't round up numbers... It is 11.4!
You (and others in community) should be proud of these .4, because (maybe) I am one of these.
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
How do you get 0.4 of a member? Cut his arms and legs off?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: How do you get 0.4 of a member? Cut his arms and legs off? And then he's only one of those 0.4
(Sorry Afzaal )
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Yes, because rest of them run away... Or perhaps I can of think of escaping this Griffin slaughter?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Afzaal Ahmad Zeeshan wrote: Or perhaps I can of think of escaping this Griffin slaughter? Disguising as a sheep might do the trick
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
White or black? Or the mighty, "Ba-ba black sheep".
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
A quick one
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Only if then he can float!
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
But then he has to change his username to "Bob" - and that's taken.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
How about,
"; DELETE FROM UserProfiles WHERE Username = 'Bob';
Then... Even Bob cannot prevent him to take over.
*evil grin*
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
You do realize what happens if you try to delete Bob, don't you?
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
Um, I would be invited to visit Area 51?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Maybe...afterwards.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
OriginalGriff wrote: Strangely enough, I don't see 11 million other members bounding to his rescue either! Sometimes you can try as you might, you just don't get through to the ignorant folk
If the brain were so simple we could understand it, we would be so simple we couldn't. — Lyall Watson
|
|
|
|
|
Isn't it funny that you can't even read the software requirements for hardware being used? The hardware manufacturers mostly share the "What's in the box" guide. You can read it. Try writing something up!
If you want information about something, some technical process, some framework you can always feel free to search on CodeProject directory for articles, tip/tricks and other resources.
Requirement is that you are willing to do it, that you really want to do something.
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 have read this article, An Absolute Beginner's Tutorial on Dependency Inversion Principle, Inversion of Control and Dependency Injection[^], yes it is a great article to learn this pattern and other related information. I do know how to implement it, creating an abstraction etc etc etc.
One thing that I didn't come to know what how does creating this abstraction help us out. The class is still being provided with the low-level module. So, what difference did it make when we created another interface to work around in our application. Can you please share your experience or views about Dependency Injection... Why should one use it?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Afzaal Ahmad Zeeshan wrote: I didn't come to know what how does creating this abstraction help us out. You may want to start with writing unit tests.
Dependency on abstractions rather than concrete types results into a loosely-coupled design and more clean and "testable" code. So while unit testing, you can easily inject mock-types instead of concrete ones.
You have just been Sharapova'd.
|
|
|
|
|
Afzaal Ahmad Zeeshan wrote: The class is still being provided with the low-level module. So, what
difference did it make when we created another interface to work around in our
application You'd have to implement the interface on the class, and all that it inherits from. The advantage of the injected class is that it can be replaced easily, and that its responsibilities are limited.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
Okay, so that it makes it easy to use other services in the very same class (module)... Something like that?
Because in the article, author used two services (Email, SMS) implementing the same interface (Notifier), which was injected to the high-level class for performing different action. Is that the purpose of Dependency Injection?
The sh*t I complain about
It's like there ain't a cloud in the sky and it's raining out - Eminem
~! Firewall !~
|
|
|
|
|
Afzaal Ahmad Zeeshan wrote: Is that the purpose of Dependency Injection? I think the purpose is to separate the code that drives the behaviour of the class from the code that drives the functionality.
Another advantage that springs from your list; how hard could it be to implement another service, like "PigeonCarrierLogger"? It'd be a small, limited class; and the amount of repetitive code would stay limited.
If you're only ever going to inject a single class, then it might sounds like overkill - and it is a bit more complex to read for a novice who hasn't seen the pattern before (making things more complex).
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|