memesearch
Typescript Types Coding Interview

Typescript Types Coding Interview

Download Find similar pictures
Text on the meme
The most bizarre coding interview I've ever done was at Facebook when as usual I asked a candidate to write in any language of their choice.. And they nonchalantly said "I'll write it in Typescript types", to which I almost let loose a chuckle until... type MovePipesImpl< Pipes extends Array<Pipe>, I extends number, Acc extends Array<Pipe>, > = Lt<I, Pipes["length"]> extends true ? Pipes[I] extends infer P extends Pipe ? Lt<Add<Sub<P["x"], pipeMoveSpeed>, pipeWidth>, 0> extends true // pipe is off the screen ? FarthestPipe<0, Pipes, 0, 0> extends infer Next extends Pipe ? MovePipesImpl< Pipes, Add<I, 1>, [ ...Acc, { x: Add<Add<Next["x"], pipeWidth>, pipeGap>; y: Sub<Floor<Random<0, pipeHeight>>, pipeHeight>; }, ] > : false : MovePipesImpl< Pipes, Add<I, 1>, [...Acc, { x: Sub<P["x"], pipeMoveSpeed>; y: P["y"] }] > : false : Acc;
What it means

Пост показва смешен кадър от X/Twitter с дълъг и абсурдно сложен TypeScript код, написан само чрез типове. Шегата е, че кандидатът буквално изпълнява логика за движение на тръби в игра, използвайки TypeScript type system вместо нормален код. Мемът се изпраща като реакция към прекомерно усложнен код, странни интервюта и програмисти, които превръщат езиковите типове в цял език за програмиране.

Objects
Tags
Source
Type
image
Size
800×781 · 82.8 KiB
Mood
absurd, sarcastic
Language
en
Added

Similar memes