tech/webdev magazine

July 31, 2023

How React 18 Improves Application Performance

Monday, July 31, 2023 Teklinks

React 18 has introduced concurrent features that fundamentally change the way React applications can be rendered. We'll explore how these latest features impact and improve your application's performance.

Full article

July 28, 2023

The Power of Mocking in Unit Tests

Friday, July 28, 2023 Teklinks

Testing is often an afterthought when writing code. It can be confusing, slow down development, and if implemented poorly provides questionable utility. The following are some tips for preemptively writing and structuring your code so that it is easy to unit test.

Full article

How to switch to PNPM from Yarn 🔄

Friday, July 28, 2023 Teklinks

If you’re a developer who has been using Yarn as your package manager and you’re considering switching to PNPM, you’re in the right place. PNPM is a fast and efficient package manager that can offer some advantages over Yarn.

Full article

July 27, 2023

How to version all packages synchronously, in a monorepo using Lerna

Thursday, July 27, 2023 Teklinks

In this post we will be exploring how to set up automatic versioning of packages inside of a monorepo using Lerna. There are many ways in which you can do this with different technologies and ideas, but mostly it comes down to a single decision; do you want to version the entire repository as one, or have the individual packages within the monorepo be individually versioned from each other?

Full article

July 25, 2023

React Query and React Context

Tuesday, July 25, 2023 Teklinks

To me, this is great because it makes the ProductTable decoupled and independent: It's responsible for reading its own dependencies: Product Data. If it's in the cache already, great, we'll just read it. If not, we'll go fetch it. And we can see similar patterns emerge with React Server Components.

Full article

How to create NFTs with JavaScript

Tuesday, July 25, 2023 Teklinks

In February 2021, Figma CEO Dylan Fields sold a piece of NFT art for $7.5 million. Similarly, Twitter co-founder Jack Dorsey sold his first tweet on Twitter as an NFT for $2,915,835.47. An NFT (non-fungible token) is a fascinating new technology that represents ownership of an asset digitally.

Full article

July 23, 2023

gRPC vs REST: comparing approaches for making APIs

Sunday, July 23, 2023 Teklinks

In today's text I want to take a closer look at gRPC and REST. Probably two of the most commonly used approaches for creating API nowadays. I will start with a short characteristic of both tools – what they are and what they can offer.

Full article

Stick to boring architecture for as long as possible

Sunday, July 23, 2023 Teklinks

"Stick to boring architecture for as long as possible, and spend the majority of your time, and resources, building something your customers are willing to pay for." - Kelsey Hightower When we're starting new projects, there's an undeniable allure to the latest languages, frameworks, and libraries.

Full article

July 19, 2023

How React 18 Improves Application Performance

Wednesday, July 19, 2023 Teklinks

React 18 has introduced concurrent features that fundamentally change the way React applications can be rendered. We'll explore how these latest features impact and improve your application's performance.

Full article

July 18, 2023

Demystifying React Server Components with NextJS 13 App Router

Tuesday, July 18, 2023 Teklinks

This purpose of this application is to demonstrate the concepts and code of React Server Components in NextJS13 in a way that exposes what is really happening. Audience: Experienced React developers who are perhaps new to RSC. Or people using RSC who want to understand more about how it works.

Full article

Linking Modular Architecture to Development Teams

Tuesday, July 18, 2023 Teklinks

Can a modular architecture improve software delivery? Yes! -but with some caveats. This article charts the journey of an enterprise who set out to shift their architecture to a more modular one in order to ease their growing pains.

Full article

July 17, 2023

July 16, 2023

My take on the current React & Server Components controversy

Sunday, July 16, 2023 Teklinks

There has been a lot of frustration in tech Twitter over the last few weeks. Some people are frustrated with React Server Components, and some are frustrated with the way the React team communicates. The React team is frustrated with that “pile-on” they are facing.

Full article

July 13, 2023

July 12, 2023

Multithreading with Worker Threads in Node.js

Wednesday, July 12, 2023 Teklinks

The beauty of Node is that while the main event loop runs in a single thread, some expensive tasks are automatically offloaded to a separate worker pool. These include the I/O-intensive DNS and File System (except fs.FSWatcher()) APIs, as well as the CPU-intensive Crypto and Zlib APIs.

Full article

July 11, 2023

Popular DevTools Tips

Tuesday, July 11, 2023 Teklinks

You might think you know all the tricks when it comes to browser DevTools, but did you know that there are dozens of panels and hundreds of features waiting to supercharge your debugging workflow? Whatever your debugging use case is, there’s probably a tool that’s right for the job. Let’s discover the most popular DevTools tips that can boost your productivity.

Full article

Test your React hooks with Vitest efficiently

Tuesday, July 11, 2023 Teklinks

This post explores how to use Vitest and React Testing Library to help unit test React hooks in a way that makes them easy to maintain and extend. Powered by Vite, Vitest claims to be the "blazing fast unit test framework" for Vite projects.

Full article

Set up Jest in your Monorepo in 5 minutes

Tuesday, July 11, 2023 Teklinks

Jest is a delightful JavaScript Testing Framework with a focus on simplicity. And you can use Jest on everything that is JavaScript like React, Angular, Node, TypeScript… The jest.config.js file will be created.

Full article

July 9, 2023

The massive bug at the heart of the npm ecosystem

Sunday, July 09, 2023 Teklinks

Disclosure: I was the Staff Engineering Manager for the npm CLI team between July 2019 & December 2022. I was a part of the GitHub acquistion of npm inc. in 2020. I left GitHub, for various reasons, in December.

Full article

Cracking Electron apps open

Sunday, July 09, 2023 Teklinks

I use the draw.io desktop app to make diagrams for my website. I run it on an actual desktop, like Windows or macOS, but the asset pipeline that converts .drawio files, to .pdf, to .svg, and then to .svg again (but smaller) runs on Linux.

Full article

July 7, 2023

React Performance & Optimization

Friday, July 07, 2023 Teklinks

Performance in React apps can be thought of in 2 ways: Loading Performance - Compressing & loading code/assets (mostly Non-React things) Runtime Performance - CPU & rendering issues (mostly React-specific things) Loading vs.

Full article

A Guide To Redux Toolkit With TypeScript

Friday, July 07, 2023 Teklinks

16 min read React, Redux, JavaScript, TypeScript Share on Twitter, LinkedIn Data Visualization Masterclass with Amelia Wattenberger SmashingConf Freiburg 2023 Smart Interface Design Patterns, 9h-video course Prepare for today’s communication roles Northwestern’s MS in Information Design.

Full article

CommonJS is hurting JavaScript

Friday, July 07, 2023 Teklinks

JavaScript, the undisputed king of web development, is being sabotaged — not by a rival language or a revolutionary new technology, but by its own baggage from the past. This insidious saboteur is none other than CommonJS, the antique module system that we’ve tolerated for far too long.

Full article

July 6, 2023

API Mocking for your Playwright tests

Thursday, July 06, 2023 Teklinks

When working with third party API's it is better to mock the API call rather than hit the API especially when they are API's that you do not control. You might also want to mock an API when in development mode and the API hasn't been written yet.

Full article

An Introduction to the View Transitions API

Thursday, July 06, 2023 Teklinks

The new View Transitions API offers an easier way to animate between two DOM states — even between page loads. It’s a progressive enhancement that works today. CSS transitions and animations have revolutionized web effects over the past decade, but not everything is easy.

Full article

Is Qwik Faster Than React Server Component?

Thursday, July 06, 2023 Teklinks

Page speed matters. Faster website results in better UX, better SEO, and more profit. The latest research done by Rekuten 24 shows that optimizing Core Web Vitals leads to: The modern frameworks and frontend libraries address speed and help developers ship better user experience to the users.

Full article

July 4, 2023

Advanced macOS Command-Line Tools

Tuesday, July 04, 2023 Teklinks

macOS is fortunate to have access to the huge arsenal of standard Unix tools. There are also a good number of macOS-specific command-line utilities that provide unique macOS functionality. To view the full documentation for any of these commands, run man .

Full article

At a glance: what makes a good developer experience? 🤔

Tuesday, July 04, 2023 Teklinks

Developer experience examines how people, processes, and tools affect developers’ ability to work efficiently. What do building software and vacuuming your house have in common? Jonathan Carter, technical advisor of the CEO at GitHub, used to hate vacuuming.

Full article

Rate Limiting Fundamentals

Tuesday, July 04, 2023 Teklinks

Rate limiting is a popular distributed system pattern. It is an integral part of all modern large-scale applications. It controls the rate at which users or services can access a resource, like an API, a service, or a network.

Full article