Monday, 29 October 2012< ^ >
arjan has set the subject to: Zotonic - the Erlang Content Management Framework
Room Configuration

[00:45:09] Maas leaves the room
[07:39:05] Ilya Rezvov leaves the room
[08:38:59] Maas joins the room
[08:49:44] maas.maarten.zeeman joins the room
[08:59:42] andreas.stenius joins the room
[09:01:07] arjan joins the room
[10:04:28] Ilya Rezvov joins the room
[11:43:39] <Ilya Rezvov> http://zotonic.com/edoc/core/
[11:43:49] <Ilya Rezvov> it is broken
[11:44:00] <Ilya Rezvov> link from http://zotonic.com/documentation
[11:47:55] <arjan> oh!
[11:48:02] <arjan> I upgraded zotonic.com yesterday
[12:02:11] <arjan> will fix it soon
[12:02:43] <arjan> also will do a 0.8.2 release
[12:03:15] <maas.maarten.zeeman> Is zotonic now on default branch instead of 0.8.x?
[12:03:28] <arjan> you mean zotonic.com?
[12:03:32] <maas.maarten.zeeman> yes
[12:03:41] <arjan> yes it runs from master now
[12:04:11] <arjan> curl -I http://zotonic.com
HTTP/1.1 200 OK
Server: MochiWeb/1.1 WebZMachine/1.8.1 (compat) Zotonic/0.9-dev
[12:04:18] <maas.maarten.zeeman> k. busy with moving another site too :-) a lot of renaming.
[12:04:33] <arjan> you mean resource_ -> controller_?
[12:04:46] <maas.maarten.zeeman> yes and imports resource_html -> controller_html
[12:04:52] <arjan> ah yes
[12:04:56] <arjan> hehe
[12:04:57] <arjan> sorry :P
[12:05:03] <arjan> but I think it's better this way
[12:05:09] <maas.maarten.zeeman> Me too
[12:06:07] <maas.maarten.zeeman> We just have 25 modules ;-)
[12:06:26] <arjan> heh
[12:06:36] <arjan> write a script :)
[12:06:54] <arjan> I converted all zotonic's controllers with some bash magic
[12:07:15] <maas.maarten.zeeman> Cool. I have a sublime macro here.
[13:08:58] <maas.maarten.zeeman> btw why is resource_html renamed in html_controller and resource_page in controller_page instead of page_controller?
[13:09:33] <Ilya Rezvov> o, i have question too
[13:09:49] <Ilya Rezvov> old resources will work normal?
[13:10:14] <maas.maarten.zeeman> Yes they will.
[13:10:23] <Ilya Rezvov> or i'll need rename all my resources to controller
[13:10:41] <maas.maarten.zeeman> If you have custom resources you have to fix an imports though
[13:11:50] <Ilya Rezvov> yes
[13:11:52] <maas.maarten.zeeman> eventually controllers are loaded via the dispatch table, so you don't have to rename them.
[13:12:10] <Ilya Rezvov> ok, thx
[13:12:52] <Ilya Rezvov> my js-refactoring of zotonic delayed :(
[13:13:11] <Ilya Rezvov> but I do not give up hope
[13:13:14] <Ilya Rezvov> :)
[13:13:15] <maas.maarten.zeeman> Ow cool.
[13:14:35] <maas.maarten.zeeman> What is the goal for the refactoring?
[13:16:22] <Ilya Rezvov> make module system on client side
[13:17:23] <Ilya Rezvov> z.module('mod_name', { init: function() { // subscribe on zotonic events } /*, otherMethodsOfModule */ })
[13:17:47] <Ilya Rezvov> bind to postback event for example
[13:17:55] <maas.maarten.zeeman> aha. was just busy with that for a big site.
[13:18:12] <maas.maarten.zeeman> was planning to use client side pub/sub for communication between modules.
[13:19:32] <maas.maarten.zeeman> Sort of like z_notifier
[13:21:42] <Ilya Rezvov> yeah
[13:22:01] <Ilya Rezvov> and more tools for client side communication
[13:22:04] <Ilya Rezvov> with server side
[13:25:08] <maas.maarten.zeeman> @arjan Probably a bit too late now with the renames of the base controllers.
[13:26:10] <Ilya Rezvov> What motivated for renaming?
[13:26:24] <Ilya Rezvov> marketing?)
[13:26:36] <maas.maarten.zeeman> No mixup of terms.
[13:26:46] <maas.maarten.zeeman> resource is also something from the db
[13:27:48] <andreas.stenius> http://zotonic.com/docs/glossary.html#term-resource
[13:28:20] <andreas.stenius> vs. http://zotonic.com/docs/glossary.html#term-controller
[13:32:02] <maas.maarten.zeeman> too bad it wasn't named template_controller.erl instead.
[13:32:25] <andreas.stenius> ?
[13:34:45] <maas.maarten.zeeman> resource_template.erl was renamed to controller_template.erl but resource_html.hrl to html_controller.erl. Having the controller part in the end of the names also helps to locate things more quickly.
[13:35:24] <andreas.stenius> Ah, I agree that it would've been better to keep them consistent.
[13:35:57] <andreas.stenius> Is it too late to fix it.. ? not too many should've picked it up yet...
[13:37:15] <maas.maarten.zeeman> Ahh well, the 0-9-dev is bleeding edge anyway. Let see what @marc and @arjan think of it.
[13:37:16] <andreas.stenius> and it will be by far easier to do this now, than later
[13:37:27] <andreas.stenius> yep
[13:38:10] <Ilya Rezvov> i already use html_controller.hrl :)
[13:38:29] <Ilya Rezvov> but i agree for rename
[13:38:44] <andreas.stenius> = early adopter ;)
[13:39:30] <Ilya Rezvov> i use head always :)
[13:39:45] <Ilya Rezvov> but before updating i update local copy
[13:39:55] <Ilya Rezvov> test critical functional
[13:40:02] <Ilya Rezvov> and then update production
[13:40:58] <maas.maarten.zeeman> will make incident first.
[13:41:21] <maas.maarten.zeeman> oh issue
[13:49:40] <arjan> actually the hrl file is no controller itself
[13:49:43] <arjan> it's merely a helper
[13:50:45] <maas.maarten.zeeman> That's right.
[13:51:30] <andreas.stenius> Oh, I wasn't paying attention to it being a hrl file...
[13:53:52] <maas.maarten.zeeman> Did the move in a two stage process first the update the include (which made me think controller should be in the back of the name. Then did the update of the dispatch with that convention... Oops.
[13:56:22] <maas.maarten.zeeman> other erlang modules like actions, services have the "in front" naming convention anyway.
[13:57:43] <maas.maarten.zeeman> mod, action, service etc. It is probably nicer to keep it that way
[13:58:31] <arjan> true
[14:02:11] <maas.maarten.zeeman> ahh monday's....
[16:47:53] Ilya Rezvov leaves the room
[17:24:21] andreas.stenius leaves the room
[17:44:18] Ilya Rezvov joins the room
[18:04:19] arjan leaves the room
[18:59:51] arjan joins the room
[19:23:18] arjan leaves the room
[19:25:49] arjan joins the room
[19:34:56] arjan leaves the room
[20:22:36] Maas leaves the room
[20:23:58] Maas joins the room
[20:27:38] <Ilya Rezvov> where do i can find documentation on zotonic core now?
[20:29:25] <Maas> You mean: http://zotonic.com/edoc/core/
[20:33:07] <Ilya Rezvov> oh, it works again, thx :)
[20:33:08] Maas leaves the room
[20:33:13] <Ilya Rezvov> it was broken
[20:33:47] Maas joins the room
[20:34:42] <Maas> arjan is really fast :-)
[20:42:17] <Ilya Rezvov> how i can find user by email?
[20:42:40] <Ilya Rezvov> with m_search?
[20:46:50] <Maas> Depends a bit. You can also use m_identity
[20:48:35] <Maas> It has a lookup by type and key multi
[20:49:16] <Ilya Rezvov> thx for tip
[20:55:51] Ilya Rezvov leaves the room
[20:56:19] Ilya Rezvov joins the room
[21:03:51] maas.maarten.zeeman leaves the room
[21:07:22] andreas.stenius joins the room
[22:59:32] andreas.stenius leaves the room
Powered by ejabberd Powered by Erlang Valid XHTML 1.0 Transitional Valid CSS!