DEV Community

Farid Aditya
Farid Aditya

Posted on

what do you do when you feel lazy to write code ?

sometimes I feel lazy when writing code. when I'm lazy like this I usually watch SpongeBob movies or children, sometimes watching youtube or reading other people's posts.

just wondering, how do other people against this lazy feeling ?

Top comments (13)

Collapse
 
hussein_cheayto profile image
hussein cheayto

Begin with an easy task.

The night before, prepare a todo list.

Let's say you're working on a project XYZ, and you have so many tasks to do.

First, you should divide these tasks to the smallest possible. For example, you have to make a shop in your game. This is a big task and takes a lot of time to be done. The most important thing is that, after working hours and hours on "make a shop" task, you will end up checking your task list and see that you didn't accomplish anything. It is frustrating.

Instead, try to divide that task into:
-Prepare the shop background
-Add a shop icon
-Add a return icon (in the shop)
-prepare the powerups (design)
-implement the powerups in the shop
.......

Always, put the easiest task at the beginning. The secret? "JUST TO GET STARTED".

In my case, I feel lazy to begin to work, but once I begin, I can't get up from the share.

So to answer your question, I would read my task list, notice that I have an easy task to begin with, it motivates me and that's it.

Collapse
 
farid_aditya profile image
Farid Aditya

You're right, it's bad for my habit that I don't do to do lists, but it just goes according to flow. I always do something in a hurry, and consider writing to do lists instead of spending my time.
But maybe from now on I have to start learning to write tasks that must be done and work according to schedule.
Thank you buddy

Collapse
 
hussein_cheayto profile image
hussein cheayto

Glad I could help :)
I would recommend this book, "The Power of Focus" by Jack Canfield. Or you can check it's resume on youtube here and take notes. It's super efficient.

Best of luck

Collapse
 
leandroruel profile image
Leandro RR

i just drink coffee.

Collapse
 
hussein_cheayto profile image
hussein cheayto

No need. You only need motivation.
I have never drinked coffee nor energy drinks because I know how to keep myself motivated and energetic even when I've been awake for 24 hours

Collapse
 
farid_aditya profile image
Farid Aditya

but, coffee is my favorite drink. at least one day I drink 3 times, and one pack of cigarettes. smoking bad habits that I have to leave, maybe smoking is also my justification for rest and being lazy.

Thread Thread
 
hussein_cheayto profile image
hussein cheayto

I follow leaders' habits.
99% of my idols (Steve Jobs, Dan Lok, Bill Gates....) don't drink alcohol, coffee nor energy drink. Besides they don't smoke.

Thread Thread
 
leandroruel profile image
Leandro RR

bullshit, coffee is just to make your brain work

Thread Thread
 
hussein_cheayto profile image
hussein cheayto

That's a myth. Have you ever lived a day with billionaires??? If you didn't, then do it.

Collapse
 
farid_aditya profile image
Farid Aditya

agree, my favorite drink.
long black or americano ? if in my country there is something called Kopi Tubruk, the way is similar to making french press but without filtering.

good idea buddy

Collapse
 
niorad profile image
Antonio Radovcic

What's to overcome? Embrace the lazyness!

Collapse
 
farid_aditya profile image
Farid Aditya

maybe my question is wrong, maybe the question should be, how do other people fight this feeling of laziness? not overcome laziness.

embrace, but what is the right way to embrace laziness ?

Collapse
 
iamschulz profile image
Daniel Schulz

Embracing laziness or procrastinating once in a while is important. You can't be motivated or to code or even stay focused all the time. I find just bumming around on YouTube is the better alternative to writing bad code, because I just can't be bothered. After a while, I get bored and start working again.