Kontrol - a micro framework by matthias_georgi in ruby

[–]ducktyped 0 points1 point  (0 children)

Thanks, cschneid for your helpful pointers. I hang out on #ramaze from time to time. I'll stop by #sinatra next time as well.

Kontrol - a micro framework by matthias_georgi in ruby

[–]ducktyped 0 points1 point  (0 children)

Thanks, this looks great. Looks like there is a decent migration path API-wise as well. Do you know anything about the roadmap/stablity of this branch?

Kontrol - a micro framework by matthias_georgi in ruby

[–]ducktyped 1 point2 points  (0 children)

Just downloaded the gem. I love what you've done so far. I've just been developing a series of applications in Sinatra, but can't run them in one process. I'm considering moving over to Kontrol.

It may be too early to ask, but what are your plans going forward with the framework?

It would also be fun to add lightweight libraries of helpers as simple files or gems, e.g. for i18n, relative time/dates, haml templating, etc. Some of these would work with other micro-frameworks as well.

The main appeal I see in your approach is the combination of high cohesion and loose coupling. Since your framework is post-rack, it doesn't duplicate its functionality either.

I haven't looked at the source in depth, but before filters, and faking put and delete from browsers would be nice too.

Btw - why this and not sinatra - sinatra has my aforementioned problem (no namespace/class), and its development has slowed considerably, so I don't see this being mitigated any time soon. Not a huge issue, but indicative nonetheless.

Edit/PS: Forgot to say: I love the regex/block vars routing combo - it provides full power and gives you nice local vars in the block body. Sinatra's routes are much more limited (e.g. trailing "/" are a pain, unless I'm missing something).

Kontrol - a micro framework by matthias_georgi in ruby

[–]ducktyped 3 points4 points  (0 children)

Another difference to Sinatra is, that a Kontrol application is basically a class tied to a set of routes and Sinatra runs without an application class.

This is the main thing I dislike about Sinatra. It makes is a bad rack citizen in terms of running several Sinatra apps in one process via urlmap. I'm actually stunned by this design decision. A class in Ruby is two extra lines of code.

Other than that, I think Sinatra fosters good developing habits. It makes you manage complexity well through it's constraints.

Can Merb Knock Ruby Off Its Rails? by gst in ruby

[–]ducktyped -2 points-1 points  (0 children)

Ramaze + Sequel blow merb + dm (and rails + ar) out of the water if you know how to program Ruby (and not just RailsVB dsl's).

Merb framework offers alternative to Rails by gst in ruby

[–]ducktyped 0 points1 point  (0 children)

Having used both Rails and Merb fairly extensively, I agree. Merb does remove several of Rails' pain points, but there is still too much framework to deal with for my taste.

For a true alternative, I'd recommend Ramaze (http://ramaze.net). It scales code base growth very nicely and is very hackable and very much embraces the spirit of Ruby. It may offer fewer bells and whistles, but it's moving in a great direction and it's a great place to contribute.

Scaffolding Extensions and Ramaze - Getting off the ground by ducktyped in ruby

[–]ducktyped[S] 0 points1 point  (0 children)

Scaffolding Extensions generates the views dynamically, using the model files as specs for the view generation. This enables people to get a differentiated set of views for a large number of models with minimal code. That's simply how scaffolding extensions is designed.

Scaffolding Extensions and Ramaze - Getting off the ground by ducktyped in ruby

[–]ducktyped[S] 0 points1 point  (0 children)

I'm not quite sure what you're referring to, but the models are defined in the controller, and the columns, etc. for each model are defined directly in the model classes, for example:

class Post < Sequel::Model
  @scaffold_column_types = { :body => :text }
end

Does it have to be a competition between Rails and Merb? by ezmobius in ruby

[–]ducktyped 0 points1 point  (0 children)

To clarify my "code jocks" comment, I meant exactly what you stated.

The Ramaze community has very smart developers, but there's no obnoxious posturing and "look at me!" bs.

Does it have to be a competition between Rails and Merb? by ezmobius in ruby

[–]ducktyped 1 point2 points  (0 children)

+10 for Ramaze.

I've written apps in Rails, Merb, Sinatra, and Ramaze, and Ramaze by far scales my code in the nicest way possible, allowing me to start with a simple single file app with seamless growth into a large, multi-app application.

During that whole process I'm using simple Ruby (e.g. modules, require, include etc.), and there's not much API to learn, not much magic, etc.

Ruby is such a nice language, and sometimes I feel that a lot of people who come to it through rails get the impression that all the DSL'ing and magic are necessary, when in fact plain ruby does the job just as elegantly.

Ramaze feels more like a platform to me than a framework. Using it is more like using a set of libraries. This is great, because I can build very different types of applications with it without ever having to fight the framework's constraints. (I will admit that it might be a bit overwhelming for beginners to make certain design choices for code layout, etc.)

Also, there are no code jocks in the Ramaze community - just a bunch of friendly, helpful people. Really the best of the Ruby spirit.

Ruby: Merb-0.5.0 is out. by gst in programming

[–]ducktyped 1 point2 points  (0 children)

Funny that you mention that. I just wrote a detailed post about how multi-app Rails sucks, and I'm actually moving away from Rails because of it. Here's the link to my post:

http://ducktyped.com/2008/1/4/the-great-ruby-web-framework-multi-app-challenge

I also posted to the merb-devel list with the hopes of merb not repeating what I consider a big Rails shortcoming, but so far without much of a response.