CodeNewbie Community 🌱

Cover image for When is it right to make code less efficient?
Best Codes
Best Codes

Posted on

When is it right to make code less efficient?

Hello fellow programmers!

Today, I made my first post that is solely a discussion. In fact, you are reading it right now!

So, I pose this question to you: When is it right to make code less efficient?

(e.g.

repeat 4 times {
action
}
Enter fullscreen mode Exit fullscreen mode

v.s.

action
action
action
action
Enter fullscreen mode Exit fullscreen mode

)

Post your opinion in the comments below. Thanks for reading!

Top comments (1)

Collapse
 
jackjack447 profile image
jackjack

Sometimes, making code less efficient is okay if it makes the code easier to understand or faster to write. It's important to choose what matters mostβ€”clarity or speed. But in big projects, efficiency usually wins to keep everything running smoothly.