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
-
For readability and robustness, I would use grabPhone = true and grabPhone = false or house.charger(phone, grabPhone) and let the charger manage your state variable from there.
No sense in a stream of toggles. -
Error: Cannot call function OpenApp of undefined.
Error: Cannot call function OpenApp of undefined. -
Rexzooly3538y@Mayhem93 The Open App would be another preset lib, so there wouldn't be any undefined error there, @starless, the app needs to know the state before we can all it and the charger was not in reach lol, There is better ways to do it but I only just woke up and I still messed it up with spelling mistakes :P
Related Rants
Once again I find myself grabbing for some kind of tech to see what's happening here.
undefined
devrant
addiction
wifeasleep
hello world
morning
tech