r/PythonLearning • • Jul 04 '26

Unpopular Python opinion: Readable code is more important than clever code

I've seen one-line solutions that are technically impressive but take longer to understand than 10 lines of simple code.

Would you rather write more lines that anyone can understand, or fewer lines that look clever?

42 Upvotes

34 comments sorted by

View all comments

2

u/FreeGazaToday Jul 04 '26

You must not have been coding long...as you can see by many of these comments.

However, sometimes less is more....as long as it's understandable.

1

u/ninhaomah Jul 04 '26

Sometimes ?

As a system / devop guy , I can assure you that less is more than more .. always.

Now how many here gets it ?

1

u/FreeGazaToday Jul 05 '26

not when it has be looked at by other developers.

ANd you wonder why even professional programs have so many errors/updates to fix bugs/errors.

If you really want less all the time, then do assembly programming!