?

Log in

No account? Create an account
Trevor Stone's Journal
Those who can, do. The rest hyperlink.
Disturbing Errors 
2nd-Mar-2007 09:20 am
dogcow moof!
I tried to post from the web just now and got the message [Error: Couldn't get db master at /home/lj/cgi-bin/LJ/User.pm line 2919. @ w84] (When I copied and pasted that, I got a bunch of JavaScript, even though it doesn't show up on select all. Even more odd.)

I like perl in situations where it's useful. I didn't realize that core parts of LiveJournal's website was driven by perl. But what really scares me is that I got an error in line 2919. Maybe they (a) add code comments obsessively or (b) generate User.pm with metaprogramming. But if not, a file containing 3,000 lines of perl worries me about their software engineering practices. Can only one developer work on code relating to a user at a time? Are all of their regular expressions extended with comments after each portion?

Comments 
(Deleted comment)
2nd-Mar-2007 09:32 pm (UTC)
Perl lets you write code fairly tersely. Even if 3,000+ lines were 75% comments, it's still close to 1,000 lines of perl. My day job is writing Java which is significantly less terse than perl and I start to get worried when a core class gets much above 1,000 lines with comments.
This page was loaded Oct 23rd 2018, 7:28 pm GMT.