sooo, a question for you perl guys: https://bitbucket.org/metabrainz/musicbrainz-serv… seems to create a copy of the stashs pager, causing $pager->total_entries in line 185 to always be 0 (even if some release groups were loaded in line 178). is there some clever way to make pager only a reference thingie to the stashs pager or
2013-12-22 35624, 2013
nikki
a backslash is usually used to get a reference, so \$c->stash->{pager} might work, although I'm not really sure
2013-12-22 35635, 2013
nikki tends to avoid having to worry about references
2013-12-22 35618, 2013
Mineo
thanks
2013-12-22 35648, 2013
nikki wonders if that's thanks for responding or thanks it's worked
2013-12-22 35612, 2013
Mineo
although I've noticed that an easier solution seems to be to just use the length of $release_groups
2013-12-22 35616, 2013
Mineo
the former :)
2013-12-22 35624, 2013
reosarevok joined the channel
2013-12-22 35615, 2013
CallerNo6 joined the channel
2013-12-22 35623, 2013
ruaok joined the channel
2013-12-22 35624, 2013
misterswag joined the channel
2013-12-22 35634, 2013
JonnyJD_
"\$c->stash->{pager}" and I wonder why people think perl is not a "nice language"
2013-12-22 35601, 2013
nikki
complaining about perl not being pretty enough helps nobody
2013-12-22 35627, 2013
demonimin joined the channel
2013-12-22 35659, 2013
JonnyJD_
yes it does. Deciding to do parts of the code not in perl (in "some future"). And last time we discussed this, I didn't see this being acknowledged as part of a problem.
2013-12-22 35614, 2013
JonnyJD_
it doesn't help anything right now, that is true, though
2013-12-22 35600, 2013
nikki
because we should base our choices on how pretty people think the code is, sounds like a great plan
2013-12-22 35633, 2013
JonnyJD_
This is exactly what I am talking about. You don't seem to get the difference between "pretty" and easy to read and understand
2013-12-22 35646, 2013
JonnyJD_
Sorry, but this is not at all about pretty
2013-12-22 35638, 2013
JonnyJD_
It's about doing things with as few characters/lines as possible. Which is powerful, but not very "readable"
2013-12-22 35638, 2013
nikki
no, it's just about taking every fucking opportunity to complain about perl
2013-12-22 35651, 2013
nikki
if people don't like perl, they're welcome to rewrite all of mb for us
2013-12-22 35633, 2013
JonnyJD_
this is not about rewriting all of mb. This is about taking chances to change language when parts are rewritten
2013-12-22 35648, 2013
nikki
which we're already doing.
2013-12-22 35619, 2013
JonnyJD_
fine then ;-)
2013-12-22 35654, 2013
reosarevok doesn't really understand all the perl hatred. If I can mostly understand what I'm doing, it can't be that hard
2013-12-22 35602, 2013
Leftmost
I have some issues with Perl and wouldn't mind seeing MB in another language, but it wasn't a particularly constructive comment.
2013-12-22 35617, 2013
JonnyJD_
noted. Seeing that construct really ticked me off, but I didn't expect that this again would tick nikki off like that
2013-12-22 35646, 2013
nikki
I'm just sick of seeing people complain about perl every chance they get, just because they can
2013-12-22 35615, 2013
Leftmost has a love-hate relationship with it.
2013-12-22 35611, 2013
JonnyJD_
Yes.. I try to stop that.
2013-12-22 35607, 2013
JonnyJD_
Something completely different: if Olivier Kaloudoff is online or known here: kalou.net seems to be offline and with it the metaflac Picard plugin. I can host it on one of my servers, but possible this is just a temporary problem (reported for 2 days now)
haha. "OK, if Java not optimised for strings, please let me know what exactly Java is optimised for."
2013-12-22 35658, 2013
JonnyJD_
Didn't we want to stop language bashing for today?
2013-12-22 35624, 2013
CallerNo6
of course. I thought it was funny that the author(s) couldn't help him/her/themselves.
2013-12-22 35630, 2013
CallerNo6
Of course, that's a three year old page. I wonder if the performance stats are still true-ish.
2013-12-22 35648, 2013
JonnyJD_
I can only talk for python (again): the benchmark uses "+" for strings. Which is fine if you use it once or twice, but not for a benchmark (join() is faster and making an array and joining the elements is even more faster and so on...)
2013-12-22 35614, 2013
JonnyJD_
faster as in "more than 10 times faster", not "you save 1%"
2013-12-22 35615, 2013
CallerNo6
was that true in 2.5? maybe the stats were /never/ very truthy.
Also I dont know perl but when it does replace doesnt it just call a c library to do that, so its not really testing perl
2013-12-22 35622, 2013
ijabz
We have perfect right to moan about perl because weve been told for so long that perl is up to the job, when it clearly is not
2013-12-22 35637, 2013
ijabz
Its not even a programming langage really, from wikipedia 'as a general-purpose Unix scripting language to make report processing easier'
2013-12-22 35636, 2013
xlotlu
yawn
2013-12-22 35649, 2013
Cliff` joined the channel
2013-12-22 35647, 2013
reosarevok joined the channel
2013-12-22 35651, 2013
derwin
[citation needed]
2013-12-22 35603, 2013
derwin
having seen perl run gigantic applications at scale
2013-12-22 35611, 2013
derwin
I disbelieve that perl is not "up to the job"
2013-12-22 35611, 2013
alastairp joined the channel
2013-12-22 35621, 2013
murdos joined the channel
2013-12-22 35605, 2013
Cliff` joined the channel
2013-12-22 35612, 2013
JesseW_not_logge
I want to switch between three different messages depending on whether a variable is 0, 1 or more. Should I use nested ?: , given/when, or something else?