Skip to content
DevMeme
3003 of 7590
Languages Post #3317 · source on Telegram

New TypeScript Devs Discovering the 'any' Type

Description

This image uses the popular 'Is this a pigeon?' meme format, taken from a scene in the anime series 'The Brave Fighter of Sun Fighbird'. It features the main character, an android, looking at a butterfly with a curious and naive expression. In this meme, the character is labeled 'NEW TS DEVS'. The yellow butterfly is labeled with the TypeScript keyword 'any'. The caption at the bottom of the image reads, 'IS THIS TYPESCRIPT?'. The meme humorously criticizes a common pitfall for developers new to TypeScript: overusing the 'any' type. The 'any' type is a powerful escape hatch that opts out of type-checking, effectively reverting a variable back to plain, dynamically-typed JavaScript. For experienced developers, this meme is a relatable jab at how newcomers often use 'any' as a crutch, thereby defeating the entire purpose of adopting TypeScript, which is to enforce type safety and improve code quality

Comments

21
Anonymous ★ Top Pick Using `any` in TypeScript is the grown-up developer equivalent of hiding your vegetables under the mashed potatoes. It feels like you're getting away with something, but you're only cheating your future self
  1. Anonymous ★ Top Pick

    Using `any` in TypeScript is the grown-up developer equivalent of hiding your vegetables under the mashed potatoes. It feels like you're getting away with something, but you're only cheating your future self

  2. Anonymous

    Annotating every variable with `any` and bragging about your TypeScript migration is the same energy as shipping Kubernetes YAML that just runs the monolith container

  3. Anonymous

    After 15 years of fighting production fires, I've seen this exact scenario play out: junior dev discovers TypeScript, sprinkles 'any' everywhere like syntactic sugar, then proudly announces they've 'migrated to TypeScript' - meanwhile the codebase has all the type safety of a JavaScript file with extra steps and a false sense of security

  4. Anonymous

    Ah yes, the 'any' type - TypeScript's official 'I give up' button. It's the equivalent of migrating from JavaScript to TypeScript by adding '.ts' to your filenames and calling it a day. Senior engineers know that liberal use of 'any' is just JavaScript with extra steps and a false sense of type safety. The real TypeScript journey begins when you realize 'any' is not a feature, it's a code smell - a temporary crutch that should trigger the same alarm bells as seeing 'TODO: fix this later' in production code from 2019

  5. Anonymous

    "any" is TypeScript’s panic button - press it enough and you’re just paying a compile-time tax for runtime bugs

  6. Anonymous

    In every JS→TS migration, “strict: true” survives until the first SLA breach - then comes noImplicitAny=false and a 2k‑line PR titled “unblock build.”

  7. Anonymous

    'any' in TypeScript: the escape hatch that turns type safety into a polite suggestion

  8. @pokadexr 5y

    yes

  9. @Kurikania 5y

    I was assigned to react +ts project and I hate it. I used to work with vue + js Maybe I should study more to understand what's the point.

    1. @romash1408 5y

      the point is when you get error on compile time instead of messages from users about not working production

      1. @Kurikania 5y

        I know it's cool and it's a step forward in dev, I just can't feel it yet.

  10. @yrurunnin 5y

    unknown > any change my mind

  11. @VolodymyrMeInyk 5y

    yes and no

  12. @clockware 5y

    I liked TS more when it was free from Node.js ecosystem

    1. @azizhakberdiev 5y

      maybe ts turned into node module because it is more comfortable to install it

  13. @clockware 5y

    Back in... 2015? I guess

  14. @clockware 5y

    You could just tsc.exe and nobody was shoving Node.js in your face

    1. @p4vook 5y

      what? that time should had been great

  15. @scout_ca11sign 5y

    transport?: Car | Bus | Horse | Cat | any ;

  16. @scout_ca11sign 5y

    lmao just look up React ts declarations

  17. @scout_ca11sign 5y

    Typescript declrations for React framework.

Use J and K for navigation