« first day (23 days earlier)      last day (4911 days later) » 

1:17 AM
@AlfPSteinbach s/3rd hand/gripping hand/; I use "OTGH" fairly often, but suspect very few notice it :(
 
2:00 AM
just ask, someone may very well answer -- or not ;-)
well those are tools to help you get an idea what the project's all about
 
@tina Do you have a requirement to use UML? Because in all honesty, it's often a beating trying to shoehorn real-world software architectures into tidy UML diagrams.
 
i think also you're probably mixing levels of detail here
when you're doing use cases everything is still in flux
there's no software to think of yet, no functions
+ as james says
+ are you by any chance using Rose or other modeling tool?
 
I shudder at the mention of Irrational Rose.
 
How do you plan to explain your problem if not by asking questions?
 
2:18 AM
Hi there! Does anyone have some recommendations concerning TCP socket programming? I want to port a simple networking game to C++, main question right now is how to handle the package stuff, I'd like to not reinvent the wheel here.
 
@tina: I looked at your SO questions and they seem to be a mix of advanced math and basic programming. Is that about right?
and is this about computing intersections of, uh, figures or something?
 
@IvoWetzel: put 5 programmers in a room for a year and they'll come out with 5 build systems and 7 networking libraries
2
@IvoWetzel: start with beej's guide if you want some knowledge of the basic api, then find a library that works for you
@IvoWetzel: (hint: boost has one)
 
@RogerPate OK, gonna look into boost then :)
 
@tina: the operations you're concerned with, like computing intersections or checking for overlap (whatever), are they just used within the program, to accomplish some purpose, or is the program about letting the user try out such operations, or ...?
 
2:35 AM
@tina: ok, it seems like the requirements for all this modeling stuff is for a school assignment? I looked at your question here. If this is a school assignment then I suggest posting SO question with "homework" tag, describing the assignment first of all, and what you done so far, and what you're stuck on. Yes?
 
@AlfPSteinbach s/with "homework tag"/clearly indicating that it is homework in the text of the question/ (the [homework] tag is now discouraged).
 
@James: thanks, didn't know...
 
@AlfPSteinbach It was a recent change that wasn't really well announced; I'm usually the last to find these things out too
I think Steve Jessop said it best a few days ago when he pondered how frequently people are expected to read the entirety of meta.stackoverflow.com to learn what new is going on... :-/
@tina Do you have any colleagues that you can discuss this with? It's often much easier to talk to friends and coworkers that have experience with the same subject matter.
 
Anyway, computing intersections and such is not trivial. When I asked Google Earth where Norway was, it placed Norway in the middle of Sweden. Like a little province there. :-) I'm guessing that it simply picked the middle of a rectangle enclosing Norway, which is sort of diagonal on the map...
 
2:53 AM
@tina: I think best help now is new knowledge: that activity diagrams have nothing to do with which functions call which. They're not used to model that. You can find intro to activity diagrams at Wikipedia (this is a clickable link)
No, more like an activity diagram can show how you e.g. withdraw money from an auto-teller (is that right word? bank think). Inside that machine must be software with appropriate functions to let user do this.
 
@AlfPSteinbach Yes; ATM => Automatic Teller Machine
 
I don't want to give perhaps wildly wrong ideas, but a use case might be (1) user specifies two regions, (2) user asks for intersection of regions, (3) system displays intersection or message that they don't intersect.
 
3:15 AM
yes, points, lines and polygons are all useful abstractions for the stuff you're doing. you'll probably need vectors also. if this was for work you'd probably use a library already providing those abstractions (as classes). if you're using UML to model things then you just need to check the UML notation for containment, e.g. a line object contains two points, or a starting point and a vector. but this is about internals of the system
does that help?
@prasoon: don't people ever sleep? :-)
 
3:31 AM
@AlfPSteinbach: Haha! Its 9:00 AM here. I have just woken up :P. People like James McNellis and Johannes Schaub don't sleep :)
 
@AlfPSteinbach : BTW very nice explanation here. Liked it :)
@AlfPSteinbach : It seems now you have started liking Stackoverflow, right?
:-)
 
Thx. Well it's different from Usenet. I think room for both, and I think students find SO much more accessible and easier.
 
Yeah that's right. Plus we have reputation score system, badges etc. Fun, isn't it? :-)
 
Hm, badges nice touch, but I don't like the reputation thing. My first experience with rep: you can't comment until you've gained some rep. For this, rep system discourages useful responses that aren't directly "answers". In practice, many times or most times when confronted with a problem what's needed is insight and new understanding or guidance on what to focus on or getting hard questions about things one hasn't thought about, not someone's "answer".
IMHO...
 
3:48 AM
Yeah you can't comment until you have reached +50 rep but on the other hand gaining +50 isn't that difficult (just a matter of 5 upvotes ;-) )
 
4:02 AM
What do you mean by "show", exactly?
 
@PrasoonSaurav Damn straight! Sleep is for weaklings who cannot program 24 hours a day. ;-)
 
@James: LOL (to use a modern expression).
 
@JamesMcNellis Haha! ROFLMAO (a more complex modern expression) :-)
 
@tina: I can think of following meanings of "show": (1) having your program present a line graphically on the screen, (2) having your program output a textual description of the line, (3) modeling the classes in UML or similar notation?
yes?
OK, that's meaning (3).
 
@tina : Sorry but your English sucks!
 
4:16 AM
@tina: I was referring to my possible meaning of "show", number 3 "modeling the classes in UML". Anyways, it seems like you need an introduction to UML. Like here, I just googled. Wikipedia is also good.
Instead of an Order containing OrderDetail items, you have a S_LineString containing lPoint items.
By the way, you'll find it's a good idea to settle on a single naming convention for classes (so that you can see from a name that this is a name of a class).
@tina: I think that's internal things for the UML editor you're using. It sounds very Microsoft'ish, gobbledegook. Just ignore it. :-)
OK, this is starting to to make sense. Here's my advice: don't use any unions, don't use enums, and don't use any macros. Now problem is reduced to classes and structs.
For that (classes and structs) you need to keep in mind that the distinction is almost wholly at the design level. In the C++ code they're the same (except for default access for sub-objects, public versus private). But at the design level a structure is something to think of as pure data, while a class specifies both data and behavior.
So, to simplify the task even further, simply forget about structures also: wherever you already have a structure (plain dumb data), make it a class.
yep. :-)
You're welcome.
 
Als
4:41 AM
hey all
 
@tina: with disclaimer that I haven't used UML for years, take a look at Wikipedia entry on UML notation for composition.
 
Als
@tina: I know Uml to an certain extent, but I am at work right now. No messngrs at work!
 
5:34 AM
Of the six hard drives in my workstation, the only one I actually need to boot it won't spin up... :'(
@tina Why would you do this? If you actually implement an interface, create an abstract class for that interface and derive your concrete implementations from it.
No. For one thing, I have neither MSN Messenger nor Yahoo Messenger on this computer.
Not on this computer, and as I said a few moments ago, my workstation won't boot.
Besides which, Stack Overflow and Stack Overflow Chat are more than enough community interaction for me :-)
Why would you typedef point IPoint? You should create an abstract class IPoint that defines the interface and then derive a Point class from it and implement the interface in that class.
No, you may not e-mail me.
Why not just use Point then?
It doesn't make sense to typedef point IPoint. For one thing, prefixing a PascalCased type name with a capital I conventionally means that it is an interface type and that it is an abstract class. For another thing, why would you not just use point?
Why would you do that? It doesn't make sense.
I wish you luck.
 
sbi
6:27 AM
@JamesMcNellis Actually, all you have to watch is meta.stackoverflow.com/questions/59445/…
 
@sbi The change in recommended application of the [homework] tag is not in that list :-)
Test: [tag:c++] Edit: Oh well; I guess that feature is only in questions and answers.
 
sbi
@JamesMcNellis No, it isn't. But then that's just an opinion of "the community", which with I don't agree.
 
This is pretty cool; I'd never have guessed that was there. Apparently I've only missed seven days in the last year :-P
@sbi Right, and I agree that shouldn't be on that list, but that was what the discussion above was about.
 
sbi
6:45 AM
@JamesMcNellis I can tell my family's birthdays (plus a wedding) by browsing the list of days I missed visiting SO this year. :)
 
@sbi Mine are from snowboarding and a weekend where I was really hung over (uh, I mean where I was working super hard!)
 
sbi
@JamesMcNellis I had only scanned over last night's messages, and your reference to @Steve's comment caught my eye, since I had replied to it with the same link. I didn't look too closely what was discussed. I apologize.
 
@sbi Seriously; I can't believe you didn't read every message posted here since you were last in here. ;-)
 
7:16 AM
I can't see how this can work: stackoverflow.com/questions/4121822/…
Oh perhaps it could take a reference to the pointer and modify its address.
 
@CiscoIPPhone yes, that's exactly how istreams work
 
7:38 AM
probably just aggregation of both classes
 
7:48 AM
that's horrible, what are you doing?
 
why are you using uml?
 
As far as I understand it UML is language agnostic...so you shouldn't need to show a union on there
 
UML may not have an actual union symbol, it doesn't have a struct one. Thing like polymorphism are implied by the way you describe you code, this is just a class full of public pointers with no private/protected members and no functions.
 
@tina: why are you making a project design using uml?
@tina: and how does the rest of your team at your work expect it to look with a union?
 
:D
 
7:52 AM
@tina: then whatever notation you like
 
UML gives no indication of memory usage
 
Union -> uml element: Class use symbol: <<union>>
 
I need more tea too
 
bah, COFFEE!!!
 
too late, nearly 3am here
 
7:55 AM
i need some water
 
green tea for me
 
@RogerPate I dont get your point ~_~
 
green tea with raspberry is what I just finished
 
it means use the class uml element and write <<union>> above it
obvs
 
7:56 AM
green tea is always excellent
 
A good article on optimising C for ARM
 
@tina are you japanese
 
I would assume that most of this would apply for writting more or less any code
 
i see .. do you speak urdu then ?
 
@tina at first glance that read really strangely for me... how could you be from pakinistani... oooh I see, stupid me
 
7:59 AM
ive seen a sudden surge in pakistani developers , thats nice
 
@tina rather then saying you have an int variable just say you have an int*
though again... not too sure if UML is meant to be used this way. it is a design system really, not a development system
 
they are public by default
 
well they are aren't they
I don't really see the point of union seems fairly needles to me
 
are you a newbie to C++ @tina ?
 
to UML I would say
 
8:14 AM
you should start by brushing up your C++ skills before starting out your one woman project .. justsayin
... and korean
aap ne 'arasoyo' bola tha jiska matlab - 'thik hai'
right
i'll get a sammich . brb
nope im not from asia
 
8:33 AM
when overloading operators is it best to pass const reference or just reference?
 
depends on whether you want to mutate the argument or not.
 
depends which operator and what it does
 
lol no
"For each operator, determine whether the residual value should be an rvalue, a non-modifiable lvalue or a modifiable lvalue. If it is an rvalue, then the operator can either return by value or by const reference. If it is an lvalue, then the operator must return by reference."
 
@Reno : What exactly is your point?
 
@RogerPate binary ==
 
8:39 AM
@Prasoon its the same thing you said
 
@Reno : The quote that you have posted is all about returning by reference/const-reference whereas Tony's question is about passing by reference/const reference.
 
oh my bad
the usual question i get about template is about its return
 
c++ can be confusing at times
:(
 
@Tony ignore my answer ,, its about return const references and yes
C++ is as complicated as women
sometimes
 
8:48 AM
lol yes
is use of const_cast advised at all?
 
if the variable was originally a non const .. its safe
to use the cast
if the variable was originally a const variable .. the result is undefiend
 
@Tony: you should need to use const_cast, on average, no more than once every two years
 
but if it was originally non const why use const cast at all?
 
(that's a better estimate)
 
8:55 AM
@RogerPate I've used it this year already, so I guess I'm about to use it wrongly then
thx @Reno
so I have this function ´std::string GetNodeName();´
and this operator
bool operator ==(const XMLNode & lhs,const XMLNode & rhs)
{
	return (lhs.GetNodeName() == rhs.GetNodeName() &&
		lhs.GetNodeValue() == rhs.GetNodeValue());
}
generates this error: : error C2662: 'XML::XMLNode::GetNodeName' : cannot convert 'this' pointer from 'const XML::XMLNode' to 'XML::XMLNode &'
 

« first day (23 days earlier)      last day (4911 days later) »