Tip Bank

DevX - Software Development Resource

Be Careful with operator ==

A common mistake in C++ programming is typing = instead of ==. This can be due either to a typo error or because you are used to other languages such

DevX - Software Development Resource

Setting Breakpoints Programmatically

It is often useful to make a breakpoint by calling the DebugBreak function. However, this is not necessarily always convenient because the breakpoint will occur in DebugBreak call stack. You

DevX - Software Development Resource

Use the Generic Accessors Class

Generally, from an OOP perspective, the direct access to data members should be prevented. This is why we use accessors: Class UserDetails{public: string getUserName() const; void setUserName(const string& name); string

DevX - Software Development Resource

LTrim(),RTrim(),Trim() Functions in JavaScript

JavaScript lacks the Trim() function. See below the code for trimming a string: function LTrim(ValueToTrim){ValueToTrim =ValueToTrim.toString()var WhiteSpace=new String(” “);var i=0;while(WhiteSpace.indexOf(ValueToTrim.charAt(i))>-1){ i++;}return ValueToTrim.substring(i);}function RTrim(ValueToTrim){ ValueToTrim =ValueToTrim.toString() var WhiteSpace=new String(” “); var