...

Aug. 20th, 2002 03:50 pm
lnr: Halloween 2023 (Default)
[personal profile] lnr
...

Date: 2002-08-20 08:52 am (UTC)
From: [identity profile] simonb.livejournal.com
I worked out the "feeping" reference about 2 minutes after I posted my comment when my brain woke up :)

I'm guessing that your spreadsheet has three columns for date, stone and lb ?

For day-to-day usage I'll carry on using the web interface. However for automated stuff like the "weekly weigh in" it made sense to automate the LJ posting :)

As for perl modules being OOPy.... it does make some sense as it means that you don't have to type lots of LJ::Simple::NewEntry(\%Event) or you don't have to worry about namespace pollution if you make NewEntry a part of the main namespace of your program.

The OOP system gets around part of this as whilst you have to do things like $lj = new LJ::Simple(...) you only have to refer to LJ::Simple once. After that it is just $lj->method() to call stuff within the object.

If I'm writing modules for inclusion in my own code which will not be used outside of that code I'll normally make them export their namespace so that I can use their functions directly.

However if I'm releasing the module it makes sense to avoid namespace collisions by using OOP stuff. Especially for things like this where you have a login which occurs once and then stuff done to that login value.

November 2025

S M T W T F S
      1
2345678
9101112131415
16171819 202122
23242526272829
30      

Most Popular Tags

Page Summary

Style Credit

Expand Cut Tags

No cut tags
Page generated Dec. 31st, 2025 07:57 am
Powered by Dreamwidth Studios