Skip to content
TILens What matters today in tech v0.4.0
Theme
Topics - Languages
Calendar · NOV 2026
‹ Nov 2026 ›
  1. JAN
  2. FEB
  3. MAR
  1. APR
  2. MAY
  3. JUN
  1. JUL
  2. AUG
  3. SEP
  1. OCT
  2. NOV
  3. DEC
1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30
Favorites (0)

News stream

News

Your logger redaction only hides the fields you remembered

Every leaked secret I have seen started the same way. Someone wrote logger.info({ user }), the code looked harmless, and user carried a session token. Now that token lives in the log aggregator, the error tracker and a few vendors' systems, for as…

devto-javascript

Passport photo sizes in pixels: the mm to px arithmetic and three traps

Passport photo rules are written in millimetres or inches. Upload forms ask for pixels. The bridge between the two is one line of arithmetic, and it is easy to get slightly wrong. The formula pixels = millimetres / 25.4 * dpi 25.4 is the number of…

devto-javascript

How to Build a Construction Material Calculator Using JavaScript

How to Build a Construction Material Calculator Using JavaScript Learn how simple JavaScript functions can automate concrete volume, brickwork, and construction material estimation. Construction and software development might seem like two…

devto-javascript

Realized and unrealized PnL from a list of trades, in TypeScript

A trading history is a list of fills: buys and sells, each with a quantity, a price and a fee. From that list you want two numbers. Realized PnL is the profit or loss on what you already sold. Unrealized PnL is the profit or loss on what you still…

devto-javascript

When Build Caches Lie: Two Opposite Warm-Build Bugs in Ionify

Inside Ionify — An engineering update on cache correctness, dependency invalidation, and safe upgrades. A fast warm build is exciting. A fast warm build that reuses stale output is dangerous. While investigating a Tailwind full-rescan regression in…

devto-javascript

How to audit TikTok Shop coupon lift without counting baseline sales

TikTok Shop promotion reports often show a clean revenue increase while four different effects are mixed together: orders that would have happened anyway; pull-forward from customers who planned to buy later; demand created by the promotion;…

devto-javascript

How I built a one-page interactive journal generator for my kid

How I built a one-page interactive journal generator for my kid I built Shiye for my own kid, because the review material we had at home wasn't working. A whole workbook is too big to start, and a pile of printed worksheets never gets finished. I…

devto-javascript

Validating the Portuguese social security number (NISS) in JavaScript

In part 1 we looked at the NIF, the Portuguese tax number. This time it's its less famous sibling: the NISS (Número de Identificação da Segurança Social), the 11-digit social security number. You'll run into it as soon as you build anything around…

devto-javascript

Day 6: +771 downloads yesterday

Yesterday's downloads: 7,173 total, +771 since yesterday. 2,827 to go to 10,000. plumber-linter: 2,137 (+352) hexlens: 1,592 (+361) environmental-peek: 1,383 (+19) react-dismiss: 1,158 (+21) @parasraju/plumber-mcp: 903 (+18) npm's numbers lag about…

devto-javascript

JavaScript rendering: what AI crawlers actually see

A page built with React, Vue or Angular can look complete in every browser and still be empty to the systems deciding whether to quote it. The page a person sees and the page a crawler receives are not always the same document, and the gap between…

devto-javascript

The US federal holiday for 2028 New Year's Day falls in 2027

January 1, 2028 is a Saturday. Under the US federal rule, a holiday that lands on a Saturday is observed on the Friday before. So the day off for New Year's 2028 is Friday, December 31, 2027. That one date broke an assumption in my business-days…

devto-javascript

JavaScript String indexOf() Function: Find First Substring Index

😄 This post is based on the content from coding.courses. Definition and Usage The indexOf() function for strings searches for the specified substring in a string and returns the index of its first occurrence. If the specified substring is not found,…

devto-javascript

1959 items available