News
Meta approves 4 programming languages for employees and devs • The Register
Meta - the parent company of Facebook, Instagram and WhatsApp - have approved 4 programming languages for use on internal projects. To save you the read, these are Hack (which is Facebook's flavour of PHP), Rust, Python and C++. No major surprises with any of these but check out the article for more info.
JavaScript
📜 33 JavaScript concepts every developer should know.
This GitHub repo contains hundreds of resources categorised into 33 concepts. The concepts cover everything from Promises, Design Patterns, different JavaScript Engines, Message Queue and the Event Loops and lot lots more. Each concept has various useful articles, references and videos that helpfully explain each concept and how you can effectively use it. It's a great resource, and well worth checking out.
Patterns.dev - Modern Web App Design Patterns
Patterns.dev offers a free ebook on how to architect webapps using both vanilla JS and React. There are lots of examples included on CodeSandbox and the book covers a lot of different design patterns, along with a case study from Airbnb. The book comes from Lydia Hallie and Addy Osmani (Google).
Welcome To Partytown - Move third-party scripts from the main thread to a service worker
Partytown is a drop-in JS library that allows you to easily move scripts from the main thread to a service worker. Most third-party scripts aren't required for first paint, yet we often give them the same priority as our app scripts. Partytown aims to fix that.
Laravel
Add comments to SQL queries made by Laravel
This Laravel package allows you to add comments to SQL queries that are generated by your app. It's useful for debugging larger applications that might be generating many queries that aren't necessarily obvious in their origin. In this blog post the author discusses how he uses PlanetScale to manage his database, which allows him to view the queries, and which are taking longer than others. With this package he can easily see what controller and method the query originated from.
Tools
GitHub Projects is now generally available - The GitHub Blog
GitHub has just this week announced the general availability of GitHub Projects. Powered by GitHub Issues, GitHub Projects goes one step further with kanban boards and more advanced tracking of issues of a project. It's worth a look, especially if you're currently using a mishmash of tooling.
Random
Speedometer 2.0 - Benchmark your CPU in your browser
Speedometer is an in-browser benchmarking tool for your computer. It works by loading the famous 'Todo' example for hundreds of JavaScript implementations and frameworks, and then adds, completes and removes todo items to each. It's not perfect, but gives you a good approximation of your computer's compute power.
Please Start Writing Better Git Commits
We've all been there, we're short on time, and we've just made a bunch of changes to a project and quickly committed to the repo with the commit message of 'updated' or 'amends'. It's helpful to exactly no one. Even if you're a solo developer on a personal project, writing a good commit message will save you stress and time. This article explains what the anatomy of a good commit message looks like, what it should include, and even covers what you should be committing (smaller, more frequent commits).
Craiyon, formerly DALL-E mini
Craiyon is the new name for DALL-E mini. It comes with a much easier to use interface, with a couple of extra features. If you don't know what DALL-E is, it's an AI tool for generating images from plain text. You give it a prompt and it will create a handful of images based on that. They aren't perfect, but they're very clever. Some people have thought up interesting image thoughts, such as a Roomba in the Mariana Trench.
Comment
We're back!
After 4 years, we're back. Our last newsletter went out at this time back in 2018. We're back with a new look, more of the best of dev, and more frequent updates.
If you're looking to help the best thing to do is to help spread the word, seeing subscriber numbers increase is the best motivation for this to be a success. If you would like to submit a link for consideration you can email me at [email protected].
Web Dev Weekly