- 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
Frist!
Wait, who's phil? That's new.
Admin
Phil is a grumpy troll, sysadmin developer reliability engineer devopsy something-or-other.
Admin
Oh, thank you. The medium gray on light gray was too much for my eyes.
Admin
You know, I built a tool called TrickleDown that can do exactly this, though without nearly as much hand-holding manual coding as this. Instead, the manual specifications are written right there in the Excel sheet itself! :tropical_fish:
Admin
Someone who hasn't quite managed to get the ordering of paragraphs right. Yes, it puts the WTF at the end, but it really messes up the temporal ordering of the code snippets in order to do this.
I also don't entirely understand the significance of either code. As this means I don't know SAP, this makes me happier.
Admin
So TRWTF is the hardwired filename here, yeah?
libname quote excel "\network\share\folder\file1.xls";
Admin
Admin
SAP != SAS
And yes, you should be happy. I actually had to learn that "language" in university (don't ask why). It's beyond horrible. I'm seriously considering getting drunk right now because I was reminded of it.
Admin
:wave:
Admin
Yeah, one can wonder why they're called "universities" and not "concentration camps for programmers".
INB4 pedantic dickweedery: yeah, I know there are other courses than CS.
Here, have a :cookie:. You deserve one.
Admin
It was not a CS course, but it didn't have anything to do statistical analysis either. The professor found it "helpful" to teach us SAS nonetheless. Half of the exam was supposed to be about SAS (although the course description didn't even mention it!), so I tried my best to teach myself that crap. Then I wrote the exam, and not a single question in there was about SAS.
So not only did I have to learn a horrible, useless language in university that no CS student should ever touch, but because I believed the professor and spent quite some time on learning it, I also got a worse grade.
Admin
We had SAS as part of a statistical course. It had SAS on the exam as well. On paper. :facepalm:
Admin
Well my C course had a paper exam. And yes points were deducted for not having a clear enough semicolon at the end of each line.
Admin
I had to grade exams for a Verilog class that required students to write code on paper. I felt really bad docking points when they got stupid stuff wrong like forgetting a semicolon. Hell, I've been writing Verilog professionally for over 15 years and even I screw up syntax every day. I mean, the compiler/IDE/etc is supposed to help with that stuff, why punish students for no good reason?
Admin
:airquotes: Education :airquotes:
Admin
It was even worse. My semicolon ( ; )was not clear enough and looked too much as a normal colon ( : ).
Admin
I actually learned it in Computer Science 3 in High School. I learned enough to take an official certification test (which was extremely easy) and I got my SAS certification, after which I promptly forgot everything I knew.
Admin
Happened to me a few times, and it's just stupid. One of our exams (in which we had to write C, Prolog, Haskell and Scala on paper) was an exception, though: If the syntax was close enough and you could explain what you wrote to the professor immediately upon request, you would still get full points.
Admin
Admin
@asdf, @Luhmann On the plus side then, everything else was downhill...
Admin
Sometimes my compiler gets confused too. When it had too much to drink the previous night, the bits 00111011 just look too much like 00111010.
Admin
https://s-media-cache-ak0.pinimg.com/736x/77/09/9e/77099e99060209eda33a58858fd7b962.jpg
Admin
But you can query SAP with SAS ...
Admin
Umm.... :wtf: Are those words supposed to mean something?
Admin
I guess there are a million ways to lose your sanity
Admin
Translation:
Admin
Ah, I see. I would never have guessed that.
That write up is every bit as WTFy as the technical part.
Admin
we had this in my university as well...
you know how i solved that issue?
i went down to the local pawn shop, bought an old manual typewriter for $20, spend a few hours fishing out all the cathair from the internals, oiling it up, and adapting a ink tape cartridge for a calculator to fit and brought that thing to the exam.
show me where in the university rules it said* i can't bring a mechanical typewriter to my exams!
* make sure you get a copy of the rules from before 2008. they changed the rules in 2008 because some bitch brought a mechanical typewriter to all her finals in 2007
Admin
SAS is not a bad language, it's just taught that way.
Really, most SAS programs are written by statisticians or analysts whose goal is to get something out the door as quickly as possible. So you'll see the same kinds of poor programming practices that you'll see in any other programming language used by people who have never taken a good CD class and never had to write and maintain a "production" program.
That said:
The short three line program doesn't do all the things the long program does. It does step 1 and maybe parts of steps 2 and 3 (with no documentation, there's no way to tell just by looking at the program). It definitely doesn't do steps 4 and 5.
The excel libname function is relatively new. The old program might have been written when DDE was the only choice. Now there are much better ways.
There's a tendency for new SAS programmers to go overboard with the SAS macro language (those things that start with percent and ampersand), just because it's there. It's often not necessary.
Admin
(Could be that’s because I have a tendency to write run-on sentences with too many clauses myself, of course.)
Admin
Admin
Admin
It's nice when a language has FIXME annotations built into the syntax.
Admin
Giving your RFC 2324 compliant kettle an ethernet connection is bit unnecessary these days, no? Just hook it up to the home Wi-Fi and avoid cluttering up more of your house with unneeded cables. More portable, too.
Admin
!= SSAS != SSDS... Damn, are we running out of acronyms?
Admin
You forgot SSMS
Admin
And SaaS.
Admin
And SSDs.
Admin
That 3rd paragraph was the WORST writing I have ever seen on this site. "Tasked with a task" was as nothing compared to that ball of random-phrase mud. I had to reread it six times to figure out WTF it meant. Glad I wasn't the only one who had trouble with it.