On Dec 22, 12:54 am, David King <[EMAIL PROTECTED]> wrote:
> > This isn't a critic of erlyweb, but rather a laundry list of things
> > that I need to be able to "easily" do in order to port my app from
> > Rails to erlyweb.
>
> Why port it if it works?
In short, because I'm having problems with Rails. And its not the
"its too slow" issues. Let me explain:
v1.0 of my web app, http://www.shellshadow.com can be rewritten in
just about anything and as I get ready to write v1.1 of the web app I
am rethinking my Rails position. v1.0 is so simple that a rewrite
isn't too time consuming.
So I am pissed at Rails...why?
Last week I had a real customer testing ShellShadow.
The user was getting errors connecting into the relay. It turns out
the relay server (written in C++) was behaving properly and wasn't
letting the user in since he had three user accounts registered to the
same email address.
My Rails migration which creates the "users" table has a very clear
constraint that the email field is unique. I expect the MySQL table to
be created with the correct constraint. Dumb me, I didn't test my
assumption.
I'm not sure that after 20 years as a programmer I want to use a
framework where basic "magic" features need to have test cases written
so I can be certain.
I have yet to dig around and find out why Rails allowed my users table
to be generated without the uniqueness constraint and I'm not sure I
want to.
I talk to many very smart and experienced developers using Rails. We
all commiserate on the same issues. This leads me to believe that its
not that I'm using Rails wrong or just don't get it. Its that I do
get it and I simply don't like it.
>
> > 1 - full text search. I have some recent experience with Sphinx
> >http://www.sphinxsearch.com/. Sphinx is a good match for erlang since
> > it runs as a nice stand-alone daemon and doesn't require the weight of
> > installing a Java system like Lucene requires. Rails has good plug-
> > ins and tutorials for using Sphinx. Erlang / erlyweb has nothing.
>
> Erlyweb supports (at the moment) 3 DBMSs, one of which (mnesia) varies
> vastly from the other two (Postgres and MySQL). I suppose you'd have
> to find something for your DBMS.
>
I probably wasn't clear enough. A system like Sphinx would work very
well with an erlang web app which uses MySQL or Postgres. We just
need a decent erlang interface to Sphinx. Sphinx handles the
interaction with MySQL or Postgres. Mnesia is another story.
>
>
> This might help for date-formatting. It's a little verbose, but works:
>
> format_date(calendar:universal_time()) -> "Sat, 22 Dec 2007 00:52:52
> GMT"
>
> format_date({{_,_,_},{_,_,_}}=DateTime) ->
> httpd_util:rfc1123_date(DateTime).
thanks for the function...
Jon
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---