[23:00 , 03:12] = best time to code

12_12gherman-bloggers19

About 4 hours ago, i was saying that it’s probably a good idea not to work after 3 am. For no apparent reason, i continue to find myself working at this hour for the past few days. I’m currently running a task on the student.compute server of the university. 4 hours ago, it would have taken me about 5-6 hours to finnish it. Now, it takes only about 10-15 minutes. What’s changed? Hacks under the bonnet.

It is usually the case that things take a lot of time to get done because you’re running redundant, inefficient code. Take 10 minutes, put everything on a piece of paper using your favourite writing instrument and dive into that mess. Realise that you’re making useless calls to time consuming functions, keep an eye for catching as many repeating operations and best of all, refactor the code.

Also listening to Goran Bregovic and Pink Floyd, seems to help. I’ll let you with these tips and go get some sleep, but if i am to respect my earlier post about mornings, this is not going to be a very long sleep…

Oh, and not to forget, Python Pickle Serialisation Object is a life saver!

[Interested in the image? Read all about the "Late night bloggers" here.]

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.