DEV Community

loading...

Discussion on: 10 Tips to Write Clean Code

Collapse
siddharthshyniben profile image
Siddharth

number 6 is actually bad code, but it's a demo so okay...

Collapse
awedis profile image
awedis Author

yep, the idea is to see the difference, which one is cleaner and easy to read it :)

Collapse
siddharthshyniben profile image
Siddharth

I mean that you should have directly returned.

Thread Thread
awedis profile image
awedis Author

yes that can be done, I wanted to showcase more indentation

Collapse
lifelongthinker profile image
Sebastian

This is the second time that I see you criticize someone's article in a somewhat destructive way.

It's okay to criticize, but can you please do it in a way that is (a) respectful towards the author, (b) constructive towards the discussion.

Your comment here is neither.

This is a great community with really awesome people. Please let us all try to keep it that way. Thank you!

Collapse
siddharthshyniben profile image
Siddharth • Edited

Sorry about that. It's just the way I am and I am trying to change. Can you please tell me the first time?

This is my first interactions at a community and I want to get better at communication — The one thing I am bad at

Thread Thread
lifelongthinker profile image
Sebastian

Thanks for your understanding and consideration.