SShortSingh.
Back to feed

null meant unlimited, so for a while our free trial could build more question packs than Pro

0
·4 views

Here is a bug that passes review, passes types, and reads correctly in both of the places it is wrong. trial: { // ... maxCustomPacks: null, // no custom packs on the trial }, pro: { // ... maxCustomPacks: 5, }, The interface says what null means, two lines above: /** Max custom question packs. null = unlimited */ maxCustomPacks: number | null So the trial had unlimited custom question packs and Pro, which people pay £30 a month for, had five.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Arquitectura de una casa inteligente con ESP32 y AWS: las piezas y cómo encajan

Publicado originalmente en iot.gripe, como parte 1 de la serie "Domótica con ESP32 y AWS desde cero". La mayoría de tutoriales de domótica con ESP32 terminan en un LED que se enciende desde el celular. Los problemas aparecen después: cuando tienes diez dispositivos, cuando otra persona de la casa quiere usarlos, cuando quieres controlarlos por voz o cuando un corte de luz desordena todo. En esta serie construimos, paso a paso, un proyecto de ejemplo de domótica con ESP32 y AWS. Cada parte explica una pieza (firmware, nube, app o seguridad) con código mínimo y nombres genéricos, para que la ada

0
ProgrammingDEV Community ·

Our brand voice rules are unit tests, including the one that bans the em dash

Nakodo (nakodo.app) has 63 hand-written search pages: guides, four free calculators, per-niche pages for YouTube, TikTok and Instagram, audience pages, blog posts and competitor comparisons. They are not CMS entries. They are TypeScript objects in src/content, listed in one registry. That part is not unusual. What has turned out to matter is the file next to the registry: a test suite that reads every page and refuses the ones that are thin, duplicated, mis-titled, wrongly linked or off-voice.