Skip to content

Naming conventions #22

@NouraldinS

Description

@NouraldinS

Its always hard to convince you with something that is better only because it looks better without adding any functionality or performance, but you should follow some naming convention when creating new files.

Usually all files in the controllers start with the type of the request (i.e. GET, POST, PUT, DELETE, ...etc). And all the files in the database queries start with the action performed by this query (i.e. SELECT, INSERT, DELETE ...etc).

As I said it doesn't add functionality, nor performance, but it adds a lot more readability to your code, as I'll know the main purpose of the file before I even open it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions