I had an epiphany: C++ doesn't actually suck

Yes, for a while I was a proponent of the 'C++ is for noobs, it lets you do stupid stuff, etc.' theory. This morning, I had a major facepalm moment.
While C++ is often used by total idiots, that in and of itself does not make it a poor language. It fills a rather important niche: a [more or less] high-level language that can still easily be compiled to machine code. As long as you've got a solid foundation in C, C++ is a good choice — then you know how it works behind the scenes. Not that I'd use it for anything absolutely requiring high speed, such as kernel code.
Okay, so maybe that was obvious to the more enlightened of you, but hey — give a former Apple fanboy a chance.

pauldonnelly wrote:
Peasantoid wrote:
pauldonnelly wrote:Sure, it does. It's an underpowered, overcomplicated mess filled with pointless trivia to be memorized and busy work. Its slogan should be: "C++: at least you're not writing in C." And it doesn't even do that well, since you nearly are writing C at times.
... enter the omnipresent negativity-spouting language bigot.
If you're going to make such claims, please provide examples so we can derive at least some informational value from your post.
Nah, this territory has been done to death. There's no need to rehash it at length here. I'm just providing some balance for this thread. It's not like we've seen any sterling arguments for C++ here either. Just a bit of "blame the programmer" and some "it's dangerous, so it must be powerful", tempered with some "C++ has moderately usable implementations of extremely common language features".
When you accidentally fill 400GB of space within 5 minutes of running your program, you learn not to worship C++, but rather treat it as a vengeful spirit. Respect it, but be very careful.

Similar Messages

  • Facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    facetime says connecting after you answer the call but doesn't actually connect and both iphone 5s were quick reset-ted and facetime was turnt on and off, any reasons like why or how and how to fix this concerning issue

    Apple has released a document which is reported to address the recent FaceTime issue.
    http://support.apple.com/kb/TS5419

  • I have iWeb '08 and just switched from Mobileme to GoDaddy and using Filezilla.  Now when I make changes through iWeb it doesn't actually publish to my desktop folder.  In fact, it doesn't publish at all but says that it did.

    I have iWeb '08 and just switched from Mobileme to GoDaddy and using Filezilla.  I also just upgraded to Lion.  Now when I make changes through iWeb it doesn't actually publish to my desktop folder.  In fact, it doesn't publish at all but says that it did.  How can I make changes in iWeb and publish to a folder?

    Choose the destination in the publish settings page as shown in the second example on this page...
    http://www.iwebformusicians.com/iWeb/Publish-Website.html

  • My iPod show that my battery is receiving energy and that it is "charging," but it doesn't actually charge. The battery never increases; it only decreases. Even when I have it physically plugged in and charging, it loses battery whenever I am using an APp

    My iPod shows that my battery is receiving energy and that it is "charging," but it doesn't actually charge. The battery never increases; it only decreases. Even when I have it physically plugged in and charging, it loses battery whenever I am using an APP or anything. I'm thinking that the chip that receives the energy is damaged or worn out. Is there anyway to fix it without going to the store? My USB chords is fine. It charges other iPods fine. Including a second generation iPod which means my 4th generation iPod should not have an physical battery problem. Any suggestions? Thank you so much!

    - See:      
    iPod touch: Hardware troubleshooting
    - Try another cable. Some 5G iPods were shipped with Lightning cable that were either initially defective or failed after short use.
    - Try another charging source
    - Inspect the dock connector on the iPod for bent or missing contacts, foreign material, corroded contacts, broken, missing or cracked plastic.
    - Make an appointment at the Genius Bar of an Apple store.
    Apple Retail Store - Genius Bar                          

  • I dropped my phone last night on the floor and now it doesn't seem to be charging.  it comes up the battery on the screen but doesn't actually seem to charge.  i kept it on charge over night but that didn't work either.

    i dropped my phone last night on the floor and now it doesn't seem to be charging.
    it comes up the battery on the screen but doesn't actually seem to charge.
    i kept it on charge over night but that didn't work either.
    can anyone help?

    You need to get your phone repaired.   It's obviously damaged, and nothing we can suggest to you will fix that.

  • When I try to download Adobe Reader, the Adobe Installer opens a black box. The installer doesn't actually work. Any ideas how to fix? Thanks!

    When I try to download Adobe Reader, the Adobe Installer opens a black box. The installer doesn't actually work. Any ideas how to fix? I am using Windows 8 installing the English version. Thanks!

    Try the installer from http://get.adobe.com/reader/enterprise/

  • Safari share via email doesn't actually send a email

    Since upgrading to iOS 6.0.1 (maybe even 6.0) I found out that the Share Link in Safari doesn't actually send the email with the link you are trying to share.  Can anyone else verify that their iOS 6.0.1 device does actually send the email with the link/web page they are trying to share?  I tested this with my own email address last night and realized nothing was actually being sent (or even waiting in the Outbox to be sent).
    If I shared the website via iMessage the iPhone does send the link via iMessage but not via if I try to share through email.

    This is a known bug, it should hopefully be fixed next week when they update the software used by this forum.

  • I go to ring someone and it doesn't actually ring?..

    sometimes on a rare occasion i will go to ring someone in my contacts list (they also have iphones) and i make the call but my phone doesn't seem like it is actually ringing them, is it because of my network provider, is it actually ringing but the ringing noise isn't playing or is it something else?
    Thanks

    Apple no longer includes iDVD on Macs running Lion.
    Apple believes that the entire world has access to fast broadband and wants to distribute home movies to friends and relatives via download (iCloud) rather than mailing them a DVD. The fact that in reality not all users do, has so far had no effect on this policy. If you scream and shout loudly enough down the phone Apple may send you a free copy of iDVD. That worked for some, but is now said to have been withdrawn by Apple. Also, you can complain bitterly here, perhaps suggesting that Apple could have provided a choice between using iCloud and burning DVDs:
    http://www.apple.com/feedback/
    Whilst Macs with a Superdrive continue to be able to burn video DVDs, the software for so doing, iDVD, is no longer included in the iLife bundle that comes with OS 10.7 Lion (which also omitted iWeb) or will come with OS 10.8 Mountain Lion. And it is no longer included in the iLife 11 from the online Apple Store: http://www.apple.com/ilife/. Your only solution is to look on Amazon or eBay and try to get an older version that includes iDVD.
    However, the vastly more expensive FCPX can burn a DVD without iDVD or DVD Studio Pro involvement, but lack the themes etc of iDVD. Also, of course, there is Roxio Toast.
    And if you think Microsoft are any better, their new Windows 8 operating system will not play DVDs, or burn them, unless customers buy an extra upgrade, the company has announced.
    In other words, computer manufacturers have declared optical media as dead, long before consumers are ready to stop using them, which is fine as long as they offered us a choice, but they won’t even do that.

  • Has anyone ever had a problem reported in Maps actually corrected?

    I have made numerous problem reports in the Apple Maps App (Street mislabeled, etc.). None have ever been corrected.
    Has anyone had better luck?

    yup Jim- I have been reporting an area that has been placed 2 miles south of its actual location (in a different region) repeatedly for a year and there is no change. I wouldn't usually care but all the photos I have taken at home are labelled incorrectly in moments too. They couldn't give 2 *****.

  • I got a crash report that said the Flash plug in had crashed, but when the incident actually happened, the report said that "Silverlight" had crashed; how do I know where the problem is?

    Sorry. The crash report actually said that Quick Time had crashed, not Flash, but at the time the crash actually happened, the message said that "Silverlight" had crashed. I just want to know how I can tell where the problem is so that I can try to fix it.

    That is a legitimate Mozilla newsletter. As it says in the email:
    You're receiving this email because you subscribed to receive email newsletters and information from Mozilla. If you do not wish to receive these newsletters, please click the Unsubscribe link below.
    Unsubscribe https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/
    Modify your preferences https://www.mozilla.org/en-US/newsletter/existing/ad9febcf-65ac-41fd-810b-798945f448f3/ "

  • CO Pulse Frequency doesn't actually generate 1 Pulse per Second?

    Hello all,
    I have a VI layed out in the attachment below.  I seem to have a lack of understanding on how to program this VI here.  I just don't understand what is possibly going wrong.
    The VI is very basic.  The frequency has been set to 1, and the units are Hertz.  To me, this means that the program should send one pulse to my linear actuator ONCE per second.  I have a simple pulse counter set up in the VI as well to count how many pulses are actually being sent (using the DAQ assistant).  Why is it that when I run the program, I get around 300 pulses per second?  Raising the value makes it goes slightly faster, but lowering the value doesn't really make it go any slower.  There seems to be no real correlation between the input frequency and the actual number of pulses that are sent.
    I just simply want a program that I can input "1 pulse per second" or however many pulses I want per second and have the card send ONE pulse per second (or however many is input).  Where do I start?  I have a whole program written out and ready to go, but this basic concept here completely eludes me. 
    Thanks,
    James
    Attached:  1) Picture of concept that I'm completely baffled about  2) VI of my program which said concept is being used in
    Solved!
    Go to Solution.
    Attachments:
    Voltage vs Distance SM v1.1.vi ‏475 KB
    COPulseFreq.jpg ‏75 KB

    In the simple image, you are running a loop as fast as possible (there's no timing mechanism).  Inside that loop, you configure the pulse task, start it, then immediately stop and clear it.  You need to create the channel and configure the timing outside the while loop, before it starts, and you need to clear the task outside the loop as well, after the while loop terminates.  Depending on what you want to do, you may be able to move the task start outside the loop as well, or just let the task auto-start.
    You'll need to restructure your VI a bit.  I can't tell if you want to clear the task after each step, or just change the frequency.  If it's just the frequency, you can use DAQmx Write to change it; if you need to start and stop the task, you'll need some logic to do that once each time you want to restart (you may get an error if you start a task that's already running).  There's no need for "Is Task Done?" since you're not using the output for anything.
    EDIT: Also, it is always a good idea to put a wait inside loops that execute indefinitely.  Otherwise they will spin as fast as possible, consuming all available processor time and preventing other code from running.  If you configure your counter task properly the loop timing won't affect the pulse rate (because that's done in hardware) but there's no need to run the loop that fast.

  • Labview Deployment succeeds, but doesn't actually do anything

    Hello everyone, I've got a few questions regarding Labview deployment issues. I was brought on to an already existing project and after a few weeks, successfully finished updating the existing code to how it was expected. From that point, the goal was to deploy that code onto a Windows XP computer (Does not have any Labview components installed on it) that was hooked up to our PLC via Ethernet cable. Unfortunately, this deployment is causing me headaches.
    As I understand it, once we are finished with a project, we then create an executable and installer file through the build specications option, which I have done. Then, we install the file onto the target computer along with any other dependicies it has. This all SEEMINGLY goes well, I get no error messages or anything of that nature. However, upon running the program, it simply doesn't work. Ideally, from this program, we can control and monitor all of the various valves, sensors and whatnot connected to the PLC, along with recieving notifications in certain instances. None of this is functional when running it from the target computer.
    One thing to note is that we are using various .NET components to email these notifications, but the PLC doesn't support any wire/nodes that use .NET. To make sure that alone wasn't the issue, I reverted back to older code without the notifications implemented and still nothing worked. This brings me to my questions:
    1) Is there something I'm missing that could be causing these issues in the deployment process?
    2) How can I use .NET features if the PLC doesn't support them? Or is that I will just have to find another way to do this?
    Thank you all for your help!

    nathand wrote:
    Do you know which Fieldpoint module you are using?  Some modules are actually self-contained computers which can run code; others are simply IO units (and the "smart" units can act as IO units without running any code).  You'll need to know how you're using the module.  Does a Fieldpoint module show up as a target in the project explorer?  If so, and you have code that runs on it, you can create a separate build specification for that application, then build and deploy it from the project explorer.
    You mentioned that you took over and updated an existing project.  Was the original project written in an older version of LabVIEW?  If so, the target PC might have an older version of the Fieldpoint tools, and if you do have a smart Fieldpoint unit, you may need to upgrade it as well (you can do this within measurement and automation explorer).
    Without having more knowledge of the details of your system, it's difficult to provide specific advice.  From your questions it sounds like you're not too familiar with the LabVIEW project environment and working with other targets.  It would help a lot if you could get an identical Fieldpoint setup on your desk to troubleshoot deployment and communication.
    I believe we are using a cFP-2220 fieldpoint module, which does indeed show up as a target. So, from your advice, I would a create separate build application for the fieldpoint module, using the same VI I have used for executable on the PC. After creating the build application, I must then build and deploy it from within the project explorer. If that's the case, that all makes sense to me and I believe there shouldn't be any further issue.
    As for the original project, no, it was all done within the same version of Labview. Regardless, I plan to update the Fieldpoint tools module as well, just to make sure everything's good.

  • HT201485 Help! I dont know the answer to My apple id's Security Qs, and my rescue address doesn't actually physically exist! Help?

    HELP! I forget the answers to my Security Questions and my rescue address doesn't physically actually exist!!
    NEED permanent solution as I cannot purchase ANY content on my device(s) (iPad, soon iPhone)
    Has been really bothering me for the past six months and some help would be appreciated!!
    Thank you!
    (there was no apple id community  )

    You need to ask Apple to reset your security questions. To do this, click here and pick a method; if that page doesn't list one for your country or you're unable to call, fill out and submit this form.
    (118649)

  • Ipad's mute button doesn't actually mute anything?

    i was watching a movie the other night when someone called me, i thought using the 'new' mute button would be quick and easy but it didn't actually mute the video, it kept playing. after i ended my call i tried to see if it would mute music but that didnt work either? i was wondering if anyone had a solution to this?

    It's not useless and serves a special function. It's actually called the "silent" switch and it only silences system sounds like notifications, key presses, etc. The point of the silent switch is to quiet the iPad for meetings, etc. without actually having to turn it on. It's for situations where you don't want, for example, a notification chime to disturb everyone. It's also useful for eliminating system sounds while you are listening to music or watching a movie.
    To quickly mute all sounds while, say, playing a movie just press and hold the volume down button. In about 1.5 seconds the sound volume will be reduced to zero.
    Message was edited by: JimHdk

  • Something I pre-ordered in iTunes doesn't actually show as purchased.

    The album downloaded the music already in full, but when I go to see it in iTunes, it still asks me to complete the album. Because of this, it won't let me sync with my iPhone. How can I change this?

    One remaining problem I have is on the 'date added' ... now that data appears lost.
    For all intents and purposes, I believe it is. The information stored in your iTunes Store Account Purchase History is not connected with your iTunes Library information.
    where is the info stored when you make changes to tracks/albums in 'Get Info' stored?
    Much of it is stored in the song file itself, such as the song name, artist, and album.
    First and foremost, the iTunes Library.itl file - which is what iTunes actually references - stores the location of the files on your computer (the Where part of the Get Info tab. Additionally playlists and related information - such as Ratings, Play Counts, Dates Last Played and Dates Added - are stored in it as well.
    iTunes doesn't directly use the iTunes Music Library.xml file although if the need arises it can use it to create an .itl file .
    But the .xml is not as complete as the .itl. For example, it does not contain Play Counts, Dates Last Played and Dates Added.
    Anyways back to what I think you were asking about, in the end you can use a Back-up copy of an iTunes Library.itl file to recreate a Library. And - to a more limited extent - you can use a back-up copy of an iTunes Music Library.xml to do so.

Maybe you are looking for

  • FIRMWARE ISSUES WITH CREATIVE ZEN V P

    What is going on?!?!! Just about every other thread i've read on here somebody has my same problem: ) My Zen V Plus was not recognized by my computer and it was always stuck on "rebuilding library" when i turned it on but when it got halfway through,

  • Connecting HP Laserjet P1102W to wireless network (then getting drivers!)

    Hi, My macbook pro and HP LASERJET P1102W seemed to be communicating just fine when I had snow leapard.  Post update to Mountain Lion, problems. I have gotten the printer to work when connected via USB, however not consistently.  (Often it cannot rec

  • Unable to open pixel blender

    Ok, i know this been asked a few times before in this forum but none have a imo definitve answer to this.I hope someone could help me.Sometime It's quite frustating that i was unable to launch pixel bender unless i disable the card drivers to use the

  • Majority of GPS data Doesn't copy from iPhoto to Aperture 3

    Having spent lots of time and effort geo tagging old photos Apertures ability to use this seemed very useful. Having left my iMac copying all my pics to a new Aperture Library for a day (17,000 images) not all of my geotagged pictures are still geota

  • Problem with setting up Airport Express to join an existing network

    I want to use an Airport Express to stream music from iTunes to my stereo. I've followed all of the instructions in Airport Utility (latest update) to the end, when the Airport Utility starts to update and loses sight of my airport Express. I get the