DEV Community

loading...

Discussion on: Should I listen to music while coding?

Collapse
lifelongthinker profile image
Sebastian

I guess everyone has different habits, some might perform better with music, others not so much.

I myself need silence, hence I'd never work in a crowded room, two people tops, no phone calls or phones ringing, no music.

Allow me to chime in here (pedantically, I admit):

Trying to solve every algorithmic problem in O(logn) is not only the trait of a good programmer...
Enter fullscreen mode Exit fullscreen mode

That statement is a bit misleading. I'd say a good programmer knows how to spend their time efficiently. It's not like solving performance problems with O(log n) doesn't usually come at a cost.

I'd argue in many cases our everyday code doesn't pose relevant performance issues, and thus doesn't need any optimization.

If optimization is required, most of the time we need to find a solution that is good enough, which in many cases is still far from O(log n).

After all, optimization is usually expensive.

Collapse
poudyal_rabin profile image
poudyal_rabin Author

Hi Sebastian thank you for your insightful comment. I agree with your idea that the O(logn) thing is misleading. I was originally trying to give an analogy that real-life performance can also be improved. :) :)

Collapse
lifelongthinker profile image
Sebastian

Thanks, and I fully agree!

As long as you add Bryan Adams to your playlist, we're okay 😝😅

Thread Thread
poudyal_rabin profile image
poudyal_rabin Author

haha sure will do Sebastian. I love his songs too

Forem Open with the Forem app