We all are writing too much code, sometimes it is bit complex to understand the conventions ( Variable / Class / Helper / Function ) naming.
Also there multiple dependencies which we apply to reduce less complex code, but we have to make sure those naming should be more understandable, so that other your colleagues can also easily understand the functionality of that dependencies by just pronouncing the names.
Few Tips that you can apply while writing code.
- Better naming conventions -naming conventions of any function / variable or class, it should be named in a way so that , other developer or code reader will get complete idea by just reading names.
- Create Blocks Not Code - since we all write too much code every day, so i generally do prefer writing code in blocks, so that it can be detached / attached very easily with function blocks.
- Less Dependent Code - yes we write code and that also use other blocks , but make sure, never use deeply connected blocks or if you are using that block. check all signature and context , that may cause you code complexity. ( Always apply while working with 3rd party libraries)
- Handle Code As Much As You Can - let's say code is done, what about if anything happened during Runtime/Compilation, try to handle exceptions and cover all possible scenarios with usable comments.
- Write Comments & Signatures - And MIP point i prefer , yes we all performing our task in our way. but what about the other developer who gonna use this code forward. since we write and complete the task within the given interval. Also we have to understand the usage
( So write more comment which defines what exactly your code does? so that other developer and learner will get easily understand everything about it.