> I'd also include Linux and FreeBSD

Of course, I put them on the list.

> 1) Instead of returning a list containing multiple {data, Data}
> tuples, you can return a single tuple of the form {data, {Data1,
> Data2, ....}}. It requires less typing.
> 2) Avoid calling integer_to_list() in view templates. Views should
> expect the controllers to always pass into them iolists (with one
> exception, that I'll get to shortly).
> 3) You can call Module:insert() instead of Module:save() if you don't
> need to get the object's id. insert() is a bit more efficient in those
> cases because it doesn't attempt to get the inserted id from the
> database.

I will also edit the tutorial taking care these points. Thanks for the
explanation.

>An alternative way, which I think is nicer, is to pass a function as
> in this example:

That´s really a lot nicer, I´ll update erlyweblog regarding this way
soon, but for the introduction tutorial I think its better to start
simple and explain this later throughout the tutorials section.

> Finally, would you mind adding this tutorial to the ErlyWeb wiki on
> Google code? I'd like all the user-contributed documentation to be
> there so it's easier to find.

Sure, give me access and I will add it.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"erlyweb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/erlyweb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to