|
PhilLenoir wrote: Did you think of looking at BizTalk? It might remove the need to code at all! Sure, if you have 2 years to learn it.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
And bucks to buy it. This is two tasks, one flow code I've written, and the scenario isn't close to warranting anything as big as BizTalk.
|
|
|
|
|
Brady Kelly wrote: And bucks to buy it. Which you can earn back pretty quickly once you have learned it. We had to contract a Biztalk guy for a few weeks to help us out and they are not cheap.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
or you could've used structuremap[^]
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
It is an IOC tool so there has to be reflection or a massive massive switch case.
ISomething something ;
switch(somethingElse){
case 1: something = new ConcreteOne();
...
}
|
|
|
|
|
no, to both.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
Under the hood perhaps. How else would you map interfaces to concrete types?
|
|
|
|
|
with code
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
|
*sigh* why don't you download it and try it out and you'll see what I mean.
If your actions inspire others to dream more, learn more, do more and become more, you are a leader.-John Q. Adams You must accept one of two basic premises: Either we are alone in the universe, or we are not alone in the universe. And either way, the implications are staggering.-Wernher von Braun Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.-Albert Einstein
|
|
|
|
|
I did. There are 18 instances of Activator.CreateInstance in the code. How else do you think a generic(a product) unity container can work?
I am really curious if there is a way since I use a lot of IOC in my code.
|
|
|
|
|
So this morning I'm testing code I've done for a client to submit property listings to a web service API for inclusion in a popular property sales site, and I notice that a nice little while (true)... loop I've wrapped the API calls in is still in the core code, not the calling code.
I cut and pasted it to around the calling code, and ran the app, expecting my "Hit ENTER to run again, CTRL+C to quit." prompt. Then I was distracted by something, then a bathroom visit, walk in the garden, and some more, before I wondered where my good old prompt was. When I stopped things, I had called the poor (sandbox, not production) web service about 1200 times. Turns out I only copied the loop, not cut, before pasting. But I did cut the code that shows the prompt and waits.
|
|
|
|
|
Well, it's late in the day, we all make mistakes...
At least it was the sandbox, not the production server...
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
This was basically the first thing I did today, around 10h00. Haha, yes, I have to send through several OK submissions before they upgrade the client's account for production access.
Their spec notes, "we also noted that we received almost 300k method calls that failed valid business rules", but on the sandbox this morning I found one business rule they weren't aware off: All image URLs must have a ".jpg" extension. They are fixing tomorrow.
|
|
|
|
|
Copy & Past coding?
You copy something but then when you try to paste it you get something you copied 5 years ago instead.
|
|
|
|
|
Oh, have I ever seen that phenomenon on this project. I use Foxit Reader for PDFs, and it really does the job well, except that CTRL+C doesn't copy! And I've been coding off a PDF spec, copying and pasting field names etc. Just a few days ago I was doing it about every twenty seconds. Copy from PDF, paste in code, change in code and copy and paste elsewhere. "Copy" from spec and paste last time's code instead of spec value.
I thought I was going to have to get violent with myself to end the pain.
|
|
|
|
|
A couple NFL (American football) teams are playing in London this weekend. A few others have already done so in previous weeks. There is talk over here about starting a new team (or re-locating an existing team) in London permanently. My question to the fine folks from the UK who frequent the Lounge:
Do you believe there is enough legitimate interest in American football in the UK for a London franchise to be successful?
I know this is probably asking the impossible but please try to refrain from the obligatory cracks about how "it's not football if they use their hands", "our football is a real sport, yours sucks", "they're all candy-asses compared to rugby players", etc... Not that such comments aren't true or sometimes even humourous but I'm hoping for at least one honest opinion on my question.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
It sounds like a scare tactic -- "You hooligans! Behave or we'll make you watch this!"
Did you also know that some MLB games were played in Sydney this year?
|
|
|
|
|
PIEBALDconsult wrote: Did you also know that some MLB games were played in Sydney this year? I did not know that but baseball is a whole other matter. Baseball is already very popular in Southeast Asia and Central America - American football is still rather unique to North America.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Mike Mullikin wrote: American football is still rather unique to North America
Actually, American football is unique to the USA. Canada has Canadian football, which is similar(*), and some Mexico schools have American football teams, but no college (that I am aware of) or pro teams.
(* Canadian football has 3 downs instead of 4, the field is wider and has a 55 yard line instead of 50 and many of the minor rules are different. Since Canada is now metric, I'm surprised that the game hasn't done so as well...)
I'm retired. There's a nap for that...
- Harvey
|
|
|
|
|
Yeah, I consider American football and Canadian football close enough to be considered the same for this discussion.
Government is not reason; it is not eloquent; it is force. Like fire, it is a dangerous servant and a fearful master. ~ George Washington
|
|
|
|
|
Like Rugby Union and Rugby League?
"If you don't fail at least 90 percent of the time, you're not aiming high enough."
Alan Kay.
|
|
|
|
|
Fighting words.
Did you ever see history portrayed as an old man with a wise brow and pulseless heart, waging all things in the balance of reason?
Is not rather the genius of history like an eternal, imploring maiden, full of fire, with a burning heart and flaming soul, humanly warm and humanly beautiful?
--Zachris Topelius
Training a telescope on one’s own belly button will only reveal lint. You like that? You go right on staring at it. I prefer looking at galaxies.
-- Sarah Hoyt
|
|
|
|
|
|
Yes I believe there is.
There is a growing and very devoted fan base. We generally have to stop up to two in the morning to watch the Superbowl so we don't get put off easily.
I know quite a few who have been to the Wembley games now, and I'm hoping to do so soon.
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|