Displaying posts filed under

Programming

Programming Tips, Tricks and Job Search

Mar
13
2008

General Interview Questions

Experience-based:
– Sponsored Links —

What do you expect out of this job?
Describe the best manager you ever had. What made him or her stand out? How did you interact with this manager? How did you react to feedback, instructions, and criticism he/she [...]

Mar
8
2008

C++ Software Design Tips Guidelines Checklist

C++ Software Design Tips Guidelines Checklist

– Sponsored Links —

* Open/close principle
* Prefer free to member functions
* Consider moving private members to the implementation file– pimpl idiom (handle/body, compilation firewall)
* Namespace names after content (not e.g. reverse domain names) and not too deep
“Early optimization is the root of all evil”
– optimize only if it makes [...]

Mar
7
2008

Effective C++ Tips

Shifting From C to C++.
– Prefer const and inline to #define.
– Prefer iostream to stdio.h.
– Prefer new and delete to malloc and free.
– Prefer C++­style comments.

Memory Management.
– Use the same form in corresponding uses of new and delete.
– Use delete on pointer members in destructors.
– Be prepared for out­of­memory conditions.
– Adhere to convention when writing [...]

Mar
7
2008

More Effective C++ Tips

Basics.
– Distinguish Between Pointers and References.
– Prefer C++­Style Casts.
– Never Treat Arrays Polymorphically.
– Avoid Gratuitous Default Constructors.
Operators.
– Be Wary of User ­Defined Conversion Functions.
– Distinguish Between Prefix and Postfix Forms of Increment and decrement operators.
– Never Overload &&, ||, or,.
– Understand the Different Meanings of New and Delete.
Exceptions.
– Use Destructors to Prevent Resource Leaks.
– Prevent [...]

Mar
7
2008

C++ Standard Template Library Tips

Effective STL – C++ Standard Template Library Tips

Containers.
– Choose your containers with care.
– Beware the illusion of container ­independent code.
– Make copying cheap and correct for objects in containers.
– Call empty instead of checking size against zero.
– Prefer range member functions to their single ­element counterparts.
– Be alert for C++’ s most vexing parse.
– When [...]

Mar
7
2008

C++ Design Tips and Tricks

C++ Design Tips and Tricks by Dr. Michael Whalen

C++ Design Tips Tip 1:
Learn Patterns
Someone has done what you are doing before:
For Example:

Extracting information from a complex graph of classes (visitor)
Creating a framework to notify observers when some data-of-interest changes (observer)

Design Patterns are a way of expressing these ideas that give you an abstract vocabulary for [...]