Brock's Bytes

By Brock Herion

What's Next for Next? - The Weekly Retrospective Issue #8

#8・
20

issues

Subscribe to our newsletter

By subscribing, you agree with Revue’s Terms of Service and Privacy Policy and understand that Brock's Bytes will receive your email address.

Brock Herion
Brock Herion
Welcome to issue #8 of The Weekly Retrospective! I can’t believe we’re on number eight already. I want to thank each and every one of you for being a reader and for your support. It’s been a fantastic journey so far and I can’t wait to continue it with all of you.
In issue #7, we dove into some of the amazing tools and technologies that I’ve implemented into my stack. We discussed my experience with it and, overall, it’s been an incredibly positive experience so far.
This issue, we’ll be discussing some slight changes there with the release of Next.JS 12. They’ve added some incredible new features that have made the development experience even better!

The week of 10/24/2021 - 20/30/2021 📅
It’s almost Halloween! Halloween is my favorite holiday. I think it’s a combination of the weather, the tree leaves changing colors, the spooky and awesome decorations that go up, and of course, pumpkin spice lattes at Starbucks 🎃
Our plans for the weekend are to spend time with family and take my cousins out for trick-or-treating. We’re all going as a different Avenger. I was lucky enough to be Spiderman and my fiancé Sam will be going out as Gamora.
Halloween aside, there’s a couple of tech things to discuss. First, Next Conf was this week and it was a showstopper. Vercel is adding some amazing new features to make development a lot easier. I updated all of my Next projects to it and have some thoughts that I can’t wait to share. I also played around with the Hashnode GraphQL API, and I have a few thoughts on that as well.
All this fun while I this week not feeling well!
I have been sick this week 🤒
Sunday night I didn’t sleep well and ended up feeling awful on Monday. I think I’m fighting off a sinus infection, as I’m quite prone to those. I’ve had a variety of sinus surgeries for a number of sinus issues, so I’m very used to it.
I took Monday off work and spent the day just relaxing, drinking tea, and playing Minecraft. I basically hung out and relaxed, and by Tuesday I had started to feel better. I’m still not 100%, but definitely doing better than I was.
I’ve been playing with Next 12 🖥
I don’t think I’ve ever updated a framework as quickly or seamlessly as I have with Next 12. I bumped up my version to the latest in my package.json and I was immediately rolling. None of my other packages or dependencies broke, which is always a huge plus.
The first thing I noticed was just how fast the new Rust compiler is. Vercel says that it provides about 3x faster page refreshes and about 5x faster build times. I gotta say, I believe it. In the couple projects I updated, every single one of them built and loaded faster. I don’t have exact benchmarks, but the difference in speed was immediate. Within a handful of seconds from running yarn dev, I was deep into my code and working on the project.
I really do love the new compiler. The faster my apps build and load, the faster I can start working on them. The faster that I can work on them, the faster that I can get them done. Sure, it saves a couple of seconds, but those seconds add up. At the end of the day, it lets you get things done faster.
My next steps into Next 12 are going to be playing with the new middleware functionality. I’m excited to use that to handle my authentication and authorization as opposed to page wrappers. I’m also incredibly excited to try out server-side components.
You can read more about Next 12 here
Blog - Next.js 12 | Next.js
I added Hashnode’s API to my website 📝
I’m getting very close to getting my personal website wrapped up. This has been a work-in-progress for some time and I’m ready to move onto other side projects. Initially, I was going to host my blog on the site as well but ended up using Hashnode. I created a subdomain and got it all set up within Hashnode. My main site now is essentially about me and what it is I do.
I still wanted to show off and link to some articles from my homepage. Hashnode does have a GraphQL API that makes it incredibly easy to pull your blog posts from. As far as I know, it is still in beta so more changes are most likely on the way. That said, it was pretty seamless getting Apollo Client setup in Next.JS and I was soon after fetching a blog post!
But, that’s just it, I fetched a single blog post. As of now, their API does not provide a way for you to get multiple posts. What I wanted to do was have a showcase of about three articles. In its current form, I would have to fetch three individual posts. That’s not terribly ideal.
What is interesting is that you are able to pull your whole feed and show posts that way. Granted, they aren’t all your posts, but there is functionality to fetch a list of them. You are given a key to use the API as well. It would be great if there was a way to fetch posts based on user, but as of now, that doesn’t seem to be the case.
For the time being, I’ll settle on showing only one post and making that look all nice. I’m also planning on doing a write-up on how you can get started with their API and other possible uses for it. As I said, there’s some functionality missing that I wish was there, but I am still pleased with it. I was delighted to see that I could pull reactions off a post and show them. It just needs a bit more work and I think it’ll be a fantastic addition to an already stellar platform!
You can read more about Hashnodes API here
Introducing Hashnode GraphQL API - Public Beta
Conclusion
As always, thank you so much for reading! I hope you found some value and learned something new.
If you enjoyed this issue, let me know. I always love getting feedback. Be sure to share this newsletter as well! You are a fantastic community and I would love to include more people in it.
Now let’s go have a great week!
Did you enjoy this issue? Yes No
Brock Herion
Brock Herion @brockherion

Every Sunday, I share an exclusive email with 8 awesome things I found during the week. You'll get to see what I'm learning, building, using, reading, and so much more!

In order to unsubscribe, click here.
If you were forwarded this newsletter and you like it, you can subscribe here.
Created with Revue by Twitter.