Slashdot Mirror


User: Joce640k

Joce640k's activity in the archive.

Stories
0
Comments
11,688
First seen
Last seen
Profile
(view on slashdot.org)

Comments · 11,688

  1. Re:Finally! on GCC Moving To Use C++ Instead of C · · Score: 1

    IOW ... you haven't bothered to learn C++ so you're relying on anti-C++ dogma in your rants. In other contexts that would be called 'religion'.

    ]"The life so short, the language fucking impossible to learn."

    Impossible for YOU, maybe.

  2. Re:C++ is better for ANY kind of job. on GCC Moving To Use C++ Instead of C · · Score: 1

    Yes...but can you tell me when either of those files is closed?

  3. Re:Choices, choices on GCC Moving To Use C++ Instead of C · · Score: 1

    ]"I do not consider C++ to be much higher level language than C"

    I have to strongly disagree with you there. C and C++ have NOTHING in common apart from the basic syntax.

    There's no equivalent to RIAA in C, there's also no equivalent to stack unwinding or many of the other C++ constructs which are central to good C++ programming.

    I'm currently working on a 200,000 line program which has exactly 9 'delete' statements in it and they're all in definitions of containers and magic pointers. I haven't seen a memory leak for years. Garbage collection? Who needs it?

    Just thinking about using malloc/free/strcpy/strdup/etc. instead of std::string gives me the screaming heebie-jeebies. Same for std::vector vs. C arrays - aaargh!

  4. Re:Maybe they've grown up a bit on GCC Moving To Use C++ Instead of C · · Score: 1

    Using STL frees you from having to do manual memory management. I imagine compilers do a far bit of string manipulation and put things in dynamically-sized buffers, all of which are prone to leaks, overflows and all the other evils of C.

  5. Aircraft electronics on Rent an iPad For Inflight Entertainment · · Score: 5, Informative

    Aircraft electrics have been WiFi/phone safe for decades, if they weren't then every lightning bolt with 100 miles would be a threat.

    The reasons for not allowing those things aren't to do with safety.

  6. Re:Virtual functions as mentioned in the link... on GCC Moving To Use C++ Instead of C · · Score: 1

    I don't see what the problem with virtual functions is. He goes on and on about 'added overhead' but the overhead isn't added unless a programmer types the word 'virtual' somewhere in the source code. Presumably the programmer expects to get something in return for typing it... therefore the overhead is acceptable. QED.

    Templates - how will they do STL without templates??? Seems like a big fail to me.

    Exception handling ... probably not needed in a compiler. A compiler isn't likely to want to recover from a fatal error.

    RTTI ... probably not needed either and usually quite easy to work around for the few cases a compiler might want it.

  7. C++ is better for ANY kind of job. on GCC Moving To Use C++ Instead of C · · Score: 1

    (assuming you've got a decent C++ compiler...)

    Seriously, how can you live without RAII, etc.?

  8. Re:so now I can't grep for functions on GCC Moving To Use C++ Instead of C · · Score: 5, Funny

    Ummm... just right click the function name and select "Find all references" from the popup menu.

  9. Operator overloading is essential on GCC Moving To Use C++ Instead of C · · Score: 1

    Sure it can be abused, if you're overloading operator+ to insert records in a database you're doing it wrong.

    OTOH operator[], operator*, operator-> and even operator are fundamental to data processing - you can't remove them from C++ without doing a lot of harm.

    Anybody who advocates removal of operator overloading has completely missed the point - yes they can be evil but the good far outweighs the bad.

  10. Re:Choices, choices on GCC Moving To Use C++ Instead of C · · Score: 0, Troll

    The C++ bashers are an undereducated bunch of whiners. Telling a C++ programmer to go back to C is like telling a C programmer to go back to assembly language, not going to happen. Deciding how to allocate CPU registers to get the tightest loop might be fun for a while but it simply doesn't work when you've got to write a real program.

    Just like C compilers which allocate registers for you (and do a pretty good job!), a C++ compiler makes coding MUCH EASIER and MORE RELIABLE by doing all the micromanagement for you.

    Anybody who thinks "C++ is C with a few extra things" is very, very wrong.

  11. Re:Safe subset on GCC Moving To Use C++ Instead of C · · Score: 1

    Yes...one of the BIG wins in OO programming is that each class works like a mini namespace. It seems like a minor detail to the C++ bashers but in practice it removes a huge burden from the programmer - all function names can be short and logical.

  12. Re:Safe subset on GCC Moving To Use C++ Instead of C · · Score: 2, Interesting

    On the other hand ... having the compiler mangle the names for you instead of having to do it manually "MyClassAddFloatAndInt()" might be a win in the long term.

  13. Maybe they've grown up a bit on GCC Moving To Use C++ Instead of C · · Score: 2, Interesting

    Maybe they've admitted that 'pride' is holding them back and that being able to use STL (for example) is a greater good than being able to do an initial compile on some obscure microcontroller which has a barely functioning C compiler.

  14. Re:Seems odd... on GCC Moving To Use C++ Instead of C · · Score: 2, Insightful

    Thinking even harder ... they could compile GCC on another machine but set the output target as the platform they're trying to get it to run on. Then you just copy the binary across.

  15. Re:Seems odd... on GCC Moving To Use C++ Instead of C · · Score: 1

    ie. They could use any of the current compilers for the 'bootstrap'...

  16. Re:An apt reminder... on Acupuncture May Trigger a Natural Painkiller · · Score: 3, Informative

    Water divining has been debunked many, many times. In randomized tests nobody can do it.

    http://video.google.com/videoplay?docid=7461912885649996034#
    http://www.youtube.com/watch?v=xOsCnX-TKIY

    Fast: You can dig almost anywhere on Earth and find water, it's just a question of depth (keep on digging there until it appears).

  17. Re:An apt reminder... on Acupuncture May Trigger a Natural Painkiller · · Score: 5, Interesting

    Anybody who follows the scientific method knows at least one mechanism for acupuncture, ie. placebo, and I don't think many would shake their heads in abject disbelief if you say "irritating some part the body will produce natural pain killers". The skepticism will appear if you start saying "it matters where you stick the needles" and stuff like that.

    Real "pseudoscience" is stuff like astrology, water divining, channeling the dead, perpetual motion, expensive HiFi tweaks, etc.

  18. Re:Piracy clarification on Ofcom Unveils Anti-Piracy Policy For UK ISPs · · Score: 1

    They're much more likely to just look at the number/type of connections than start analyzing packets.

    Packet inspection will only happen after you've been spawning dozens of connections on various ports for a few minutes and none of the headers were HTTP.

  19. Acadamy awards mean nothing... on The Hurt Locker Producers Sue First 5,000 File-Sharers · · Score: 1

    When I saw the Oscar Winner I went and downloaded a copy because I'd already forgotten the name of that boring movie I saw a few months ago. When I figured out which one it was I was, like "oh, THAT ONE won the Oscar???!?? what kind of morons were on the committee this year?" and deleted the file without even watching it.

    Apparently the MPAA could have sued me for that.

    Welcome to the brave new world.

  20. Mod parents up on How To Get a Game-Obsessed Teenager Into Coding? · · Score: 1

    Sitting in front of a computer/console all day has ZERO correlation with being a programmer. Some people sit all day on facebook and MSN messenger, does that mean they'd be good coders? Nope.

    If he was cut out to be a programmer he'd more likely be taking the thing apart than playing games on it,

  21. Re:Piracy clarification on Ofcom Unveils Anti-Piracy Policy For UK ISPs · · Score: 4, Interesting

    This is just some ISP's PHB having a wet dream after being wined and dined by the RIAA. It's going to be impossible to put into practice. I've heard the boss of Spain's leading ISP ranting about this sort of thing and he's a barely coherent old codger who obviously doesn't have a clue about anything technical.

    As a protest we should create a screen saver which maxes out an Internet connection 24/7 transferring random data to random people. Get your friends to install it ... let's see if the ISPs who sign up to these schemes can provide the bandwidth they've sold.

  22. Just make sure.... on Ofcom Unveils Anti-Piracy Policy For UK ISPs · · Score: 3, Interesting

    Just make sure all your windows are closed when you play the radio in your car and you should be OK.

  23. Re: "analysis of the situation by proper writers" on UK Newspaper Websites To Become Nearly Invisible · · Score: 2, Insightful

    Murdoch? The same guy who bought one of the best newspapers in the world and turned it into a gossip-rag? He's going to employ proper writers to write for his audience? LOL!

  24. Re: by then it may be too late on UK Newspaper Websites To Become Nearly Invisible · · Score: 1

    Let's hope so!

  25. Re:Website changes robots.txt on UK Newspaper Websites To Become Nearly Invisible · · Score: 1

    He's had a robots.txt file for ages, quite why google wasn't in it we don't know....

    I think he just like to make a lot of noise and pretend he's important enough that even Google has to do what he says - when he says "remove my content", they jump!!

    The reality of editing robots.txt doesn't sound so impressive to Joe Public.