this post was submitted on 20 Jul 2024
566 points (97.5% liked)

Programmer Humor

19551 readers
1034 users here now

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

founded 1 year ago
MODERATORS
 

cat looking inside box meme

  • yeah our project uses typescript
  • look inside
  • any
you are viewing a single comment's thread
view the rest of the comments
[–] bleistift2@sopuli.xyz 11 points 3 months ago (1 children)
[–] threeganzi@sh.itjust.works 3 points 3 months ago (1 children)
[–] bleistift2@sopuli.xyz 2 points 3 months ago* (last edited 3 months ago)

I don’t know why. Maybe the typings for it are just fucking bad. Or maybe d3 is very hard to use “correctly”, but still works most of the time even if invoked incorrectly (I doubt that). Or maybe d3 is so complex that the typings need to be complex, too, even if you don’t use the complexity (the type retured from selectAll has four type parameters, half of which are undefined by default, the other half, null).