|
Alan Partridge: Alpha Pappa?
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
Yeah that was it with Colm Meany as the bad guy. Was pretty funny!
As I grow older I've found that pleasing everyone is impossible but pissing everyone off is a piece of cake.
|
|
|
|
|
A WV Polo?
"The whole idea that carbon dioxide is the main cause of the recent global warming is based on a guess that was proved false by empirical evidence during the 1990s." climate-models-go-cold
|
|
|
|
|
Hello this is my first post and I would like to ask for a hand to all of you!
I have to implement an interface for monitoring, this will have two types of connections (RS232 and Ethernet) that can be chosen at the discretion of the user.
I would like to create a client / server in C + + but this one has to manage two protocols tcp (ethernet) and one serial (RS232).
I can not get a view and be able to define high-level architecture which can then later go to handle only the two protocols (of course the two types of connection can never be used together).
Can anyone give me a guideline??
thank you
|
|
|
|
|
First advice is don't ask questions here. Pop over to Quick Answers[^] and Griff and the Boys will help you out quicker than you can say antidisestablishmentarianism.
|
|
|
|
|
I can't even spell antedis auntidise that word, let alone say it!
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
All I got was antiblahblahblah
As I grow older I've found that pleasing everyone is impossible but pissing everyone off is a piece of cake.
|
|
|
|
|
its spelled antidistinctlymintymonetarism. no, that's not right..
"Great minds discuss ideas; Average minds discuss events; Small minds discuss people" - Eleanor Roosevelt
"An eye for an eye only ends up making the whole world blind" - Mohandas Gandhi
|
|
|
|
|
I am definitely against all antidisestablishmentarianism unless our new robot overlords approve.
CQ de W5ALT
Walt Fair, Jr., P. E.
Comport Computing
Specializing in Technical Engineering Software
|
|
|
|
|
You place a drop down with the two protocols and when the user selects one, switch it.
This is known as the drop-down methodology of software development.
modified 20-Oct-19 21:02pm.
|
|
|
|
|
As opposed to the bottoms up methodology, where all code is written by Nagy?
Those who fail to learn history are doomed to repeat it. --- George Santayana (December 16, 1863 – September 26, 1952)
Those who fail to clear history are doomed to explain it. --- OriginalGriff (February 24, 1959 – ∞)
|
|
|
|
|
Yes, but code written on the bottom of the barstool is rarely usable as is; several pints of debugger are usually required.
Will Rogers never met me.
|
|
|
|
|
Member 10950715 wrote: Can anyone give me a guideline??
Yes; don't post programming questions here: it says so quite clearly above. If you can't read and understand that, what hope do you have?
"If you think it's expensive to hire a professional to do the job, wait until you hire an amateur." Red Adair.
Those who seek perfection will only find imperfection
nils illegitimus carborundum
me, me, me
me, in pictures
|
|
|
|
|
Use carrier pigeons
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 love the needle in a trillion-trillion..... haystacks nature of the mission.
"the debugger doesn't tell me anything because this code compiles just fine" - random QA comment
"Facebook is where you tell lies to your friends. Twitter is where you tell the truth to strangers." - chriselst
|
|
|
|
|
I have a new requirement for a content based routing thing, if a value in an xml message is true then it goes to two places, otherwise it goes to just the one.
Capture a message, find the node, look at the value - false.
So I code for true and false.
It doesn't work.
Capture a message that didn't behave as I thought it should, look at the value - yes.
Look at a few more.
Yep, for reasons that I cannot begin to imagine the value of the node I am trying to route on is false or yes.
yes or no, true or false, 1 or 0, penis or vagina.
What kind of sick mind goes for yes or false?
Some men are born mediocre, some men achieve mediocrity, and some men have mediocrity thrust upon them.
|
|
|
|
|
This is a good example of DDD - Drug Driven Development.
|
|
|
|
|
Now that's funny, that explains a lot!
As I grow older I've found that pleasing everyone is impossible but pissing everyone off is a piece of cake.
|
|
|
|
|
It's an OO world.
public class SanderRossel : Lazy<Person>
{
public void DoWork()
{
throw new NotSupportedException();
}
}
|
|
|
|
|
Yes, your code needs to be more flexible:
if (messageValue.ToLower().MatchesOneOf("1", "yes", "true", "vb sucks"))
{
message.SendToTwoPlaces();
}
else if (messageValue.ToLower().MatchesOneOf("0", "no", "false", "vb rocks"))
{
message.SendToOnePlace();
}
else
{
throw new UserTooUncertainException(messageValue);
}
Probably should really add all the trew/falls options to a couple of dictionaries but I couldn't be bothered; you get the idea!
Phil
The opinions expressed in this post are not necessarily those of the author, especially if you find them impolite, inaccurate or inflammatory.
|
|
|
|
|
Quote: 0", "no", "false", "vb rocks
are really sure, really...
|
|
|
|
|
Sounds like a good entry for "Weird and Wonderful"
You'll never get very far if all you do is follow instructions.
|
|
|
|
|
I'll take a whack at it.
I am a Masm developer. I write my own runtime functions. Any API accesses are through my runtime wrappers. In my world, I preserve all used registers (and the flags if I call any system APIs), and this includes the EAX register. If you want a return value from a function, you must supply a pointer to the location to receive the return value. Each function returns a success value in a common cell called dError (use it or loose it), and ends by comparing dError to 0, thus the flags on return from the function reflect whether the function succeeded or failed - 0 or "jz Good" - non-zero or "jnz Bad".
Now, as defined by "C", TRUE is a non zero value and False is zero, just the opposite of my checks.
To get around this annomoly, I never use TRUE or FALSE, just GOOD (0) or BAD (non zero).
It all depends on your point of view. There can only be a single case of GOOD, but there can be multiple cases of BAD.
Dave.
|
|
|
|
|
It was Richard...
|
|
|
|