Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum > Tech Talk
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 07-31-2009, 09:24 PM   #1
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default Anyone online that knows perl that can answer a question?

Having a problem and can't get it to work.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 07-31-2009, 10:12 PM   #2
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Nevermind I think I got it, apparently you have to escape the $ character in strings (which makes sense now that I think about it).

I hate being a n00b.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 08-01-2009, 11:46 AM   #3
llama64
First Line Centre
 
llama64's Avatar
 
Join Date: Nov 2006
Location: /dev/null
Exp:
Default

PERL - what Cat Vomit would look like if it was in ASCII

llama64 is offline   Reply With Quote
Old 08-01-2009, 02:08 PM   #4
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Tell me about it, holy crap. I'm going to rewrite this whole app at some point.

And it's not even best case scenario, the WHOLE server is one perl script with a big case statement at the front. And there's 5 copies of it on 5 URLs to handle different devices.

So whenever I make a change I have to update 5 different source files, and they're all slightly different.

Kill me now.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 08-01-2009, 02:18 PM   #5
Azure
Had an idea!
 
Azure's Avatar
 
Join Date: Oct 2005
Exp:
Default

I have to write a script with Perl too, and I'm making the Google servers crash by trying to find one that someone already made.

God.
Azure is offline   Reply With Quote
Old 08-01-2009, 03:48 PM   #6
BlackEleven
Redundant Minister of Redundancy
 
BlackEleven's Avatar
 
Join Date: Apr 2004
Location: Montreal
Exp:
Default

I had to maintain a Perl app way back in the day. I slowly ported it piece by piece to Python and got rid of the blasted thing. Saved me so many headaches.
BlackEleven is offline   Reply With Quote
Old 08-04-2009, 06:05 PM   #7
llama64
First Line Centre
 
llama64's Avatar
 
Join Date: Nov 2006
Location: /dev/null
Exp:
Default

PERL is a great tool if:
1) you can read it
2) you wrote it

If you inherit the script from some one, may God have mercy on your sanity.

PERL still reigns as the fastest, simplest text processing language that I've used. Though, one wonders if that small boost in efficiency is worth the development pain...
llama64 is offline   Reply With Quote
Old 08-04-2009, 06:32 PM   #8
photon
The new goggles also do nothing.
 
photon's Avatar
 
Join Date: Oct 2001
Location: Calgary
Exp:
Default

Yeah the script was intended as a proof of concept alpha version software, not written by me. And the guy who wrote it inherited the design from someone else who figured that stored procedures were the best thing ever so the stored procedures were already written.

So it's a hack of a hack of an alpha release.. and of course we have over 10,000 users globally on the thing now.

Good thing I spent a week sifting through the stored procedures optimizing them, otherwise we'd be offline right now. They were truly horrible.. I think 80% of the queries were requiring a full table scan, and taking dozens to hundreds of seconds to complete.. now only 5% of queries take more than 1 second

Still, hoping to get on top of all the changes and fixes so I can write a big test suite so I can then rewrite the whole thing in PHP.
__________________
Uncertainty is an uncomfortable position.
But certainty is an absurd one.
photon is offline   Reply With Quote
Old 08-05-2009, 10:22 PM   #9
sclitheroe
#1 Goaltender
 
Join Date: Sep 2005
Exp:
Default

Quote:
Originally Posted by llama64 View Post
PERL still reigns as the fastest, simplest text processing language that I've used. Though, one wonders if that small boost in efficiency is worth the development pain...
And that's why I still use AWK!
__________________
-Scott
sclitheroe is offline   Reply With Quote
Old 08-06-2009, 08:55 AM   #10
Bobblehead
Franchise Player
 
Bobblehead's Avatar
 
Join Date: Jul 2005
Location: in your blind spot.
Exp:
Default

My dept is on a long term project to convert programs that run on a MF (cobol & RPG) against a DL1 database into programs that are in VB.net against an Oracle database.

The first edict is make it work EXACTLY like it did on the MF. Then we are told to make a whole whack of enhancements. And it doesn't matter how many times we explain that if we had been allowed to make the enhancements with initial redevelopment that it would have been FAR easier. And this is still an ongoing methodology.
__________________
"The problem with any ideology is that it gives the answer before you look at the evidence."
—Bill Clinton
"The greatest obstacle to discovery is not ignorance--it is the illusion of knowledge."
—Daniel J. Boorstin, historian, former Librarian of Congress
"But the Senator, while insisting he was not intoxicated, could not explain his nudity"
—WKRP in Cincinatti
Bobblehead is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 01:55 AM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy