This is a mirror of official site: http://jasper-net.blogspot.com/

6 Great Ways To Suck At C++

| Monday, June 14, 2010
Because who wants to be good anyway?

Without any ado whatsoever, here are 6 devastatingly effective ways to absolutely suck at C++:

1. Overrun your buffers

Buffer overruns are a delicious cornucopia of destructive possibility. They occur when you access past the bounds of an array – say, by writing into array[10] when array is only 10 elements long. The results of such an operation are what the C++ standard likes to call undefined behavior – which is a nice way of saying that your shit is probably going to explode, but you’ve got no idea when or why or where or how.

How amazing is that?

Buffer overruns really maximize your destruction-per-keystroke. They’re simple to code, and maddeningly subtle to fix. It could take coworkers days to find a cleverly misplaced ++loopVar that blows up your crafting system when green Ogres hit red Goblins at midnight.

Read more: Virtual Reality

Posted via email from .NET Info

0 comments: