News for hackers. Stuff that matters.
Re:Start — Dart web framework inspired by Sinatra by taylorlapeyre on Thursday March 21, 2013 @10:41AM (#5415316)
Interesting. Haven't seen many Dart projects so far.
Re:Start — Dart web framework inspired by Sinatra by mythz on Thursday March 21, 2013 @11:12AM (#5415559)
I've also created a lightweight Express-inspired framework at: https://github.com/Dartist/Express

Since Dart lacks the ability to extend built-in types using something like extension methods, categories or refinements as seen in other languages I think exposing a user-controlled class is the way to go as it lets you expose a framework-focused, value-added, user-facing DRY API.

Re:Start — Dart web framework inspired by Sinatra by Daegalus on Thursday March 21, 2013 @04:21PM (#5418648)
I went a much similar route with my lightweight express-inspried framework.

I made user-controlled classes that get populated with relevant data and middleware information. Like stuff from form parsing.

https://github.com/Daegalus/fukiya

Re:Start — Dart web framework inspired by Sinatra by lvivski on Thursday March 21, 2013 @10:47AM (#5415356)
Well, Start uses another project called Hart [1] template engine that has syntax similar to Slim or Jade. And I'm going to include Gloss [2] there too, it's a CSS preprocessor, but it's not stable yet.

[1] http://github.com/lvivski/hart [2] http://github.com/lvivski/gloss

Re:Start — Dart web framework inspired by Sinatra by sethladd on Thursday March 21, 2013 @12:16PM (#5416192)
[disclaimer, I work on the Dart project]

You might be interested in checking out http://pub.dartlang.org which is our repository of Dart packages. Meanwhile, we're still in beta, so I hope to see more projects when we hit 1.0.

Re:Start — Dart web framework inspired by Sinatra by Ovid on Thursday March 21, 2013 @11:43AM (#5415852)
I have to confess that after read through the Dart specs, all I could think was "meh". Google had a chance to throw their weight behind some powerful language advancements, but all I saw was a boring Java/Javascript hybrid. And given that Dart will never be natively embedded in Safari or IE, it's going to be very hard to get traction on it.

I suspect that's why you haven't seen many projects in Dart.

Re:Start — Dart web framework inspired by Sinatra by ahoge on Thursday March 21, 2013 @01:53PM (#5417354)
Dart is supposed to be "boring". Their intention was to create a language which is familiar to anyone who used Java, C#, AS3, JavaScript, or any other C-like language in the past.

From my own experience, I'd say that this strategy worked exactly as intended. I was able to write code after skimming through some of the examples. To be honest, I only bothered with Dart because it used C-like syntax.

Also, it compiles to surprisingly fast JavaScript [1]. Support by all browser vendors isn't necessary. You can use it either way. The lack of support really doesn't change anything. You'd use a build/deploy script either way, wouldn't you?

[1] https://plus.google.com/u/0/114943499066504644906/posts/WXNL...

Re:Start — Dart web framework inspired by Sinatra by kyrra on Thursday March 21, 2013 @11:54AM (#5415951)
Agreed, the language syntax itself is very boring. Listening to talks from their language designers, I think they are even annoyed a little that they can't do more interesting things with the syntax. I've been following dart for a while now, and here's the feel I get from the language:

* Dart's goal is not to explore exciting new syntax, it's about giving developers a language that can quickly start being productive on.

* Cleaning up a lot of the messy syntax that exist in Javascript today.

* Be able to easily and efficiently compile to Javascript. This seems to be the reason for a lot of the language syntax decisions.

* Provide a full development experience (language, tools, ui, etc...) out of the box.

Re:Start — Dart web framework inspired by Sinatra by tadfisher on Thursday March 21, 2013 @12:25PM (#5416300)
A very important feature is class-based object orientation, which the vast majority of developers are familiar with, thus it is more natural to use compared to prototype-based OO.

Also, tool-visible types allow for better/easier tool-assisted development, something that has been a stumbling block even in the most monstrous of IDEs. For example, ever ctrl-clicked a function assigned to a var in Eclipse?

Re:Start — Dart web framework inspired by Sinatra by kyrra on Thursday March 21, 2013 @01:06PM (#5416815)
yup. No prototype inheritance is huge, plus having a single entry point for an app is huge. These 2 provide a lot of VM optimization opportunities.
Re:Start — Dart web framework inspired by Sinatra by lvivski on Thursday March 21, 2013 @12:11PM (#5416121)
Dart syntax is familiar and it's a plus, you don't have to learn new syntax quirks.
Re:Start — Dart web framework inspired by Sinatra by michaelwww on Thursday March 21, 2013 @10:46AM (#5415350)
Another interesting one is https://github.com/dart-lang/web-ui