This page shows the source for this entry, with WebCore formatting language tags and attributes highlighted.

Title

Woefully unqualified "programmers"

Description

As I was reading the absolute train wreck of a unit test in <a href="https://thedailywtf.com/articles/testing-with-a-lisp" author="" source="Daily WTF">Testing with a Lisp</a>, the song "What the fuck is going on?" popped into my head, like it always does when I see that a programmer not only didn't understand the assignment, not only doesn't know how to program, but also doesn't know that they don't know how to program. They are living their best life because they don't think that "knowing how to program" is required in order to be a programmer. Neither does their boss or team, I guess. That's when the music starts to play in my head, and I think of little blind Dillon playing football because a very non-PC friend<fn> sent me that video so many years ago. Am I going to link the video? Of course I am. Because I'm a terrible person.<fn> <media href="https://www.youtube.com/watch?v=QhKI_ncKgm8" src="https://www.youtube.com/v/QhKI_ncKgm8" source="YouTube" width="560px" author="RelentingPeach" caption="BLIND KID PLAYING FOOTBALL WHAT THE FUCK IS GOING ON"> And this is the test from the article above. <code> test("Returned objects arguments immutable (a b)", function() { var result = lispParser("(a b)"); expect(3); ok(typeof(result) === 'object', "result is an object"); var children = result.arguments; var newValue = 2; var firstChild = children[0]; if (children[0] == newValue) { firstChild = ++newValue; } notEqual(result.arguments[0], newValue, "Underlying array was immutable"); equal(result.arguments[0], firstChild, "Underlying array was immutable"); }); </code> <img attachment="highlight_anything_you_think_seems_stupid.png" align="right" caption="Highlight anything you think seems stupid">Nothing about that test makes any sense. It will always pass. It is, in its own way, a work of art. It is the JavaScript equivalent of Chomsky's <a href="https://en.wikipedia.org/wiki/Colorless_green_ideas_sleep_furiously" source="Wikipedia">Colorless green ideas sleep furiously</a>, an example of a sentence that is <iq>grammatically well-formed, but semantically nonsensical</iq>. Honestly, this looks worse than anything I've seen my students try to write. They usually have enough shame that they don't bother filling in an answer if they really have no idea what's going on. I'm also wondering, of course, whether this is the work of an AI---or the bastard child of a poseur-programmer and an AI. The future is bright. <hr> <ft>All kidding aside, I love this kid's confidence. It's off the charts. I hope karma was gentle with him.</ft> <ft>It was the same person who sent me the little cartoon I've included.</ft>