| |
| |
| |
|
Page: 1 2 3 4 5 6 7 8 9 10 11 12
Comments:
<0> well, i'd have to know more information about what you're doing.. <1> I have no idea what you're trying to code. <2> OK, I am fed a property object by a third party, that has a key, a value ( as a string ), and a type <1> And then? <2> I am using this value later in my code <2> example <2> SerialPort = "COM1" <2> SerialPort = "1" <2> if my code needs an int <2> I want to make sure that I received an INT <2> so there is validation to be done <3> hi <3> sup? <2> automated validation <1> Well, we were discussing what kind of slutty travesite would call itself 'naughty girl' on IRC, in particular #C++. Probably one of 60+ is my guess. <3> lol
<3> word <1> mozai: Can those two examples coexist? <4> hi GuRL! <5> hey! <3> hey <3> anyway, time to go.. <3> hi Kalasanova <0> mozai, you wouldn't be able to use templates here then.. since it's runtime validation <6> hey <0> the third party should have used them probably <4> who's Lina? <6> my girlfriend from Lithuania <6> im gonna sleep <1> GuRL`: Kalasanova would like to know how old you are, where he can find your picture and if you have a cute brother. <1> Oh she left. <7> lol <6> he <6> it :P <1> (ok, that last question was mine) <7> lol <8> ok, i have written a program that listens to a port using sockets, but i never get any new stuff from it after it have finished reading the first stream coming in, anybody wanna look at the code? <8> http://www.noidea128.org/sourcefiles/15953.html <8> response at linme 211 is always the first recieved string <8> line^ <1> Can you rewrite that question without 'it' and 'stuff' in it? <8> i can try <8> i have written a program that listens to a port using sockets. After recieving the first stream (which is converted to a string using stringbuilder) i never get any new strings. <8> even though new streams are written to the listening port <1> A stream has no end with sockets (until the connection breaks that is) <1> You mean a 'line'? <1> lines end on new-lines <1> Or packet? <8> good question <1> Anyway, your code includes an unknown custom header and then you start with: public ref cl*** Network:public System::ComponentModel::Component <1> Hum. <1> I see a lot of things that don't even look C++. <8> hehe <1> I never heard of Network, or System::* <0> it's C++/CLI <8> yes, it's CLI <1> Then ask there <8> dotnet framework 2.0 <1> This is #C++ <0> #c++/cli <9> interview done. another one bites the dust ;p <0> went well? <9> this guy seems a little more interested than the others were.... too many people are developing console games though that aren't m***ively multiplayer ;p <9> yeah i think it went well <9> and nobody has given me a good answer as to playing multiplayer across platform (ps3, xbox) boundaries <0> oh, this was the console game developers? <9> YUY0x7 one of a bunch <0> ah <9> i have another interview in about 2 hours with Midway <0> cool <1> What is a research grant? (reading email) <1> I hate it when people mail me stuff that I don't understand. <9> grant = money <1> I recently saw an "ECC" code that you have written and would like to know if <1> you could help me with some similar code for my research grant. I attend NC <1> A&T SU and am doing research in HECC and need some code that we can test and
<1> run to support the use of HECC if you know if any resources where I can find <1> anything like that please let me know it would be greatly appreciated. <7> research grant = money paid to someone to do research and publish papers on a subject <9> research grant = money to do research with, i'd guess <1> If he wasn't telling me he was doing HECC research, I'd have thought a 16 y/o wrote that. <1> It's horrible. <9> hehe <1> How can he put three times 'and' in one sentence and then forget the punctuation at the end of that sentence? <9> at least he uses punctuation <2> Run: sorry, I was buisy. Well, the two samples can co-exist, example, your trying to open one device that accepts "COM1" on port1, and a second device that takes "2" on port 2. You basically send me a map of properties for each device your interrested to open, I do the validation and I open them <1> I never tried that. <2> so whenever I get the properties map, I do a conversion to local object members, while validating. The instance I hit an error, I throw an exception and stop conversion. <1> I think I decoded this one: Sorry, I was busy. Yes the two samples can co-exist. For example, if you're trying to open one device that accepts "COM1" on port and a second device that takes "2" on port 2. You basically send me a map of properties for each device (that) you're interested in to open. I do the validation and I open them. <1> Still... I'd rewrite it. <2> yes <10> Run: so do it <10> NOW <1> How about: Sorry, I was away. Yes, they can coexist: it is possible to have two or more objects with the same name (key) and value, yet different types. <2> yes <1> Or do you derive the type solely from the value? <2> nop, type is never ***umed, type decides what value is <1> And what kind of operations does your program perform on the value strings? <1> If the type is INT, would you do integer operations? <2> yes <1> Then I have to ***ume the number of types is limited and the types themselves are well defined, right? <2> exactly <1> How many different types do you have? <2> So far, 5 <1> Ok - I'd probably go for this approach: <2> in an enumeration <1> I'd write a base cl***... <1> cl*** KeyValuePair; whatever. <1> And derive from that the different types. <1> Then write a factory for those objects depending on the type you are being p***ed. <11> Mwah :) I am done. Now I have that proggie installed on my computer :p <9> Hmm <2> Run: I see, not bad of a suggestion. I now have base cl*** Property, and the " <2> extended" cl*** PropertyDomain <2> that has a type <2> the tricky par though is that it will have more than just type, like minRange, maxRange <2> so if you need to validate an INT you can specify a range as well <1> It's a bit unclear where the advantages are ... in the end you'll still have to do checking and casting (though now you can use dynamic_cast, ruling out errors) <9> if anyone here does network programming, you might be interested in this Message cl*** I wrote last night: http://www.noidea128.org/sourcefiles/15954.html <1> It will also cost a LOT of extra work. <1> But the end-result would be a LOT more flexible and stay equally robust after changes. <12> rdragon : what does it do ? <9> it represents a packed bunch of data <12> a buffer ? <9> basically, yes <9> the buffer isn't the interesting part - the interface to it is <1> equally: the same as before, and equal in robustness as the first well-written version without maintenance or changes that you could write without using multiple cl***es of different types. <2> ok, I will give that a thought <1> My experience is that going for something that is well maintainable always pays back in the end. <1> But it is, unfortunately, rather boring to set up at first. <2> yes <1> (We need more powerful code generators :/) <4> AI code generators :) <12> they are called "coders" <11> What do you press in M$ Visual C++ Express Edition in order to compile the script? <4> no, they are NIs (natural intelligences) <7> Build->Compile <7> oh wait, express? Not sure. <4> Strg+Alt+F4 <13> Visual C++ doesn't build scripts <4> errhm..long time i didn't use windows. <13> F7 is the default build hotkey <8> f7 builkd solution <8> builds* <12> rdragon : why don't you use a template member function AddSomething instead of ~20 separate methods ? <11> Erm, :o so? <12> ah, ok. you do. so why not expose it directly ? <8> evol so? do you mean you want to run it too? <8> if so press F5
Return to
#c++ or Go to some related
logs:
#MissKitten superman milking #linux waybeyondhelp #chatzone What museum provides a home for Whistler's Mother #chatzone #linux fishys teens #MissKitten
|
|