Stream

 
Got curious about Aspect Oriented Programming in Dart while cleaning up some Java code and found this thread.

Does anyone have some insight into the reasoning for not supporting aspects and if there has been a change in the last year?
1
Demis Bellot's profile photo
 
For a language with minimalist goals like Dart the question is more "Is supporting X in Dart absolutely necessary?".  Although you can get some of the way there with the code generator/transformer approach from one of the Dart devs at: https://github.com/a14n/zengen
Add a comment...

Faisal Abid

Discussion  - 
 
Hey Dartisans! As some of you may know, in two weeks I'll be presenting all about Dart and Polymer at OSCON 2014.

I would love to know what you prefer in a Dart talk and what you don't.

Thanks!


7
Faisal Abid's profile photoDevon Carew's profile photo
5 comments
 
Thanks +Devon Carew ! I'll reach out to you if I need anything!
Add a comment...

Mike Mitterer

Discussion  - 
 
Command-line Apps with Dart
Have you ever asked yourself how dartanalyzer works so seamless on the command-line? "Snapshots" and a small shell script.
https://www.dartlang.org/articles/snapshots/

Here is the script dartanalyzer is using on Linux/Mac - should be easy adaptable for your needs:
-----------
#!/bin/bash
# Copyright (c) 2013, the Dart project authors.  Please see the AUTHORS file
# for details. All rights reserved. Use of this source code is governed by a
# BSD-style license that can be found in the LICENSE file.

# Run dartanalyzer.dart on the Dart VM. This script assumes the Dart SDK's
# directory structure.

function follow_links() {
  file="$1"
  while [ -h "$file" ]; do
    # On Mac OS, readlink -f doesn't work.
    file="$(readlink "$file")"
  done
  echo "$file"
}

# Unlike $0, $BASH_SOURCE points to the absolute path of this file.
PROG_NAME="$(follow_links "$BASH_SOURCE")"

# Handle the case where dart-sdk/bin has been symlinked to.
BIN_DIR="$(cd "${PROG_NAME%/*}" ; pwd -P)"
SDK_DIR="$(cd "${BIN_DIR}/.." ; pwd -P)"

SDK_ARG="--dart-sdk=$SDK_DIR"

SNAPSHOT="$BIN_DIR/snapshots/dartanalyzer.dart.snapshot"

# We are running the snapshot in the built SDK.
DART="$BIN_DIR/dart"
exec "$DART" "$SNAPSHOT" "$SDK_ARG" "$@"
3
Add a comment...
 
Will Dart Replace JavaScript?
Nice Video - +Seth Ladd talking about Dart.

BTW: Nice T-Shirt +Seth Ladd - how can I get one?

http://developers.slashdot.org/story/14/07/09/1945243/will-googles-dart-language-replace-javascript-video
11
2
Guillaume Girou's profile photoDavid Notik's profile photoПавел Березкин's profile photo
3 comments
 
Read the transcript – on target, good energy.
Add a comment...

Gerald Reinhart

Discussion  - 
 
Since I've installed DartEditor 1.5.3, I cannot launch web app through Dartium....
I'm on Ubuntu 12.04 and I have installed DartEditor by https://launchpad.net/~hachre/+archive/ubuntu/dart thanks to +Harald Glatt https://plus.google.com/102053092234380725267 
 I got the following issue.
Going to the LinuxSUIDSandboxDevelopment page, I have no idea of what I'm supposed to do.... any hits ?
3
Tiago Pertile's profile photoHarald Glatt's profile photo
8 comments
 
My testing machine is back up & running and I attempted to reproduce the problem, however it works fine for me on 12.04. The libudev problem shouldn't happen with my packages because I have a fix included for that. But if "dartium" doesn't even run for you on its own from a terminal then it's worth a shot.
Add a comment...

Justin Fagnani
owner

Discussion  - 
 
#dartlang  PSA of the week:

dart:math's Point and Rectangle classes are often underutilized - I see a lot of libraries duplicate them, which kills interoperability. Here's a few little-known facts about Rectangle that might convince you to use it:

 * It's not obvious from the doc viewer, but the Rectangle in dart:html is just exported from dart:math
 * There is a MutableRectangle interface as well.
 * CssRect is also a Rectangle, and implements MutableRectangle

https://api.dartlang.org/apidocs/channels/stable/dartdoc-viewer/dart-math.Rectangle
11
3
Justin Fagnani's profile photoGuillaume Girou's profile photoThomas Schranz's profile photogeorge oloo's profile photo
3 comments
 
+Justin Fagnani Right now it's really unlikely that someone will stumble upon it. Even though it shows up in the auto-complete box.

The reason for that is the linear scan performed by the user. They type "rectangle", see the "Rectangle" hit at the top, see that's from the "dart:math" package, and then they will click it without reading what else there might be, because that's generally a waste of time.

So, you kinda have to know that it's there, because the most optimal path makes you blind for it. To make matters worse, if you only type "rect" you won't even get the chance to see it. "Rectangle" shows up in the middle and "MutableRectangle" is nowhere to be seen.

And once you're on the Rectangle page, you'll be only told that Rectangle is immutable. At which point you'll probably consider just writing your own.

So yea... this is some kind of communication or discoverability issue, which should be addressed.
Add a comment...
 
Hi, we had some problems with script loading on IE 10 (Execution of scripts from cache was in wrong order).
Opening page in new tab without clearing cache resulted in blank page.
The thing that helped was changing from:
<script type="text/javascript" src="packages/web_components/platform.concat.js"></script>
<script type="text/javascript" src="packages/web_components/dart_support.js"></script>
<script type="application/dart" src="main.dart"></script>
<script type="text/javascript" src="packages/browser/dart.js"></script>
...
to:
<script type="text/javascript" >
[
['text/javascript','packages/web_components/platform.concat.js'],
['text/javascript','packages/web_components/dart_support.js'],
['application/dart','main.dart'],
['text/javascript','packages/browser/dart.js'],
...
].forEach(function(src) {
  var script = document.createElement('script');
  script.type = src[0];
  script.src = src[1];
  script.async = false;
  document.head.appendChild(script);
});
 
</script>

Any better solutions?
1
Pawel Perz's profile photoMichael Dawkins's profile photo
2 comments
 
+Michael Dawkins No I havn't filed it on dartbug. I don't know whether it is a dart bug  or internet explorer feature. The solution I posted works fine but I don't like it. It is not nice and tidy. I just wonder if anyone had similar problems.
Add a comment...

Eric Koston

Discussion  - 
 
What would you choose for backend application, #dart, #java or #go?
5
3
george oloo's profile photoJoye Lin's profile photoSlava Pankov's profile photoYissachar Radcliffe's profile photo
37 comments
 
If Java used on the server side then for client side GWT is natural (and probably the best) choice.
Add a comment...

Nane Kratzke

Discussion  - 
 
 

Support Google Material Design !
EZoApp is a drag and drop tool for prototyping apps using Polymer. 
(Beta, Chrome only)
Sample:   http://goo.gl/l8aSq5

  #MaterialDesign   #Android  
31
10
Chanoknad Mekaew's profile photoИван Никитин's profile photo
Add a comment...
 
Ouch. I've just been bit by big blocking bug with Polymer.dart. I'm not sure if this is a polymer transformer bug or due to pub build itself.

Essentially I have an entry point in my app in a subdirectory of web. (eg web/test/test.html). Even though all of my scripts and sources point to the top level package/ directory, the polymer scripts are not. Instead they are looking for web/test/packages/ which is fine during development, but once it's actually built it never rewrites those URLs and so my build fails.

-http://dartbug.com/19992-
http://dartbug.com/17596

Also not sure if this is due to a recent bug-fix which prevents custom component URLs from being rewritten. But since I'm using polymer 0.11.0+5 and not the -dev version I don't think that patch is included in this version anyways.

Finally I don't have shell access and can't create a symlink myself to the packages folder.

[Edit: My bad, it was an existing bug, So hard to find originals when someone describes the issue differently than I do. Looking forward to getting this fix.

My Current work around is to just copy web/packages/ into web/test/packages for my built project. Because it's a small project it's not a huge deal to copy it all but still sucks ;) ]
3
Add a comment...
 
Why does google invest a lot in dart? What is the reason, that google follows?
Why other browser provider like firefox, etc. never will provide dart vm? 
1
Justin Fagnani's profile photoKatsushi Yako's profile photo
19 comments
 
+Jonas Kello very good answer. Not only do we build our apps on the web, but our customers do too, and we believe that the open web has some incredible properties that traditional applications do not. Making web development as good and powerful as possible is the goal of several groups at Google - standards work like the Web Components, Web Animations, Service Workers, foundational libraries like Polymer, UI specs and widgets like Material Design, all the performance work in Chrome, and of course, the work we do on Dart. All together we think the future of web development is very bright.
Add a comment...
 
I'have got the gold badge for the [dart] tag - the second one to achieve this after +Alexandre Ardhuin.
Answering questions is just a great way to learn about technology and I love to learn more about Dart every day.
30
1
David Notik's profile photoGünter Zöchbauer's profile photoWilliam DeVore's profile photo
8 comments
 
+Günter Zöchbauer you rock. I'm so thankful you're there and readily so helpful in helping other folks pick up Dart and get past their challenges. Thank you!
Add a comment...
 
Anyone running coverage reports on a commit hook w a badge similar to what you see for some node projects?

If so how did you set it up?
1
Ole Martin Gjersvik's profile photo
 
I am working on a coveralls plugin for dart. But i am having some black box issues. When i send the data file names gets mangled. And coveralls have not returned my email so its a bit on the back burner.

So if anyone has another service i can upload my coverage data i would write a plugin. I want my coverage.
Add a comment...
 
Hi, any body will help me to understand Dart MVC. I want structure my dart app in mvc
1
Chris Strom's profile photoZAIN ABBAS RIZVI's profile photo
3 comments
Add a comment...

Eric Koston

Discussion  - 
 
What is your opinion for server side development?
2
Add a comment...

Eric Koston

Discussion  - 
1
1
Ruud Poutsma's profile photoSuresh G's profile photo
 
Are fake implementations planned for dart:html and dart:io, so we can use them anyways?
Add a comment...
 
Check out my #dartlang  stack, where I got bi-directional data binding going w/ recent versions of Angular and Polymer. https://twitter.com/DaveNotik/status/486351639230443520
Angular and Polymer, sitting in a DOM tree, B-i-n-d-i-n-g. First comes components, Then comes elements, Then comes the interop with the node dot bind. Angular, a super heroic MVC framework, and Polymer, polyfills and enha...
10
3
Guillaume Girou's profile photoTalel Amira's profile photoFacundo Viale's profile photoJean-Philippe PANIS's profile photo
2 comments
 
Just saw your post about the same issue. I have to try that
Add a comment...
2
David Notik's profile photo
4 comments
 
Updates including angular_node_binding: https://github.com/DaveNotik/dart-stack
Add a comment...
 
This guy (+Bob Nystrom, it turns out) explains how he implemented the loot-dropping mechanics for enemies in a Rogue-like game. About halfway into the article, he talks about how he converted his stuff to Dart.

#dartlang
5
Peter Jakobs's profile photoMonty Rasmussen's profile photo
2 comments
 
+Peter Jakobs  Oh, wow! I didn't even notice that. Thanks for pointing that out.
Add a comment...