Curious Perversions in Information Technology
7k followers 5 artículos/semana
Error'd: Testing 1,2,3,4,5

An anonymous friend sent us our frist test in prod for this week. And then there will be more, and more, and more. "This came up in Kaspersky's Blog's RSS. If you're lucky they might still have the error up in the original URL." I don't know if "chron" is just how "cron" translates to Russian and back, but the test appears to have succeeded....

Fri May 3, 2024 14:37
CodeSOD: Totally Valid

Greg's co-worker really wanted to make sure that a variable was correctly set to true or false. So they did this: if (isValid == true) { isValid = true; } else { isValid = false; } If isValid is true, set it to true, otherwise set it to false. isValid is a boolean in C#, so the only options it could have are true and false. The real WTF...

Thu May 2, 2024 14:07
CodeSOD: Metaception

Meta-programming- programs which generate programs- is a delightful hobby, but usually shouldn't be used in production code. Usually. I mean, if you're working in LISP, 90% of your program is going to be macros. But if you're using PHP and JavaScript, there's good odds that someone you work with has decided to combine these two tastes together to create...

Wed May 1, 2024 15:17
CodeSOD: Finding the Right Size

Zeke sends us a C# snippet from an extract-transform-load process his company uses. It's… special. private void ResizeColumn(string table, string column, int minSize) { if(null == _connection) return; string sqlReadSize = "SELECT DATA_LENGTH,DATA_TYPE,DATA_PRECISION,DATA_SCALE FROM USER_TAB_COLS WHERE TABLE_NAME = '" + table.ToUpper()...

Tue Apr 30, 2024 14:32
CodeSOD: Article tF7q2

When I first saw Nick L's submission, I thought to myself, "This is just decompiled code, so of course the names are bad." Public Function tF7q2() As String Dim SelectedtF7q2 As String = Request.QueryString("tF7q2") tF7q2 = SelectedtF7q2 End Function I mean, a name like tF7q2 can't be human generated, right? But then, the query string...

Mon Apr 29, 2024 15:04
Error'd: Enterprising Michael

Faithful Michael R. is good for a chuckle today. "I am using the free tier Infura right now but think I will go enterprisey straight away." Can't turn down a deal like that, eh?   Chris M. sent in a captcha that is neither an error nor a wtf, but it's kind of funny so here you go: "Microsoft obviously doesn't use Google's CAPTCHA...

Fri Apr 26, 2024 14:27

Crea tu propio feed de noticias

¿Listo para probarlo?
Comienza una prueba de 14 días, no es necesaria tarjeta de crédito.

Crear cuenta