Words of wisdom from a Peon of the Orc Horde (Warcraft III) for Interns

Examples of proper communication etiquette: things that are good to say to your colleagues during your internship:

Scenario 1: When you have free time or you delivered all your tasks:

Ready to work.

Something need doing?

Scenario 2: When a colleague wants to talk to you:

Yes?

Hmmm?

What do you want?

Scenario 3: Accepting a task:

I can do that.

Be happy to.

Work work.

Okey dokey.

I’ll try…

OK!

Why not?

Scenario 4: Rejecting a task:

Me busy. Leave me alone!

No time for play.

Me not that kind of orc!

Scenario 5: Rejecting a task:

Whaaat?

 

Copyright Notice:

Warcraft® III: Reign of Chaos®
©2002 Blizzard Entertainment, Inc. All rights reserved. Reign of Chaos, Warcraft and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.
Warcraft® III: The Frozen Throne®
©2003 Blizzard Entertainment, Inc. All rights reserved. The Frozen Throne, Warcraft and Blizzard Entertainment are trademarks or registered trademarks of Blizzard Entertainment, Inc. in the U.S. and/or other countries.

Blizzard Legal FAQ

Blizzard Video Policy


Converting a (void*) buffer to a std::vector

On a project we were recently working on, some legacy C code was producing a (void*) voidBuffer accompanied by its size.
The rest of the project was in C++ and we needed to convert the (void*) voidBuffer to a std::vector<unsigned char> vector.

To do so, we used the following code:


//First cast the (void *) voidBuffer to an (unsigned char *) to implicitly get the element size (1 Byte each)
const unsigned char *charBuffer = (unsigned char *) voidBuffer;
//Then we create the vector (named vectorBuffer) by copying the contents of charBuffer to the vector
std::vector<unsigned char> vectorBuffer(charBuffer, charBuffer + length);

[download id=”4084″]


Laziness is the mother of all bad habits,

but ultimately she is is a mother and we should respect her.