DEV Community

Daniel Pertu profile picture

Daniel Pertu

404 bio not found

Location London Joined Joined on  Personal website https://cogniprep.app

Work

Founder of CogniPrep

1,684 awaits in our codebase, 34 places that run in parallel, and not one allSettled

1,684 awaits in our codebase, 34 places that run in parallel, and not one allSettled

Comments
6 min read

Want to connect with Daniel Pertu?

Create an account to connect with Daniel Pertu. You can also sign in below to proceed if you already have an account.

Already have an account? Sign in
Our website says you 3,269 times and we 400 times, and 17 pages never say we at all

Our website says you 3,269 times and we 400 times, and 17 pages never say we at all

1
Comments
6 min read
357 type aliases, zero interfaces, and the only interface in our codebase belongs to the browser

357 type aliases, zero interfaces, and the only interface in our codebase belongs to the browser

Comments
7 min read
2,039 exports in 582 files, 85 of them default, and twelve that nothing in the repository references

2,039 exports in 582 files, 85 of them default, and twelve that nothing in the repository references

Comments
6 min read
748,219 characters of visible text on our website, 97 distinct code points, and not one em dash

748,219 characters of visible text on our website, 97 distinct code points, and not one em dash

Comments
6 min read
Our 76 public pages are built from 44 HTML elements, and they hold more SVG nodes than HTML ones

Our 76 public pages are built from 44 HTML elements, and they hold more SVG nodes than HTML ones

Comments
7 min read
Our desktop app's whole interface is 485 words, our website is 35,841, and the 23 words only the app knows are all about things going wrong

Our desktop app's whole interface is 485 words, our website is 35,841, and the 23 words only the app knows are all about things going wrong

Comments
5 min read
48 inline SVGs on our homepage, five of them are the same mascot, and the whole lot costs 1.6 KB after brotli

48 inline SVGs on our homepage, five of them are the same mascot, and the whole lot costs 1.6 KB after brotli

Comments
5 min read
344 tests run in 675ms, no CI runs them, and the 24th file is the only one that needs a database

344 tests run in 675ms, no CI runs them, and the 24th file is the only one that needs a database

Comments
6 min read
I weighed every character on our site by its contrast ratio, and 39.5 per cent of them fail

I weighed every character on our site by its contrast ratio, and 39.5 per cent of them fail

Comments
5 min read
Scrolling one hub page on our site downloads 357 KB of pages nobody asked for, and our terms of service is one of them

Scrolling one hub page on our site downloads 357 KB of pages nobody asked for, and our terms of service is one of them

Comments
5 min read
Our 15 migrations are 12 KB of SQL and 410 KB of metadata, and three of them cancel out to one changed default

Our 15 migrations are 12 KB of SQL and 410 KB of metadata, and three of them cancel out to one changed default

Comments
5 min read
Our 10 per cent trace sample still contacts Sentry on every page view, to tell it about the 90 per cent we threw away

Our 10 per cent trace sample still contacts Sentry on every page view, to tell it about the 90 per cent we threw away

Comments
5 min read
Our design lab 404s in production, and the only thing it successfully ships is its own page title

Our design lab 404s in production, and the only thing it successfully ships is its own page title

Comments
5 min read
Our FAQ is on screen for 1.25 seconds before it can be opened, and only 49 milliseconds of that is CPU

Our FAQ is on screen for 1.25 seconds before it can be opened, and only 49 milliseconds of that is CPU

Comments
4 min read
26 of our files use framer-motion's m, one uses motion, and that one renders on every public page

26 of our files use framer-motion's m, one uses motion, and that one renders on every public page

Comments
5 min read
I turned JavaScript off on all 38 pages of our site. It lost 47 characters, a buy button and a support form.

I turned JavaScript off on all 38 pages of our site. It lost 47 characters, a buy button and a support form.

Comments
5 min read
Every size on our big screen is one number times a CSS variable, and the variable is 1cqmin

Every size on our big screen is one number times a CSS variable, and the variable is 1cqmin

Comments
6 min read
Our median source file is 80 lines and our median function is 5, and one file holds 2% of the codebase

Our median source file is 80 lines and our median function is 5, and one file holds 2% of the codebase

2
Comments
5 min read
62 Server Actions, one return type, and the same five lines at the top of nearly all of them

62 Server Actions, one return type, and the same five lines at the top of nearly all of them

1
Comments
5 min read
80 files in our app say "use client", and not one of them is a page

80 files in our app say "use client", and not one of them is a page

1
Comments
5 min read
141 words appear on every page of our site, and six pages are mostly made of their own children

141 words appear on every page of our site, and six pages are mostly made of their own children

1
Comments
5 min read
Five Tailwind breakpoints ship in our CSS, two of them do all the work, and one changes nothing at all

Five Tailwind breakpoints ship in our CSS, two of them do all the work, and one changes nothing at all

1
Comments
5 min read
Our page titles arrive 32 nodes into the head, after ten font preloads and fourteen scripts

Our page titles arrive 32 nodes into the head, after ten font preloads and fourteen scripts

1
Comments
5 min read
Nothing in our dependency tree is newer than 168 days: 42 of 50 behind, nine of them by a major

Nothing in our dependency tree is newer than 168 days: 42 of 50 behind, nine of them by a major

1
Comments
6 min read
Fourteen image routes, seven link preview cards, and 93 per cent of the pixels are the same picture

Fourteen image routes, seven link preview cards, and 93 per cent of the pixels are the same picture

1
Comments
6 min read
Our team name generator draws 6 of 110 names uniformly, and you will still see a repeat by the third press

Our team name generator draws 6 of 110 names uniformly, and you will still see a repeat by the third press

1
Comments
5 min read
Nine clocks in one Next.js app, and the copyright year on 109 of our 111 pages was decided at 18:52 on 16 November

Nine clocks in one Next.js app, and the copyright year on 109 of our 111 pages was decided at 18:52 on 16 November

1
Comments
7 min read
Adding a QR code to our poster makes the PDF 246 times bigger, and 99.5 per cent of the file is one uncompressed bitmap

Adding a QR code to our poster makes the PDF 246 times bigger, and 99.5 per cent of the file is one uncompressed bitmap

1
Comments
6 min read
Our profit calculator says a quiz night can clear £1.49 trillion a year, and our five free tools disagree about bad input

Our profit calculator says a quiz night can clear £1.49 trillion a year, and our five free tools disagree about bad input

1
Comments
7 min read
Our homepage demo has four numbers for one score, and an ordinal suffix with three branches that can never run

Our homepage demo has four numbers for one score, and an ordinal suffix with three branches that can never run

1
Comments
5 min read
One calendar URL, five subscribe links, and the Outlook one Microsoft has never documented

One calendar URL, five subscribe links, and the Outlook one Microsoft has never documented

1
Comments
5 min read
One abandoned-checkout email, seven reasons not to send it, and a Redis key that fails closed

One abandoned-checkout email, seven reasons not to send it, and a Redis key that fails closed

1
Comments
6 min read
Our phone CTA bar reads rectangles every frame instead of using IntersectionObserver, and a fast fling is why

Our phone CTA bar reads rectangles every frame instead of using IntersectionObserver, and a fast fling is why

1
Comments
6 min read
Nobody can unsubscribe from our emails, and the only Unsubscribe in the product is painted on our homepage

Nobody can unsubscribe from our emails, and the only Unsubscribe in the product is painted on our homepage

1
Comments
6 min read
We wrote a query runbook because we had no query statistics, and two of its own references had already rotted

We wrote a query runbook because we had no query statistics, and two of its own references had already rotted

1
Comments
5 min read
972 of our pages declare one social image, 121 declare another, and that one is 8000 pixels wide

972 of our pages declare one social image, 121 declare another, and that one is 8000 pixels wide

1
Comments
4 min read
One licence check, two implementations, and an email lowercased four times between the keyboard and the database

One licence check, two implementations, and an email lowercased four times between the keyboard and the database

1
Comments
6 min read
Our reward was earnable with a plain POST and no photo, so the server now signs a receipt for its own work

Our reward was earnable with a plain POST and no photo, so the server now signs a receipt for its own work

1
Comments
8 min read
Three time formatters in 28 lines, three clocks driving them, and the branches inside them no caller can reach

Three time formatters in 28 lines, three clocks driving them, and the branches inside them no caller can reach

1
Comments
6 min read
1,250,964 audit rows that record nothing happening, 418 MB of a 0.5 GB quota, and the table I was sure was the problem

1,250,964 audit rows that record nothing happening, 418 MB of a 0.5 GB quota, and the table I was sure was the problem

1
Comments
6 min read
Twelve shapes are declared twice in our Electron app, and the one module both halves import is a single number

Twelve shapes are declared twice in our Electron app, and the one module both halves import is a single number

1
Comments
6 min read
A search box with six states, and a Postgres index the query has to repeat verbatim or the planner ignores it

A search box with six states, and a Postgres index the query has to repeat verbatim or the planner ignores it

1
Comments
7 min read
Our eight API routes say yes in five different words, and three of the five have never been read

Our eight API routes say yes in five different words, and three of the five have never been read

1
Comments
6 min read
Our discount label is a percentage, because the phone cannot know which currency the bill is in

Our discount label is a percentage, because the phone cannot know which currency the bill is in

1
Comments
6 min read
38 recipes, 229 ingredient lines, and 462 tests that decide which of them are allowed to exist

38 recipes, 229 ingredient lines, and 462 tests that decide which of them are allowed to exist

1
Comments
7 min read
Our maintenance switch is one boolean, and the page it shows answers 200 because a rewrite cannot carry a 503

Our maintenance switch is one boolean, and the page it shows answers 200 because a rewrite cannot carry a 503

1
Comments
6 min read
1.3 MB of class names in our HTML, and 69 per cent of the stylesheet they point at never reaches a public page

1.3 MB of class names in our HTML, and 69 per cent of the stylesheet they point at never reaches a public page

1
Comments
5 min read
76 text fields in our app, zero enterkeyhint, and one required checkbox nobody can see

76 text fields in our app, zero enterkeyhint, and one required checkbox nobody can see

1
Comments
6 min read
Our whole browser storage is two cookies, and a signed-in page view uploads 53 KB of them

Our whole browser storage is two cookies, and a signed-in page view uploads 53 KB of them

2
Comments 1
6 min read
All 38 of our pages tell X which image to share and not one tells Facebook, because Next.js replaces openGraph instead of merging it

All 38 of our pages tell X which image to share and not one tells Facebook, because Next.js replaces openGraph instead of merging it

1
Comments
5 min read
Our desktop UI throws itself away every time you open the window, and the one thing it keeps is a timestamp in localStorage

Our desktop UI throws itself away every time you open the window, and the one thing it keeps is a timestamp in localStorage

1
Comments
5 min read
Our page for "free pub quiz software" opens by saying we are not free, and our own product gets 28 of its 302 words

Our page for "free pub quiz software" opens by saying we are not free, and our own product gets 28 of its 302 words

1
Comments 2
6 min read
Not one of our 662 headings balances its lines, and the fix is two Tailwind classes and no reflow

Not one of our 662 headings balances its lines, and the fix is two Tailwind classes and no reflow

1
Comments
4 min read
Our site and our desktop app use 58 colours between them and share 15, and three the site owns alone are a fake window's traffic lights

Our site and our desktop app use 58 colours between them and share 15, and three the site owns alone are a fake window's traffic lights

1
Comments
5 min read
Three agents on one laptop, 4 to 6 GB per dev server, and the 145-line lock that is just mkdir

Three agents on one laptop, 4 to 6 GB per dev server, and the 145-line lock that is just mkdir

1
Comments 1
6 min read
I crawled all 1,093 of our pages: the 409 deepest now have 11 ways in, and the only stragglers are the 3 outside the registry

I crawled all 1,093 of our pages: the 409 deepest now have 11 ways in, and the only stragglers are the 3 outside the registry

Comments
6 min read
Nine of our pages are about a date on a calendar, and the first one we published is 353 days from being useful

Nine of our pages are about a date on a calendar, and the first one we published is 353 days from being useful

1
Comments
6 min read
Our desktop app has three media queries, none of them about width, and a rule that hides every scrollbar in it

Our desktop app has three media queries, none of them about width, and a rule that hides every scrollbar in it

1
Comments
4 min read
513 of our 515 in-page links land exactly where they should, and the 80px they clear belongs to a different layout

513 of our 515 in-page links land exactly where they should, and the 80px they clear belongs to a different layout

1
Comments
6 min read
loading...