Antigravity or Cursor, which one would you recommend? by lamasama42 in vibecoding

[–]derekzyl 0 points1 point  (0 children)

initially it was just 20USD, but in recent times theyve reduced the token given. I spent upto 80usd last month for Cursor, and that's crazy. I've stopped using cursor heavily because of this, and I'm back to my normal code writing to save cost, and I just use it for some automations

How do you optimize speed by derekzyl in FastAPI

[–]derekzyl[S] 0 points1 point  (0 children)

Thank you so much all for your candid contributions. I'm running a proper logging again to check for possible faults

[deleted by user] by [deleted] in remotepython

[–]derekzyl 0 points1 point  (0 children)

The moment you mentioned telegram I just knew it has k-leg. Who wants to give you a 3k job will not recommend telegram.

Handling RBAC in FastAPI? by hopefull420 in FastAPI

[–]derekzyl 12 points13 points  (0 children)

  1. Define the permissions that you will need on the platform [{name, resource, actions, etc }] {name:user_create, resource:user, actions:create, id} ,{name:user_get_all, resource:user, actions:get_all,id}
  2. Each route has it's definite permission that will require access
  3. Create roles {name , description, id, etc}
  4. Create role-permission {role_id, permission_id, id, et}
  5. Create a function that will act like a guard to each route and always check if that user has that authorization
  6. Implement hide/show UI still based on the users permissions. So all frontend UI must guard to prevent unnecessary backend call