You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
minor #20318 Adopt Snake Case Naming for Route Paths and Names (ahmedebn)
This PR was submitted for the 7.1 branch but it was squashed and merged into the 5.4 branch instead.
Discussion
----------
Adopt Snake Case Naming for Route Paths and Names
Hey everyone,
I’ve got a quick idea I’d love to share: let’s embrace snake_case for our routing in Symfony and make sure it’s included in the contribution docs.
**1. RFC Compliance**
First off, the [RFC 3986](https://www.rfc-editor.org/info/rfc3986) gives us the thumbs up for clear naming conventions. `snake_case` does just that—it's super readable and fits the bill perfectly.
**2. Practices of Other Languages**
Plus, many languages like Python and Ruby are already on the snake_case train. This makes it way easier for developers coming from other backgrounds.
**3. Industry Practices**
And hey, check this out: major players like Google, Facebook, and Twitter use snake_case in their APIs. If it’s good enough for them, it’s definitely worth considering!
Conclusion
By adopting `snake_case` for route names and paths and adding this to our contribution docs, we’ll boost the consistency and clarity of Symfony.
Commits
-------
5bb2654 Adopt Snake Case Naming for Route Paths and Names
0 commit comments