The Daily WTF
Enterprise software development gets a bad rap, especially here, because “good code” isn’t really a goal of an enterprise. Solving business problems is. And no enterprise is more enterprise than a government, and no government is more government than the US Federal government.
Which brings us to today’s anonymous submitter, who wanted to keep up on current events in US politics. While watching some recent videos of Senate proceedings, our submitter got bored watching (as one would), they pulled up the browser tools. And that’s where our WTF comes from.
So, in this code sample, each Senate committee has a different Akamai URL and ID for its videos. This is how the developer chose to represent that:
var streamInfo = new Array ( [“ag”, “76440”, “https://ag-f.akamaihd.net”, “2036803”, “agriculture”], [“aging”, “76442”, “https://aging-f.akamaihd.net”, “2036801”, “aging”], [“approps”, “76441”, “https://approps-f.akamaihd.net”, “2036802”, “appropriations”], [“armed”, “76445”, “https://armed-f.akamaihd.net”, “2036800”, “armedservices”], …, [“arch”, “”, “https://ussenate-f.akamaihd.net/”], [“uscp”, “”, “”,
To read the full article click on the 'post' link at the top.