DEV Community

Discussion on: TIPS & TRICKS OF JAVASCRIPT & REACT

Collapse
lukeshiru profile image
Comment marked as low quality/non-constructive by the community. View Code of Conduct
LUKESHIRU • Edited

This list of tips is actually harmful. I wrote a detailed comment and the author hid it instead of addressing it, so he's aware of the issues with the list of tips and prefers to hide my comment (and probably others) highlighting the issues with it.

Edit: Due to the fact that it seems he reported this comment as well, and dev.to favor him instead of me by marking it as "low quality comment" when this is actually a "low quality post" which is clearly not allowed in the content policy, I'll proceed to block the author so I no longer see his posts, but other readers please be aware of this kind of lists of tips and do your own research, because writing less is not always better.

Collapse
samueljklee profile image
Samuel Lee

I read your detailed comments and completely agree with the points mentioned.
I think the author should be open to the community's feedback. It's not even offensive but rather can help the author and the community to learn.

Collapse
olvnikon profile image
Vladimir

Totally agree with you. Had the same feelings when was reading those "tips". The comment is constructive and not offensive at all. I'm supporting you on the concern.

Collapse
val_baca profile image
Valentin Baca

I agree with your detailed comment. There are more readable built-in functions for many of these tricks. Some of these tricks don't handle all the cases well (like using || for default breaks if zero is given and should be considered a valid input).

These are more "cute" tricks or "hacks" than ones you should be pulling into your production code.

Some comments have been hidden by the post's author - find out more