DEV Community πŸ‘©β€πŸ’»πŸ‘¨β€πŸ’»

Cover image for Top 5 DEV Comments from the Past Week
Peter Kim Frank for The DEV Team

Posted on

Top 5 DEV Comments from the Past Week

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.

@bcnzer shares their most commonly referenced search in What do you have to Google? Every. Single. Time.:

Regex. Every. Single. Time πŸ€¦β€β™‚οΈ

I have to use regex tools to help and it feels like I bumble my way through it each time.

@cristinaruth adds some extremely helpful feed back directly to the DEV Team in the Hello again. It's time to do some work! thread:

  1. Please show me first the articles per my followed authors and tags.
  2. Please allow me to β€œhide” an article from the home page if I don’t want to see it again.
  3. Please indicate a β€œread” indicator for an article on the home page. (somehow grayed out or somewhat?)
  4. The side bars are good on desktop but they’re very hidden on mobile and I realize that’s on purpose but the listings are not visible on mobile. Maybe scatter the listings on mobile throughout the feed like reddit does? I haven’t thought this through so there are likely holes in that idea.
  5. Maybe even start showing me articles on my β€œto read” list if nothing else to show me? They pile up and I actually forget about them but I do visit the home page a lot.

@ivannmg offers a hilarious and somewhat tragic anecdote in response to Tell me something funny about your first DEV job:

Someone came to visit offices, as CEO wasn't there I made the visit

Turned out he was an FBI agent investigating on the company :/

@ghostcat provides a great list in reply to What are your favorite portfolio sites for devs?:

Finally, @craigmc08 expands with an enlightening comment and some helpful visuals in Improve Your Algorithms with this Simple Equation:

I also like the more visual geometric proof of this formula. Say you want the sum of 1-4, you can make this shape:

*
**
***
****
Enter fullscreen mode Exit fullscreen mode

The area of this triangle is then equivalent to our original problem, the sum of the first 4 natural numbers. But, it's hard to find the area of this "triangle", but easy if you make a rectangle (#s are a second, rotated copy of the triangle)

*####
**###
***##
****#
Enter fullscreen mode Exit fullscreen mode

This is a 5x4 rectangle, so its area is 20. The rectangle is made of two of the triangles we want to know the area of, so the sum is 20/2 = 10.

If you generalize this to the first n natural numbers, you do indeed get the formula n (n + 1) / 2

See you next week for more great comments ✌

Top comments (1)

Collapse
 
peter profile image
Peter Kim Frank

Congrats to @bcnzer , @cristinaruth , @ivannmg , @ghostcat , and @craigmc08 for making the list this week!

We are hiring! Do you want to be our Senior Platform Engineer? Forem is hiring a Senior Platform Engineer

If you're interested in ops and site reliability and capable of dipping in to our Linux stack, we'd love your help shoring up our systems!