Camelia, the Perl 6 bug

IRC log for #mojo, 2010-09-17

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

All times shown according to UTC.

Time Nick Message
00:48 dotan left #mojo
02:35 janus left #mojo
02:38 GitHub21 joined #mojo
02:38 GitHub21 mojo: master Jan Jona Javorsek * 6c6ebc6 (2 files in 2 dirs): added selection tag helper
02:38 GitHub21 mojo: master Sebastian Riedel * 506dd20 (4 files in 4 dirs): cleanup
02:38 GitHub21 mojo: master commits a513ea9...506dd20 - http://bit.ly/djxHFF
02:38 GitHub21 left #mojo
02:40 perlrocks Twitter: "And even more tag helpers added to #mojolicious. :) http://bit.ly/cpBD7p #perl" --kraih http://twitter.com/kraih/status/24722135306
02:44 GitHub3 joined #mojo
02:44 GitHub3 mojo: master Sebastian Riedel * f22b980 (1 files in 1 dirs): cleanup - http://bit.ly/9vyNVI
02:44 GitHub3 left #mojo
02:52 ltriant left #mojo
03:10 sri gah, nerdtree keeps crashing :S
03:30 tempire crashing?
03:33 Foxcool joined #mojo
03:33 sri yea, lots of gibberish
03:33 Foxcool left #mojo
03:34 sri once i hit enter it kinda works again, but i keep hitting these annoyances
03:34 sri nerdtree toggle often doesn't work
03:34 sri perl highlighting is crap
03:35 tempire strange.
03:35 tempire never had a problem with nerdtree
03:35 sri once i trigger perltidy highlighting always gets screwed up for some time
03:39 sri i think i might have to switch back :(
03:39 tempire !!
03:40 sri i really thought vim was more powerful
03:40 sri it actually feels very fragile
03:48 ltriant joined #mojo
03:49 tempire I won't disagree with that
03:49 tempire But I've not seen anything that comes close to its promise
03:49 tempire other editors/ide's depend too much on the mouse
03:55 sri syntax highlighting is horrible actually
03:55 sri i don't mind using the mouse
03:56 sri not being able to properly highlight embedded code sucks
03:56 janus joined #mojo
03:56 sri no smooth scrolling sucks
03:58 sri even if i master all the shortcuts, i still see a lot of those limitation slowing me down
03:58 sri *+s
04:03 tholen42 joined #mojo
04:05 tholen left #mojo
04:20 GitHub82 joined #mojo
04:20 GitHub82 mojo: master Sebastian Riedel * c38c6e7 (1 files in 1 dirs): cleanup - http://bit.ly/9dnSQg
04:20 GitHub82 left #mojo
04:44 koban joined #mojo
04:44 koban left #mojo
05:03 Alias_ joined #mojo
05:32 Foxcool joined #mojo
05:50 kvorg joined #mojo
06:07 dri1ink left #mojo
06:12 Rhaen good morning.
06:25 Alias nerdtree?
06:27 Rhaen thats a plugin for vim
06:27 Rhaen which gives you a nice file tree to browse
06:37 ltriant left #mojo
06:48 kvorg left #mojo
06:49 esskar left #mojo
06:52 esskar joined #mojo
06:56 esskar moin
07:01 Yappo w 60
07:02 perlrocks Twitter: "Good morning timeline. Today I will work to clear my # mojolicious documentation. Let's see how far I get. Format?" (de) --rabenfeder http://twitter.com/rabenfeder/status/24737730217
07:05 perlrocks Twitter: "RT @ raven-feather: Good morning timeline. Today I will work to clear my # mojolicious documentation. Let's see how far I co ..." (de) --esskar http://twitter.com/esskar/status/24737856460
07:12 perlrocks Twitter: "Which format is the right one for the #mojolicious documentation? I'll vote for pod. #perl" --rabenfeder http://twitter.com/rabenfeder/status/24738205904
07:21 perlrocks Twitter: "@rabenfeder POD it is! #perl #mojolicious" --esskar http://twitter.com/esskar/status/24738578749
07:34 Rhaen ah!
07:34 Rhaen awesome.
07:34 Rhaen moin esskar
07:35 Rhaen guys, I am writing on a fair low level stuff documentation
07:35 Rhaen like: how to use the templating system
07:35 Rhaen et
07:35 Rhaen etc
07:35 Rhaen so just the basics, nothing fancy, just to give people the chance to see smaller code pieces
07:35 esskar sounds good
07:36 Rhaen Should I write it inside the Mojo namespace or should I choose a totally different one?
07:36 esskar maybe Guides
07:36 Rhaen Like: Mojolicious::Guide::*
07:36 esskar http://github.com/kraih/mojo/tre​e/master/lib/Mojolicious/Guides/
07:36 Rhaen hm, sounds resonable.
07:37 Rhaen k, I'll already forked it on Github and send some doc patches and pull ups, let's continue that way
07:37 Rhaen I'd like to see something like the catalyst documentation stuff
07:38 Rhaen which is just of awesome quality!
07:38 Rhaen well, outstanding actually
07:39 esskar wasn always that way
07:40 Rhaen jepp, I know. I contributed to their advent calendar
07:40 Rhaen I packaged the catalyst stuff for the NetBSD project, etc.�
07:40 jest joined #mojo
07:51 Rhaen crap. I had a alot of "When I ....I ..." inside my documentation
07:51 Rhaen hmpf, I have to rewrite that.
07:52 Rhaen I was more on a beginner guide
07:54 esskar ;)
07:54 esskar where is no I in mojolicious
07:54 esskar well there is, but ...
07:54 Rhaen so, help me out with ideas :) or I rmrf my docs.
07:54 Rhaen :)
07:55 esskar where?
07:55 Rhaen hang on. I'll send you a sample link. Have to upload that stuff
07:55 Rhaen somehwere.
07:55 Rhaen hm, pastie, hang on
07:55 * esskar points to github ...
07:56 esskar pastes get lost in the void
07:56 esskar anyone registered at freelancers.com ?
07:56 Rhaen not me.
07:56 esskar the spam me with new projects every 30 minutes
07:56 Rhaen That's just an example on how it looks like so far
07:57 esskar projects with a huge description, budget $30-$250
07:57 esskar strange
07:57 esskar Rhaen put it on github; push often
07:57 Rhaen k.
07:57 esskar so i can follow you and leave comments
07:58 Rhaen you can comment on "my" code - my fork I mean?
07:58 omega everyone can :)
07:58 omega on commits
07:58 Rhaen ok, I'll commit one example soon.
08:00 Rhaen nah, I'll open an Example section.
08:03 Rhaen esskar: http://area51.rabenfedern.de/wiki/doku.php
08:04 Rhaen yeah, I know - it's a docu wiki
08:04 Rhaen I made this examples during my beginnings with mojo
08:04 Rhaen I decided to stay with short examples which actually do work on it own
08:05 Rhaen nothing big, nothing fancy just to show code to my mates
08:05 esskar is this pod renderer?
08:05 Rhaen like: hej, I have a simple scalar, how do I pass that to the stash and how can I get it back out
08:05 Rhaen from the view
08:05 Rhaen esskar: oh, it's the buildin perl thing from dokuwiki
08:06 Rhaen just to show you a brief example of the style
08:07 esskar i would to like: writing templates is like writing perl.
08:08 esskar so that people understand, that they can you the same technique they use in perl adopt to there templates
08:08 Rhaen yep, actually it is in a way but with sepcial things. :)
08:08 esskar s/can you/can use/
08:08 Rhaen like put the '%' sign in the first column and don't indent that.
08:09 esskar you can now (btw) ;)
08:09 Rhaen ah :)
08:09 Rhaen ok.
08:10 Rhaen hm, think I will stick with the wiki for now.
08:10 Rhaen hm, I am indifferent.
08:13 Rhaen ideas?
08:15 dotan joined #mojo
08:17 spleenjack joined #mojo
08:21 esskar i do not understand normal apps; my startup is called at every request, not only when the server starts
08:22 Rhaen ?? what startup?
08:22 esskar package App; sub startup { } 1;
08:23 Rhaen who codes this way?
08:24 esskar me :)
08:24 esskar started a bigger project
08:25 Rhaen ah :)
08:25 Rhaen why not call it init? :)
08:25 esskar tried to do normal app, not lite_app
08:27 esskar because init will never be called
08:28 Rhaen hm, sub startup { return $self->init(); }
08:29 esskar whats the point?
08:29 Rhaen nothing, just kidding aroun.
08:30 Rhaen d
08:30 Rhaen didn't want to be offending
08:30 * esskar slaps Rhaen
08:30 Rhaen *ouch*!
08:35 esskar sri, vti why is startup called more than once with daemon ?
09:08 arthas joined #mojo
09:17 Rhaen puh!
09:47 esskar !tweet it's hot in here. #mojolicious
09:47 perlrocks esskar: http://twitter.com/perlrocks/status/24744862109
09:47 perlrocks Twitter: "it's hot in here. #mojolicious --esskar" --perlrocks http://twitter.com/perlrocks/status/24744862109
10:11 esskar !seen everybody
10:33 esskar sri, startup test http://perlpunks.de/paste/show/4c9342e7.1d59.115
10:33 esskar sri, endless loop when no route exists http://perlpunks.de/paste/show/4c934334.20ca.1a7
10:39 ysyrota joined #mojo
10:40 dotan left #mojo
10:41 koban joined #mojo
12:06 koban left #mojo
12:06 koban joined #mojo
12:20 kvorg joined #mojo
12:30 Rhaen omg!
12:38 esskar whoot?
12:42 Rhaen oh, I am moving forward with my doc stuff
12:42 Rhaen it's a ..well...not too stressy day here
12:42 esskar its boring
12:45 Rhaen just finished a small ORLite example, the docs are growing
12:45 koban left #mojo
12:45 Rhaen http://wiki.rabenfedern.de
12:46 koban joined #mojo
12:50 perlrocks Twitter: "Wha... when the hell did #Mojolicious get this easy to deploy on #Apache? No RewriteRules? No separate .cgi dispatcher script?? #Perl #win!" --doubious_code http://twitter.com/doubiou​s_code/status/24754815237
12:50 Rhaen haha :)
12:59 arpadszasz joined #mojo
13:00 koban left #mojo
13:00 polvo joined #mojo
13:17 awnstudio-h left #mojo
13:23 Rhaen puh!
13:35 go|dfish left #mojo
13:41 esskar sri, helpers should get AUTOLOADed into Mojolicious
13:42 siegfri3d joined #mojo
13:42 esskar not only into Mojolicious::Controller
13:43 esskar so other plugins can call them in register
13:50 perlrocks Twitter: "Documenting Mojolicious - a webframework. join me! http://bit.ly/drMKGs" --rabenfeder http://twitter.com/rabenfeder/status/24759393862
13:51 perlrocks Twitter: "Documenting Mojolicious - a webframework. join me! http://bit.ly/drMKGs #mojolicious #perl" --rabenfeder http://twitter.com/rabenfeder/status/24759461268
13:52 und3f[A] is now known as und3f
13:52 Rhaen hu.
13:52 Rhaen spamming the world.
13:53 esskar guess so
13:53 esskar where tf is everybody today?
13:53 esskar i'm missing the talks
13:54 Rhaen well, time to get something to eat :)
13:56 Rhaen ok, blog post is out, too
13:56 Rhaen so, now we just need to wait for the ironman server to spider it
13:56 Rhaen very nice.
13:58 jest left #mojo
14:26 sri i'm right here :)
14:27 sri but the whole week has been very slow, many people on vacation
14:27 Rhaen aha.
14:27 Rhaen sri: I wrote some beginners documentation. Let's see if people will contribute to it, maybe it can make its way inside the mojolicious pod dcs
14:28 sri nice
14:29 Rhaen url is wiki.rabenfedern.de
14:31 sri templating stuff looks like it would fit into the rendering guide
14:32 sri the vim and orlite sections seem a bit too specific, unsure where they would fit in
14:33 Rhaen maybe all in one example. Like: scalar, hashref - should be good. just to show people that it's normal perl inside the templating
14:33 sri can't have too many examples
14:34 Rhaen true. the ORLite stuff is something for a github example (like the one I did on http://github.com/rhaen/Bicycle-Workshop for MooseX::App::Cmd)
14:34 sri yea
14:34 Rhaen it leaves you with a small portion of working code to play around with it.
14:34 sri oh btw. we could use a list of github examples for our wiki :)
14:34 Rhaen true :)
14:35 vti http://github.com/vti/mojo-faq-addition/blob/m​aster/Proposed%20Additions%20To%20The%20FAQ.md
14:35 Rhaen huh, everyone can edit "your" wiki?
14:35 sri ye
14:36 Rhaen hm, but it's not included in the git repo if I clone it, right?
14:36 sri vti: some of those are quite outdated :)
14:36 sri don't think so
14:36 Rhaen Should be something like Mojolicious::Guides::PoweredBy.pod page, hm?
14:37 xantus_ joined #mojo
14:37 sri it's supposed to work like a git repo with a wiki frontend
14:37 xantus_ hi hi
14:37 vti sri: i know, shame on me :(
14:37 sri not a guide, just a wiki page
14:37 xantus_ whats this
14:37 sri http://github.com/kraih/mojo/wiki
14:38 sri a page here where people can add their mojolicious example apps
14:38 Rhaen sri: I wonder if we could do with another doc section
14:38 sri Rhaen: like?
14:38 Rhaen Personally I'd like to have everything included when I install a module.
14:39 sri generally yes, but i'm not so sure about lists that depend on the outside anyway
14:39 xantus_ sri: I sent you something
14:40 sri \o/
14:40 sri xantus_: thanks :)
14:40 vel joined #mojo
14:40 xantus_ its not much, but any little bit helps
14:41 Rhaen sri: true! Maybe a short mention inside the FAQ and a link to the wiki might do the job as well
14:41 sri a nice gesture that does wonders for motivation
14:41 sri Rhaen: that sounds much better
14:41 sri or even a link to the wiki from Mojolicious.pm
14:42 sri or Mojolicious::Guides
14:42 sri "See our wiki for more..."
14:43 xantus_ woot, red dead is getting multiplayer poker!
14:43 Rhaen yup, the best explanation for not including the links themselves inside the docu is their frequent changes
14:43 sri right
14:44 Rhaen ok - now something completely different - I need to work.
14:45 sri oh noes
14:45 sri and i'm switching back to textmate :S
14:45 Rhaen oh, btw. do you have your tmbundle for mojolicious online somewhere?
14:45 sri yes, on github
14:45 Rhaen or the settings for it? :) *smiles*
14:46 Rhaen ah, github, I already heard of it.
14:46 sri http://github.com/kraih/mojo-tmbundle
14:46 xantus_ sri: don't switch back! :(
14:46 sri vim is too limited i'm afraid
14:46 sri highlighting especially is driving me nuts
14:47 xantus_ highlighting lines?
14:47 sri vim keeps forgetting the right highlighting after perltidy for example
14:47 sri it randomly highlights wrong too
14:47 xantus_ shift-v ?
14:48 sri and it can't highlight embedded perl different than normal perl
14:48 * esskar pokes sri
14:49 * sri pokes esskar back
14:50 esskar seen my tests?
14:50 xantus_ hm, ok
14:51 sri for some reason i also keep making nerdtree spew strange error messages
14:51 Rhaen hm, works for me. What are you doing with it?
14:52 sri i might have kept it open too much
14:53 Rhaen too much open?
14:53 Rhaen I am working with it all the time.
14:53 Rhaen no problems so far.
14:54 sri i have no specific scenario, think it has something to do with split view
14:55 sri at some point it takes over the whole screen, spews errors and refuses to reset
14:55 kvorg sri: i am back to tag helpers, if you are not annoyed with the topic yet
14:55 xantus_ oh, I wrote a mojo client request cache yesterday
14:55 sri oh noes, which helper this time? :)
14:55 sri esskar: nope
14:55 kvorg i noticed the current version does not support checkboxes for a single name, where you get multiple values in an array
14:55 xantus_ it was super simple to do :)
14:56 kvorg it is a nice small patch only triggered in that case (no additional slowness or spaghetti), i can submit it with tests if that is ok
14:56 esskar sri, startup test http://perlpunks.de/paste/show/4c9342e7.1d59.115
14:56 esskar sri, endless loop when no route exists http://perlpunks.de/paste/show/4c934334.20ca.1a7
14:57 sri esskar: startup running multiple times?
14:57 xantus_ I write $self->res out to a file...and when retrieving it, its just $self->res->parse( contents ); and $self->rendered
14:57 sri esskar: it's a feature of --reload
14:57 xantus_ BOOM
14:57 esskar is see
14:57 esskar what about the idea "helpers should get AUTOLOADed into Mojolicious"
14:58 sri xantus_: i've thought about writing the content into static file in the public directory with the same request path :)
14:58 esskar but are tests reloaded?
14:58 sri esskar: don't like that
14:58 sri app and controller need to be as separated as possible
14:58 sri there is a lot of potential for confusion
14:58 xantus_ sri: cool.  I went with sha1 sum of the url, method and params
14:58 esskar but there is no godd way to call a helper from somewhere else then a controller
14:58 xantus_ then I ETag the response with it
14:59 xantus_ and check if the header If-None-Match is the hash and 304 it
14:59 sri esskar: why would you call a helper at startup?
14:59 xantus_ on subsequent requests
15:00 sri in plugin hooks you always have a controller
15:00 xantus_ but I'm proxying for a web client for localhost dev
15:00 sri xantus_: make it a plugin :)
15:00 esskar but maybe you want to define something static, adding the same stuff on every request makes not always sence
15:01 sri esskar: example?
15:01 xantus_ I may do that
15:01 sri almost all of our helpers even depend on a controller object
15:01 sri they would be bound to crash
15:01 xantus_ but as a cached Mojo::Client plugin
15:01 esskar in my resolvers, i only want to bind somthing only once to a callback, and not on every request
15:02 sri esskar: i can't really follow, but i'm quite sure you want something more custom than helpers
15:03 esskar weill, i'm trying to work with stuff i have
15:03 sri helpers are tied to controllers
15:03 sri it just wouldn't work
15:03 esskar other idea, make the instance of the plugin available
15:05 esskar so one could access $app->plugins->loaded->{some_plugin}
15:05 sri what about plugins that get loaded more than once?
15:05 esskar why?
15:05 esskar ;)
15:05 sri with different configurations
15:06 esskar ah, well, never thought about that
15:06 sri lets say an embedded app, loaded under two different routes
15:06 xantus_ how long does mojo wait before giving up on a request (long poll)
15:06 xantus_ to return data
15:06 sri timeout, 5-15 seconds
15:07 xantus_ I'm seeing 5s
15:07 sri think it's using the keepalive timeout value
15:07 sri seems right
15:07 xantus_ the server keepalive
15:07 xantus_ k
15:07 kvorg what is the best way to specify root part for all URIs of a Lite app? i want to set this in JSON config.
15:08 sri under $root;
15:08 sri my $root = $config->{root};
15:08 esskar store them in an array maybe if they have the same name? maybe?
15:09 kvorg i knew it was embarrasingly simple ... thanx
15:09 esskar wll, i will work around it
15:13 sri esskar: hmm, no routes is actually an untested case i never tried :)
15:13 xantus_ ah HAH
15:13 xantus_ I can adjust the connection timeout just for the longpoll connection
15:13 esskar sri :)
15:14 esskar i forgot to define one
15:14 sri xantus_: through the ioloop?
15:14 sri that should work yes
15:14 xantus_ yep
15:15 sri i thought about how to handle graceful shutdown of websocket/longpoll connections btw
15:15 sri think i'll give them a hard timeout for graceful shutdown
15:15 sri so after say 20 seconds it becomes a hard shutdown
15:15 sri (configurable)
15:16 xantus_ hm
15:17 sri so if you really wanted you could set it to like 2 hours or so
15:18 sri keeping old processes around to serve websockets to infinity doesn't seem very nice
15:19 sri i want a safety net to make sure the server can always recover by itself
15:20 sri esskar: actually it's not an infinite loop
15:20 sri test case "perl -Ilib -Mojo -e 'app->start' get /"
15:20 sri it simply waits for a delayed response
15:20 sri perfectly fine imo
15:21 esskar ok ..
15:21 sri static requests for a plublic directory would just work
15:21 sri *-l
15:21 esskar changed my plugin interface, to get my result http://github.com/esskar/luzy/commit/45​acf0a2a90af0c3140a250a13f74fb50017ddfb
15:22 sri esskar: looks like a good solution
15:23 sri since you can make your app specific plugins follow stricter rules without problem
15:23 esskar jep
15:24 sri kvorg: i'm not sure about radio button groups
15:25 kvorg radiobuttons are exclusive
15:25 sri kvorg: there is no standard way to add a description for each, you would have to come up with something using a div or so
15:25 kvorg checkbox button groups is what i am talkign about
15:25 sri oh
15:25 kvorg sorry, probably me not being clear
15:26 sri unsure about that too
15:26 sri kvorg: maybe make it a separate plugin for now
15:26 kvorg sorry, probably me not being clear
15:26 sri then we'll see
15:27 sri i'm open for more advanced form helpers, but i'd like to see them get tested in the real world first
15:28 kvorg ok
15:28 keith joined #mojo
15:28 * kvorg goes home ...
15:29 sri the vti development model
15:29 sri whenever he releases a module i soon after merge it into core :D
15:30 Rhaen hahaha :)
15:30 Rhaen 0wn3D!
15:30 Kulag left #mojo
15:30 Kulag joined #mojo
15:30 koban joined #mojo
15:31 koban left #mojo
15:31 esskar sri, about the startup, does tests get reloaded?
15:31 sri esskar: oh that depends
15:32 sri (on the Mojo::Test instance)
15:32 sri if it keeps the app instance alive
15:33 sri a lot of our tests wouldn't work if it randomly reloaded the app though
15:33 sri so i'm quite sure it works as it should
15:34 kvorg left #mojo
15:36 sri friday evening, bbq time :)
15:40 * esskar leaves
15:53 arpadszasz left #mojo
15:57 arthas left #mojo
15:58 xantus_ mmm, bbq
15:58 xantus_ wtfbbq!
16:08 tempire_ joined #mojo
16:33 Rhaen $self->home;
16:34 Rhaen bbl
16:34 GabrielVieira2 joined #mojo
16:36 spleenjack left #mojo
16:37 xantus_ left #mojo
16:39 GabrielVieira left #mojo
16:52 ysyrota left #mojo
16:54 esskar_ joined #mojo
17:13 Foxcool left #mojo
17:44 dotan joined #mojo
17:46 spleenjack joined #mojo
17:51 polvo if a post or get variable defined several times, mojo creates an array of these variables values. how do i stop this behaviour?
17:52 sri you can't
17:52 sri calling param in scalar context will always give you the first one though
17:57 dotan left #mojo
17:57 tempire_ I have never used perltidy before
17:57 tempire_ This is amazing.
17:58 sri :o
17:58 sri make sure to use our perltidyrc
17:58 tempire_ I just follow whomever's rules manually.
17:58 tempire_ it's easy enough.
17:59 tempire_ but now I can reformat other people's code with a keystroke.
17:59 sri i always have perltidy mapped to a shortcut in my editor :)
17:59 tempire_ you had problems with highlighting after using perltidy in vim?
17:59 sri ye
17:59 tempire_ I'm not seeing anything
18:00 tempire_ random inconsistencies, I guess?
18:00 Htbaa joined #mojo
18:00 sri dunno, i've used it a lot in lite_app.t
18:00 sri which is a huge file
18:00 sri also had lots of trouble in pod documents
18:01 sri highlighting would completely screw up sometimes
18:01 tempire_ strange.  I don't see any problem.
18:02 tempire_ wonder if vti has had the same result.
18:17 polvo sri, calling scalar() on it returns an array anyway...
18:17 sri polvo: i doubt that
18:18 sri polvo: that would be a serious bug, can you provide a test case?
18:18 sri it will be fixed in 5 mins then
18:20 polvo sri, i might misunderstand something. my $p = $self->req->params->to_hash; my $id =  scalar($p->{devtype_group_id}); print $id; -> ARRAY(0x29b531a4)
18:20 sri umm
18:20 sri yea, thats very wrong :)
18:21 sri my $id = $self->param('devtype_group_id');
18:21 sri thats all you need
18:21 sri scalar context makes sure you get the first
18:22 polvo sri, hm. can i get all params into a href?
18:22 sri hashref?
18:22 polvo yes
18:23 sri multiple values will go into an arrayref then
18:23 polvo eh...
18:24 sri i'm not sure why you would go that painful way
18:24 sri why a hash?
18:25 polvo sri, well, rewriting all variables from $p->{} to $self->param(); is a pain )
18:25 * sri can't follow
18:26 sri you either use ->param or check for multiple values manually, those are your choices
18:27 polvo sri, why a hash? shorter notation :)
18:27 sri i don't get it
18:28 polvo sri, $p->{something} is less characters that $self->param(something) :)
18:28 sri oh my
18:29 sri my $p = sub {scalar $self->param(shift)}; $p->('foo');
18:29 sri (not that i would suggest that)
18:29 dotan joined #mojo
18:29 tempire_ I'm going to start wrapping all scalar assignments in sub references.
18:30 sri byte counting always hurts maintainability, there is a line you shouldn't cross
18:30 polvo sri, well, it's just code writing convenience
18:31 sri it costs you somewhere else
18:31 sri or somewhen else
18:31 polvo sri, less typing. nicer variable names, which don't consume half of your screen -)
18:31 sri (is that correct english?)
18:31 tempire_ somewhen?
18:31 tempire_ no
18:31 polvo whenever?
18:31 tempire_ but it's understandable slang.
18:31 tempire_ comes across as a joke.
18:32 sri :)
18:32 tempire_ "can't follow" is weird, too, at least from a US perspective.
18:32 tempire_ unless you're intending to say that, what you probably mean is, "doesn't follow"
18:32 sri ah, it's common in german
18:32 sri oh
18:33 * sri takes notes
18:33 sri "can't follow" is a direct translation of the german "kann nicht folgen"
18:34 tempire_ everything in german sounds like a threat to me.
18:34 sri lol
18:34 tempire_ Like all statements should be suffixed by a !
18:34 sri !!!
18:34 tempire_ kann nicht folgen!
18:35 tempire_ NOW!
18:35 sri JETZT!
18:40 sri polvo: i'm a believer of "the wider the scope of a variable the longer the name should be"
18:41 sri convenience is good, but only if it doesn't cost you maintainability
18:44 sri that said, you could add a helper that filters keys with multiple values out of the param hash
18:44 sri (don't suggest it, but that would be a simple solution)
18:45 dotan left #mojo
18:45 polvo sri, btw, is a $self->param() read-only method?
18:45 sri yes
18:45 sri as documented i think
18:45 polvo sri, where? -)
18:46 sri in a controller base class
18:46 sri http://search.cpan.org/~kraih/Mojolicious-0.99​9929/lib/MojoX/Dispatcher/Routes/Controller.pm
18:46 sri they are always linked in pod, you just start at the first and walk down
18:47 sri it's easy since we don't do multiple inheritance ever
18:55 tempire_ sri: how do you feel about roles?
18:56 sri nice if used right
18:58 sri but they can really encourage architecture atronauts
19:00 sri in the end simplicity trumps everything
19:18 perlrocks left #mojo
19:41 Rhaen_ joined #mojo
19:46 Rhaen left #mojo
19:46 Rhaen_ is now known as Rhaen
20:25 dotan joined #mojo
20:25 dotan left #mojo
20:43 kvorg joined #mojo
20:46 perlrocks joined #mojo
20:46 perlrocks Twitter: "Time to stop my editor experiments and get back to #mojolicious hacking, the next release is going to be awesome. ;) #perl" --kraih http://twitter.com/kraih/status/24790595130
20:57 garu sri: editor experiments?
20:57 sri tried switching to macvim
20:57 garu anything I can incorporate do Padre::Plugin::Mojolicious? :)
20:58 garu ah
20:58 sri how is padre on os x these days?
21:00 sri most importantly, is it possible to highlight embedded perl? http://twitpic.com/29y9v5
21:02 tempire_ It's rough
21:04 siegfri3d left #mojo
21:16 arpadszasz joined #mojo
21:18 vel left #mojo
21:27 garu sri: I'll work on a better M:Lite integration for the plugin as soon as time permits :)
21:28 garu as for padre on osx, like tempire said, it's still rough. Some install it seamlessly, others are still trying and failing :/
21:31 keith left #mojo
21:35 kvorg highlighted embedded perl ... yummy
21:38 kvorg sri: using under '$root' to move a Lite app - is this documented somewhere? I would expect it to be a common question
21:40 sri dunno
21:40 sri "move" is the wrong word really
21:40 sri it's just a prefix
21:40 sri internally it's a bridge
21:40 kvorg yeah, but i am not sure how to say it correctly: prefixing the routes implies a string operation, but it not
21:45 perlrocks Twitter: "@kraih cool, i do the initial import for #mojolicious in NetBSD. Now other people maintain it. Regares." --ficovh http://twitter.com/ficovh/status/24794197992
21:45 GabrielVieira2 is now known as GabrielVieira
21:54 kvorg hmm, under('/test') does not work as expected, however under('/test' => sub {1} ) does ...
21:54 kvorg did i misunderstand?
21:57 sri that would be a bug
22:07 spleenjack1 joined #mojo
22:10 kvorg left #mojo
22:10 spleenjack left #mojo
22:10 kvorg joined #mojo
22:16 awnstudio_l joined #mojo
22:18 omega left #mojo
22:18 omega joined #mojo
22:18 GitHub144 joined #mojo
22:18 GitHub144 mojo: master Sebastian Riedel * 5a92724 (5 files in 5 dirs): fixed a small under bug in Mojolicious::Lite - http://bit.ly/bJAS4x
22:18 GitHub144 left #mojo
22:18 sri kvorg: fixed :)
22:20 sri oh, the ioloop change is unrelated, thats preparation for hypnotoad ;)
22:21 tempire_ padre install is easy if you use the dmg
22:22 tempire_ compiling is near impossible, because of snow leopard's problem with wx
22:22 tempire_ but even after you get it installed, the interface is just rough
22:22 tempire_ left #mojo
22:23 sri not an option for me then, i need a pretty editor
22:23 und3f is now known as und3f[A]
22:24 arpadszasz left #mojo
22:26 kvorg that was quick!
22:30 sri using textmate again, so i'm much quicker :)
22:31 omega left #mojo
22:31 omega joined #mojo
22:37 kvorg left #mojo
22:48 tempire_ joined #mojo
23:01 tempire_ left #mojo
23:13 spleenjack1 left #mojo
23:22 Htbaa left #mojo
23:30 Kulag left #mojo
23:30 awnstudio_l left #mojo
23:30 Kulag joined #mojo
23:30 awnstudio_l joined #mojo

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