Bookmarks tagged “javascript”

58 bookmarks tagged “javascript”

AI Model Token Cost Benchmark | Playcode Blog

AI Model Token Cost Benchmark | Playcode Blog

· playcode.io

If you build with an AI coding agent, your workload is basically TypeScript - and that's exactly where the model tokenizer gap is widest. The same TypeScript file becomes 1,178 tokens on Claude's newest tokenizer versus 681 on GPT-5.x's o200k: 1.73x more, before a cent of price d

Monorepos in JavaScript & TypeScript

Monorepos in JavaScript & TypeScript

· robinwieruch.de

A tutorial how to use a monorepo architecture in frontend JavaScript and TypeScript with tools like npm/yarn/pnpm workspaces, Turborepo/NX/Lerna, Git Submodules, ...

JSON Hijacking | You’ve Been Haacked

JSON Hijacking | You’ve Been Haacked

· haacked.com

A while back I wrote about a subtle JSON vulnerability which could result in the disclosure of sensitive information. That particular exploit involved overriding the JavaScript Array constructor to disclose the payload of a JSON array, something which most browsers do not support

Why React Re-Renders

Why React Re-Renders

· joshwcomeau.com

In React, we don't update the DOM directly, we tell React what we want the DOM to look like, and React tackles the rest. But how exactly does it do this? In this tutorial, we'll unpack exactly when and why React re-renders, and how we can use this information to optimize the perf

How not to learn TypeScript

How not to learn TypeScript

· fettblog.eu

“TypeScript and I are never going to be friends”. Oh wow, how often have I heard this phrase? Learning TypeScript, even in 2022, can be frustrating it seems. And for so many different reasons. People who write Java or C# and find out things are working differently than they shoul