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.
@lewiskori shares an awesome achievement in What was your win this week?:
I started a new job!! As a backend developer. This is a huge win for me given that I am In my last year of college. Thanks in large part to my dev.to articles, the interview process was all smooth sailing.
Replying to Explain Open Source like I'm five, @xtrp offers a truly context-appropriate explanation:
You build a house with Legos, and you're really proud of it.
Your friend Johnny comes over for a playdate and he adds another level to the house, and a different color door.
The next day your friend Oscar comes over and he changes the walls of the building to make it look better.
Your friends Sophie and Alex come over to the day after that, and Sophie builds a new, nicer-looking building and connects it to yours. Alex fixes a few stray blocks in Sophie's new building.
A month passes, and so many of your friends have come over and changed the buildings and added buildings of their own. The original small building you were proud of has now become a city!
And that's all because you worked with your friends to build it.
— Gabriel
While the What did you have the hardest time learning? thread had plenty of purely technical challenges, @olistik offered an additional lesson that can be very hard to truly learn:
Work-life balance. ⏱
I feel like I still need to handle them properly.
After that, Rust's borrow checker. 🤓
As DEV's founder and a very prolific commenter, I typically shy away from highlighting @ben in these "top comment" threads. That said, he provided a wonderful bit of advice in response to Feeling excluded and sad for not getting positive feedback - How should I react?:
How would you react in my situation?
Probably the same way as you. I think most of us can relate to this situation.
On the other hand, I'm also more likely to fall in the shoes of the other person these days, e.g. a busy manager. Sometimes when folks seem like they are self-reliant and are self-starters we forget they still need positive feedback. But instead we spend all our motivational energy in the places that need them more. The squeaky wheel gets the grease as they say.
Why don't you send a message or email like this...
Hey MANAGER,
I just wanted to bring up something small. I feel like since my work is more under the hood I don't get as much feedback or recognition at times compared to more product-oriented work. I'm motivated by positive feedback to know when I'm on the right track with my duties, so just a bit more consistent feedback would go a long way. Thanks a lot, let me know if this all makes sense.
I'd say you can be gentle and downplay it a bit in this first point of contact. I don't think you need to place much blame. If they can't be perceptive to this kind of thing I think you can treat it like a red flag, but there's a good chance you get a warm response and a slightly better effort going forward.
Finally, @arielrodriguez chimed in to the Two string methods every JavaScript developer should know. thread to share some advice on the topic of manipulating objects:
So far is fine to play a bit with strings. But I'd like to share from my experience, always try to manipulate the objects with their respective API. In this case you are facing a formatted string RFC-3339, and you want to extract its = date-fullyear "-" date-month "-" date-mday
I highly recommend to avoid regex. You should implement Date API, you can achieve easily with 2 lines of code and solid code scalable. As many other answered to you, try to play with Date, as example:
const date = new Date("2019-08-02T00:00:00.000Z")
const fullDate = ${date.getFullYear()}-${date.getMonth()}-${date.getDay()}
Note: toLocaleString is experimental and not stable yet.
You may normalize getMonth and getDay to add 0 to the left when needed.
See you next week for more great comments ✌
Top comments (3)
Congrats to @lewiskori , @xtrp , @olistik , @ben , and @arielrodriguez for making the list this week!
I am very honored to be in this list.
Thank you.
congrats!!!!!