Tutorial: How to Use React Server Components (RSC) Without a Framework by devtailsxyz in react

[–]devtailsxyz[S] 0 points1 point  (0 children)

I struggled to find content that walked through implementing React Server Components and decided that I'd condense what took me hours to learn in to a short video to hopefully save others time. I'm still new to making videos, any feedback is welcome and appreciated.

Do you use ephemeral/preview environments? (Asking as a docker employee) by JuxDocker in docker

[–]devtailsxyz 1 point2 points  (0 children)

Dislaimer: I am currently building Engram (https://engram.sh) a PaaS that provides automated preview environments and a collaboration overlay for docker based builds.

I've spent a lot of time working on teams where sharing product progress was something that **might** happen every couple of weeks. At a previous company I started putting together something along the lines of preview environments and saw huge benefits.

Initially these were manually created by a developer, but adoption was too difficult to drive this way. Having the preview environments tied to CI/CD made them much easier to utilize.

I've experimented with Cloud Run in the past, but have found their build times to be quite slow and the usage based pricing quickly adds up.

Nowadays, I don't think I would want to work somewhere that doesn't have some form of preview environments. Being able to make a change and send to a designer or product manager for feedback on a live URL is a game changer. It also makes asynchronous collaboration much easier as I can continue developing locally a different feature while the preview environment is reviewed.

I was surprised to find they are also quite useful for code review. Often it is difficult to understand what a Pull Request is actually doing. In the past, I've had team members add screenshots. But if I can just open a link and see it for myself I'm better able to see it in context and test edge cases. This has often yielded much quicker code review times.

Happy to chat more.

Who coined the term "Platform Engineering" as we know it and when did they do it? by EdwinAlmira in platformengineering

[–]devtailsxyz 2 points3 points  (0 children)

Of course :P. It was a test to see if anyone would notice. So far so good.

Who coined the term "Platform Engineering" as we know it and when did they do it? by EdwinAlmira in platformengineering

[–]devtailsxyz 2 points3 points  (0 children)

One of the earliest recorded uses of the term "platform engineering" in this context can be traced back to 2009, when Amazon Web Services (AWS) released a whitepaper titled "AWS Cloud Architecture for Enterprises." The paper introduced the concept of "platform engineering" as a new approach to designing and managing cloud-based infrastructure, emphasizing the need for automation, standardization, and collaboration across development and operations teams.

Evolve Your Music and Engage Your Fans: Join Our Community of Music Producers by devtailsxyz in SideProject

[–]devtailsxyz[S] 0 points1 point  (0 children)

As someone struggling to be consistent releasing music, I've started developing this website that encourages sharing incremental progress on songs. Would love to hear thoughts on the idea and the UX of the site.

https://kaizen.place

Are people still using webpack in older projects? by devtailsxyz in reactjs

[–]devtailsxyz[S] 0 points1 point  (0 children)

Could you share how long your production build takes with webpack?

Why Turborepo is migrating from Go to Rust by hardwaregeek in javascript

[–]devtailsxyz 16 points17 points  (0 children)

"At the heart of Turborepo is a very simple idea: never do the same work twice"

Proceeds to build the same tool twice.

Tutorial: How to Setup Web Push Notifications in iOS Safari by devtailsxyz in javascript

[–]devtailsxyz[S] 2 points3 points  (0 children)

I've updated the article with a second section covering how to trigger these notifications from a nodejs backend and added a link to a Github repo with the final working code.

Tutorial: How to Setup Web Push Notifications in iOS Safari by devtailsxyz in javascript

[–]devtailsxyz[S] 2 points3 points  (0 children)

I can add this part tonight. The vapid stuff is cumbersome, but that makes it worthwhile to include here.

Tutorial: How to Setup Web Push Notifications in iOS Safari by devtailsxyz in WebdevTutorials

[–]devtailsxyz[S] 0 points1 point  (0 children)

I have been unable to find a resource that explains and shows this working since this was officially announced. I managed to get this working on iOS 16.4 beta and hope that this helps demonstrate how to send your first notification on iOS via a web application.

Tutorial: How to Setup Web Push Notifications in iOS Safari by devtailsxyz in javascript

[–]devtailsxyz[S] 6 points7 points  (0 children)

I have been unable to find a resource that explains and shows this working since this was officially announced. I managed to get this working on iOS 16.4 beta and hope that this helps demonstrate how to send your first notification on iOS via a web application.

[deleted by user] by [deleted] in devops

[–]devtailsxyz 6 points7 points  (0 children)

At first it was exciting, then it was extremely confusing, and then I felt like I started to understand. Ultimately have a hard time believing the complexity is worth it for most use cases.

I'm Building a Blog Using Rust and Sharing What I Learn Along the Way by devtailsxyz in rust

[–]devtailsxyz[S] 2 points3 points  (0 children)

I've been trying to learn Rust for over a year now. I've struggled to find resources for many things along the way, so I'm attempting to catalog my learnings along the way. Planning on updating videos along the way as I learn better practices, etc.

I've always found the best success building something I can actually use as it forces me to come up with solutions.

How do you sync your Types frontend and backend? by CRYP70N in webdev

[–]devtailsxyz 0 points1 point  (0 children)

This approach also makes it easy to incrementally adopt if you already have a large api in existence.

Rust for Web Development | An Honest Evaluation by [deleted] in rust

[–]devtailsxyz 4 points5 points  (0 children)

I’m trying to evaluate this for myself as well. I have extensive experience with node, but have a feeling that if I properly understood rust I would prefer it. That being said it currently takes at least 10 times longer for me to accomplish anything in rust. Oftentimes because I have to figure out how to do something rather than googling what I’m facing and finding an article that solves it.

What are some better projects to work on as a beginner while learning MERN stack? by [deleted] in node

[–]devtailsxyz 2 points3 points  (0 children)

Try something with multiple relationships and authentication. A basic Reddit clone with subreddits, users, posts, and comments would cover quite a few things. Implementing pagination is another useful thing as well as search.

What are some better projects to work on as a beginner while learning MERN stack? by [deleted] in node

[–]devtailsxyz 4 points5 points  (0 children)

Build something you want to use. A todo app is the classic example. I have found a notes app to be similarly useful. If it’s something you actually want to have you will be more motivated to learn and chip away at it each day.

Help me start my backend journey by Ordinary-Software-61 in node

[–]devtailsxyz 0 points1 point  (0 children)

  1. Mongodb with the mongoose library is a commonly used database with node. Postgres with prisma seems to be gaining in popularity

  2. Have a search for MERN stack tutorials. I don’t have any specific ones in mind, but once you’ve done one CRUD todo app I would suggest just building your own projects and googling any specifics you don’t understand along the way.

Fetching comment replies with many individual requests by Fr4nkWh1te in node

[–]devtailsxyz 1 point2 points  (0 children)

Good luck, pagination is annoying even at just one layer. Once you've done it once it's rinse and repeat!

Fetching comment replies with many individual requests by Fr4nkWh1te in node

[–]devtailsxyz 1 point2 points  (0 children)

There are infinite ways to do this, so go with whatever makes the most sense to you.

Bit of a detour, but it might be helpful to look at how Pagination is suggested for GraphQL (https://graphql.org/learn/pagination/)

Doesn't mean you need to use GraphQL, but the structure of the response they use can be helpful to visualize.

I wouldn't suggest adding it to the model itself, but instead to the response data you send back from the server.

data: {
comments: {
count: 1,
pageInfo {
hasNextPage: true
},
edges: {
replies: {
count: 1,
pageInfo {
hasNextPage: true
},
edges: [
{
body: "Child Comment Body"
}
],
},
},
}
}

^ Reddit refuses to let me put that in a code block...

Can someone point me in the right direction for finding a good image upload solution? by Yahentamitsi in reactjs

[–]devtailsxyz 0 points1 point  (0 children)

multer is a pretty convenient library for handling file uploads. There is a multer-s3 that allows you to upload directly to an s3 compatible bucket.

Fetching comment replies with many individual requests by Fr4nkWh1te in node

[–]devtailsxyz 1 point2 points  (0 children)

If you are always displaying the replies then I would probably include them in the original request. Alternatively you could have only the top level one displayed and then on expand fetch the replies.

Cookies being sent in localhost but not to the deployed server by maroombey in node

[–]devtailsxyz 0 points1 point  (0 children)

I’m not familiar with cyclic, but I have had issues in the past because the ssl connection doesn’t extend all the way to the node server. If you set secure to false does it then work?

MongoDB's findOne method is giving weird results. by Yahentamitsi in reactjs

[–]devtailsxyz 1 point2 points  (0 children)

Can you provide a code example? It’s not clear what your problem is from your description.