Open in app

Sign In

Write

Sign In

Peter Makes Websites
Peter Makes Websites

Home

Lists

About

Sep 14, 2022

Performance of Low Level String Decoding in JavaScript

tl;dr: TextDecoder is really fast for bigger strings. Very small strings (< 18 char ish) can actually benefit from using a simple custom decoder using an array. JavaScript is a very high level programming language. Most languages have characters and strings and can manipulate them differently. In JavaScript, that’s simply…

JavaScript

6 min read

Performance of Low Level String Decoding in JavaScript
Performance of Low Level String Decoding in JavaScript
JavaScript

6 min read


Aug 7, 2021

Easy Responsive Headings using CSS Variables, VW, and Calc

Defining breakpoints and all that for headings can be quite time-consuming. As a lazy person, I’ve developed a way to get around this conundrum that’s just kind of a one-off for each website and then you never really need to touch heading sizes again: You can replace h1, h2, h3…

CSS

3 min read

CSS

3 min read


Published in Curious

·Feb 17, 2021

Happy Coder

Three Principles that will make your job fun again. — Lately, I’ve been seeing a lot of content from people working in IT fields who are suffering from depression and burnout. I’d like to share something rather simple and succinct but something I’ve found tremendously helpful for myself and something I wish I knew earlier. I’m going to describe this…

Coding

9 min read

Happy Coder
Happy Coder
Coding

9 min read

Peter Makes Websites

Peter Makes Websites

Sharing my experience of web design with the world. petermakeswebsites.co.uk

Following
  • Sabarinathan Masilamani

    Sabarinathan Masilamani

  • Dominik Tarnowski

    Dominik Tarnowski

  • Todd Kerpelman

    Todd Kerpelman

See all (5)

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Text to speech