Use the “resource:permission” naming convention for better code hinting.
Master.dev (Formerly Frontend Masters)
Auf X besuchen@MasterDotDev133.208 Follower
20.927 Aufrufe
Use the “resource:permission” naming convention for better code hinting.
From our Permission Systems that Scale course with @DevSimplified.
9 Kommentare
Kommentare aus dem Originalbeitrag auf X (Twitter)

@traviswatson
resource first, or permission first... why not both? 🙃
1 Like

@codenameJr
@hameedraha @Hadi_raha 😅 we were always ahead!!
1 Like

@FrontendMaestro
This pattern ages really well in larger codebases. Reads clean now, saves you from permission chaos later.
1 Like

@51Grimz
Good point and I totally agree.

@KIN0TH
Abstraction is a game changer

@ikraamdaanis
This is a really good tip

@Proclus
Agreed.

@AleksaMiti1
Definitely implementing this with my next RBA

@aaronmcadam
But why “resource:permission” over “resource_permission”?
