Home Technology Reviewing the worst piece of code ever

Reviewing the worst piece of code ever

There’s an italian Fb page called “Il Programmatore di Merda” (which is willing to be translated to “The Shitty Programmer”). I esteem that page.

They in most cases fragment shitty pieces of code and memes about programming, but this day I’ve seen something rather unbelievable:

Il merdone della settimana (weekly very huge shit)

There are such lots of rotten issues in right here that I don’t know where to originate.


Within the occasion you’re a junior developer, this post will let you designate some very corrupt errors written in the code above.

Let’s write down the above code, so that we’re going to focus on about it:

Okay, I don’t no doubt know where to originate.


Let’s divide the errors above in 3 categories:

Security considerations

We are rather certain that the following code is running on the client aspect, ’cause it’s wrapped between two

Most Popular

Jerry Sloan remembered by fellow coaches Don Nelson, Phil Jackson, Lenny Wilkens

4:34 PM ETJackie MacMullanESPN Senior Writer CloseAward-winning columnist and authorRecipient of Basketball Hall of Fame Curt Gowdy Media AwardJoined ESPNBoston.com in 2010Don Nelson, the winningest coach in NBA history, had just finished a stroll on the beach in his beloved Hawai'i on Friday when a reporter informed him that his coaching contemporary Jerry Sloan had…

Nvidia apologizes and removes ‘Did it work’ meme tweet

Nvidia today apologized for publishing a tweet Tuesday which depicts a graphics card with scantily clad legs. The tweet imitating the “Did it work” meme was sent from Nvidia’s GeForce Twitter account, which has over 1 million followers. The tweet was errantly posted and quickly removed, an Nvidia spokesperson told VentureBeat. “We apologize unreservedly. This…

Kamala Harris’ NDA settlement with Terri Carbaugh raises questions

Kamala Harris in 2010. AP Photo/Damian Dovarganes This story is available exclusively to Business Insider subscribers. Become an Insider and start reading now. In 2011, then-California Attorney General Kamala Harris' office paid nearly $35,000 in a mysterious settlement with a top aide who quietly left the office, a document obtained by Insider through a public-records…

The covid-19 pandemic is forcing a rethink in macroeconomics

Editor’s note: Some of our covid-19 coverage is free for readers of The Economist Today, our daily newsletter. For more stories and our pandemic tracker, see our hubIN THE FORM it is known today, macroeconomics began in 1936 with the publication of John Maynard Keynes’s “The General Theory of Employment, Interest and Money”. Its subsequent…