You are not just some code-monkey, you are a problem-solver whose influence significantly impacts (for better or worse) the quality of your organization …
String has four state members: offset, count (number of characters to be used), char, hashcode.
substring() is designed to perform in O(1) by reusing the original char. This can lead to memory leak if the original String is big and the substring() is used to create a small String. A work around is to pass the result of substring() to a new String(substring) constructor.
Starting Java 7 (1.7.0_06) Oracle got rid of offset & count fields, to fix the memory leak. This leads to substring performing in O(n).
SMART(ER): Typical Goal Setting (Specific, Measurable, Attainable, Relevant, Timely & Evaluate/ ReEvalutate)
TimeBoxing: SMART goal with Alternative when failed ( Less Stresful, Recovery from failure is easy, Explicitly Time Bound)
What is the difference between operator and function?
* Operator acts on same types and returns the same type. Function can act on different types and give a new type.
What is the difference between tuples & list?
* Tuple is an immutable sequence of heterogenous items that are dealt as a coherent unit. List is mutable (to add/remove) sequnce of (most likey similar) items.
Become smarter from failures
Have a system not a goal
What happens when you hit bottom? I can tell you one thing: You don’t bounce back. You crawl back, fighting every step of the way. It isn’t a straight arc back up either; there are dozens of setbacks every step of the way. And the place you land isn’t anywhere near where you were when you slipped of the cliff.