DEV Community

Cover image for What was your win this week?
Gracie Gregory (she/her) for The DEV Team

Posted on

What was your win this week?

Hey there!

Looking back on this past week, what was something you were proud of accomplishing?

All wins count — big or small 🎉

Examples of 'wins' include:

  • Starting a new project
  • Fixing a tricky bug
  • Cleaning up your space... or whatever else might spark joy ❤️

Happy Friday! Hope you all have a great weekend 🎊

Relaxing brain

Top comments (37)

Collapse
 
nickytonline profile image
Nick Taylor
Collapse
 
ben profile image
Ben Halpern • Edited

I finished up the week by finding time to put together a PR I've been really looking forward to making for a while.

Collapse
 
grahamthedev profile image
GrahamTheDev

So no more layout shifts now? Super! ❤️

Collapse
 
ben profile image
Ben Halpern
Thread Thread
 
grahamthedev profile image
GrahamTheDev • Edited

Yeah I saw the posts and enjoyed those articles. ❤️

I have to ask why you don’t cache the values when the item is saved? Or is that how you do it and I misunderstood lol!

Either way always great to see people paying attention to web vitals! 💪

Thread Thread
 
ben profile image
Ben Halpern

If I understand correctly — why do we do this later and not right on save?

Basically we need to inspect the files for their meta data. We use FastImage because it's fast, but it is still a remote transaction and we'd rather not add extra latency in case the process hangs for any reason.

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Ah that makes sense so saving doesn’t get held up!

But then you cache the value afterwards so you only have to look up the meta data once (well twice from what I gather from the PR! 🤣) and then update the HTML with the width and height values?

Very smart!

Thread Thread
 
ben profile image
Ben Halpern

Yeah, we store HTML in the DB, so only ever re-compute on changes. (This approach could change slightly over time to give us more flexibility, but it works well for efficiency).

And yeah — FastImage seems to allow you to look up either size, type, or animated, but doesn't let you open up the image to look for everything at once. 🤷‍♂️

Thread Thread
 
grahamthedev profile image
GrahamTheDev

Thought I had replied, must have closed browser by mistake 🙄

Looks like you are right, Line 223 in fastimages

 @property = if @options[:animated_only]
      :animated
    elsif @options[:type_only]
      :type
    else
      :size
    end
Enter fullscreen mode Exit fullscreen mode

So it looks to be animated, type or size as you thought.

Pretty sure you could extend it and just call them both together but that is probably an over optimisation!

Great solution for CLS either way ! ❤

Thread Thread
 
ben profile image
Ben Halpern

I’d consider this an over optimization for the matter of this first PR, but once it’s merged, a dedicated task to optimize this makes sense.

Collapse
 
grahamthedev profile image
GrahamTheDev • Edited

I got a stream deck XL.

Basically it is a fancy macro key system, but I am already in love!

When I am in VSCode it shows certain macro keys, then if I alt tab to the browser it shows a different set of macros automatically.

Anyone big into productivity…get one, don’t let the fact it was built for streamers put you off, it is a great bit of kit!

Collapse
 
nickytonline profile image
Nick Taylor

I use it for streaming. Game changer.

Collapse
 
grahamthedev profile image
GrahamTheDev

Yeah it’s a “no brainer” for streaming with all the built in stuff, I am hoping it will be mega useful just day to day.

See what tricks I can do with it by the end of today!

When do you stream, what about and where, don’t think I have ever seen you talk about streaming in any posts etc?

Collapse
 
rammina profile image
Rammina

Got through the second week of my 100 Days of Code and Scrum challenge.

The week was pretty tough for me because of life getting in the way. I still managed to stay consistent and have no days skipped.

Collapse
 
jenningsf profile image
JenningsF

I completed my first Hacktoberfest and published my first article on DEV 👍

Collapse
 
miku86 profile image
miku86

Saying to my significant other that she's the best partner I could wish for.

Collapse
 
rammina profile image
Rammina

Same here, my wife was dealing with anxiety and depression and I gave her emotional support.

Collapse
 
miku86 profile image
miku86

Happy you did this!

Collapse
 
jeffreyfate profile image
Jeffrey Fate

Finding bugs in development before they made it to production

This is probably the biggest improvement of developer productivity

Collapse
 
rammina profile image
Rammina

Ya, dealing with production bugs is just a huge pain and when you think everything's going to be okay already. nice job catching that.

Collapse
 
mysticearth profile image
Ewout

Restoring my production databases after my hosting provider had a "power outage", destroying both the database servers as well as the backup servers...

I also migrated away from said hosting provider to DigitalOcean for my .net core API and Netlify for my SPA + website. Had a great blast experimenting with Gatsby as well.

What started as a horror-week, resulted in a highly productive, creative and fun week in the end! 🥳

Collapse
 
fetchworkglenn profile image
Glenn

I finally found the motivation to set a marketing budget for FetchWork

Collapse
 
bobbyiliev profile image
Bobby Iliev

I recorded a new video for my YT channel 🙌 And I am just a couple of subscribers away from reaching 1k 🥳

Collapse
 
grahamthedev profile image
GrahamTheDev

Was a great video!

Collapse
 
coderamrin profile image
Amrin

i built my portfolio this week :)

Collapse
 
siddharthshyniben profile image
Siddharth
  1. My framework is almost done! 🥳
  2. Got a startup idea (related to DEV)! 🤑
Collapse
 
developertharun profile image
Tharun Shiv

Got our home completely renovated, such a relief. Seems like the best investment.

Collapse
 
deciduously profile image
Ben Lovy • Edited

Cross-compiled complex Rust code to 8 different platforms with one command!

Pay no attention to the configs behind the curtain...

Collapse
 
aryanarayantiwari profile image
Arya Narayan Tiwari

My wins for the week were completing #30DaysOfGoogleCloud program and Hacktoberfest 2021 🎉🎉