Yeah, of course... Cocoa on OS/X is a great example of a framework for  
writing apps. You *could* write an app to add two numbers together in  
Cocoa if you liked, but it'd be overkill and a half, unless learning  
Cocoa was your objective. You'd be better off writing the 5 line hello  
world.c program most c tutes start with.

In much the same way, Merb is a framework, so if all you wanted to do  
was eval a couple of things in a browser, most likely it'd be silly to  
roll a whole merb app. On the other hand, it's simple and lightweight  
enough as a framework that you *could* do this, and not actually be  
any much more heavier than running a bit of ERB in your html.

This shows off to a large degree the difference between Merb and other  
larger web app frameworks. (Django anyone?? LOL).

Merb is designed to be granularly modular... bit by bit you can  
increase your app, never getting any bigger or more complex than you  
ever NEED.

We're at 1.0... sure we need more tutorials and other things, but  
man... this is awesome :)

Julian.



On 17/11/2008, at 1:55 AM, Ted Han wrote:

>
> Merb, and most of the MVC frameworks -can't- be as simple as PHP is in
> that regard, because they have opinions about things like MVC.  Rails
> and Merb are both structured frameworks, so being able to kick around
> and write code that isn't connect to anything is a bit contradictory
> to the whole notion of structure.
>
> Getting up and going w/ no fuss is a definitely important, and being
> able to do that without having to grok the whole code base (initially)
> should be a target, but the point of having structure is so that you
> don't screw yourself later.  It's about self-discipline (actually most
> good programming is).  Merb isn't php, and shouldn't pretend to be,
> IMO.
>
> Besides, if you really want to take a static html file, slap some erb
> statements in it, the only additional steps you need to take is create
> a controller action (and the controller if you want), and go hit the
> url for that action.  So that's like 1 extra step if you know where to
> look right?
>
> Also, PHP i'd argue is most closely descended from Perl.
>
> -knowtheory
>
> On Sun, Nov 16, 2008 at 7:20 AM, weepy <[EMAIL PROTECTED]> wrote:
>>
>> While I mostly agree with you, I was less talking about PHP as a
>> language, but more the framework around which it is used.
>>
>> Consider the approach:
>>
>> 1) Take a standard HTML page
>> 2) Modify it to include some simple PHP (e.g. <%= $myvar %>)
>> 3) Rename the file to .php
>> 4) Upload page.
>>
>> That's about as low a barrier to entry for a non-programmer as I can
>> think of.
>>
>> weepy
>>
>>
>>
>>
>> On 16 Nov, 10:54, Julian Leviston <[EMAIL PROTECTED]> wrote:
>>> IMHO basic PHP is very hard to understand, not easy.
>>>
>>> Then again, I'm biased... because I think most programming is hard  
>>> to
>>> understand, and awfully suckful. Unfortunately, it's all we have at
>>> the moment.
>>>
>>> PHP is easy to understand if you've done some C, which isn't  
>>> terribly
>>> easy to understand if you've done NO programming.
>>>
>>> Ruby is easy to understand if you've done some smalltalk.
>>>
>>> IMHO, smalltalk (and Objective C, and also Ruby) is easier to
>>> understand than C in terms of powerful code that actually does
>>> something.
>>>
>>> IMHO, Ruby and Smalltalk are FAR easier to understand as first
>>> languages.
>>>
>>> The easiest way to prototype things is modification of template code
>>> in-place, or generators (they're somewhat equivalent), in my  
>>> opinion.
>>>
>>> Just my two cents worth.
>>>
>>> Julian.
>>>
>>> On 16/11/2008, at 9:48 PM, weepy wrote:
>>>
>>>
>>>
>>>> I was reading about your future plans for Merb 1.x
>>>
>>>> In particular I was interested about the idea of rapid/easy
>>>> prototyping and what ideas you had there.
>>>
>>>> Ideas that spring to my mind:
>>>
>>>> * similarities between very-flat and Sinatra/Camping
>>>> * basic PHP is very easy to understand and deploy.
>>>> * similarities between ERB and PHP.
>>>
>>>> Interested to see what else you have in mind !
>>>
>>>> weepy
>>>
>>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" 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/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to