The web in a box - a next generation web framework for the Perl programming language

IRC log for #mojo, 2014-01-01

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary

All times shown according to UTC.

Time Nick Message
00:08 sri happy new year!
00:17 jberger sri: And to you too!
00:33 sri cfedde: you got a use case for ->last?
00:49 jberger joined #mojo
02:03 maxhq1 joined #mojo
02:10 klapperl_ joined #mojo
02:16 mire_ joined #mojo
03:00 maxhq joined #mojo
03:08 zivester joined #mojo
03:12 Mikey happy new year everyone, thank you for all that you do.
04:43 preflex_ joined #mojo
04:44 D4RK-PH0ENiX joined #mojo
05:58 d4rkie_ joined #mojo
06:04 jberger happy new year from Chicago!
07:00 Vandal joined #mojo
07:50 rem_lex joined #mojo
08:08 voegelas joined #mojo
08:48 ilbot2 joined #mojo
08:48 Topic for #mojo is now ????, indubitably | http://mojolicio.us | http://irclog.perlgeek.de/mojo/today
08:49 irq joined #mojo
09:02 alnewkirk joined #mojo
10:01 mire_ joined #mojo
10:19 dod joined #mojo
10:30 KindTwo joined #mojo
10:33 dod joined #mojo
10:55 sh4 joined #mojo
11:32 fhelmber_ joined #mojo
11:47 hrupp joined #mojo
11:48 maxhq joined #mojo
11:48 denisboyun joined #mojo
12:13 ka2u joined #mojo
12:15 dsteinbrunner joined #mojo
14:04 mishantil joined #mojo
14:06 mishantil joined #mojo
14:08 mishantil joined #mojo
14:10 mishantil joined #mojo
14:32 marcus Happy new year? :)
14:32 mst happy 0x7de
14:36 marcus o/ mst
14:38 memowe \o/
14:38 dotan_ joined #mojo
14:39 dotan__ joined #mojo
14:39 dotan___ joined #mojo
14:49 D4RK-PH0ENiX joined #mojo
14:49 xantus joined #mojo
14:51 xantus hey guys
14:54 marcus xantus!
14:54 marcus lnts
14:54 marcus ltns even
14:54 xantus marcus: hey,  long time
14:54 xantus I'm checking out convos
14:55 marcus xantus: cool.
14:55 xantus would love to contribute
14:55 marcus xantus: Would love to have your contributions :)
14:56 xantus where do I insert cash
14:56 xantus ;P
14:56 mst marcus is a real norwegian man and as such his anus is way too tight for that.
14:56 marcus xantus: https://github.com/nordaaker/convos/pulls - mst's anus is the apropriate place for cash
14:56 xantus mst: lol
14:57 xantus do you have git tip
14:58 xantus the perl community there is pitiful - https://www.gittip.com/for/perl/
14:58 marcus xantus: I do now :)
14:58 xantus is a 404 on /oembed  normal/
14:58 purl Hmm.  No matches for that, xantus.
14:59 xantus marcus: join the perl community - if you would
15:00 marcus xantus: I did
15:00 marcus xantus: yes, 404 on oembed is normal, batman likes it. I want to change that tho.
15:01 marcus because it gets logged in the console...
15:01 marcus 404 just means there an url that we don't have a preview for
15:06 marcus So, the perl group just requires another 120 members to be useful? :-/
15:06 marcus like that will ever happen
15:07 xantus I guess 404 is ok as long as the right headers are sent so its not cached for a long time
15:07 xantus yeah, lame
15:09 D4RK-PH0ENiX joined #mojo
15:09 xantus https://www.gittip.com/xantus/
15:09 batman crappy new year!
15:09 xantus found yours https://www.gittip.com/marcusramberg/
15:09 batman i've never felt worse.
15:09 batman :D
15:09 xantus whats your new years resolution
15:09 batman what do i like marcus ?
15:09 batman don't get it
15:09 xantus mine is 2560x1440
15:09 batman mine is make 2014 more awesome than 2013
15:09 marcus batman: returning 404 for the oembed endpoint when it doesn't find anything.
15:10 batman sorry. to drunk to compile.
15:10 marcus you're drunk today as well?
15:10 batman not found != 404 ?? doesn't make any sense
15:10 batman marcus: just woke up
15:10 marcus or still drunk from yesterday?
15:10 batman from yesterday
15:10 xantus marcus: check something for me real quick
15:10 batman i would kille for for a cola
15:11 xantus marcus: when you try to add a bank account
15:11 xantus marcus: can you be outside the us?
15:11 marcus batman: chrome thinks that 404 means you fucked up - https://www.evernote.com/shard/s22/sh/e614ef67-c1e2-4bf9-96b1-715b437976f6/3897a9f5f177125b27f38ffe713b1152/deep/0/wirc.pl---Chat---xantus-mentioned-you-in--mojo-and-iPhoto.png
15:12 marcus xantus: when you click the 'non-us' link it takes you to https://github.com/gittip/www.gittip.com/issues/126
15:12 batman i can't see fuck up in the logs. i only see 404
15:12 batman aka "not found" which is exactly what's going on.
15:13 marcus batman: I kind of disagree. The resource was found. It just couldn't process the link
15:13 mst is(GET('/batman/sobriety')->status, 410);
15:13 marcus I'd rather respond with a 204 No Content for instance
15:14 batman marcus: nah. iirc there are content
15:14 mst hmm. yes. 204 for /batman/sobriety, 410 for /mst/sanity
15:14 batman haha
15:14 xantus marcus: bummer
15:14 batman mst++
15:15 batman anyhow. back to watching back to the future
15:16 batman http://cdn.denofgeek.us/sites/denofgeekus/files/marty_and_doc.jpeg
15:16 batman it might even be better than star wars... not sure, but it might
15:16 mst back to the future is an awesomely terrible film
15:17 batman hahahaha
15:17 purl LOLCON 4 reached.
15:17 mst and I mean that with great love
15:17 batman why?
15:17 mst why what?
15:17 batman why is it terrible?
15:17 marcus 80s
15:18 batman it's probably one of the few movies that is true to time traveling.
15:18 batman i mean it's messed ut
15:18 xantus he should have said terribly awesome
15:18 batman *up
15:18 batman what does that mean?
15:18 purl That boy needs therapy.
15:18 mst I mean it's incredibly cheesy but still fun
15:18 batman ah
15:18 batman i didn't get that
15:18 batman \o/ \o/ \o/ \o/ \o/ \o/ \o/
15:18 BinGOs that's the power of love.
15:18 batman BinGOs++
15:19 xantus I'm using plex again - it has improved a lot
15:19 mst though if you want true to time traveling, 12 monkeys is way cooler
15:19 xantus and has chromecast support
15:19 kej joined #mojo
15:19 marcus xantus: My tv has built in plex.
15:19 xantus plex server
15:19 * marcus should buy a chromecast now that he has an android tablet
15:19 tianon one point twenty one jigga-watts
15:19 batman http://www.youtube.com/watch?v=-NMph943tsw
15:19 marcus Only problem is my tv is out of hdmi inputs :-/
15:19 xantus jigga-what
15:19 purl jigga-WHO?!
15:20 batman i get down and jiggy with it
15:20 batman (looking forward to getting my gf back)
15:20 batman hehe
15:20 batman big ups #mojo. you kick ass :)
15:21 DaTa aaaaaaaadrian!
15:21 xantus . /kick ass
15:21 DaTa na, wrong movie, emmeeeeeeeet!
15:21 * marcus looks forward to receiving his hoverboard.
15:21 batman oh yeah!
15:21 batman next year!
15:21 purl next year is, like, likely to have better beer
15:22 DaTa .oO( hmmm.. brewdog beer )
15:22 xantus picked up an intel galileo recently
15:23 xantus $59 and runs linux
15:23 batman linux is so...this year!
15:23 batman <3
15:23 * batman will extract him self from the interwebs now
15:24 batman sorry for ruining 2014 ;)
15:24 marcus xantus: what's the advantage over a raspberry pi?
15:24 xantus you can actually go into a store to buy one
15:25 xantus #1
15:25 xantus I think its faster right?  586 32bit 400mhz
15:25 xantus close to 800 bogomips
15:25 xantus 256mb ram
15:25 batman i want jiggamips!
15:25 marcus The shop next to my job sells pis :)
15:25 xantus uno r3 shield
15:25 xantus arduino compatable
15:26 xantus it has 1.21 jiggamips
15:26 xantus that last one could be wrong
15:28 dvinciguerra joined #mojo
15:30 tianon probably doesn't have a shoddy USB bus that absolutely everything useful runs through, including the ethernet
15:34 nornagest joined #mojo
15:37 arpadszasz joined #mojo
15:37 xantus yea
15:37 xantus mini pci on the bottom too
15:38 xantus I have a wimax card I'm going to try
15:42 sri o/
15:43 xantus hey sri
15:50 drift joined #mojo
16:13 asarch joined #mojo
16:19 good_news_everyone joined #mojo
16:19 good_news_everyone [mojo] kraih tagged v4.64 at c9eb5a5: http://git.io/EhuT3g
16:19 good_news_everyone left #mojo
16:24 abra joined #mojo
16:35 tempire joined #mojo
16:38 dod joined #mojo
16:52 sri looks like we won 2013 :) http://niceperl.blogspot.de/2014/01/metacpan-most-voted-distributions-in.html
16:53 marcus sri: and beating perl too! prety nifty :)
16:57 dsteinbrunner batman: got it working
16:58 batman dsteinbrunner: that is good news!
16:58 dsteinbrunner my last issue was that I was always starting he web app from the app dir in the past, when I started working with toad farm I was not
16:58 batman so @INC was wrong?
16:59 dsteinbrunner my template path needed to be absolute
16:59 batman oh
16:59 dsteinbrunner oh yeah.. the INC issue
17:00 dsteinbrunner not sure how that got resolved
17:00 batman that's weird. my mojo apps just knows. do you use non-standard app structure?
17:00 dsteinbrunner I'm using template toolkit
17:00 dsteinbrunner tt renderer
17:00 purl i think tt renderer is a bit of a second class citizen in mojoworld atm
17:01 batman oh
17:01 batman tt is awful :(
17:02 dsteinbrunner and a non standard path also
17:02 batman glad i haven't used that for years
17:02 batman i used to have nightmares
17:02 dsteinbrunner my designer has used it in the past
17:03 dsteinbrunner and I wanted to look into Jemplate
17:03 batman ok
17:03 dsteinbrunner but have not had time on this project
17:03 Adurah Happy Gregorian New Year!
17:04 batman time sucks
17:04 batman unles it's the back to the future time :D
17:04 marcus time is relatively sucky?
17:04 batman i think it's the bestest of movies
17:05 marcus 8.5 is a pretty high imdb rating
17:05 batman i've seen it a jiggillion times, but it's still exiting
17:05 marcus imdb things it's the 46th bestest movie http://www.imdb.com/chart/top
17:05 marcus *thinks
17:06 batman screw imdb
17:06 batman ;)
17:06 batman what to do now...
17:07 batman i had the worst sing star experience earlier today. i don't get why my neighbors haven't complained :P
17:07 batman earlier = 5am
17:07 * sri just watched broadchurch... best crime drama miniseries in a long time
17:09 * sri can't wait for sherlock to return today o/
17:10 D4RK-PH0ENiX joined #mojo
17:12 batman oh crap. is it work tomorrow..?
17:12 batman work--
17:12 al joined #mojo
17:20 marcus Work \m/
17:22 tianon Mojolicious: now more popular than perl itself
17:22 sri something something rails
17:28 user_123 joined #mojo
17:29 user_123 left #mojo
17:34 fhelmber_ joined #mojo
17:49 russum joined #mojo
17:50 batman ;)
17:53 batman oh no! i've had the browser on the wrong desktop this entire day
17:53 batman what a bad way to start off 2014...
18:02 dsteinbrunner joined #mojo
18:10 batman sri: would you take a pr that allow select_field() to allow sub { "<input..."> } as the last argument ?
18:11 wingfold_ joined #mojo
18:11 batman i'm adding extra data-whatever="..." to the option tag, which require me to craft the tags myself
18:12 batman but i would still like to use have the _validation() logic added
18:13 batman s/use//
18:13 irq Is there any event handling primer, for easy reading, which might be helpful prior to divinig into Mojo events?
18:19 mire_ joined #mojo
18:26 cooper joined #mojo
18:29 arpadszasz joined #mojo
18:39 sri batman: doubt it, what you said does not fill me with confidence
18:40 sri but you can always try getting the necessary votes
18:41 tianon batman: I'm also having a hard time figuring out what you're actually suggesting - did you mean <option> inside that sub string?  how would you use such a feature?  I think you need to explain yourself a little better ;)
18:42 * sri has never even heard of using <select><input>
18:43 sri maybe try going through marcus in the future, you two seem to be communicating better
18:44 marcus So far this is not making sense to me either
18:44 Adurah Just do what jQuery does.
18:45 marcus Guess batman had a hard night yesterday ;)
18:45 Adurah If Mojo::DOM does something different than jQuery, I become confused.
18:46 sri <fry>NOT SURE IF TROLLING OR NOT PAYING ATTENTION</fry>
18:47 tianon t(fry => 'NOT SURE IF TROLLING')
18:52 arpadszasz joined #mojo
18:52 marcus sri: why not both?
18:52 sri WHY NOT ZOIDBERG?
18:52 purl (V) (;,,;) (V)
18:57 good_news_everyone joined #mojo
18:57 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/i_UEgQ
18:57 good_news_everyone mojo/master 77f0a1d Sebastian Riedel: link to j function
18:57 good_news_everyone left #mojo
19:00 batman sorry! typo... i meant %= select_field 'yay', sub { "<option value="foo">foo</option>" };
19:01 batman brain--
19:02 meshl joined #mojo
19:02 batman %= select_field 'yay', sub { "<option value="foo" data-extra-stuff="123">foo</option>" };
19:04 jberger o/
19:04 * jberger is catching up
19:04 jberger btw, Harry Potter 3 for consistent time-travel plot
19:05 sri reminds me that i still need to watch the doctor who christmas special
19:05 batman does that example make more sense sri / tianon?
19:06 sri batman: i'll look if another core dev says it makes sense
19:06 mst batman: if you're trying to add an attribute to a generated HTML tag ... why isn't there a programmatic way to do that?
19:07 batman sri: ok.
19:07 mst YAY I CAN MAKE RAW HTML doesn't seem like a great solution
19:07 batman mst: the point is not raw html, it's that you can pass on a sub at the end
19:07 tianon what can that do that you can't do with something like   %= select_field country => [[Germany => 'de', class => 'europe'], 'en']
19:08 batman mst: you would probably use begin...end in the template and add the options with another tag helper...
19:09 batman tianon: oh. i didn't know i could do that
19:10 jberger also, I keep saying, Mojo is less Perl and more Node once you get used to it
19:10 tianon http://mojolicio.us/perldoc/Mojolicious/Plugin/TagHelpers#select_field << copied and pasted directly from sri's examples
19:10 jberger (but with all that Perly goodness too)
19:10 marcus prrrl
19:10 jberger mojo++
19:10 batman tianon: right. sorry about that.
19:10 tianon :)
19:10 marcus If Mojo existed on Ruby I might have given up Perl for good.
19:11 mst every time I try and write ruby I get an hour in and realise 2/3 of what I've typed would be generated for me under an M* object system
19:12 * batman <3 perl
19:12 mst marcus: you remember that talk I did in Oslo where I said "so how do you do X?" and the ruby attendees went "uhhhh ..."
19:13 marcus mst: You know, I hired that ruby attendee :p
19:13 mst I had a feeling I remembered that. Good. Smart kid.
19:13 wingfold joined #mojo
19:13 jberger mst: I just found your beermat beer/mat from YAPC Madison
19:13 jberger hehehe
19:13 marcus mst: https://github.com/judofyr
19:13 marcus mst: I can't remember the last time I made multi-inheritance class.
19:14 mst I almost never do either
19:14 mst that's not a restriction that bothers me, tbh
19:14 jberger marcus, at $work we use python, and their multiple inheritance as mixins now completely terrifies me
19:14 mst the only use of MI I've ever actually liked is the way DBIC does it
19:15 mst and, fundamentally, if you do that -correctly- it's basically equivalent to a role
19:15 Lucas1 joined #mojo
19:15 marcus I do miss DBIC quite a bit when doing ruby stuff too. Sequel has some good ideas, but it also has some challenges.
19:15 mst if I have my way, one day all this will be Moo :)
19:15 mst yeah, sequel's impressive for its age
19:16 mst I imagine a similar age DBIC would be more 'differently challenging' than outright better
19:16 marcus probably :) And they have good migrations.
19:17 mst DeploymentHandler works perfectly for me so far
19:17 marcus Yupp, it works for me too, but it's a different workflow.
19:17 jberger mst, my problem with the DH system is that it is absolutely impossible for me to find the code I need to hack on
19:18 mst right, I feel like migrations are a nice idea, except that I kinda dislike my classes being dependent on a sequence of external files
19:18 mst I keep meaning to spend a day or so thinking about that
19:18 mst there must be a 'best of both worlds' solution out there
19:18 marcus mst: I think they also generate a schema.rb which you can use to recreate the current state without running the sequence.
19:19 jberger then again, I could never have done Galileo's deployment system without DH: https://metacpan.org/source/JBERGER/Galileo-0.031/lib/Galileo/DB/Deploy.pm
19:19 mst jberger: hrm. did you talk to #dbix-class ?
19:19 mst I don't remember DH questions in there that frew, jnap or I couldn't answer
19:19 jberger this was ages ago, I probably did talk to someone
19:19 jberger it was a bug that riba eventually fixed
19:20 mst DH is complicated because it's pluggable as fuck
19:20 mst however, over the years I've seen every single axis of that pluggability be necessary
19:20 mst and some truly heinous hacks to get that flexibility on pre-DH systems
19:20 jberger mst, I'm not really complaining :-)
19:21 mst yeah, and I'm mostly saying "I feel your pain, but the alternatives are worse"
19:21 rem_lex|pivo joined #mojo
19:21 jberger I'm sure
19:24 jberger eventually, I'm going to rebuild Galileo as a Mango/Mandel project however
19:24 jberger probably rename it at that point too
19:25 * jberger still hopes to write an Alien::mongod
19:25 * marcus phears
19:25 jberger (with all that free time I have)
19:25 Adurah Mangoloid
19:25 mst if you're targeting postgres, why not do the document store thing inside pg for the bits where that's useful>?
19:25 marcus can you do alien::redis too while you are at it? :)
19:26 * sri hopes mongodb 2.6 gets released soon so he can rip out half of the code from mango
19:26 marcus sri: which half?
19:26 Adurah I used Mango to test session compression.
19:26 jberger marcus, is redis a single executable too?
19:26 Adurah Mango::BSON wins the serialization race so far.
19:27 sri insert/update/delete operations are being moved from the wire protocol to commands
19:27 sri s/delete/remove/
19:27 Adurah It's not the fastest, but it is the smallest.
19:29 sri half of this is going away https://github.com/kraih/mango/blob/master/lib/Mango/Protocol.pm
19:29 sri since commands are just a query operation and maybe a followup get_more
19:30 sri unsafe operations are pretty much dead then
19:30 Adurah Why they're unsafe.
19:31 mst sri: wonder how many microbenchmarkers will scream
19:31 sri TASTY TEARS
19:32 marcus jberger: redis-server is I think.
19:33 sri still waiting for them to merge with tokumx though... mongodb storage engine is a disgrace
19:36 mst right, the toku version with unsafe stuff dead ... might not be my cup of tea, but might actually be a reasonable place to store data I wanted to be able to get back later
19:39 arpadszasz joined #mojo
19:39 tianon "patented Fractal Tree® indexing technology" << this is probably one reason MongoDB hasn't merged their changes back (they'd have to buy out TokuMX to get that patented stuff)
19:39 kej joined #mojo
19:41 testing joined #mojo
19:41 testing_ joined #mojo
19:41 tianon the free, community, open source version does seem ripe for the picking though :/
19:43 tianon indeed, the patent license is already granted to the open source version
19:43 * tianon lights self on fire
19:46 * marcus uses tianon to light a candle
19:46 sri mongodb is a billion $ company now, surely they could buy tokutek if they wanted
19:48 sri actually surprised oracle hasn't bought both of them yet
19:48 mst buying just tokumx would seem a very oracle move
19:48 sri true
19:49 mst same as they grabbed innodb and sleepycat
19:56 jberger mst: something I've been meaning to ask you: is shadowcat named for the animal in ASOIAF
19:56 jberger ?
19:57 * jberger notices that tianon is burning out, stokes the coals
19:57 mst ASOIAF?
19:58 jberger a song of ice and fire, better known as game of thrones now
19:59 Adurah It's named after his cat Shadow.
19:59 marcus http://awoiaf.westeros.org/index.php/Shadowcat ?
19:59 jberger guess the answer is no then
20:01 mst I'm a huge fan of the books but only found out about them a couple of years ago
20:02 jberger this holiday I've just been reading Dunk and Egg for the first time
20:02 jberger I hadn't realized they were in the same universe
20:03 mst but I'd never seen song of ice and fire abbreviated that way before
20:03 jberger common enough online
20:04 mst the channels where I discuss books tend to be ones where people like typing out actual words most of the time
20:05 jberger its a lot to type out every time however :-)
20:05 mst after all, you can't spell literature without literat
20:05 * marcus is almost through Masters of Doom now. So good.
20:05 jberger hahaha
20:06 mtths joined #mojo
20:06 mst oh, also, I'd note that 'Game of Thrones' was a way of referring to the whole series in spaces I frequented before the TV series
20:07 jberger really? I hadn't seen that until the TV series myself
20:07 marcus GoT
20:07 marcus :p
20:07 mst well that's because you had your giant fucking acronym instead
20:08 jberger I keep using "song" because of who it refers to
20:08 mst oh, also, american mountain lions have been referred to as shadowcats for a long time
20:08 mst my parents bought me a book about them one year, it's on the office bookshelf
20:08 jberger mst: I hadn't heard that, but then again, I'm a long ways away from where there are any mountain lions
20:09 jberger anyway, I was just curious
20:10 jberger I suspect that the TV series is going to do an entire season of "Robert's War", both to fill time for GRRM and to introduce Rhaegar
20:11 Adurah Guess Mountain is an appropriate moniker, hah.
20:11 mst jberger: neither had I until I unwrapped the book
20:12 mst the actual original reason was just that mdk and I both owned black cats when we started the company
20:12 mst but there were loads of companies called black cat something, including an active (since bought out) black cat networks
20:12 mst so we were riffing on names and came up with shadowcat
20:31 asarch joined #mojo
20:37 zivester joined #mojo
20:43 irq_ joined #mojo
20:55 ivan joined #mojo
20:55 dsteinbrunner joined #mojo
21:28 * sri is actually not happy with select_field... but has no idea how to improve it
21:30 sri especially the optgroup part is not very nice
21:30 sri can't have a disabled optgroup
21:31 asarch joined #mojo
21:34 sri on the other hand, aside from a few cleanups and validation support... it exists basically unchanged since 0.9 and nobody ever complained
21:39 tianon how about allowing a hash as the first list item in an optgroup for arbitrary optgroup attributes?
21:39 * tianon sets self on fire, especially because that'd be so ugly looking
21:39 tianon *relights
21:41 * sri shrugs and puts the matches and gasoline away
21:43 kej joined #mojo
21:49 sri the hash part for optgroups is what  hate the most, adding more would suck a lot
21:49 sri for anyone wondering, example 4 http://mojolicio.us/perldoc/Mojolicious/Plugin/TagHelpers#select_field
21:51 dsteinbrunner batman: just looked back at the Ubic::Service::Toadfarm file and I am setting $ENV{PERL5LIB}
21:51 sri the code is actually surprisingly clean since the last refactoring https://github.com/kraih/mojo/blob/master/lib/Mojolicious/Plugin/TagHelpers.pm#L152
21:51 dsteinbrunner like you suggested
21:52 Adurah Would the hash make things randomly positioned in 5.18+?
21:53 tianon I was just about to mention that :P  the hash is already somewhat random in pre 5.18, even if it's deterministic
21:54 Lucas1 joined #mojo
21:54 sri one element *cough*
21:56 sri it's a pair, not really a hash
21:57 tianon ahh
21:57 tianon that makes more sense
21:58 tianon not exactly obvious from the examples and docs :)
21:59 sri you're more than welcome to design better select helpers
22:00 tianon hey, I love your select helper, I just think they need to show that the hash there is actually just a pair :)
22:00 tianon *think the optgroup example needs to
22:01 mst tianon++ # volunteering to fix the docs
22:01 tianon hahaha
22:01 tianon I'll very happily submit a PR for that if sri would merge it, but I know he likes to make the changes himself historically :P
22:02 tianon so I'm not wanting to waste his time with a PR he'll have to respond to or close
22:02 tianon and I don't mean to insinuate that it's a bad process - it gets good results <3
22:04 tianon if it's something that would have a chance to be accepted (even if I have to make some revisions to it during review - that's definitely not something I'm new to), I'll go make the PR right now :)
22:05 good_news_everyone joined #mojo
22:05 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/mhn8eQ
22:05 good_news_everyone mojo/master 5dcd1ef Sebastian Riedel: added another select_field example and fixed a typo
22:05 good_news_everyone left #mojo
22:06 tianon sri++ :)
22:07 sri yea, i'm picky when it comes to docs... but that doesn't mean you shouldn't make proposals :o
22:08 mst the thing to bear in mind is that a proposal is also a starting point for discussion
22:08 tianon you're picky about code too <3
22:08 mst even if that specific proposal isn't accepted, it makes it more likely that a good improvement will be made
22:09 mst tianon: have you ever watched House?
22:09 tianon definitely, it's a great show :)
22:09 good_news_everyone joined #mojo
22:09 good_news_everyone [mojo] kraih pushed 1 new commit to master: http://git.io/7rIQJA
22:09 good_news_everyone mojo/master e6dc209 Sebastian Riedel: fixed two more typos in select_field examples
22:09 good_news_everyone left #mojo
22:09 mst and House pretty much always makes the final diagnosis. but the ideas being suggested, even though wrong, help get him to that moment of inspiration
22:11 tianon indeed, that's an excellent way to explain sri's process :)
22:11 mst and yet you're refusing to make suggestions if they won't become the diagnosis
22:11 jberger also House is a bit of an ... ALL GLORY TO THE HYPNOTOAD!!!!
22:11 mst do you see the error in your train of thought here?
22:11 jberger :-P
22:11 sri IT'S LUPUS!
22:12 jberger IT'S NEVER LUPUS!!!
22:12 tianon mst: but I did make the suggestion - I just didn't want to go make the actual correction without just cause, too ;)
22:12 Adurah Wonder if House was the one to diagnose Selena Gomez...
22:12 mst tianon: he said *proposal*
22:12 mst tianon: the point is a PR is a concrete suggestion
22:13 tianon that makes sense :)
22:13 mst tianon: "I think they need to show it's actually just a pair" isn't really a suggestion because the key point of documentation is *how* do you show things
22:13 tianon not just a "hey you should do this", but an actual "here's one way you could do this better IMO"
22:13 tianon yeah, I see the logic, and next time I'll just PR my suggestions :)
22:14 sri none of this makes me more happy with the select_field design though :/
22:14 mst it's often worth mentioning on IRC first so it can get shot down as early as possible if it's dumb
22:14 mst but back when we were working together on Catalyst, sri and I both always did "doc patches buy you stupid question credits", because even if the patches were flat out wrong they usually made it way more obvious what was confusing in the original text
22:14 sri it's more shitty in rails though
22:15 mst jberger: House is an ass. This is not the same thing as an asshole.
22:16 mst jberger: it's the standard rule - when he tells people they're idiots he tells them why so they can fix it if they want to
22:16 jberger mst: it was a joke, and a reason to invoke the hypnotoad, I like sri
22:17 sri this is an ass http://upload.wikimedia.org/wikipedia/commons/1/18/Esel_macht_B%C3%A4h.jpg
22:17 mst jberger: oh, no, you misunderstand me
22:17 mst jberger: sri is a complete cunt
22:17 mst jberger: I was defending House
22:17 jberger HAHAHAHAH
22:17 purl LOLCON 4.5 reached.
22:17 jberger mst's comments came in just as sri's image loaded :D
22:19 dvinciguerra joined #mojo
22:20 * mst tends to get compared to either House or Ramsay, FWIW
22:32 tianon :)
22:32 tianon TIL how to contribute better to Mojo <3
22:33 sri sherlock time! \o/
22:34 Adurah I mention things that catch my eye, then sometimes good_news_everyone shows up.
22:35 tianon for anyone else who was curious at the rails select_tag disdain, google for "options_from_collection_for_select" and your eyes might just bleed :)
22:35 tianon or even just "options_for_select"
22:37 tianon much verbose, many words, such ugly
22:46 jberger oooh, sherlock! does anyone know if it is available in the US anywhere?
22:48 sri arrrrrrrr http://cristgaming.com/pirate.swf
22:50 tianon :D
22:50 jberger sri: I'm trying my best to avoid pirates of late
22:50 tianon season 1 at least is on Netflix, if you've got that
22:50 jberger and season 2
22:50 purl well, season 2 is between 1 and 3.
22:50 tianon indeed!
22:51 * mst sets purl on fire
22:51 * purl basks in the warm glow HEY WAIT A MINUTE
22:51 tianon hahaha! :D
22:51 jberger http://theoatmeal.com/comics/game_of_thrones
22:51 jberger hahaha
22:52 russum joined #mojo
22:54 tianon select_field country => \[Europe => [[Germany => 'de'], '
22:55 tianon doh, stupid enter key
22:55 tianon sorry, was just spitballing, didn't mean to send that
22:55 * tianon hides
22:55 * jberger roasts marshmallows over purl's burning carcass
22:57 sri looks like the padrino helper works just like ours, it just doesn't have optgroup support at all
22:57 sri http://www.padrinorb.com/guides/application-helpers
22:58 sri same for laravel http://laravel.com/docs/html#drop-down-lists
22:59 sri no custom attributes at all there
23:05 tianon %= select_field language => [\[Europe => [qw(de en)], id => 'europe'], \[Asia => [qw(cn jp)], class => 'foo']] << what about replacing {} with \[] ?
23:06 jberger a reference to a reference?
23:06 tianon yeah, very much less than ideal
23:06 jberger less than easy to code too
23:07 tianon just throwing out the best I can come up with to differentiate without using a hash or a new function/type (Mango::BSON style)
23:08 jberger if you need a way to detect a certain type of arrayref, I would suggest a blessed arrayref
23:10 tianon I definitely agree, but %= select_field language => [optgroup(Europe => [...], id => ''), optgroup(Asia => [...], ...)] is kind of verbose
23:10 tianon but not terribly so - I would definitely be willing to use it
23:12 jberger also, IIRC, sri is not a huge fan of thin classes
23:14 tianon what if optgroup just returned a ByteStream, and the logic for parsing the select_field structure was shared between the two functions?  then any ByteStream object would just be a direct addition to the output, and you could even do a %= t select => begin and make it work using the optgroup helper
23:14 sri indeed, but we already have a blessed array wrapper class in core ;p
23:15 sri collection *cough*
23:15 jberger %= select_field language => [c(Europe => [...], id => ''), c(Asia => [...], ...)]
23:17 sri makes me wonder if b and c should be default helpers
23:17 sri since helpers have no cost anymore
23:18 jberger and j?
23:18 purl hmmm... j is at http://www.lafferty.ca/stuff/misc/j or mendel's journal tool or the J language, http://www.jsoftware.com/
23:18 * sri shrugs
23:18 jberger most json things have a mechanism already
23:18 sri and while we're at it turn x() into a Mojo::DOM function and make it a helper too? ;p
23:19 sri HELPERIFY ALL THE THINGS
23:19 Adurah Use $, just like jQuery!
23:28 jberger which reminds me of this again: http://pastie.org/8553146
23:42 sri jberger: i want to see the documentation for that ;p
23:45 jberger "Reduces the list by calling the supplied sub, just like List::Util::reduce. Use $_->a and $_->b to access the $a and $b element."
23:46 jberger with an example, I think people would understand
23:47 jberger also, since its not going to be goto anymore, one line can be removed: http://pastie.org/8592362
23:49 sri why is "local $a; local *a = sub { $a };" one line?
23:51 sri pretty sure you could get away with local ($a, $b); and local (*a, *b) = (sub {...}, sub {...})
23:52 sri &List::Util::reduce($sub, @$_) for $self;
23:54 jberger seemed more in keeping with what I was doing for each variable, but no matter
23:54 jberger and for $self is fine
23:55 sri GOLF ALL THE THINGS
23:55 sri i'm still very sceptical of ->a and ->b though
23:56 sri if you want to propose it i'd let a vote decide
23:56 jberger it seemed to me the only way to get around the a/b problem
23:56 jberger ok, I need to snowblow ... AGAIN, but then I'll make up a patch
23:57 sri we had pretty much no snow this winter in northern germany...

| Channels | #mojo index | Today | | Search | Google Search | Plain-Text | summary