Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Lennerd5587yWhat bothers me the most about this code is that a single account is an array and not an object. Why?
-
Correct me if I’m wrong but doesn’t the loop iterating accounts return false immediately at the first incorrect name?
-
@growling yep. The loop doesn't work. So the kid asked on stackoverflow. And of course, got downvoted immediately. I give him an answer before it's closed.
-
@RobertSmits idk. I just answered a stackoverflow question.
But we do have similar system. It's fairly common to have a user has multiple roles, each role has multiple rights -
@sunfishcc That’s good you helped him. A good encouragement instead of blasting downvotes. The kid’s gotta start somewhere!
-
@Root or mind controlled by C#.
I was making pizzas when I was 16. Some simple logic used to scare the shit out of me 🤦♂️
I think this might be too much to handle for a js newbie 😉
rant