JavaScript
Micro-frontend with React and Next.js - LogRocket Blog
In this article they cover the basics of what a micro-frontend is, its advantages, and how to implement it using Next.js. It's a great introduction to using micro frontends, and even if you aren't overly familiar with Next.js or React it's a worthwhile read.
🚀⚙️ JavaScript Visualized: the JavaScript Engine - DEV Community
This post is a little old now (2019) but the concepts remain the same. Using some helpful animated gifs the article talks us through how the JavaScript engine actually works, from decoder to compiler, interpreter, byte code and machine code.
The JavaScript Paradox - DEV Community
Ryan Carniato discusses the JavaScript paradox of how JS is trying to fix the problems that JS has created. The article covers things like the number of frameworks popping up and the push towards JS frameworks wanting to ship less JS. The comments of this one are a gold mine of information.
PHP
php-arguments-detector: Keep control over the complexity of your methods by checking that they do not have too many arguments.
This package on GitHub adds a local (PHP) executable to your project (vendor/bin/phpargsdetector) which scans all methods within your project. The goal of the project is to find methods which have become too complex; a tell-tale sign of this is often too many arguments within methods. The output is a CLI table, and a weighting is applied based on various factors.
Laravel
Laravel Blade component that provides drop-in, real-time validation of input fields
This Laravel component allows you to very easily add validation to form inputs. The blade component accepts a new argument for the validation rules (eg: rules="required|min:5"). From this you can then enjoy real-time validation of the field without needing to do anything else. A quick look at the package shows that this works by adding some vanilla JS to the page which creates a POST request to your backend to run validation.
Tools
FauxPilot - an open-source GitHub Copilot server
It was a matter of time until someone attempted this project, but here it is. FauxPilot runs locally on your machine, and uses SalesForce CodeGen models running on top of NVIDIAs Triton Inference server. It comes with docker images to do the set up for you, and ships with different model engines depending on the VRAM available on your GPU. I'm really intrigued how this compares to Copilot, which I've used for a while now.
Delete unused node_modules in a second and enjoy some free space! ♻️ - DEV Community
This is a little bit of an unusual one. It's a tool which scans your entire hard drive for node_modules folders, lists them, and then allows you to mass-delete or delete one-by-one. The use-case is for developers who are running short on disk space but may have several years worth of idle projects sat doing nothing. The tool is (potentially ironically) installed using npm.
I stopped using Visual Studio Code
This article has attracted quite a lot of attention this week, as IDE opinions often do. This time it's a write-up of Webstorm (from JetBrains) comparing it to VS Code. I'm a long-time VS Code user myself so it was quite interesting seeing the differences. I'm not sure I'm ready to make the switch, but each to their own, and many of the points made are perfectly valid.
1.0.0 release of the Temporal TypeScript SDK | Temporal Documentation
Temporal is a development tool that uses workflows to ensure services and applications are running as they should do. It comes in 2 flavours; Open Source and as a managed service. They recently released version 1.0.0 of their TypeScript SDK, which looks great.
This link was submitted by a Loren Sands-Ramshaw
Random
Productivity Porn - Caleb Schoepp
This article discusses productivity porn. The article explains it better than I can, but essentially it's the concept of thinking you're being productive by doing something unproductive in the same space. For example; consuming social media by a top VC might make you feel like you've become a better startup founder, but really it's just procrastination.
Comment
Thank you!
Last week was the first edition of WebDev Weekly since I stopped curating back in 2018. I've received some positive feedback from various people, which gives a lot of motivation to keep it up.
On this week's edition we have some recommended links submitted from readers. If you have anything you see that you think is a worthwhile read please drop me an email at [email protected].
Web Dev Weekly