Camelia, the Perl 6 bug

IRC log for #mojo, 2010-11-25

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

All times shown according to UTC.

Time Nick Message
00:05 und3f is now known as und3f[A]
00:52 memememomo_ left #mojo
00:52 memememomo_ joined #mojo
02:59 marcus left #mojo
02:59 marcus joined #mojo
02:59 und3f[A] left #mojo
03:00 und3f[A] joined #mojo
03:00 gizzlon left #mojo
03:00 DaTa left #mojo
03:00 DaTa joined #mojo
03:00 gizzlon joined #mojo
03:00 Ned left #mojo
03:00 Ned joined #mojo
03:01 perlrocks Twitter: "[Perl] Mojolicious Xslate + + Skinny で MVC 开 発 环境 http://htn.to/aZDZHL" (cs) --shiba_yu36 http://twitter.com/shiba_yu​36/status/7629969844867072
03:02 perlrocks Twitter: "I tried to make their own MVC structure that allows flexibility to develop / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/aZDZHL" (ja) --shiba_yu36 http://twitter.com/shiba_yu​36/status/7630249617522689
03:05 perlrocks Twitter: "RT! Shiba_yu36: [Perl] Mojolicious Xslate + + Skinny で MVC 开 発 环境 http://htn.to/aZDZHL" (cs) --perlism http://twitter.com/perlism/status/7630820265164802
03:13 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/iKhok7" (ja) --__gfx__ http://twitter.com/__gfx__/status/7633046358458368
03:15 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/ofqfs" (ja) --memememomo http://twitter.com/memememo​mo/status/7633560630468609
03:20 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/QWjnHe" (ja) --nekokak http://twitter.com/nekokak/status/7634576872579072
03:25 mmcleric__ joined #mojo
03:29 mmcleric_ left #mojo
03:29 mmcleric__ left #mojo
03:35 perlrocks Twitter: "RT @ shiba_yu36: MVC I made myself a flexible configuration that can be developed / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/aZDZHL" (ja) --__gfx__ http://twitter.com/__gfx__/status/7638512954253312
03:37 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/otcdhr" (ja) --chris4403 http://twitter.com/chris44​03/status/7638934171426816
03:40 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/S5qKSs" (ja) --hide_o_55 http://twitter.com/hide_o_​55/status/7639652240465920
03:41 perlrocks Twitter: "[H] Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://bit.ly/f55e4X" (ja) --bb_auto http://twitter.com/bb_auto/status/7639914858418176
03:43 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World!: PerlPerl There are too many frameworks. To a very large Cataly ... http://bit.ly/e1alkd" (ja) --feed4tnk http://twitter.com/feed4tn​k/status/7640445433679872
03:43 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://bit.ly/f55e4X" (ja) --hisayadaikokudo http://twitter.com/hisayadaik​okudo/status/7640477704658944
03:43 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World!: PerlPerl There are too many frameworks. To a very large Cataly ... http://bit.ly/f55e4X" (ja) --ksd6700kp http://twitter.com/ksd6700​kp/status/7640478145056769
03:44 perlrocks Twitter: "Now you can develop a good feeling!! 1 / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/vTgBi6" (ja) --kentaro http://twitter.com/kentaro/status/7640683523346432
03:48 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://bit.ly/iiK2mr" (ja) --hayarian http://twitter.com/hayaria​n/status/7641761618853890
03:56 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://bit.ly/dJZPyb" (ja) --wPerlnews http://twitter.com/wPerlne​ws/status/7643652859887616
04:03 tholen42 joined #mojo
04:05 tl left #mojo
04:05 perlrocks Twitter: "[Perl] [mojolicious] / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/kWzmYj" (ja) --sugyan http://twitter.com/sugyan/status/7646093399560192
04:10 perlrocks Twitter: "RT! Sugyan: [perl] [mojolicious] / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/kWzmYj" (ja) --perlism http://twitter.com/perlism/status/7647174238150656
04:15 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://dlvr.it/97YZy" (ja) --HiroshiNTCS http://twitter.com/HiroshiN​TCS/status/7648528679575552
04:25 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/vTVKoz" (ja) --makotoworld http://twitter.com/makotowo​rld/status/7651012173107200
04:31 tempire__ joined #mojo
04:53 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/j6YVy7" (ja) --tnanba http://twitter.com/tnanba/status/7658102253948928
05:07 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/G7BVM3" (ja) --hakobe http://twitter.com/hakobe/status/7661556292648960
05:52 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/41Eezh" (ja) --toritori0318 http://twitter.com/toritori0​318/status/7672981476085760
06:05 kaare joined #mojo
06:28 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/oW5kNo" (ja) --kamipo http://twitter.com/kamipo/status/7681967160037376
06:30 ltriant left #mojo
06:38 ysyrota joined #mojo
06:39 yakudzo http://bit.ly/g7ULB6 for russian speakers (:
06:39 su-bzero joined #mojo
06:40 perlrocks Twitter: "If you do extremely trivial Router:: Simple:: Sinatraish or Mojolicious:: Lite is so Rakuchin." (ja) --kamipo http://twitter.com/kamipo/status/7685124741144576
06:43 kvorg left #mojo
06:51 MojoGuest153 joined #mojo
06:51 MojoGuest153 From: http://www.google.com/search?sourceid=c​hrome&ie=UTF-8&q=WebSocket+IRC (1 hits)
06:52 MojoGuest153 /whois MojoGuest153
06:52 MojoGuest153 o.O
06:54 MojoGuest153 left #mojo
07:08 MojoGuest216 joined #mojo
07:08 MojoGuest216 From: http://www.google.com/search?sourceid=c​hrome&ie=UTF-8&q=WebSocket+IRC (2 hits)
07:08 MojoGuest216 left #mojo
07:11 MojoGuest936 joined #mojo
07:11 MojoGuest936 From: http://www.google.com/search?sourceid=c​hrome&ie=UTF-8&q=WebSocket+IRC (3 hits)
07:23 koban joined #mojo
07:42 yko joined #mojo
07:47 yko left #mojo
08:22 sri :o
08:24 omega sometimes it feels like whole of japan is just one retweet bot net
08:27 yakudzo (((:
08:31 sri :)
08:44 MojoGuest936 left #mojo
08:58 su-bzero left #mojo
09:05 su-bzero joined #mojo
09:11 yko joined #mojo
09:13 yko Mojo rocks!
09:14 ysyrota yko: do you have a proof link? :)
09:15 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://ff.im/-uk4Rr" (ja) --cool_ni_ikou http://twitter.com/cool_ni_i​kou/status/7724087111589888
09:23 yko ysyrota ye.... 127.0.0.1:3000 :p
09:24 yko Making multi-level async HTTP harvest queues is a damn great stuff, I'm amazed and happy this morning
09:24 yko will try to write some samples today
09:25 yko But i don't think that async http harvesting as that thing that aeveryone need. It's much specific.
09:28 perlrocks Twitter: "http://bit.ly/fgAaqy Issues - miyagawa / Starman - GitHub click here to add a descriptionclick here to add a homepageI start a mojolicious .." (ja) --recenturl http://twitter.com/recentu​rl/status/7727218264379392
09:30 arpadszasz joined #mojo
09:50 yko Hmm. At the moment i see only one way to pass some addictional parameters between start of http request and it's callback - just make custom tx and put parameters in it as it be hash. But it's little hackish
09:56 und3f[A] is now known as und3f
09:56 und3f morning
09:56 und3f sri, seems like resolver doesn't close connection
09:57 und3f got lot of udp        0      0 64.120.190.74:36825     64.191.100.53:53        ESTABLISHED 13326/perl
09:57 und3f on check-host.net server
09:57 und3f 13326 is pid of check-host app
09:58 spleenjack joined #mojo
10:12 und3f sri, you forget to drop udp connection
10:14 yko in error callback :p
10:18 und3f in success too
10:19 yko nope only in error https://github.com/kraih/mojo/blo​b/master/lib/Mojo/IOLoop.pm#L641 :p
10:20 yko uhh, i need some cofee
10:22 sri ok, so where is a ->drop() missing?
10:23 yko https://github.com/kraih/mojo/blo​b/master/lib/Mojo/IOLoop.pm#L634
10:23 sri yko: umm, no
10:23 yko i think here, but i'm not IOLoop expert
10:23 sri error event automatically drops the connection
10:26 yko hmm. looks like that
10:28 und3f sri, but in life they are not closed at all
10:28 sri MOJO_IOLOOP_DEBUG=1 will show you when a connection is really dropped btw
10:29 sri MOJO_IOLOOP_DEBUG=1 TEST_ONLINE=1 ./script/mojo test t/mojo/ioloop_online.t
10:29 sri seems to work flawless
10:30 yko gg, und3f goes to write tests :D on the dark side
10:31 sri yea, this needs test cases, to me everything looks fine
10:35 sri MOJO_IOLOOP_DEBUG=1 perl -Mojo -E'say "$_.", g("mojolicio.us")->code for 1..1000'
10:35 sri another test to prove it
10:36 und3f i am using new IOLoop for resoling and stopping right in callback
10:36 und3f could it be a problem :|
10:37 sri umm
10:37 sri so you are building new ioloop all the time?
10:37 sri *+a
10:37 und3f sri, http://paste.pocoo.org/show/295835/
10:37 und3f yes
10:37 sri using latest github master?
10:38 sri poll mainloop?
10:39 und3f latest github. poll mainloop. server in fastcgi mode
10:40 sri :S
10:40 sri then you leak dummy handles
10:40 und3f :|
10:41 und3f what should i do?
10:41 und3f how to fix?
10:41 sri you can't
10:42 und3f also the problem were on some older version of mojo (i found problem today and updated mojo)
10:42 sri i don't believe you
10:42 yko Mojo::IOLoop->new({file => File::Temp->new->filename}) ? that dummy handles you mean?
10:42 sri yko: umm, no
10:43 yko http://korshak.name/ra/awlwrong.png
10:43 sri lol
10:43 yko :D
10:43 sri ROFL
10:44 yko haha, you noticed
10:44 sri tweet! i want to retweet
10:45 sri romantially mojolicious, thats brilliant
10:45 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/Jp894U" (ja) --satojkovic http://twitter.com/satojkov​ic/status/7746742808215552
10:46 perlrocks Twitter: "Sometimes talking on irc #mojo i whant to yell http://bit.ly/gw9se3 / romantially #mojolicious" --ykorshak http://twitter.com/ykorsha​k/status/7746857748926464
10:48 perlrocks Twitter: "rofl! RT @ykorshak: Sometimes talking on irc #mojo i want to yell http://bit.ly/gw9se3 / romantially #mojolicious #perl" --kraih http://twitter.com/kraih/status/7747411539664896
10:48 sri i fixed a typo for you :)
10:48 sri and overlooked another one ;p
10:48 sri romantially?
10:49 yko haha. it's copypaste of yours :p
10:50 yko you should chech what are you writing, people may quote you :D
10:50 yko *check :D
10:50 sri :O
10:50 * sri hides
10:51 yko hahaha
10:51 yko damn, this day has nice and fun beginning
10:52 sri http://www.youtube.com/watch?v=GzyWKWu4TLs # more fun
10:52 sri one of the best songs ever
10:57 yko in inderstood live The Mission only after listen to original version. rly cool. this one also waesome, but much more lite
10:59 und3f sri, you don't believe me?
11:00 sri und3f: yes, the leak couldn't have happened before
11:01 und3f i can check it with any mojo revision
11:03 sri und3f: you've not even written a reproduceable test yet, so i doubt it
11:05 und3f you expect that every bug report will go with test?
11:05 sri every single one
11:05 und3f uhh
11:05 und3f nou
11:06 sri https://github.com/kraih/mojo/blob/master/lib/Mojo​licious/Guides/FAQ.pod#I_think_i_have_found_a_bug,_what_should_i_do_now?
11:06 sri thats the official bug reporting process
11:06 perlrocks Twitter: "RT: @ykorshak: Sometimes talking on irc #mojo i whant to yell http://bit.ly/gw9se3 / romantially #mojolicious" --sharifulin http://twitter.com/shariful​in/status/7752045251534848
11:12 sri und3f: especially you should understand that considering the language barrier
11:18 sri that said the bug is very very easy to prove
11:20 sri if we consider it a bug
11:20 sri it is your early ->stop that makes everything leak
11:21 und3f sri, http://paste.pocoo.org/show/295846/ netstat runned after first lines received
11:22 sri und3f: you need to make it reproduceable for me
11:23 sri thats the whole point of the test rule
11:24 sri in this case it is not neccessary since i already have a test case, but generally
11:24 sri und3f: http://pastie.org/1325274
11:24 sri that will always trigger it
11:25 sri et voila, i can reproduce and fix it
11:39 sri the test case above is wrong btw ;p
11:40 sri it leaks no matter what due to $loop reuse
11:47 GitHub171 joined #mojo
11:47 GitHub171 mojo: master Sebastian Riedel * 17f2391 (2 files in 2 dirs): fixed a possible Mojo::IOLoop descriptor leak - http://bit.ly/i7OM03
11:47 GitHub171 left #mojo
11:47 sri und3f: fixed
11:49 sri your app will still leak, but thats a normal circular reference
11:54 und3f sri, but problem still exists. How to fix a problem?
11:54 und3f i still got not droped udp connections
11:54 sri see, thats the communication problem i mentioned
11:55 sri you need to now give me a failing test case and i'll show you the error then
11:56 und3f can i use netstat -udp in test case?
11:56 sri seem my example above
11:56 sri it crashes as soon as the descriptor limit is reached
11:58 sri Devel::Cycle would also show your mistake
11:59 sri trying to explain all this costs me so much time i could have spent working on hypnotoad
11:59 sri thats exactly why i insist on test cases
12:14 arpadszasz left #mojo
12:22 sri the dummy handle does not seem to leak, i have no idea why though -.-
13:02 perlrocks Twitter: "名付Keyou MSX and / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/k3zwD6" (ja) --yasuhiro_onishi http://twitter.com/yasuhiro_o​nishi/status/7781255592542209
13:17 daviddelikat left #mojo
13:22 yko sri: it could be calbacks in resolve: for example https://github.com/kraih/mojo/blo​b/master/lib/Mojo/IOLoop.pm#L640
13:35 Kulag left #mojo
13:37 sri yko: what?
13:38 yko cross-reference or something like that. actually, Devel::Cycle points on this https://github.com/kraih/mojo/blo​b/master/lib/Mojo/IOLoop.pm#L641
13:39 sri a circular reference
13:39 yko yes
13:39 sri thats what i said
13:39 sri i know thats undefs problem
13:39 yko ye :)
13:39 sri i tried to explain it
13:40 sri the communication problems are very frustrating
13:41 sri it costs so much time
13:43 sri not sure how to handle that problem in the future
13:44 sri my only options seem to be a) be evil and insist on bug reporting procedures or b) delay other open source work like hypnotoad to investigate bad reports
13:47 sri the dark side of open source :S
13:47 sri i think for catalyst i never followed up any bad reports
13:48 sri being evil might be the better choice
13:51 sri back to hypnotoad!
14:00 sri https://github.com/kraih/m​ojo/issues/closed#issue/34 # here's another good example for the problem
14:01 sri investigating useless stuff like that eats a lot of my time
14:11 GitHub110 joined #mojo
14:11 GitHub110 mojo: master Sebastian Riedel * b2dd9b7 (1 files in 1 dirs): faq update - http://bit.ly/hfD1z0
14:11 GitHub110 left #mojo
14:14 perlrocks Twitter: "When reporting a bug in #mojolicious please follow the guide it makes my life so much easier. ;) http://bit.ly/e1uIoG #perl" --kraih http://twitter.com/kraih/status/7799281444458496
14:16 perlrocks Twitter: "RT: @kraih: When reporting a bug in #mojolicious please follow the guide it makes my life so much easier. ;) http://bit.ly/e1uIoG #perl" --sharifulin http://twitter.com/shariful​in/status/7799889207496705
14:25 Kulag joined #mojo
14:52 perlrocks Twitter: "Hatena: Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://bit.ly/dWv9RW" (ja) --_newsrss http://twitter.com/_newsrs​s/status/7808845598433280
14:52 perlrocks Twitter: "☑ Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://dlvr.it/9992N # pctool" (ja) --pctoolnews http://twitter.com/pctoolne​ws/status/7808864355356673
14:55 otaviof joined #mojo
14:58 spleenjack left #mojo
15:00 kaare left #mojo
15:04 tempire__ left #mojo
15:06 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://dlvr.it/99Bz2" (ja) --yotasurf2 http://twitter.com/yotasur​f2/status/7812292968189952
15:10 und3f left #mojo
15:14 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://dlvr.it/99DGY" (ja) --my_googlereader http://twitter.com/my_googler​eader/status/7814291260444672
15:18 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://dlvr.it/99F05" (ja) --infokubo http://twitter.com/infokub​o/status/7815330407653376
15:20 perlrocks Twitter: "Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://dlvr.it/99F9H" (ja) --kyaro_os_2 http://twitter.com/kyaro_os​_2/status/7815779466612736
15:21 crab wonder what Xslate is
15:25 sri http://xslate.org/
15:25 sri template engine written in c
15:26 sri dunno when the template engine would ever be the bottleneck, but if it is that seems like a good choice :)
15:27 koban left #mojo
15:27 DaTa Template::Toolkit can easily be a bottleneck :)
15:28 sri kudos to the author for showing when xslate does not perform well http://xslate.org/benchmark.html
15:29 sri Text::MicroTemplate is a fork of Mojo::Template btw
15:29 sri (a very early fork)
15:32 spleenjack joined #mojo
15:32 sri still amazes me how the perception of Mojo::Template changed over time
15:32 sri it got so harshly criticized when Mojo started
15:34 otaviof left #mojo
15:35 sri happy thanksgiving to our americans btw!
15:36 crab now it's universally acclaimed?
15:36 sri already started to wonder why it's so empty in here in the middle of the week :)
15:36 sri crab: pretty much
15:37 crab i like it because it reminds me of Mason, which i always preferred to everything else.
15:37 sri "it's just perl"
15:38 crab i wonder if Alias is going to continue his mojo/dancer comparison anytime
15:39 sri i'm very glad i wrote Mojo::Template, because it allowed us cool experiments like begin/end blocks
15:53 fhelmber_ joined #mojo
15:53 tab joined #mojo
15:55 sri oh, finally got a gsoc t-shirt :)
15:58 tempire__ joined #mojo
16:10 arthas joined #mojo
16:10 yko sri: photo!
16:10 sri who wants to see a huge computer wearing a green t-shift? Oo
16:22 tempire__ left #mojo
16:34 perlrocks Twitter: "[IT] Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://30m.in/99QyS" (ja) --wingedlove_feed http://twitter.com/wingedlove​_feed/status/7834454349316096
16:55 ysyrota left #mojo
17:48 arthas left #mojo
17:58 spleenjack left #mojo
18:11 und3f joined #mojo
18:12 und3f is now known as und3f[A]
18:14 hkclark left #mojo
18:36 perlrocks Twitter: "Mojolicious-0.999941 http://bit.ly/fDfWY5" --BagGrande http://twitter.com/BagGran​de/status/7865097082904576
18:53 perlrocks Twitter: "[Perl] / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/NQSpip" (ja) --yasutaka http://twitter.com/yasutak​a/status/7869493489442817
18:55 perlrocks Twitter: "RT! Yasutaka: [perl] / Mojolicious + Xslate + Skinny development in MVC - Dive into the Tech World! Http://htn.to/NQSpip" (ja) --perlism http://twitter.com/perlism/status/7869893537955840
19:01 arpadszasz joined #mojo
19:20 spleenjack joined #mojo
19:24 fhelmber_ left #mojo
19:25 und3f[A] is now known as und3f
19:25 spleenjack left #mojo
19:26 perlrocks Twitter: "TIMTOW to build a #WebSocket server in #Perl http://tinyurl.com/2fogh2n #Mojolicious #POE #AnyEvent #PSGI #Dancer" --vtivti http://twitter.com/vtivti/status/7877748471107584
20:29 perlrocks Twitter: "Mojolicious:: Lite to Mojolious:: Lite get rid of the rare disease known to mis-" (ja) --aerith http://twitter.com/aerith/status/7893623395844096
20:32 sri rare disease? :O
20:32 yko O_O
20:32 sri Mojolicious::Lite to Mojolicious::Lite? :O
20:32 sri eeeeep
20:33 yko i hope it's translator issue
20:33 yko it reminds me russian analog 'Mojolicious is such Mojolicious...'
20:35 Akron joined #mojo
20:37 yko well, considering Mojolicious::Lite as rare disease not so bed. Lets spread that epidemic! :D
20:38 yko *bad
20:41 MojoGuest467 joined #mojo
20:41 MojoGuest467 From: http://www.google.de/search?sourceid​=chrome&ie=UTF-8&q=html5+irc (1 hits)
20:42 perlrocks Twitter: "Automatic translations from the #mojolicious irc/twitter bot can be quite scary sometimes. :) http://twitpic.com/3a4d9h #perl" --kraih http://twitter.com/kraih/status/7896810236411904
20:43 sri :D
20:43 crab "i used mojo for a week and now i have WARTS EVERYWHERE!"
20:43 sri oh noes
20:43 sri don't hold it that way!
20:44 yko yesterday we with my girlfriend did it with mojolicious and now...
20:52 GitHub154 joined #mojo
20:52 GitHub154 mojo: master Sebastian Riedel * 1f5dc4a (1 files in 1 dirs): very small pod update - http://bit.ly/fTrUZq
20:52 GitHub154 left #mojo
20:59 crab hm.
20:59 crab i need really rather a lot of bridges.
21:00 spleenjack joined #mojo
21:01 crab do other people do this differently? for a url like /users/12/nocs/3/state, i have a bridge that loads the user 12 object into the stash, checks that the requesting user is either an admin who is allowed to edit user 12, or user 12 himself, then another bridge that loads noc 3 (returning 404 if it doesn't exist or 403 if it doesn't belong to user 12) and finally does whatever /state wants to.
21:02 ltriant joined #mojo
21:02 crab (which, in this case--not that it matters--is to change the state of noc 3.)
21:03 sri i wouldn't have the user in the route
21:03 sri thats session usually
21:04 sri and i would have the edit action check for the role
21:04 crab where would you check that the object exists and return 404 if it doesn't?
21:04 perlrocks Twitter: "RT @ vtivti: TIMTOW to build a server in WebSocket # # # Perl http://tinyurl.com/2fogh2n Mojolicious POE # # # AnyEvent PSGI # Dancer" (de) --PerlHowto http://twitter.com/PerlHow​to/status/7902526204547072
21:04 sri edit action
21:05 crab and if you don't use a bridge, doesn't it mean you have to repeat the tests in each relevant action, thus making it morelikely to forget to test it somewhere?
21:05 sri actually i would likely handle that stuff on the model layer
21:06 sri and make all actions use the same model code
21:06 sri actions are just glue to the business logic
21:06 sri they generally don't contain it
21:07 crab hmm.
21:10 und3f is now known as und3f[A]
21:21 MojoGuest467 left #mojo
21:57 yko left #mojo
22:21 perlrocks Twitter: "#kraih: Automatic translations from the #mojolicious irc/twitter bot can be quite scary sometimes. :) http://twitpi... http://is.gd/hMWSr" --twitbotix http://twitter.com/twitbot​ix/status/7921920662052864
22:38 tempire__ joined #mojo
22:38 tempire__ left #mojo
22:43 kvorg joined #mojo
22:54 Akron left #mojo
22:57 tab left #mojo
23:10 spleenjack left #mojo
23:24 mmcleric_ joined #mojo
23:56 mmcleric joined #mojo
23:58 mmcleric_ left #mojo

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