News for hackers. Stuff that matters.
Re:List of minimalist frameworks by AndyKelley on Tuesday December 17, 2013 @09:09PM (#6925445)
Isn't "minimalist framework" a contradiction? It seems like if you were going for minimalism you would not use a framework.
Re:List of minimalist frameworks by SkyMarshal on Tuesday December 17, 2013 @09:24PM (#6925512)
Not using a framework requires creating your own and just not calling it a framework. One way or another you're using a framework, it's just a matter of whether your framework is grid-only, like Skeleton, Suzy, etc, or includes a ton of additional bells and whistles like Bootstrap and Foundation.
Re:List of minimalist frameworks by rmrfrmrf on Tuesday December 17, 2013 @09:19PM (#6925487)
I agree. Having just finished a project with Flask, I ended up using no less than 8 million dependencies that I'd never heard of. "BYO everything" frameworks would be more appropriate, but even then, Flask brings with it an entire basement of sub-frameworks that I would argue make it so that you might as well just use a full-fledged framework like Django.
Re:List of minimalist frameworks by thinkpad20 on Tuesday December 17, 2013 @09:43PM (#6925566)
We use Flask for most things at my work; while it can have many dependencies, you usually don't need that many. Of course, you'll bring some in for certain tasks that your app needs to do, but especially for little doodads that just need to present a RESTful interface to some service, this usually isn't that many (or if there are many, they'll mostly have to do with the service, and not the app). Of course I don't know the details of your project. Either way, the advantage of a minimal framework like that is having the ability to easily install just what you need, so obviously that advantage is going to be less and less the more it is that you require it to do.
Re:List of minimalist frameworks by mercurial on Wednesday December 18, 2013 @06:14AM (#6926967)
That's how it works with micro-frameworks, you pay for what you use. Now, it's not necessarily a problem, last time I checked, there was a decent list of functional Flask components. What do you feel is the advantage of having a huge 'contrib' folder, as long as the extensions are maintained? Because the advantage of not having an ORM bundled per default, and easily switching something like the templating language are pretty clear to me.
Re:List of minimalist frameworks by jsmeaton on Wednesday December 18, 2013 @07:42AM (#6927202)
I have a django project that swapped out the django templates for mako. Mako templates are awesome to use. The problem is it becomes extremely difficult to use packages that have bundled templates of their own. I would think it'd be the same with flask, no?

Making assumptions about the available ORM and templating package allows 3rd party modules to do more of the work for you.

Re:List of minimalist frameworks by mercurial on Wednesday December 18, 2013 @10:49AM (#6928149)
Jinja 2 is a Flask dependency, it is always configured, so that's a bad example (though I have to confess that I don't know how a Flash webapp with a different templating engine works with an extension using Jinja 2 for its views).

As for the ORM, yes and no. Many extensions have no need for it, but I think 99% of the others use SQLAlchemy, because it's the most popular. But if you want to make a website backed by a NoSQL solution, you don't need to depend on an ORM. Obviously, any extension based on SQLAlchemy will not work, but baking the ORM into the framework offers no solution to that.

Re:List of minimalist frameworks by collyw on Wednesday December 18, 2013 @10:23AM (#6927981)
I have been tempted to switch the Django ORM for SQL alchemy, but I would loose the Django Amdin interface.
Re:List of minimalist frameworks by jsmeaton on Saturday December 21, 2013 @02:46AM (#6946115)
..and every 3rd party module that contains their own models, which would be a very large number.

If you want to use SQL Alchemy, you're better off using a different framework. I'm currently trying to decide if this is the angle I should follow for my next project, which requires fairly sophisticated SQL (comparable to the django ORM anyway).

Re:List of minimalist frameworks by tbatterii on Wednesday December 18, 2013 @09:04AM (#6927516)
i just finished up a django project that also had "8 million" dependencies, the difference was a lot of them started with "django-" and some dependencies I would have liked to use were off the table.
Re:List of minimalist frameworks by collyw on Wednesday December 18, 2013 @09:43AM (#6927710)
But the fact they start with Django means you can expect a) They will play nicely together. b) There will be consistencies between the libraries. c) Magic things like the Amdin interface will work.

(Is there any good replacement for Djangos Admin in another framework? Its amazingly powerful with a small amount of configuration).

Re:List of minimalist frameworks by tbatterii on Wednesday December 18, 2013 @10:07AM (#6927846)
> a) They will play nicely together.

depends

> b) There will be consistencies between the libraries.

depends

> c) Magic things like the Amdin interface will work.

true

the workflow for this particular project seemed to go like this...

* get requirement from client * search google for plugins/modules/etc * choose some * try to get them to work * use them or fork them or find others

which to me seems a pretty roundabout way of getting something accomplished if you already know what needs to be done. it doesn't feel like programming, it feels to me like assembling things and testing/hoping there are no issues. I'd rather be programming.

Re:List of minimalist frameworks by krapp on Tuesday December 17, 2013 @09:17PM (#6925481)
Not necessarily. It's minimalism in terms of a framework (though in more objective terms I guess you would be right.) To me that means having not much more than a url router and a way to do MVC - no asset management, no HTML helpers, no ORM, no default templating language.

I'm surprised Slim Framework isn't listed under PHP though, is that not considered minimalist?

Re:List of minimalist frameworks by rmrfrmrf on Tuesday December 17, 2013 @09:26PM (#6925518)
> no HTML helpers, [...] no default templating language

Flask has HTML helpers and uses Jinja2 as its template language, though...

Re:List of minimalist frameworks by krapp on Tuesday December 17, 2013 @09:31PM (#6925533)
Hm... well maybe my definition of 'minimal' is a bit more minimal than the norm then.
Re:List of minimalist frameworks by ssijak on Wednesday December 18, 2013 @06:02AM (#6926933)
But you can pip install any other templating language and use it in flask. jinja is just the default.
Re:List of minimalist frameworks by ljoshua on Tuesday December 17, 2013 @09:41PM (#6925559)
I think in many cases a good minimalist framework will get a core set of functions out of the way (in web for example: routing, autoloading, dependency injection, etc.). Grabbing something small that provides a proven but efficient backbone can let you focus on delivering core value, but then can easily be switched out later as the solution grows.
Re:List of minimalist frameworks by gfish3000 on Tuesday December 17, 2013 @10:44PM (#6925765)
One would think that you wouldn't want to switch out a framework later. After all, your choice of network is one of the defining factors of how everything will work. Swapping it out means rewriting most, if not all, of your CRUD functionality and then doing a whole lot of regression testing. Doesn't seem very cost or time-effective.
Re:List of minimalist frameworks by mercurial on Wednesday December 18, 2013 @06:20AM (#6926979)
Regression testing is inevitable, but with a minimal framework, you'll essentially end up rewriting the controllers, and part of the views. If you switch templating systems, modifying the views can't be helped. And the controllers should only be a glue between your view and the service layer, so it ought to be solely administrative code.
Re:List of minimalist frameworks by huckyaus on Tuesday December 17, 2013 @09:18PM (#6925486)
I read 'minimalist framework' as being a framework that is minimalist, as opposed to a framework for people that are building minimalist software.
Re:List of minimalist frameworks by alan_cx on Wednesday December 18, 2013 @05:33AM (#6926864)
As far a web stuff is concerned, I wouldn't call anything other than pure HTML minimalist. Maybe I'd suggest a table is a minimalist framework.

But judging by the other comments, Im the weirdo. Which is fair enough.

Re:List of minimalist frameworks by downboy on Wednesday December 18, 2013 @01:53AM (#6926246)
It's intention refers more to an easy-to-use, low overhead and already-written solution, because people either don't understand or don't want to invest the time anymore.
Re:List of minimalist frameworks by baddox on Wednesday December 18, 2013 @01:38AM (#6926225)
But there must be a smallest framework, right? I would call the x% smallest frameworks "minimalist."