Re: [Catalyst] Documentation on DBIx Class
On Jan 18, 2008, at 3:28 PM, Andrew Rodland wrote: On Friday 18 January 2008 02:47:14 pm Mesdaq, Ali wrote: I have to just rant a bit about that. The most difficult thing about catalyst is trying to learn dbic. Except that's not a thing about catalyst. You don't need to use DBIC. It's a popular choice, sure, but if you think that something else would be eaiser, then go for it. Use Rose, invent your own wheel, or do what $WORK does and write a model that does nothing but stored-procedure calls (straight DBI and some glue). DBIC isn't required for using catalyst, it's just the standard choice for doing what DBIC does -- which most people find rather useful. But many of the examples do use DBIC, so not being able to read or modify DBIC means you can't read or modify those examples either. It's a doc thing, rather than a framework thing, but I understand where Ali is coming from. Cheers, Steve ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] Documentation on DBIx Class
I personally prefer a lot of different examples or a comprehensive FAQ. I think just those being addressed could solve the documentation issues with dbic. Cuz I mean its pretty well documented at the method level but putting it together is where its lacking. For what it does the FAQ section is very short although the cookbook is pretty good. Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Security Researcher II Websense Security Labs http://www.WebsenseSecurityLabs.com -- -Original Message- From: Jonathan Rockway [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 1:50 PM To: The elegant MVC web framework Subject: RE: [Catalyst] Documentation on DBIx Class On Fri, 2008-01-18 at 12:47 -0800, Mesdaq, Ali wrote: I have to just rant a bit about that. The most difficult thing about catalyst is trying to learn dbic. I love dbic and how clean it can make working with the data layer but because of the documentation its hard to wrap ur head around to just fully know how it works and what to expect. I am not a full time web developer so I use catalyst for about a week or two then work on other projects then go back to catalyst a few weeks later and realize I need to re-learn all the dbic stuff again. The simple stuff is easy but the many to many is poorly documented in my opinion so it makes grasping that concept a little hard. I know for the life of me I can't ever remember how to setup the relationships for many to many tables and I need to look at old files then read the docs then test it out then relook at everything again. Maybe the examples just need some more schema examples because the cd example is too simple so its hard to see how it could be used in more complex situtations. Thats just my rant from a perl guy who is a catalyst beginner. I think the book takes a pretty good approach with DBIx::Class. Chapter 5 really covers the advanced stuff, and the rest shows you how to use it in simple CRUD applications. But, kd and I were planning on writing a better tutorial. When he's back from vacation, we'll get started... maybe that will help everyone out. Regards, Jonathan Rockway Protected by Websense Messaging Security -- www.websense.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] Documentation on DBIx Class
On Fri, 2008-01-18 at 12:47 -0800, Mesdaq, Ali wrote: I have to just rant a bit about that. The most difficult thing about catalyst is trying to learn dbic. I love dbic and how clean it can make working with the data layer but because of the documentation its hard to wrap ur head around to just fully know how it works and what to expect. I am not a full time web developer so I use catalyst for about a week or two then work on other projects then go back to catalyst a few weeks later and realize I need to re-learn all the dbic stuff again. The simple stuff is easy but the many to many is poorly documented in my opinion so it makes grasping that concept a little hard. I know for the life of me I can't ever remember how to setup the relationships for many to many tables and I need to look at old files then read the docs then test it out then relook at everything again. Maybe the examples just need some more schema examples because the cd example is too simple so its hard to see how it could be used in more complex situtations. Thats just my rant from a perl guy who is a catalyst beginner. I think the book takes a pretty good approach with DBIx::Class. Chapter 5 really covers the advanced stuff, and the rest shows you how to use it in simple CRUD applications. But, kd and I were planning on writing a better tutorial. When he's back from vacation, we'll get started... maybe that will help everyone out. Regards, Jonathan Rockway signature.asc Description: This is a digitally signed message part ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
Where is a good place to learn DBIx::Class in a few hours? I've always used the DBI module for my CGI scripts. Alex Povolotsky wrote: Ian Tegebo wrote: Unfortunately, Tutorial is weak. CRUD section lacks Update at all, and it does not deal with any transaction, and it seems to use poor methods to create records. Could you provide an example of richer methods for record creation? Not yet. I'm learning Catalyst for about two weeks. I like Catalyst and I don't like Catalyst's manuals. I'll try to write something as soon as I'll get my app working. Alex. P.S. Most problems in nowadays tutorial is that they tell do this and this instead to achieve this, we must do this because of... Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
On Friday 18 January 2008 02:47:14 pm Mesdaq, Ali wrote: I have to just rant a bit about that. The most difficult thing about catalyst is trying to learn dbic. Except that's not a thing about catalyst. You don't need to use DBIC. It's a popular choice, sure, but if you think that something else would be eaiser, then go for it. Use Rose, invent your own wheel, or do what $WORK does and write a model that does nothing but stored-procedure calls (straight DBI and some glue). DBIC isn't required for using catalyst, it's just the standard choice for doing what DBIC does -- which most people find rather useful. Andrew ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] Documentation on DBIx Class
-Original Message- From: Jennifer Ahn [mailto:[EMAIL PROTECTED] Sent: 18 January 2008 20:07 To: The elegant MVC web framework Subject: Re: [Catalyst] Documentation on DBIx Class Where is a good place to learn DBIx::Class in a few hours? I've always used the DBI module for my CGI scripts. http://search.cpan.org/~ash/DBIx-Class-0.08008/lib/DBIx/Class/Manual/DocMap. pod It's a shortcut on my browser navbar :-) Read the first four links then browse the cookbook. The DBIC list is at http://lists.scsys.co.uk/mailman/listinfo/dbix-class/ and that's the place to ask any questions. The main thing to realize compared to DBI is that DBIC works in terms of resultsets (a bit like MS Access recordsets) and that you can apply actions to a notional set of records. The power of this is that you can chain these actions or filters without writing the typical code to retrieve records, stick them in a hash, retrieve more records, prune the hash, and so on. Also it works (much) better under mod_perl than Class::DBI when you have multiple database connections. It can get a bit hairy prefetching with multiple joins, but there's nothing to stop you asking DBIC for the DBI database handle and doing complicated SQL direct the DBI way. Regards, Peter http://perl.dragonstaff.co.uk ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
Ian Tegebo wrote: Unfortunately, Tutorial is weak. CRUD section lacks Update at all, and it does not deal with any transaction, and it seems to use poor methods to create records. Could you provide an example of richer methods for record creation? Not yet. I'm learning Catalyst for about two weeks. I like Catalyst and I don't like Catalyst's manuals. I'll try to write something as soon as I'll get my app working. Alex. P.S. Most problems in nowadays tutorial is that they tell do this and this instead to achieve this, we must do this because of... Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
On Fri, 18 Jan 2008 12:06:39 -0800 Jennifer Ahn [EMAIL PROTECTED] wrote: Where is a good place to learn DBIx::Class in a few hours? I've always used the DBI module for my CGI scripts. http://cpan.uwinnipeg.ca/htdocs/DBIx-Class/DocMap.html might be a good start? A few hours, eh? ;-) I wish I had such mental prowess. HTH. Cheers, -- |\ /|| | ~ ~ | \/ ||---| `|` ? ||ichael | |iggins\^ / michael.higgins[at]evolone[dot]org ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
Jennifer Ahn wrote: Where is a good place to learn DBIx::Class in a few hours? I've always used the DBI module for my CGI scripts. Few hours? Ask your documentation pills dealer... ;) Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
RE: [Catalyst] Documentation on DBIx Class
I have to just rant a bit about that. The most difficult thing about catalyst is trying to learn dbic. I love dbic and how clean it can make working with the data layer but because of the documentation its hard to wrap ur head around to just fully know how it works and what to expect. I am not a full time web developer so I use catalyst for about a week or two then work on other projects then go back to catalyst a few weeks later and realize I need to re-learn all the dbic stuff again. The simple stuff is easy but the many to many is poorly documented in my opinion so it makes grasping that concept a little hard. I know for the life of me I can't ever remember how to setup the relationships for many to many tables and I need to look at old files then read the docs then test it out then relook at everything again. Maybe the examples just need some more schema examples because the cd example is too simple so its hard to see how it could be used in more complex situtations. Thats just my rant from a perl guy who is a catalyst beginner. Thanks, -- Ali Mesdaq (CISSP, GIAC-GREM) Security Researcher II Websense Security Labs http://www.WebsenseSecurityLabs.com -- -Original Message- From: Alex Povolotsky [mailto:[EMAIL PROTECTED] Sent: Friday, January 18, 2008 12:04 PM To: The elegant MVC web framework Subject: Re: [Catalyst] Documentation on DBIx Class Ian Tegebo wrote: Unfortunately, Tutorial is weak. CRUD section lacks Update at all, and it does not deal with any transaction, and it seems to use poor methods to create records. Could you provide an example of richer methods for record creation? Not yet. I'm learning Catalyst for about two weeks. I like Catalyst and I don't like Catalyst's manuals. I'll try to write something as soon as I'll get my app working. Alex. P.S. Most problems in nowadays tutorial is that they tell do this and this instead to achieve this, we must do this because of... Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/ TO REPORT THIS AS SPAM, PLEASE CLICK THE FOLLOWING LINK: https://www.mailcontrol.com/sr/wQw0zmjPoHdJTZGyOCrrhg== TaMd7SPPKfrEThCb6GTfuQhkbM4jmyJjjeYnFXhkf38JX143ywurL2Ncq1ItaSLL5XLdGuJ4 xEG5vJskRm7rlXQcp5FzjO6FLYAzdYgLwzwWselO1FESy9UHaDPja!wOkwdXTZZETDgcgaE1 ptV6M3YX3azTQRjM+9j59w2k+qd74Qsh5ImGKsu Protected by Websense Messaging Security -- www.websense.com ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
On 16 Jan 2008, at 07:54, Peter Sørensen wrote: Now I've come across Catalyst and DBIx. *cough* DBIC :) -- Mike Whitaker - [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
Tobias Kremer wrote: I need some advice on where to look for documentation specially the DBIx Class and which methods I can use in here along with Catalyst. I've already ordered the Catalyst book but until this arrive any hints? I suggest going through the tutorial application which teaches you all the basics of Catalyst and DBIx::Class: http://search.cpan.org/dist/Catalyst-Manual/lib/Catalyst/Manual/Tutorial.pod Unfortunately, Tutorial is weak. CRUD section lacks Update at all, and it does not deal with any transaction, and it seems to use poor methods to create records. Alex. ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
On 1/16/08, Alex Povolotsky [EMAIL PROTECTED] wrote: Tobias Kremer wrote: I need some advice on where to look for documentation specially the DBIx Class and which methods I can use in here along with Catalyst. I've already ordered the Catalyst book but until this arrive any hints? I suggest going through the tutorial application which teaches you all the basics of Catalyst and DBIx::Class: http://search.cpan.org/dist/Catalyst-Manual/lib/Catalyst/Manual/Tutorial.pod Unfortunately, Tutorial is weak. CRUD section lacks Update at all, and it does not deal with any transaction, and it seems to use poor methods to create records. Could you provide an example of richer methods for record creation? -- Ian Tegebo ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
I need some advice on where to look for documentation specially the DBIx Class and which methods I can use in here along with Catalyst. On top of everyone else's suggestions, DO read the perldocs for SQL::Abstract, as that's how DBIC queries are defined. -- Mike Whitaker - [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
Re: [Catalyst] Documentation on DBIx Class
On Wed, Jan 16, 2008 at 08:54:35AM +0100, Peter Sørensen wrote: Hi, I've been using perls for years and when dealing with web - CGI and DBI. Now I've come across Catalyst and DBIx. This is fantastic. Now I can get back to the code I've written and actually understand what I wrote 2 weeks back :-) I need some advice on where to look for documentation specially the DBIx Class and which methods I can use in here along with Catalyst. http://search.cpan.org/dist/DBIx-Class/ http://search.cpan.org/perldoc?Catalyst::Model::DBIC::Schema There's no 'which methods I can use', Model::DBIC::Schema exposes your (Catalyst-independent) DBIx::Class::Schema fairly directly so anything you can do with DBIC outside of Catalyst you can do inside, too. Note also that DBIx::Class is a separate project with its own list you can ask questions on, and 'DBIx' is the namespace for DBI extensions, of which there are lots, so just saying 'DBIx' when you mean DBIx::Class is wrong (and will potentially confuse people :) -- Matt S Trout Need help with your Catalyst or DBIx::Class project? Technical Directorhttp://www.shadowcat.co.uk/catalyst/ Shadowcat Systems Ltd. Want a managed development or deployment platform? http://chainsawblues.vox.com/http://www.shadowcat.co.uk/servers/ ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/
[Catalyst] Documentation on DBIx Class
Hi, I've been using perls for years and when dealing with web - CGI and DBI. Now I've come across Catalyst and DBIx. This is fantastic. Now I can get back to the code I've written and actually understand what I wrote 2 weeks back :-) I need some advice on where to look for documentation specially the DBIx Class and which methods I can use in here along with Catalyst. I've already ordered the Catalyst book but until this arrive any hints? Regards Peter Sørensen/University of Southern Denmark/Email: [EMAIL PROTECTED] ___ List: Catalyst@lists.scsys.co.uk Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.scsys.co.uk/ Dev site: http://dev.catalyst.perl.org/