What are GL Codes & how to assign them effectively?

What are GL Codes & how to assign them effectively?