5 ms·
Thank you for being honest. This safe, "no worries" C++ was segfaulting. You've managed to make it correct today but it's still unsafe. Someday one of your co
by bugfix-66 4y ago
Thank you for being honest.
This safe, "no worries" C++ was segfaulting. You've managed to make it correct today but it's still unsafe.
Someday one of your coworkers is going to break it and this code will be trashing the heap. Mysterious memory corruption failures are your destiny.
That said, Happy Halloween!
- WoodenChair 4y agoYour comments come across as pretty mean-spirited. Let me rewrite one line for you. You wrote: > Someday one of your coworkers is going to break it and this code will be trashing the heap. Mysterious memory corruption failures are your destiny. You could have written something like, "It's possible this code will break in the future and you won't even realize the cause, because it will appear as a mysterious memory corruption failure." See how I left out a word like "destiny" and took out the whole bit about coworkers? Yeah, much nicer and less personalized.
- bugfix-66 4y agoAnd then I said "Happy Halloween". The point was that being a C++ programmer is like being part of a horror movie. I say that as a person who uses C++ in my day job. It's a nightmare.
- waynecochran 4y agoI have a love/hate relationship with C++ ... probably like most C++ programers.
- bugfix-66 4y agoI have no love for C++.
- MikeDelta 4y agoThe point of the post by my fellow HN person was to give you feedback on your communication style. You obviously have interesting things to say and opinion to share with a fair amount of passion, but the tone detracts from the message, which I find a pity.
- bugfix-66 4y agoWhy are people so delicate today? We're getting so soft and so fragile, how does it end? “Hard times create strong men, strong men create good times, good times create weak men, and weak men create hard times." (G. Michael Hopf)
- usefulcat 4y agoIt’s not about people being delicate, its about what you value more: saying whatever you feel like saying, or actually getting your point across. The more inflammatory your tone, the less likely it is that you’ll change anyone’s mind, because they’ll be more likely to dismiss outright whatever you’re saying.
- deleted 4y ago[deleted]
- eska 4y agoThis quote doesn’t exactly make you look like the badass you think you are.. and all over C++ array access. Does that sound like a topic that warrants escalation to confrontational language to you?
- waynecochran 4y agoThe most dangerous thing I do is index a `std::vector` for which I can add range checking -- which I only do when debugging -- I am not willing to pay for that at release time. I am not performing any address math that can not be statically or else dynamically checked. No explicit memory allocation anywhere -- C++ does all the memory management for me. This is not true of older code I have written.