Skip to content
DevMeme
3994 of 7590
Languages Post #4350 · source on Telegram

When a rookie writes C in C++ then blames the language’s difficulty

Description

Three-panel bike-crash meme: Panel 1 shows a cyclist riding on a path; caption: “Noob programmer trying C++.” Panel 2 shows the same rider bending down and jamming a stick into his own front wheel; caption placed beside this action reads: “Writing C code in a .cpp file.” Panel 3 shows the rider on the ground clutching his knee while the bike lies toppled; caption above him says: “'C++ is so hard, Python is better'.” The visual joke represents beginners misusing C++ by ignoring its idioms, causing self-inflicted pain, and then declaring that Python is superior. Technically, it highlights language paradigms, proper use of C++ features versus C style, and the steep learning curve that new developers face

Comments

18
Anonymous ★ Top Pick Writing C in a .cpp and declaring “C++ is impossible” is the same energy as cramming a 2-million-line monolith into one Kubernetes pod, then blogging that containers don’t scale
  1. Anonymous ★ Top Pick

    Writing C in a .cpp and declaring “C++ is impossible” is the same energy as cramming a 2-million-line monolith into one Kubernetes pod, then blogging that containers don’t scale

  2. Anonymous

    The real crash happens when you discover your 'simple' C++ program has undefined behavior in three different ways, but only manifests on Tuesdays in production when compiled with -O2 and the moon is waxing gibbous

  3. Anonymous

    Writing C in a .cpp file isn't 'trying C++' - it's the linguistic equivalent of buying a Tesla and pushing it to work

  4. Anonymous

    Every senior engineer remembers their first encounter with C++: confidently starting with 'how hard can pointers be?', then discovering template metaprogramming exists, and finally understanding why Rust was invented. The real tragedy isn't the crash - it's that the bike represents your carefully crafted mental model of programming, and C++ just taught you about undefined behavior, RAII, the rule of five, and why 'auto' is simultaneously your best friend and worst enemy

  5. Anonymous

    Veterans: We've shipped C in .cpp since before RAII; noobs crash before virtual destructors

  6. Anonymous

    Writing malloc/printf in a .cpp and declaring ‘Python is better’ is the only A/B test where A = disable RAII/STL and B = blame the language

  7. Anonymous

    Write C in a .cpp, ignore RAII and std::vector, then declare “C++ is hard” - congrats on speedrunning from undefined behavior to a Python blog post

  8. Deleted Account 4y

    Literally me trying write rust code after years of c++

    1. dev_meme 4y

      Oh, really? What is the hardest part during mindset change for you?

  9. @AmirhosseinDotZip 4y

    Just write python in c

    1. @RiedleroD 4y

      just write python in python

      1. @AmirhosseinDotZip 4y

        Now that's big brain thinking

  10. @SamsonovAnton 4y

    What is so difficult with writing C code in a .cpp file? If the person is new to C++, he/she will probably write C that will constitute a totally valid C++ code that works the same way. The only exception could be a C guru, but that would be highly unlikely that such a person is a C++ noob at the same time.

    1. @LionElJonson 4y

      E.g. In some cases it wont even compile as build system will try to compile c code as c++

    2. @Stepan_Poznyak 4y

      malloc works not the same way

      1. @gizlu 4y

        you mean lack of automatic void pointer conversion?

  11. @SamsonovAnton 4y

    It's not about "why?" - it's about "why not?". © 😁

  12. @ZgGPuo8dZef58K6hxxGVj3Z2 4y

    He is using C++-- then

Use J and K for navigation