IWETHEY v. 0.3.0 | TODO
1,095 registered users | 0 active users | 0 LpH | Statistics
Login | Create New User
IWETHEY Banner

Welcome to IWETHEY!

New Neither one of you is qualified to work in C++
"Chosen by someone who doesn't check to see if a "new" call returned a null in his production code..."

'new' doesn't return null when allocation fails. You can make it do that, but it really clutters your code. The default behavior should be to throw bad_alloc. If you think its even remotely possible that this might happen, you should probably call set_new_handler and set things up so the new handler can actually make some room somehow. You should always use smart pointers - no raw pointers. You should set things up so that allocations cluster within try blocks so as to mimick generational collection via stack based smart pointers.

Precious few people know how to do this. I'll lay money that your new guy doesn't. I know you don't. You're right - you. are. fucked.




[link|http://www.blackbagops.net|Black Bag Operations Log]

[link|http://www.objectiveclips.com|Artificial Intelligence]

[link|http://www.badpage.info/seaside/html|Scrutinizer]
New I agree
He has no try/catch blocks of any sort.

And I certainly am not qualified to code in C++. But this isn't a company that does software development, for the sake of making money running or selling the software. This is a company that sends junk mail and does fulfillment, and writes software to enable that business activity.

So we have an incredibly low bar at this point for this type of "skill".

Thanks for pointing out the proper way of error checking that.
     Neither one of you is qualified to work in C++ - (tuberculosis) - (1)
         I agree - (broomberg)

The story is true.
48 ms