If you're wondering what the title means, it stands for 'Read The F***ing Manual'. It's a pretty popular line in programming circles, and I've been realizing it more often. Latest episode being today when I discovered (unfortunately so late) that atoi() function in C actually accepts partially correct strings (strings containing alphabets and decimals) and produces a result without complaining. I assumed it to return some wrong value or throw some exception, but to my surprise, it didn't. I posted this in Stackoverflow here and got some good responses. And eventually I realized that it was mentioned clearly in the C manual about the behavior. Now why is it that way is something that I did not understand. But I did understand that you need to RTFM!
Now, this happened to me during some pastime activity, but imagine this happening in real production scenario. You end up doing some silly mistake in the code and end up spending a lot of time trying to figure out the problem, only to figure out later that you should have read the manual thoroughly. Most of the times and probably lot of our knowledge on a programming language/framework is obtained through observing others code or by consulting with others. We often don't have enough time to read that specification/ documentation thoroughly before we actually do something in it. And in a way this is good - all study and no practice will not gain you much. May be you'll remember it for a longer time once you actually burn your fingers. But do you really need to burn them? May be a simple look up in the reference should have saved your precious time!
So should you spend days reading the ISO C++ spec? No, just keep it handy and refer to it once in a while.
Happy coding!
Now, this happened to me during some pastime activity, but imagine this happening in real production scenario. You end up doing some silly mistake in the code and end up spending a lot of time trying to figure out the problem, only to figure out later that you should have read the manual thoroughly. Most of the times and probably lot of our knowledge on a programming language/framework is obtained through observing others code or by consulting with others. We often don't have enough time to read that specification/ documentation thoroughly before we actually do something in it. And in a way this is good - all study and no practice will not gain you much. May be you'll remember it for a longer time once you actually burn your fingers. But do you really need to burn them? May be a simple look up in the reference should have saved your precious time!
So should you spend days reading the ISO C++ spec? No, just keep it handy and refer to it once in a while.
Happy coding!