bitmap wouldn't mind if mbserver was in python, because he'd be able to understand it
bitmap doesn't speak perl
nikki
learn perl then :P
ianmcorvidae
eh, perl isn't that hard
I hadn't touched a line of perl before this summer
bitmap
probably not, I just never got around to it
ianmcorvidae
and I'm certainly no perl master but I can certainly read through it
luks
I really dislike the "modern" Perl
bitmap
I have a few perl books I was supposed to read but never did
ianmcorvidae
and, well, perl itself isn't so bad... it's more Moose/Catalyst/etc
which is a different way of saying what luks just did, I suppose
nikki
luks: oh?
luks
it's trying to be too magic
ianmcorvidae
ruby syndrome? :P
luks
the funny part is that object creation is the bottleck of the current server code
which is really a wtf
ppawel joined the channel
ocharles
luks: I don't think it's *trying* to be magic, it's more that unless you want to live with a load of gotchas, you have to re-invent the rules
I'm not sure the object system is the bottleneck either, but it's a performance problem in some cases, that's for sure (and I agree, that's a shame and confusing)
Then again, I prefer Moose than Python objects, so I don't think we'll ever share opinions here :)
luks
well, the number of functions to wrap/create methods is really too large
it's hard to compose them in your head to get the global picture
I'd say that's my main reason to not like Moose
ocharles
which part has too much? our architecture, or moose's api?
luks
moose
you have to read many files to get an idea what the method actually consists of
ocharles
interesting, I honestly haven't heard complaints about Moose's api before. I mean, it's just Perl still, but with the addition of 'has', roles and method modifiers
right, but how else are you going to remove the repetition?
I think we have different styles too, I think you abstract later than I do
luks
but explicitly calling other methods, like I'd have to do in Python, or Java, or C++
by
ocharles
Yes, but then you still have to remember to call those methods, it's still repetition
luks
my problem is reading the code, not writing it :)
if I forget to call a method, it's completely my fault
ocharles
yes, but I'd rather not have that risk
because I do forget things a lot
If the framework can force that for me, then I tend to play to it's strengths
I suppose as I work on this for 6 hours a day, the structure is quite firmly engrained in my head though
luks
the edit methods in MB's controllers is what got me thinking about this recently
ocharles
the roles?
luks
roles, which dynamically create methods, that wrap other methods
ocharles
I'm not sure they are done as well as they could be. They worked ok at the time, but now they are becoming a bit hard to work with, I'll agree
luks
it was either spending hours to track it down or write what I needed from scratch
guess which one I chose? :)
ocharles
I see that more as a problem with Catalyst though, not Moose. I don't like the controller = class model anymore
luks
I see it as a moose problem
because normally you would have to call the other methods
ocharles
I prefer that a controller is a collection of objects, one for edit, one for viewing, etc
luks
I can follow such calls in my head just fine
ocharles nods
ocharles
I just haven't managed to decompose things with methods or functions and not have code diverge
Roles split stuff apart, but at least there's usually a single point to go to, you just have to spend more time to hunt it down
I'd rather spend more time understanding the abstraction rather than spending time making sure I've updated all usage of a code, especially as Perl is so notorious to parse
luks
I always struggle with that, but I just decide that I don't care and go with the more practical solution
ocharles
I don't find it practical in the long run, I find it leads to regressions and sloppy coding
because I start to get very tired of working with the duplication
luks
web code is never going to live for too long
since I started doing websites I was trying to find a way to abstract it, but then I realized it's a waste of time
ocharles
hmm, /artist/edit which works very similar to /url/edit is not going to go away
luks
it's pretty much why I accepted jQuery as something that I can use :)
all methods on a single class, what kind of API is that? :P
ocharles
basically, /artist/edit needs a form, then it needs to submit it, then it submits an edit. I could factor that into a higher order function, or I could use a role to guarantee at least the parts fit together get at pseudo-compile time
I'm curious to see how the code you wrote looked though
i'm certainly open to changing things
luks
the code I wrote was for splitting artists
ocharles
thought so, is the branch public?
luks
not yet, don't have access to the machine right now either
ocharles
ok, well push it when you get a chance
hawke_
Hmm, URL relationships will keep an artist from being deleted?
luks
yes
I wonder what happened to the artist entry linked to http://127.0.0.1/
even if it's not useful right now, at least keep its MBID
ocharles
reosarevok: ooo
hawke_
For what, though? What purpose does the MBID serve with no releases, performances, works, nothing by the artist
I should put myself in Musicbrainz, because hey, I might record something some day!
luks
I expect the releases will appear eventually
reosarevok
hawke_: the guy has a youtube channel and a myspace
So he's clearly a musician of sorts
nikki
luks: oh you're optimistic :P
luks
well, they have some tracks on myspace
nikki: oh, I don't mean added by the artist :)
reosarevok
heh
reosarevok writes (live, 2009-09-25: Parc del Fòrum, Barcelona, Spain) and imagines some Catalonian guy coming and changing it to (live, 2009-09-25: Parc del Fòrum, Barcelona, Catalunya)
nikki has been tempted to write a report for "orphaned" artists like that (or whatever word would be better)
luks
I tried keeping those live comments short
this is too long, IMO
ocharles
gps coordinates, no one can argue with that
nikki
maybe just city, country
__bartholomule joined the channel
rather than venue city country (unless of course there are two from the same day in different venues
btu that seems unlikely...
reosarevok doesn't think it is too long
reosarevok thinks it's pretty useful and nice
reosarevok
hawke_: you could add Person and UK while deleting the comment ;p
luks
heeelp
was there a decision about the remix works?
or at least, which side is winning? :)
reosarevok
luks: "different ARs or ISWC -> new related work, if not, merge" seems to be it
luks
or if I have just different remix/producer ARs, merge?
s/or/so/
reosarevok
luks: can you check it against a works DB?
luks
no
reosarevok
:(
I imagine you could merge
What's it?
nikki
some people might vote no though
nikki got a no vote because one of the works had "mix" in the name :/