343

Optimising code

Comments
  • 15
    But what if I added sleep(45)???
  • 9
    @Ximidar You're gonna need to spend a month on that one and figure it out by yourself.
  • 20
    Dear brother, don't think any code is redundant, unless you have commented it stating it is redundant. Who know you break the whole app!
  • 25
    I actually have an idea if you’re making an app for some company.

    > release an app with Sleep(30) in it
    > with each update you subtract 5 seconds from sleep
    > company sees you’re working hard on the app to make it run faster
    > ???
    > profit!
  • 7
    @athlon so you will sleep(-5) sometime?

    Also, doesn't sleep use milliseconds?
  • 2
    @EaZyCode ohh yeah, you’re right. I got used to Unity’s WaitForSeconds();
  • 14
    I found one of those sleep(3) in an app I was taking on. Thought this is a waste of time for the user to just wait on a splash screen when the app is ready. Turns out when your remove it, the boss would start complaining. The user must see that beautiful logo for at least 3 seconds...
  • 0
    😂😂
Add Comment