Advertisement
Singapore markets close in 6 hours 42 minutes
  • Straits Times Index

    3,173.11
    -14.55 (-0.46%)
     
  • Nikkei

    36,901.03
    -1,178.67 (-3.09%)
     
  • Hang Seng

    16,172.79
    -213.08 (-1.30%)
     
  • FTSE 100

    7,877.05
    +29.06 (+0.37%)
     
  • Bitcoin USD

    60,637.61
    -949.99 (-1.54%)
     
  • CMC Crypto 200

    1,261.56
    +376.02 (+40.20%)
     
  • S&P 500

    5,011.12
    -11.09 (-0.22%)
     
  • Dow

    37,775.38
    +22.07 (+0.06%)
     
  • Nasdaq

    15,601.50
    -81.87 (-0.52%)
     
  • Gold

    2,427.70
    +29.70 (+1.24%)
     
  • Crude Oil

    85.24
    +2.51 (+3.03%)
     
  • 10-Yr Bond

    4.6470
    +0.0620 (+1.35%)
     
  • FTSE Bursa Malaysia

    1,549.50
    +4.74 (+0.31%)
     
  • Jakarta Composite Index

    7,102.90
    -63.92 (-0.89%)
     
  • PSE Index

    6,516.73
    -6.46 (-0.10%)
     

This programmer made a hilarious ‘Volkswagen’ tool to help bad code pass quality tests

Volkswagen
Volkswagen

(REUTERS/Lucy Nicholson)

Programmers are having a laugh at the beleaguered car manufacturer Volkwagen's expense with the introduction of "VW Phpunit," a tool that helps programmers in the popular PHP language get their bad code through quality testing.

"Your primary objective is to ship more code to the world. No need to be slowed down by regressions or new bugs that happen during development," writes VW Phpunit author and French PHP programmer Hugues Maignol on the project's GitHub page.

Basically, VW Phpunit is an extension for PHPUnit, a popular code debugging tool. PHP itself is an immensely popular programming language — most of Facebook's code is written in PHP, for example.

ADVERTISEMENT

When the VW Phpunit extension is activated, that code will pass automatic quality tests, no matter how bad or buggy that code is. Basically, it detects when those tests are being done, and tricks it into giving a passing grade, in much the same way that Volkswagen managed to have its diesel cars pass its emissions tests.

A multi-layered joke

Those automatic quality tests are increasingly common amongst software development teams, which rely on them to quickly and constantly integrate code into their apps in a process known as "continuous integration," pioneered at companies like Facebook. By taking humans out of the quality testing equation, developers can move faster.

And so Maignol tells Business Insider that the VW Phpunit extension is actually a multi-layered joke.

First, it's a laugh at continuous integration, which he describes as "a hassle for many developers." And second, it's a dig at the country of Germany, which he says has a reputation as "the country of quality," and yet had the Volkwagen scandal. Plus, PHPunit itself was originally developed by Sebastian Bergmann, a German programmer.

It's a smash hit on GitHub, the social network for programmers, where it's a top-trending project that's been "starred" over a thousand times. So what happens if someone actually uses VW Phpunit in real life to pass bad code into a real-life app?

"Same thing as with the cars, someone will see it eventually," Maignol says.

NOW WATCH: Volkswagen faces a possible $18 billion EPA fine for cheating on emissions tests



More From Business Insider