DEV Community

loading...
Cover image for Top 5 DEV Comments from the Past Week
The DEV Team

Top 5 DEV Comments from the Past Week

Gracie Gregory (she/her)
Content Manager @ DEV. "You know what this sentence needs? An Em dash!" - Me to Me
・1 min read

This is a weekly roundup of awesome DEV comments that you may have missed. You are welcome and encouraged to boost posts and comments yourself using the #bestofdev tag.

Becoming a successful developer is a long, complicated process. Thanks for adding to the conversation, @valeriavg !

I'd like to add one more advice: when asked to estimate how long would development take, always add enough time for testing and refining the solution. From my experience this takes more time than coding itself, unless you're making a prototype.

No one's a fan of endless online courses, and neither is @keskyle17 ! Thanks for the tip, here!

Thanks. My one-liner advice:

Get a personal project like a website underway, and build on it.

This is a great post on websites to practice frontend skills - thanks @lostgirljourney for adding another to the list!

devChallenges.io

This one is also one of the best platform to practice.

A togglable dark mode theme is such a cool feature. Thanks to @ianwijma for helping make the idea a reality!

Hey, curious why you use jQuery for one piece of the code, where the rest of the code is just vanilla JS :D

$(window).on("load",loadDark());
Enter fullscreen mode Exit fullscreen mode
Enter fullscreen mode Exit fullscreen mode

Enter fullscreen mode Exit fullscreen mode

Could be replaced with:

window.addEventListener('load', () => loadDark());
Enter fullscreen mode Exit fullscreen mode
Enter fullscreen mode Exit fullscreen mode

Enter fullscreen mode Exit fullscreen mode
</div>
Enter fullscreen mode Exit fullscreen mode

JavaScript tip fans, this article is for you!! Thanks for the additional bit of insight here, @martinmuzatko !

min: Math.min(...numbers)
max: Math.max(...numbers)

See you next week for more great comments ✌

Discussion (3)

Collapse
graciegregory profile image
Gracie Gregory (she/her) Author • Edited
Collapse
lostgirljourney profile image
Falguni Sarkar

Always happy to help the community!!! 🥺❤

Collapse
ianwijma profile image
Ian Wijma

Awesome! I always love helping people to improve, so it was only natural. :D