Is there any standard or technique for modules and process implementation?

I think there should be some standards for some modules and process. for example how should login process/module developed. or authentication and authorization in application controlled.
Modules APIs should be parametric and some other techniques that help to build robust, safe and secure apps?
Maybe i had to cull them best practices. I don’t know. but I will be appropriated if anyone knows and share .