Best of Web Development — February 2023
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
Community Picks·3y
All about Promises in JavaScript
Promises in JavaScript are objects that represent values that may not be immediately available. They are used to handle asynchronous operations and provide benefits such as better readability, improved error handling, avoiding callback hell, ability to return a value, and better compatibility. Promises can be created using the Promise constructor and can be chained using then() and catch() methods. They can also be canceled using techniques like timeout, aborting a network request, or using a flag. Bluebird is a popular Promise library that provides advanced features like Promise cancellation. Multiple Promises can be executed in parallel using methods like Promise.all(), Promise.any(), Promise.race(), and Promise.allSettled().
- 9
The Verge·3y
I don’t want to log in to your website
Websites requiring logins to access free content are becoming more common, but the author argues that not reading is easier than reading and logging in. This trend reduces the value of the open web and creates a worse user experience. The author also discusses privacy concerns and the shift away from making websites feel like semipublic places.
- 10
- 11
Product Hunt·3y
Uiverse.io - Product Information, Latest Updates, and Reviews 2024
Uiverse.io is a website for developers that offers hundreds of open-source CSS and HTML UI elements. It recently launched version 2.0 with new features and updates. Users can participate in CSS Challenges and share pro tips.
- 12
- 13
- 14
- 15
Medium·3y
Why PHP should be renamed to HypeScript
PHP is facing challenges as it is perceived as not cool anymore, leading to a decline in popularity among younger developers. The post suggests renaming PHP to HypeScript as a way to rebrand and attract new developers without changing the programming language.
- 16
- 17
Medium·3y
C# vs Rust vs Go. A performance benchmarking in Kubernetes
A performance benchmarking article comparing the performance of Rust, C#, and Go in creating high-performance web APIs and deploying them to a Kubernetes cluster. The article also discusses how to monitor the resource usage of these APIs with performance monitoring tools.
- 18
DEV·3y
Build a Profit Margin Calculator with Vite.js + React.js, TypeScript and Tailwind CSS
This tutorial explains how to build a profit margin calculator using Vite.js, React.js, TypeScript, and Tailwind CSS. It covers the setup process, building the UI with Tailwind CSS, and implementing dynamic theme color and dark mode. The tutorial also highlights the benefits of using Vite.js for faster performance and optimized static assets.
- 19
David Heinemeier Hansson·3y
Invest in things that don't change
Invest in things that don't change and continue to improve on enduring ideas. Technology may have paradigm shifts, but most of the time it's incremental improvement. Many core technologies in web development, such as Ruby, Linux, and MySQL, have been stable for decades.
- 20
builder.io·3y
How To Improve Lighthouse Scores by Avoiding <img> Layout Shifts
Improving Lighthouse scores can be achieved by setting the correct aspect ratio on images. Cumulative Layout Shift (CLS) is a metric that measures layout adjustments. Two recommended approaches to solving image CLS issues are using the aspect-ratio CSS property and setting width and height attributes on the img tag.
- 21
- 22
Bits and Pieces·3y
How To Build Desktop Apps Using React: A Quick Introduction to Tauri
Learn how to build desktop apps using React with Tauri, an alternative to Electron. Tauri allows you to use web technologies like JavaScript, HTML, and CSS to create native applications. The tutorial covers setting up a project, building a To-Do app with sentiment analysis, adding native features using Rust, and packaging the app for distribution.
- 23
- 24
- 25
asayer·3y
Create Incredible Web Presentations with Reveal.js
Reveal.js is an open-source HTML presentation framework that allows users to create fully-featured and interactive presentations with CSS 3D transforms, nested slides, and more. It is responsive, supports interactive elements, has a simple user interface, and is open-source. Some popular alternatives to Reveal.js include Impress.js, Prezi, PhotoSwipe, Owl Carousel 2, FlexSlider, Keynote, and Haiku Deck. To create vertical slides in Reveal.js, simply nest sections within a section.