- 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
Discourse sucks...
Admin
So ... this is a Perl script that builds a sed command? I guess that's kind of sort of funny.
Admin
To see the pattern used in internal scripts from a big ISP, though... hope it's not the one that's hosting my website :-)
Admin
Admin
Discourse, in my opinion, is the forum software of choice for sadists.
Admin
Admin
I can't comment using the Disgust system, because I refuse to enable JavaScript for this website. One reason is unicorns and shit like that.
Admin
Did someone sneak the new comment system past QA?
Admin
Admin
Seriously, if they needed to replace CS with a modern forum software, what's wrong with Vanilla? Was it just "the founder is one of Alex's buddies" or something?
Admin
Admin
No matter how wonderful Alex thinks it is, Disgrace was never meant to cater to people who are: a) paranoid about creating accounts everywhere they go; b) submerged in so many accounts+passwords they have to remember that they won't create another unless it is absolutely necessary; or c) too lazy to bother, like me. and that will lose TDWTF a good deal of usual unlogged commenters.
Granted, on CS I have to deal with Captchas. (Which are mostly on autocomplete by now.) But OTOH, I have the benefit of not having to deal with that ugly buggy poor excuse for a forum.
Admin
TRWTF is that the article page says "1 comment" but there are no comments here.
I see that some comments were erased (at least the progress bar’s "4 of 2" bug is somewhat useful), but I guess the real problem is a missing "- 1" when calculating the comments count.
Admin
If you comment that there are no comments, are you telling the truth?
Admin
Admin
TRWTF is of course that the article had been online for at least 20 minutes before VinDuv came and nothing had been posted during that time.
Not even over at CS.
Admin
Two system-generated spam to the effect of "this topic is invisible" 6 hours ago and "this topic is now visible" 1 hour ago, that aren't at all interesting, so were deleted for your viewing pleasure.
Admin
More on topic, I’m surprised that this script uses
use strict
but fails to usesystem
to runsed
(runningsed
instead of using the built-in language features is also a WTF, but quite common in my experience).Admin
Admin
Admin
Welcome to Discourse.
Well to be fair, admins certainly, and mods probably, can see them whatever state the topic is in to non-staff...
Admin
I think the best example I’ve seen of this anti-pattern was in a production Python program. This program started another process with the built-in
subprocess
module (no WTF here) and later tried to monitor if the spawned process was still alive.The sensible solution is to use the “process object” which is returned when starting a process, and call its
poll()
method. This program’s solution was to check if the string “someprogram” (the program name) was somewhere in the output of the following command:ps aux | grep someprogram | grep -v grep
.Admin
A better analogy might be using malloc and free in C++ code instead of new and delete, except in some very specific cases.
Admin
And it can be a side effect of hiring someone as Python developer who perhaps only has a Perl background.
I won't advocate against that (I have been in such a position quite a couple of times), but I would strongly advise regular code reviews in such cases.
Admin
I, personally, am generally really really reluctant to create accounts anywhere at all. Which is probably the main reason I don't have an account neither on CS nor on Discourse for this site.
Admin
sprintf
can be used for substituting into localized message. Iostreams can't unless you write the template machinery (e.g.boost::format
) on top of them.Admin
Could someone please explain what this script is trying to accomplish and/or what the implied WTF is?
All I got from the script was that it picks up a configuration file, picks a random time between 18 and 24 hours, then uses sed to stick that time in the conf file for the environment variable "run-interval". I don't know what run-interval is used for, but if it needs to be changed to a random value between 18 and 24 hours, how else would you do that except by some post-install script? Or are they implying the wtf-ery is that updates shouldn't touch conf, that changes like that should be handled by a login script or something?
Admin
It appears to be a one-off script that's executed at the end of the installation process that modifies the config file.
The modification, and what appears to be TWTF, is that the run-interval is (essentially) random at install time.
The WTF I think is that part of the config appears to be determined by a random number generator. At install time. Rather than asking/telling the uesr installing it to change it, or using a sensible default.
Admin
I thought the WTF was that it is a poor way to implement load balancing
Admin
Admin
d) semi computer literate.
I have an account on another forum that runs Dicsource. I still can't quite work out what it is meant to do and how to do a lot of things I have done on hundreds of forums over the last 15 years. Threads seem to have some sort of quad state, I assume there is new or no new posts. Beyond that no idea what the others are. IT also doesn't seem to have a simple way to 'mark all posts read', which is important as I would imagine most users don't visit too often due to it being rather difficult to use.
I'm sure I could find most of the answers on the internet somewhere, why reinvent the wheel though. I'd complain on the forum if I knew how, and didn't have to create an account.
Admin
FTFY. Of course, there's no need to discount the possibility of sado-masochism. I suspect Alex is in the best position to have a perspective on this.
Indeed. One small measure of the "success" of this train-wreck is that quite a lot of people, like me, search diligently for the link to the actual comments, not the "We want you to log in before commenting, but we are going to put so many pointless impediments in your way that you will give up, despite your best efforts" comments on Discourse.
Seriously. This is a multiple serial month-long WTF, and it's actually obscured a couple of real WTF posts of the sort we used to know and love.
If Mutt and Jeff are serious about proselytizing their product, fine.
Just, please, not here.
Admin
Admin
Admin
Reminds me of this:
http://serverfault.com/questions/348493/why-does-the-iis-worker-process-recycle-every-29-hours-and-not-every-24-hours
Admin
I'm tempted to have a Python developer review my Python code that is a rewrite of Perl code, just to see how WTF-ey it is. I usually see WTFs in my own code after going back later when I've learned a lot more about the language. It's one of those things...if you don't see places to improve your old code, then that means that you haven't learned anything and gotten better in the meantime.
Admin
I am just against change, goddamit!
Admin
Hmm, might take more Hanzo over more Discourse
We should submit some then. Although, that requires us to use Discourse, which I think most here are loathe to do
Captcha: Using Discourse causes many of us to immitto a continuous high-pitched whine
Admin
Discourse.
Admin
Admin
It's about topic history transparency, when you close / open topics or hide / show we inject those messages so people understand the pauses in conversation.
Admin
Admin