Slashdot Mirror


User: Henry+V+.009

Henry+V+.009's activity in the archive.

Stories
0
Comments
1,926
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 1,926

  1. Re:Interesting article, but... on Not Just Playing House · · Score: 1
    Something you want to get off your chest?
    Or get *on* my chest, maybe? Heh, no. I research everything more than normal people. I happen to be disgustingly normal in my sexual inclinations. I'm sure that everyone else has much more fun.
  2. Re:Good C++ programmers don't program C in C++ on Java Urban Performance Legends · · Score: 1

    I've got good news for you then, the boost smart pointer types are already in the standard committee's TR1.

  3. Re:Interesting article, but... on Not Just Playing House · · Score: 1

    It makes me think, though. Are female gamers like female golfers, highly lesbian? Normal women just don't act like this too often.(Compare Sailer's chart in Why Lesbians aren't Gay [Men].)

    To add more worthless anecdotally supported stereotypes, I have to mention that maybe 1/3rd of the time that I come across a female CS wonk on the web or on Slashdot, that person is actually transgender. (Read through the journal here for my latest find.) I read an interesting book by Bailey a while back, in which he postulates two main categories of transgendered male-to-female individuals. The first tend to be very effeminate gay males who get the surgery done early and are much more successful with it than the second group. The second group tend to get the surgery done later, are often heterosexual and married beforehand, often have stereotypically male careers (like CS), are very bad at "walking like a woman," etc., and are lesbians or asexual afterward. There is also one unifying factor present in 100% of this second group: they like to wear female clothing and masturbate. Bailey calls them autogynephiles.

    I wouldn't mention it, but they pop up again and again in news stories covering female CS advocacy (Lynn Conway is a notorious offender), or in lists of famous CS women. Maybe there is no connection to gaming, but then again...

  4. Re:Java, It's not fat its big boned. on Java Urban Performance Legends · · Score: 1

    Two words: Memory pools.

  5. Re:good programmers on Java Urban Performance Legends · · Score: 1
    I admit that I dislike ever having to think about bits. That's the correct solution for this problem, but not the one I thought of first. Here is my "mathematician's solution." The only advantage that I can see is that I can reuse my radix conversion code with a couple of changes for arbitrary bases. Only really useful if it just so happens that you are putting together a C++ library to compete with GMP. (Well, be as good as, if not compete—but then again, expression templates and other tricks may beat pure C.)
    #include <deque>
    #include <string>
    #include "boost/foreach.hpp" //This is going to be in boost 1.34

    using namespace std;
    using namespace boost;

    int main(void){
    int num = 1234567;

    //RADIX CONVERSION HERE
    typedef deque<int> hex_cont;
    hex_cont hex_in_cont;
    while (num!=0){
    hex_in_cont.push_front(num%16);
    num = num/16;
    }
    if (hex_in_cont.empty()) hex_in_cont.push_front(0);
    //END RADIX CONVERSION

    //MOVE FROM CONTAINER TO STRING
    string hex_as_str;
    BOOST_FOREACH(int i, hex_in_cont){
    char hexit_char;
    if (i<10){
    hexit_char = i + 48;
    }else{
    hexit_char = i + 55;
    }
    hex_as_str += hexit_char;
    }
    hex_as_str += "x16";
    //END MOVE FROM CONTAINER TO STRING

    return 0;
    }
  6. Re:good programmers on Java Urban Performance Legends · · Score: 1
    Ever considered a career in programming?
    To be honest, I always had. But I seem to have blundered into a career in System Administration, where I have got some experience. I just got a job offer as Unix Admin for a fair-sized campus network, and I'll probably take it. It's really fun work, and the pay is good. But like I said, programming is a hobby for me, and I've got a couple garage projects going that I'm sure I'll release eventually.
  7. Re:The problem with Java on Java Urban Performance Legends · · Score: 2, Insightful

    Destructors throwing exceptions? In C++ one should never allow an exception to leave a destructor. (See Item 11 of "More Effective C++" by Scott Meyers for a good discussion of this.) If there is no way to avoid doing something in a destructor that can throw, you should use a catch statement to take care of things.

  8. Re:good programmers on Java Urban Performance Legends · · Score: 2, Informative
    Okay, you have intrigued me. Here is my solution. No extra memory needed for a temp variable due to a dirty trick. But I strongly advise you not hire anybody who does this. There will be tears.
    #include <cstring>
    int main(void){
    using std::strlen;
    char c[] = "Please reverse me";
    int length = std::strlen(c);
    for (int i=0;i < length/2; ++i){
    c[length] = c[i];
    c[i] = c[length - 1 - i];
    c[length - 1 - i] = c[length];
    }
    c[length] = '\0';
    }
    Also, I'm afraid that I'd never get the interview. No coding experience and have never taken a class in it. Fun hobby though.
  9. The problem with Java on Java Urban Performance Legends · · Score: 2, Insightful

    Garbage collection is nice. It does its job and it does that job well.

    But garbage collection only helps you manage one sort of resource. In C++, the RAII techniques that help you manage memory are good for every resource, from file handlers to database connections. Resource management in Java is not so nice. Often it is quite a hassle.

    Also, if you really want the benefit of garbage collection in C++, simply compile your program using something like the Boehm Garbage Collector.

  10. Re:good programmers on Java Urban Performance Legends · · Score: 2, Insightful
    #include <string>
    #include <algorithm>
    using namespace std;
    int main(void){
    string s("Please reverse me");
    reverse(s.begin(),s.end());
    }
    What do I win? (Better be a job.)
  11. Re:Good C++ programmers don't program C in C++ on Java Urban Performance Legends · · Score: 1

    In C++, the proper coding style is RAII. If you really need to use a pointer somewhere, you use a smart pointer from boost or standard auto_ptr. And as if anybody needed more reasons to code this way, the possibility of exceptions tends to make anything else incorrect.

  12. Good C++ programmers don't program C in C++ on Java Urban Performance Legends · · Score: 2, Informative
    A *good* C+ programmer will remember to deallocate all of his objects to prevent memory leaks. A *good* C++ programmer will copy his strings correctly to prevent buffer overflow exploits.
    No he won't. Because if he has to think about either of those things, he is programming C in a C++ environment. And is therefore not a *good* C++ programmer. His code is probably not even exception safe. He'd be kicked off any decent C++ programming team rather quickly. That aside, I'm reminded of a joke that does go somewhat against my point, but is still funny:

    Bjarne Stroustrup : why so many people use "C++" just as "C" ?
    Dennis Ritchie : because you named the language "C++", not "++C"
  13. Re:PlanetEs on Manga Explains NASA Mission · · Score: 1

    I have been telling people that PlanetES is the best hard science fiction of the past decade. It doesn't understand the developing world, but other than that, it's great.

    I also share your opinion on Enterprise. I was excited when I first heard the concept. But it just turned out to be another silly and generic Star Trek.

  14. Re:Nice. on Firefox 1.5 Beta 2 Released · · Score: 1
    breaking the extentsions with a new release is the only way
    HENRY: You sent for me, sir?

    BILL GATES: Yes, Henry. A man down on earth needs our help.

    HENRY: Splendid! Is he sick?

    BILL GATES: No, worse. He's discouraged. At exactly ten-forty-five PM tonight, Earth time, that man will be thinking seriously of throwing away Microsoft's greatest gift.

    HENRY: Oh, dear, dear! Backward compatibility! Then I've only got an hour to dress. What are they wearing now?

    BILL GATES: You will spend that hour getting acquainted with George "Val314" Bailey.

    HENRY: Sir . . . If I should accomplish this mission—I mean—might I perhaps win my wings? I've been waiting for over two hundred years now, sir—and people are beginning to talk.

    BILL GATES: What's that book you've got there?

    HENRY: The MCSE Study Prep guide.

    BILL GATES: Henry, you do a good job with Val314, and you'll get your wings.

    HENRY: Oh, thank you, sir. Thank you.
  15. Re:They are giving away DVD's of Rome on HBO Attacking BitTorrent · · Score: 2, Funny

    "If you don't have money to purchase something, do without."

    'Why?', asks the situational ethicist.

  16. Re:My Infringement Notice on HBO Attacking BitTorrent · · Score: 2, Interesting

    But he was putting forward a legal theory. An incorrect legal theory. I don't see how the fact that his incorrect legal theory was based on analogy helps him here.

  17. Me and Rome on HBO Attacking BitTorrent · · Score: 1

    I just downloaded Rome off of Bittorrent, promoted the series on my blog because it was good, and was about to sign up HBO for my new place because of it. Take that as you will; it's just a datapoint.

    And to be honest, if I were HBO, I'd be doing something 10 times as nasty to people (like myself) stealing from me (HBO).

    Anyway, go see Rome, it's really good.

  18. Re:well respected author in my book on Orson Scott Card Reviews Everything · · Score: 2, Informative

    The short story was fun. He should never have tried to expand it though.

    For good Card-bashing, I'll point you to: Orson Scott Card Has Always Been an Asshat. It's a great read.

  19. Re:I disagree. on Shuttleworth on Ubuntu's Direction and Intent · · Score: 1

    Export your EFS keys to a CD. Without them, it is hopefully impossible to recover that encrypted file from just the hard-drive. That's actually the whole point.

  20. Re:I disagree. on Shuttleworth on Ubuntu's Direction and Intent · · Score: 4, Interesting

    Remote Desktop is very nice in all sorts of situations. It is far more forgiving on slow connections than X over ssh. The other thing I find myself using is XP Pro's built-in file encryption.

  21. I disagree. on Shuttleworth on Ubuntu's Direction and Intent · · Score: 4, Insightful

    Windows has taught the world that "Home Edition" is synonymous with "Crippled Edition."

  22. Nearly wins the [anti-]gold on Windows XP SP2 and WEP Encryption? · · Score: 1

    Not quite the worst Slashdot story ever, but this is right up there with Zonk's "performing cunnilingus on a hardwood floor."

  23. Re:Heap Protection vs. Managed Code on Heap Protection Mechanism · · Score: 1
    Well, its not a "error" just bad practice.
    And building a bridge from sub-standard materials is just "bad practice" too, I guess?
  24. Re:Not the same thing on Heap Protection Mechanism · · Score: 1

    Windows hardware-DEP isn't quite the same as its software-DEP (the NX-bit stuff). It also does SafeSEH checks.

  25. Re:Heap Protection vs. Managed Code on Heap Protection Mechanism · · Score: 1
    If you are writing in C++, you should
    1. Not be using free in the first place. It's an error to code C++ as if it were C—use new and delete
    2. Not be doing explicit memory management. Use RAII (Resource Acquisition Is Initialization) practices. Not using RAII in C++ is an error. (Beyond resource handling nightmares, you aren't being exception safe without RAII.)