- Feature Articles
- CodeSOD
- Error'd
- Forums
-
Other Articles
- Random Article
- Other Series
- Alex's Soapbox
- Announcements
- Best of…
- Best of Email
- Best of the Sidebar
- Bring Your Own Code
- Coded Smorgasbord
- Mandatory Fun Day
- Off Topic
- Representative Line
- News Roundup
- Editor's Soapbox
- Software on the Rocks
- Souvenir Potpourri
- Sponsor Post
- Tales from the Interview
- The Daily WTF: Live
- Virtudyne
Admin
Yikes, why still write code to generate lyrics of 99 Bottles of Beer like this when you can, you know, just put the whole lyrics as a string in a variable? Only total noobs would make this rookie mistake.
Admin
One of the issues today with searching for programming functionality on the internet is that it returns an enormous amount of text but no content.
Admin
I think that has been the case ever since it was even possible to search for programming functionality (or anything else, for that matter) on the Internet.
Admin
Why the parentheses? Why variables and not constants? Why not use square brackets for non standard column names which are preferred over double quotes anyway? Why have these columns named using numbers? Why oh why??....
Admin
Maybe I'm too old. In de 90s I did quite som Excel and Windows programming. It was easy to find to the point documentation with cross references that made sense. Today it is just a lot of text and you search forever to find proper use of it.
Admin
It's not so bad to look for answers on StackOverflow and the like, provided you're asking the right question. You know, like (assuming C# here, but I'm sure similar concepts exist for other languages) "How do I generate a sequential array of numbers"? (Enumerable.Range), or "How do I transform an array of numbers to a string?" (string.Join), or "Whats the best practice for constructing a string from several variables?" (interpolation)
Admin
Let me tell you a story... An intern where I work was assigned to improve this one webpage that was just a form for submitting checks if something was broken or not, so that the people using the item would do the checks in order, and so it would report if something was wrong. Before he even got started on adding one label and checkbox to the form, he rewrote the entire page of HTML as a PHP-generated page of HTML. He had parallel arrays for the element type, the element attributes and styles, the values of the labels, the value the checkbox ended up being, and so on. There were at least 10 parallel arrays and a whole mess of functions to put them together to generate a static HTML form. Plus, he thought he was really cool because he could use Vim, so that's what he used for the whole mess. Except he didn't know how to space properly, so the indentation was every-freaking-where. When we were wondering what took him so long when he just had to add one set of fields to the form and saw that... I just didn't know what to do. I'm only sad now that I didn't save that mess.
Admin
I think it's been around before t'interwebs made the disease go crazy. There's always been people who learn half dozen lines of code, refuse to learn more, and just spend their lives cutting and pasting that. Dunno how they get jobs, but they certainly do.
Admin
Yeah, I agree, and usually if someone says something dumb on StackOverflow it gets corrected by someone else.
My first suspicion for this would be a visitor to UtterAccess or ExcelExperts or something like that. They are veritable fountains of terrible code and worse advice and bork out proper forums when you are googling for how to do something properly in VBA (Yes, yes, I know the easy answer "to do it properly, don't use VBA"!)
Admin
Psh, query builders are just fancy string concatenators anyway.
Admin
A loop? No way! Don't you know that piecewise string concatenation is quadratic-time, while a single line of ... + ... + ... can be optimized by the compiler? Clearly we're looking at the work of an expert in optimization. Also, StringBuilders don't exist.
Admin
There's yet another F in this WTFFFFFF. Immutable strings datatypes cause O(n**2) behavior in code that concatenate lots of them together.
Admin
By producing actual lines of code by the dozen instead of painting silly blocks (something with nah sir, shnayder man!) on sheets of paper and complaining about expensive stupid new tools instead of complaining about allegedly outdated ones - as if eight years were a long time, and as you can clearly see, your colleagues can use them quite well, and even better the seventeen years old tools!
Admin
Concatenating immutable strings is usually performed by using a mutable string to concatenate them into anyway. How would you improve on O(mn)? (m = number of strings, n = total length of all strings)
Admin
reminds me of a story: someone was hired to work on a website for sharing music. but the idiots in charge used a VERY crappy program that produce HUGE files that would take HOURS to download...he quit when they refused to let him improve the files.