@# Quotes DB     useful, funny, interesting





Google
 
Web www.quotesdb.info
Undernet  |  EFnet  |  Quakenet  |  Freenode  |  Dalnet  |  Ircnet  |  Galaxynet
Page: 1 2 3 4 5 6 7 8 9 10 11



Comments:

<0> Well, I have to use getopt() AT SOME POINT in the app ...
<1> PM2, getopt is ****
<2> what's the problem, you have no idea how to use it?
<3> isn't it usually right out of main() you want to do that sort of thing?
<0> Plus, he wants us to put getopt() in a function that's within a namespace ... _
<2> doesn't sound like a showstopper
<2> doesn't sound intelligent, but eh
<0> So we have to use some_namespace::some_function_with_getopt();
<2> Config::SetOptions( argc, argv );
<0> Hey! I know!
<2> or ReadOptions,
<4> you wouldn't be able to compile your program on vc8 getoopt isn't in any of the includes
<2> what compiler are you guys using PM2
<0> vawjrwrk : Is that the latest VS?
<5> my son wants to generate truly random numbers
<5> pseudorandoms aren't enough



<4> PM2 yes it is
<2> jottinger - impossible
<3> could always build getopt_long from source
<0> rdragon : whatever we want ... Dev-C++, gcc ...
<6> impossible?
<5> rdragon: I know
<3> jottinger: computers are not truly random
<4> jottinger why does he think he want's "truly random" numbers
<5> Tamahome: ... I know
<2> then slap him and send him to his room
<6> how is it impossible?
<0> rdragon : LOL
<3> heya... LTNS
<5> vawjrwrk: because he's an idealist
<2> NineVolt how is it possible?
<0> NineVolt : Random ... for a computer? IMPOSSIBLE ... period :)
<4> there are some hardware solutions, but I don't think they're cheap
<6> measure nuclear decay?
<0> NineVolt : A computer is everything but random
<2> NineVolt - what library is that in? ;)
<3> jottinger: I just recently graduated from computer programmer curriculum at college :)
<4> jottinger being an idealist isn't an answer....what's he going to do with them?
<8> Input from port 40h. That's highly random.
<5> vawjrwrk: display LEDs randomly
<5> he's ten years old, he doesn't have a real need
<3> modern CPUs have devices capable of generating random number sets better than rand(), no?
<4> there are some crypto grade PRNGs that will satisfy pretty much anyone's desire for "random"
<5> he's seeding from a closed circuit, wants actual random numbers
<6> teach him the theory behind randomness. and chaotic systems.
<4> Tamahome no
<3> vawjrwrk: hm, thought they did
<5> vawjrwrk: right, i tried to explain that if he couldn't tell the difference between a random and a pseudorandom, then they might as well be the same
<3> vawjrwrk: for SSL stuff
<9> wow, Tamamanasai is home early
<5> but he's not buying it :)
<4> Tamahome nope
<3> Cantide: if you mean me... I'm not who you think I am
<5> Not too surprising, though, he doesn't believe most of the programming stuff I teach him :)
<5> NineVolt: I will, when I have time
<9> O_O
<5> Gotta finish work instead
<9> ok..... now that is wierd >_<
<6> so..;
<6> is there a free alternative to ms visio?
<6> i need to make a flowchart..
<4> paint
<5> NineVolt: dia
<4> NineVolt from whence arrive _need_
<6> school
<6> senior project :\
<3> flowcharts are great... FOR ME TO POOP ON!
<6> .. UML?
<0> vawjrwrk : I got it! lol Complicated, stupid, dumb... whatever you call it, but it works!
<4> well, I can't even find it on my system here at work
<4> so I guess it's good I never learned to depend on it
<0> vawjrwrk : getopt()?
<4> PM2 oh, and it's C (not even ANSI standard C) so you should point that out to your prof



<4> PM2 correct
<0> PM2 : I will! Trust me, I will!
<5> getopt kinda ****s
<3> no one
<3> no one's bothered to write a replacement
<0> You don't need a replacement ...
<0> It's easy to handle the params with argc and char** argv
<0> It's a list a params with the amount of params ... how much simpler could it be?!
<5> boost.org has one, see http://boost.org/doc/html/program_options.html
<5> PM2: hahaha
<2> PM2 'primitive' isn't the same as 'simple'
<0> lol
<5> did you know that a version of mail used to refuse to send mail to dharry@foo.com, but would send mail to zathura@foo.com?
<2> argc / argv is very atomic, but that means you need to do more yourself
<0> rdragon : depends on how primitive you are ;)
<5> where@baz would fail; hacker@foo would work; gheorge@bar would fail
<5> guess why
<3> bad parsing?
<0> lol
<5> Tamahome: why would some work and some fail?
<5> most worked, actually
<5> and yes, this is one of those annoying "bugs from computing history" lessons
<4> Tamahome actually someone has written a replacement www.boost.org program_options
<3> yes I saw the post earlier
<5> vawjrwrk: he listens to me, unlike the rest of you
<3> heheheheh
<4> jottinger yeah, I'm trying to chase down some old code to put a feature back into the product
<0> jottinger : what did you say? :oP
<5> PM2: hahaha
<5> so no-one remembers the mail bug?
<5> Yeesh
<5> vawjrwrk: this would have been in your time :)
<3> I'll have to try that boost thinger next time I write something for cmd line
<4> jottinger I don't, no.. I've never used *nix for very long
<5> pfffft
<5> some real programmer you are
<4> Tamahome yeah, I've got to look at it myself... I'm upgrading (for hopefully the last time) some tools we wrote for the Amiga
<0> jottinger : hey! :oP
<4> just switched to boost::filesystem
<3> Amiga? coo'
<5> anyway, the reason was pretty simple: the command line parsing checked (argv[i][0]=='-' || argv[i][1]=='h') for help
<3> jottinger: like I said, bad parsing
<0> vawjrwrk : Wanna see what my prof has us do?
<2> i think the || there should be &&
<4> PM2 lunchtime is in 40 minutes, how sick is it gonna make me?
<0> vawjrwrk : Depends on how strong your stomach is ... tho honestly, I think it's gonna make you laugh :)
<4> I could use some humo(u)r
<3> programmer humour is always bizarre though
<0> Enjoy :)
<4> that looks small enough to just copy/paste at noidea
<5> rdragon: inded
<0> http://www.noidea128.org/sourcefiles/15922
<0> Laugh ... :)
<0> Don't mind the comments, it's all in French
<4> you're in Montreal?
<0> Yes
<3> scary... I actually understand the comments
<4> char s[12] = "DESI IFT1169";
<4> I think that would look a lot better
<4> though I have no idea why yuou're mucking around w/ all the pointers
<4> or char arrays
<0> vawjrwrk : D'you want my prof's e-mail? lol
<4> I recommend the books at http://rudbek.com/books.html
<4> tell him the 1st book on that list is the "proper" order in which to teach C++
<0> It's not the first C++ course, it's the advanced one ... this is the first homework he's got us doing, and all that crap about the pointers is just a reminder
<4> reminder of what?
<0> How to use pointers
<4> that book starts with std::string and std::vector
<4> it doesn't get to pointers and arrays until chapter 10
<3> we used the Lafore text when I took it a year ago
<4> which Lafore text?
<3> Object-Oriented Programming in C++


Name:

Comments:

Please enter the result of the sum 63 + 46 (to avoid spam):






Return to #c++
or
Go to some related logs:

#linux
totem plugings
tatujes
#linuxhelp
castup linux
a bittersweet life downland
#chatzone
#MissKitten
#chatzone
#apache



Home  |  disclaimer  |  contact  |  submit quotes