Camelia, the Perl 6 bug

IRC log for #mojo, 2011-07-10

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

All times shown according to UTC.

Time Nick Message
00:00 stephan48 i would say i understand it, but maybe some more references to practical usecases would make sense in M::DOM like for example a ref to the cookbook for examples how to use it with M::UA
00:02 sri stephan48: sure, but the connection between the two makes sense to you?
00:02 stephan48 ye
00:02 sri good
00:02 stephan48 HTML is the actual parser and DOM provides css3 like accessors to the stuff html parsed?
00:03 sri kinda ye
00:03 sri you're also not irritated by the names?
00:03 stephan48 no
00:03 sri hmm, maybe there is no problem after all :)
00:04 stephan48 but maybe ask some non mojo users...
00:07 xaka hm, "Relaxed HTML5/XML Parser" vs "Relaxed HTML5/XML Parser With CSS3 Selectors". So the only difference is a selector. Why dont combine it into single Mojo::HTML?
00:08 sri xaka: it was a single 1300 line file until earlier today...
00:08 xaka haha )
00:09 sri i split it in half, that's what we were talking about the whole day :S
00:09 * xaka should stop drink so much beer on the weekends...
00:09 * sri should drink more
00:11 xaka btw, from design point you did right - split the selector and the content. Now DOM is a just selector so why dont rename it to Mojo::HTML::Selector or Mojo::CSS3
00:11 xaka or mojo Mojo::W3C::HTML, Mojo::W3C::CSS3 :)
00:11 sri because those are ugly and break backwards compatibility
00:12 sri there are multiple talks and articles out there using Mojo::DOM
00:12 sri countless blog posts
00:12 sri Mojo::DOM is really popular
00:12 stephan48 keep it as backwards compat and make the new stuff under a new name?
00:12 xaka but you still want (or think about) to rename it and u asking suggestions
00:13 sri i don't know what to do
00:13 xaka we just do our best offer, the final decision is up to you
00:13 xaka u asked - what the new name could be - we answered
00:14 sri the fact that there is no good suggestion on the table yet makes the decision rather easy ;p
00:14 xaka stephan48's idea is good, keep new and old names together, and put deprecate warning when somebody uses an old one
00:14 sri xaka: that's what we always do for renamed modules
00:14 sri deprecation policy
00:14 purl deprecation policy is a major pain in the kiester.
00:14 stephan48 ye
00:15 sri but it will still hurt
00:15 sri s/will/would/
00:15 * sri hugs purl
00:15 purl sri: get off me, you botvert!
00:15 stephan48 yap
00:16 sri so i'm trying to find out if people still see Mojo::DOM as a DOM after looking at the new documentation
00:17 sri Mojo::HTML is the base class of Mojo::DOM, so it still could be seen as one...
00:17 sri but it's not so clear
00:17 xaka right now it confuses me because both html and dom have the same title and if i would a new user, if was thinkging "which one i should use?"
00:17 xaka sri: that's what i'm was talking about
00:17 sri the description should make that very clear
00:19 xaka does DOM do the real parsing inside?
00:19 xaka or it delegates the task down to html?
00:20 sri why does that matter?
00:20 xaka i think you should rename HTML to Parser, DOM to CSS3 and make DOM as an aggretator that both. (just an idea, dont kick me)
00:21 xaka DOM = HTML + CSS3. Like a facade
00:22 sri i don't see the logic in that
00:23 sri if i wa sa user looking for an html parser i would then use Mojo::HTML
00:23 sri which is wrong
00:24 eugen left #mojo
00:25 sri think i'll just merge them again..
00:26 sri this shit costs me way too much time
00:36 GitHub101 joined #mojo
00:36 GitHub101 [mojo] kraih pushed 1 new commit to master: http://bit.ly/oZcBHi
00:36 GitHub101 [mojo/master] merged Mojo::HTML into Mojo::DOM again - Sebastian Riedel
00:36 GitHub101 left #mojo
00:41 sri and back to the way it was before
00:42 sri i'll deal with it again once maintainability actually becomes a problem
01:43 Kulag left #mojo
02:01 Kulag joined #mojo
02:31 Kulag left #mojo
02:31 Kulag joined #mojo
02:35 Drossel joined #mojo
02:37 Kulag left #mojo
02:41 Drossel left #mojo
02:47 Kulag joined #mojo
02:52 Kulag left #mojo
02:57 GitHub135 joined #mojo
02:57 GitHub135 [mojo] kraih pushed 1 new commit to master: http://bit.ly/r4Jyzy
02:57 GitHub135 [mojo/master] added experimental modules Mojo::DOM::CSS and Mojo::DOM::Collection - Sebastian Riedel
02:57 GitHub135 left #mojo
02:57 sri ok, now that's a good solution :)
03:02 xaka i like it
03:11 Kulag joined #mojo
03:15 GitHub126 joined #mojo
03:15 GitHub126 [mojo] kraih pushed 1 new commit to master: http://bit.ly/pBnRVH
03:15 GitHub126 [mojo/master] MOAR QUOTES! - Sebastian Riedel
03:15 GitHub126 left #mojo
03:20 Kovensky left #mojo
03:22 xaka when u'll put quotes from south park? )
03:27 GitHub191 joined #mojo
03:27 GitHub191 [mojo] kraih pushed 1 new commit to master: http://bit.ly/r3v8HA
03:27 GitHub191 [mojo/master] a few more quotes - Sebastian Riedel
03:27 GitHub191 left #mojo
03:27 sri xaka: never!
03:30 xaka :(
03:30 Kovensky joined #mojo
03:31 sri southpark had a few good episodes... but it's usually too flat for me
03:37 minimalist thing is ... south park is too U.S. centric. You have to live in North America to understand and appreciate it.
03:47 sri could be
03:52 minimalist I was born and raised in Europe and moved in Los Angeles when I was 23. It took me a few years to "understand" SP.
03:59 minimalist ... and it sucks really. I'm not saying it's good. Over and out.
04:38 Kulag left #mojo
04:39 Kulag joined #mojo
05:03 xaka left #mojo
05:41 GitHub181 joined #mojo
05:41 GitHub181 [mojo] kraih pushed 1 new commit to master: http://bit.ly/nAEKfE
05:41 GitHub181 [mojo/master] added experimental module Mojo::DOM::HTML - Sebastian Riedel
05:41 GitHub181 left #mojo
05:41 sri yay, really clean abstraction now
06:25 GitHub128 joined #mojo
06:25 GitHub128 [mojo] kraih pushed 1 new commit to master: http://bit.ly/nmCmhy
06:25 GitHub128 [mojo/master] more quotes again - Sebastian Riedel
06:25 GitHub128 left #mojo
07:17 perlrocks Twitter: "Can't belive I have been wearing slippers all day, could be the 6 degrees out side, or that I am just loving this mojolicious frame work." --tja1980 http://twitter.com/tja1980​/status/89956476524838912
07:55 non joined #mojo
08:32 eugen joined #mojo
09:04 abra left #mojo
09:16 abra joined #mojo
09:16 tabbi joined #mojo
09:16 tabbi left #mojo
09:19 kaare joined #mojo
09:36 Foxcool joined #mojo
10:24 Foxcool left #mojo
10:32 Foxcool joined #mojo
10:41 Kulag left #mojo
10:41 Kulag joined #mojo
14:52 xaka joined #mojo
15:01 perlrocks Twitter: "@vtivti yeah change to Mojolicious made something unhappy, will fix when I get some more time :D" --perlninja http://twitter.com/perlninj​a/status/90073213475897345
16:02 kaare left #mojo
16:23 minimalist left #mojo
17:14 sri wow, they already renewed falling skies
17:20 xaka wow, i see new Mojo::DOM::HTML. btw, the name a bit reverses my mind because DOM comes from HTML, not vice verse :)
17:20 * xaka is waiting for some headshots from sri...
17:20 * sri headshots xaka
17:37 tabbi joined #mojo
17:38 tabbi left #mojo
18:07 yko left #mojo
18:07 yko joined #mojo
18:10 Kulag left #mojo
18:10 Drossel joined #mojo
18:15 bzero left #mojo
18:16 bzero joined #mojo
18:48 non left #mojo
19:19 Akron joined #mojo
19:19 jwang joined #mojo
19:43 nagual joined #mojo
19:47 sugar joined #mojo
20:23 reyjrar joined #mojo
20:24 reyjrar Hi, I was wondering if there's a simple way to make sure every render() call is passed a few variables, aside from manually passing them from every controller/action ?
20:25 alnewkirk|com reyjrar, stash
20:27 reyjrar Could I just stash at app->startup() ?  These are values from the app.json config..
20:29 alnewkirk|com reyjrar, the config is accessible throughout the app
20:29 alnewkirk|com in controller, $self->config should get you there
20:31 reyjrar I'd like this particular value in the templates though..
20:31 reyjrar It'll be pe throughout the entire app..
20:32 reyjrar kinda like wordpress has blog_name and blog_caption
20:32 reyjrar err.. sorry.. having term issues.. "it will be persistent"
20:33 reyjrar I tried app->config->{field};
20:33 reyjrar in the default.html.ep
20:33 reyjrar but that errored out..
20:35 alnewkirk|com are you using the plugin JsonConfig or the default config functionality?
20:35 reyjrar json_config
20:36 reyjrar though it's just based off an example I was using.. what syntax does config use for the config file?
20:36 reyjrar config::general type stuff?
20:42 reyjrar oh.. this is day 1 playing with mojo.. like it so far.. but I'm still not 100% familiar.. in my templates I can just do <%== config 'key' %>
20:42 reyjrar very nice.. I figured it would be that easy..
20:44 sri reyjrar: there is also http://mojolicio.us/perldoc/Mojolicious#defaults
20:46 sri and here is a list of all core plugins http://mojolicio.us/perldoc/Mojolicious#plugin
20:47 sri there are two for config files, and a few more on cpan
20:51 jwang left #mojo
20:58 Foxcool left #mojo
21:33 Akron left #mojo
21:37 depesz hmm .. i've read the mojolicious::lite docs, and am reading now guides (one by one). currently i'm on growing. everytime "helper"
21:37 depesz is mentioned, mojolicious::lite is used, and the syntax is very lite-ish.
21:37 depesz how do you define helpers in full/normal mojo?
21:38 depesz or did i miss it somewhere along the way?
21:39 sri it's in the growing guide
21:39 depesz ok. perhaps a bit later.
21:39 sri ye
21:39 sri when you need it it's there
21:41 depesz so far I haven't written any real mojolicious code. just reading docs to see if I understand everything, and trying to get a grasp at what's possible.
21:45 nagual left #mojo
21:50 depesz $self->helper(). got to it :)
22:23 sugar left #mojo
22:42 perlrocks Twitter: "Started playing with http://t.co/IZelSGi this weekend, and I'm liking it.. Replacing WordPress with a Mojo-based blog. #perl" --reyjrar http://twitter.com/reyjrar​/status/90189061591023616
22:44 jwang joined #mojo
23:05 perlrocks Twitter: "@obfuscurity Wanted a project to learn Mojolicious with.." --reyjrar http://twitter.com/reyjrar​/status/90194924795998208
23:12 perlrocks Twitter: "Fun: Moose + Elasticsearch + Mojolicious + Introspection = omgwtfbbqawesomesauce. Now to get it to really work..." --perlninja http://twitter.com/perlninj​a/status/90196802044837889
23:20 depesz hmm .. perhaps I'm missing something, but why this: "mojo get http://mojolicio.us 'h1, h2, h3' 1 text" returns "Features", but "mojo get http://mojolicio.us 'h1, h2, h3' 0 text" doesn't return "A next generation web framework for the Perl programming language." ?
23:22 sri depesz: bug
23:22 depesz ah. ok.
23:23 sri will fix it later, unless you beat me to it and send a pull request :)
23:23 depesz extremely unlikely - still reading guides.
23:24 depesz and with the amount of time, i'll get to actual code in a week or so :/
23:24 depesz don't think that it's a very important bug, though.
23:28 GitHub80 joined #mojo
23:28 GitHub80 [mojo] kraih pushed 1 new commit to master: http://bit.ly/oAAMJ6
23:28 GitHub80 [mojo/master] fixed small bug in get command - Sebastian Riedel
23:28 GitHub80 left #mojo
23:28 sri depesz: should be fixed
23:34 Drossel left #mojo
23:35 Kulag joined #mojo
23:38 depesz whoa. thanks.
23:50 Kulag left #mojo
23:50 Kulag joined #mojo

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