If you want further help with your code, will request you to post the code snippet with which you have challenges writing the code.
Also, here is a video reference of general best practices on how to code based on a book Clean Code by Uncle Bob (any technology - not AEM specific guidleines): https://www.youtube.com/watch?v=7EmboKQH8lM
If you want further help with your code, will request you to post the code snippet with which you have challenges writing the code.
Also, here is a video reference of general best practices on how to code based on a book Clean Code by Uncle Bob (any technology - not AEM specific guidleines): https://www.youtube.com/watch?v=7EmboKQH8lM