?

Log in

No account? Create an account
entries friends calendar profile It's Me Previous Previous Next Next
The Autobiography of Russell
Life from a different perspective
zimzat
zimzat
LiveJournal's S2 style system - not so great
I had forgotten how unorganized and unstandardized LiveJournal's example S2 code is. I've gotten so used to Smarty that the way they do it is entirely unnatural to me. Because of Smarty I've gotten used to writing a system for doing things and then writing a way to show the end user what was done, without one having to know how the other does its thing short of a easy "Here's your data, have fun" interface. Now merge those two into one thing (think PHP, pre-template system), and then try rearranging, adding, or taking something out of that. It becomes chaotic very quickly and very easily.

Of course, that's kind of understandable if you remember that the people who designed this system are the same ones who code the site in Perl. One joke I find rather amusing is that encrypted Perl code looks exactly like the original.

Basically what I'm saying is that their version of "easier to customize" is... not so much. I'm very tempted to somehow make an abstraction layer or something to that affect. What I really want to do is use the Smarty system to make the styles in. *ponders this*

Current Mood: frustrated frustrated
Current Music: None

9 comments or Leave a comment
Comments
damnitnicole From: damnitnicole Date: February 12th, 2006 10:06 am (UTC) (Link)
Hehe, this is indirectly my fault.
zimzat From: zimzat Date: February 12th, 2006 10:20 am (UTC) (Link)
Eh, not really. How do you figure that?

It'll take me a while to standardize a template, but once I've gotten that done with any changes should be very easy to do. For that specific style, anyway. *grumbles about bad coding standards*
damnitnicole From: damnitnicole Date: February 12th, 2006 10:29 am (UTC) (Link)
I figured that the reason you're playing in S2 was because you were talking to my friend about his layout, or my other friend about mine.
zimzat From: zimzat Date: February 12th, 2006 10:37 am (UTC) (Link)
Oh right, indirectly. But I'm not blaming you or anyone else for this. It's not that bad of a thing and I can deal with it... It also reminds me that the gods of LiveJournal aren't perfect; far from it, actually (nor am I any better overall).

It wouldn't surprise me if some day there was an S3. Considering that the main thing you work with in any template is HTML, wouldn't it make sense to make that the default environment rather than a secondary? (That's mostly a rhetorical question)
livemerlyn From: livemerlyn Date: February 12th, 2006 04:23 pm (UTC) (Link)

joke not so funny

Perl doesn't *have* to be unreadable, just because some people write unreadable Perl. I've seen unreadable programs in nearly every language.
zimzat From: zimzat Date: February 12th, 2006 05:20 pm (UTC) (Link)

Re: joke not so funny

True enough. I have seen some rather horrifying PHP scripts, but mostly from beginners, people who didn't care how their code looked, and/or people who thought it would stay in-house or wouldn't have to ever look at it again.

One thing I think worth mentioning, though, is that, while looking at a syntax highlighting files for Kate (Linux KDE), the complexity of Perl's syntax code was more than seven times the amount of PHP, C, or C++'s syntax code. I think that speaks volumes for the complexity of the code itself or the ease at which one can write illegible code without touching on coding standards. At the same time I wouldn't doubt that you feel it says a lot about the flexibility of Perl.

As for the joke, ... it's just a stereotypical joke. Most jokes are just that; making fun of stereotypes. There are exceptions to any stereotype -- something I know first hand, being a walking talking example of at least half a dozen breaks from stereotypical behavior. I'm sure there are some jokes about stereotypical PHP code or programmers, or anything else.
livemerlyn From: livemerlyn Date: February 15th, 2006 07:29 pm (UTC) (Link)

Re: joke not so funny

The highlighting code being more complex merely shows the complexity relative to standard regular expressions. And yet, I can very simply describe the syntax of the various Perl constructs in a beginner class. I've written far more complex C data structure references that looked like line noise than nearly anything I've written in Perl.
zimzat From: zimzat Date: February 12th, 2006 05:25 pm (UTC) (Link)

Re: joke not so funny

I am curious how you stumbled upon my journal seeing as the only thing we have in common is the lj_maintenance journal. I don't mind (I better not, haha, I read my FriendsFriends page nearly as often as I read my Friends pages), I'm just curious.
livemerlyn From: livemerlyn Date: February 15th, 2006 07:29 pm (UTC) (Link)

Re: joke not so funny

blogsearch.google.com, keyword "perl"
9 comments or Leave a comment