File naming conventions
Programing Lang files
Use your respective programing language code convetions.
Executable files and scripts
Executable files and scripts should NOT have any file extension. Use proper shebang.
So intead of naming a bash script as “myscript.sh” just name it “myscript”.
This article goes into details of why extensions are considered harmful in case of executables and scripts.