- 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
Admin
Admin
Admin
TRWTF is expecting someone with zero real world experience to have in depth knowledge of both languages and be able to not just translate the literal code but the intent behind it. Chris is the dud here in managing people.
Admin
Python is TRWTF.
http://news.yahoo.com/python-caught-florida-chief-suspect-mystery-missing-cats-204127256.html
Admin
I don't know Python so don't know what's the quality of the code written, but if the code actually works, IMO it deserves a C or above even if it's written in a bit clumsy way.
Going for style is only needed when you aim an A. And you shouldn't be surprise to see the code doesn't work when inadequate supervision is given for interns.
Admin
Shishxty-forrr, oh hello floor. snore
Admin
Yup. This is why we have to interview (or at least go through the resumes of), on average, 70 university grads to fill one job position at my company. Alongside all the other WTF'ery we see, there are way too many who can't do anything at all unless given grade-school paint-by-numbers instructions on how to solve a problem. We'd have to dedicate a full-time staffer just to tell them what to do, they'd be a net loss in productivity.
Admin
For example whether she spits or swallows.
Admin
Admin
The real WTF is giving a crap about cyclomatic complexity.
If your code is actually that bad, and you don't know it before measuring cyclomatic complexity, you should be fired.
Admin
Admin
Good. Now tell all those Linux idiots who keep rewriting their own version of rc - are we up to startmeupd yet or is the systemd "standard" sticking for now?
Admin
Admin
Dudley also wrote paper on how to speed up your computer. I also "THOUGHT" of uninstall java, but it did not make my computer FAST.
Admin
R.I.P. RobIn Wailams.
Admin
Admin
Incidentally, the code doesn't actually work, because it doesn't substitute the variables with command line parameters.
Admin
Removing Java only made all my security warnings go away. Removing Flash made it FAST.
Admin
+1, it's another LoC-type pseudo-metric.
Admin
You wrap it in a function, and worry about the interface later. That's step 2.
Admin
Some functions will naturally be complex because of what they have to do.
Admin
I don't know, but for slow PC problem usually the better target would be to move to a less resource hogging antivirus package.
Admin
Admin
Admin
Flash player is the best software. Their team is releasing so many updates every week.
Admin
I don't even know what the point of this is. You're basically questioning why a Python interface would want to work with Perl code translated to Python.
Admin
Follow the conversation. First, the article says: "Rewriting these tools in Python would let Chris put a nice web front-end on top so his fellow developers could run the tools..."
This is confusing, as "XXXXX" writes: "I am confused...Why do you need python for a web front-end? ... So instead of just putting a web-interface onto the perl scripts, they decided to throw their perl away because ????"
The answer was basically "because a python web framework exists" and "python is easier to maintain". While both of these could be true, they don't answer why Chris needs to rewrite the scripts in order to put a web front-end on top and allow his fellow developers to run them. "Creating a web interface" and "creating more maintainable scripts" are two completely independent goals.
The point is Chris could have quickly and easily achieved the stated goal by running the web on perl and/or writing some wrappers. There was no need to make his fellow developers wait a whole summer for this while a bunch of interns rewrote all the scripts.
Admin
I misread that as "V8" at first, and was thinking "WTF? Of course you can use Google's Javascript engine on the web, that's what it was built for!"
That's probably because I've just spent all day trying to find a way to run a Javascript web app which needed 6 Gb of RAM to complete the calculation... (Before suggesting the obvious: x64 Chrome breaks horribly at 2047Mb. Yes, that whole project is a pile of WTF from beginning to end; I'd already had to bypass the chunk of C# at the start which was breaking when trying to build the list of items to process, then the client-side startup code which tried to load those 13,000 items via AJAX - all simultaneously - and the client had been promised the data by today, so no time to rewrite the remaining WTFery.)
CAPTCHA: Once the code is all replaced, I can still usitas a browser stress test.
Admin
The fail here is at the outset.
Chris started with WTF code. He told Dudley to change the language of that WTF code, without explaining why the WTF code was WTF code, or even that it was.
For those who can't tell, the reason it's WTF code is because the File::Find perl module makes the first part of that pipeline unnecessary, and
handles the last part. So it should have just been a pure perl program originally.
Instead, Dudley was told to convert languages, as if the language itself was the issue. But you can write WTF code in any language. Most of the Python code I've seen demonstrates that (as it has mostly been WTF code written in other languages, translated to Python to "make it all better", and it never does.) One needs to understand why the old was bad to be able to fix it.