Eliminate Duplicated Code
This is a good way to simplify code. The question is how does find it. Let’s say it’s some code to find the thread ID.
Well this is always the same API call on Windows or POSIX. So if you use a good text editor then you can find the duplicated code and consolidate it.
Â