There is potential because it is very simple to set up and works for the small tasks. I developed something similar a couple years ago called Jig.js (I've since pulled it offline and relegated it to small internal apps, and also quick browser-based presentations) because I wanted to be able to easily throw together quick apps, only having to include one <6kb (uncompressed!) JS file with no dependencies.
Erm, license ... how about MIT? MIT license it is.
The `slides' array is my data store, and the `presenter' object handles clearing out the page for the next slide. The actual app logic is tiny, but right away you get hash URLs, easy dispatching to actions, and a very simple controller/action model that can actually be even lighter than this example shows (for instance, you can choose to define no controllers at all, and just have an action list, kind of like Sinatra).
It doesn't use HTML5 History, and I'm sure it has all types of subtle issues because, like I said, it's only for internal use. But I see people are interested in tools like this, so I thought I'd let you all see :^)
The current popular offerings are HEAVY (Backbone, Ember, Angular) but I'm not going to release something that isn't industrial strength.
People shouldn't be so harsh to independent authors. I feel differently about large companies like Google and Microsoft, who get extreme value out of open source.
There's a reason I don't release many handy tools like the one linked in this comment, and it's because I expect a torrent of criticism to follow (which I can handle) and I'm not interested in changing it at all except for my own purposes (and so I'd just feel guilty).
> People shouldn't be so harsh to independent authors.
The mantra of the critique culture is that you are not your ideas. Criticism of the idea does not imply criticism of the author – at least not in my world.
That's fine, but there's a difference between a critique and a flame. There are an awful lot of flames in this thread. Also, as Hegel says, anything that exists is reasonable, and an "unreasonable" reason for not releasing code is still a valid one.
In any case, my main reason for withholding things is the "guilt" factor I mention at the end of my previous comment.
Lately I've seen a couple people refer to Backbone as "heavy," which I just don't understand, as it seems about as lightweight as possible for the functionality it provides. Could you explain what you mean?
Well, that's the thing, it provides more functionality than many people need, and requires more code than should be needed for some small projects.
Binding URLs to functions and dispatch strings is all I need for a great many small projects; I have a very easy time managing the DOM with my own widgets and managing data with simple JavaScript objects. So the "heavy" part can be having to learn which parts of the API I do or don't need, reading through tutorial docs, etc.
Here's an example slideshow application's source: http://oinksoft.com/static/js/jig.example.js
And here's Jig.js, use at your own risk: http://oinksoft.com/static/js/Jig.js
Erm, license ... how about MIT? MIT license it is.
The `slides' array is my data store, and the `presenter' object handles clearing out the page for the next slide. The actual app logic is tiny, but right away you get hash URLs, easy dispatching to actions, and a very simple controller/action model that can actually be even lighter than this example shows (for instance, you can choose to define no controllers at all, and just have an action list, kind of like Sinatra).
It doesn't use HTML5 History, and I'm sure it has all types of subtle issues because, like I said, it's only for internal use. But I see people are interested in tools like this, so I thought I'd let you all see :^)
The current popular offerings are HEAVY (Backbone, Ember, Angular) but I'm not going to release something that isn't industrial strength.
People shouldn't be so harsh to independent authors. I feel differently about large companies like Google and Microsoft, who get extreme value out of open source.
There's a reason I don't release many handy tools like the one linked in this comment, and it's because I expect a torrent of criticism to follow (which I can handle) and I'm not interested in changing it at all except for my own purposes (and so I'd just feel guilty).