Stream

Join this community to post or comment

Nils Döhring

Discussion  - 
 
Dart facade for BabylonJS Demo: http://rockdot.sounddesignz.com/dart/babylonjs-interop/
Facade converted from TypeScript definition, 8kLOC.Gzips to 41KiB. More info (and problems!) coming soon.
16
Nils Döhring's profile photoBernhard Pichler's profile photo
4 comments
 
Looks promising! A small modification of the StageXL RenderLoop and WebGL RenderContext and in theory it could work. Maybe i will do a demo next weekend ;)
Add a comment...

Nils Döhring

Discussion  - 
 
TypeScript to Dart type definition converter: Here, have a script that takes .d.ts from DefinitelyTyped and converts them to Dart. It converts the chart.d.ts source file used in the interop example by kevmoo with 100% accuracy. Give it a try and please feedback where it didn't work (will happen a lot), so I can improve the thing. Which JS lib do you want wrapped in Dart, next?

https://github.com/blockforest/dts-converter
dts-converter - Converts TypeScript wrapper definitions (.d.ts) from DefinitelyTyped to Dart
55
4
Kévin Platel's profile photoFilip Hráček's profile photoВладислав Гордиевский's profile photoMonty Rasmussen's profile photo
6 comments
 
Great job! This tool must be included in dart SDK! I abandoned exploring Dart for the lack of support on existing javascript libraries like Babylonjs, Three.js.. This will help a lot!
Add a comment...

John McDole

Discussion  - 
 
"""
This paper reduces the complexity of the checking system
by addressing a fundamental assumption, the assumption
that checkers must depend on a full-blown language
specification and compiler front end. Instead, our program
checkers are based on drastically incomplete language grammars
(“micro-grammars”) that describe only portions of a
language relevant to a checker. As a result, our implementation
is tiny—roughly 2500 lines of code, about two orders of
magnitude smaller than a typical system. We hope that this
dramatic increase in simplicity will allow developers to use
more checkers on more systems in more languages.

We implement our approach in µchex, a language-agnostic
framework for writing static bug checkers. We use it to build
micro-grammar based checkers for six languages (C, the C
preprocessor, C++, Java, JavaScript, and Dart) and find over
700 errors in real-world projects.
"""

http://web.stanford.edu/~mlfbrown/paper.pdf
10
1
Erlantz Oniga Ouro's profile photo
Add a comment...
 
Is dart suitable for business database applications? Any docs or tutorials about this topic? Any official package or libarary for working with ms sql server or mysql? Bussines Reporting tools? 
1
Adam Stark's profile photoJonathan Pugh's profile photo
4 comments
 
Did you check the techempower benchmarks for dart on the server? It is seriously fast!
Add a comment...

Ahmet A. Akın

Discussion  - 
 
Seems like one or two new numerical types may be introduced in the future: pixels and fraction ( https://codereview.chromium.org/2035453002/ https://codereview.chromium.org/2005723004/ ). Perhaps they are the same thing I am not sure. Pixels is probably related with ( https://github.com/dart-lang/sdk/issues/26494 ). 
12
Add a comment...

Davy Mitchell

Discussion  - 
 
 
Can you build a slack bot with Dart? Apparently!

If you're around Vienna, you might want to check out the next Dart Vienna meetup (June 14).

http://www.meetup.com/Dart_Vienna/
@SlackHQ Bot in the makes w/ @Sgoettschkes, built in #dartlang. Demo at the next Vienna @dart_lang Meetup #bots · Embedded image. 2:21 AM - 27 May 2016. 3 Retweets7 Likes. Reply to @allanberger. Home · Sign up · Log in · Search · About. More like this; Less like this; Cancel. Not on Twitter?
5
Add a comment...

Davy Mitchell

Discussion  - 
 
Quick question... Has anyone written a Dart app for the Pebble? Thanks!
1
Add a comment...

Adrián Avila

Discussion  - 
 
The Secret Weapon

In 2003 I was working for another company making fat desktop client applications, just two tiers, client and db, it was simple, and it worked, of course, scalation wasn't a priority, but the point is that by that time, we were kicking the competence arse because our applications were fast, full of features, appealing and with better price, and we where able to create them fast and solid, the reason, we were using Delphi + Firebird SQL (interbase at that time) while the others where using the only thing they knew, Visual Basic and SQL Server, Delphi was a lot better than Visual Basic w/o the DLL hell, all was bundle in one sigle executable, no versioning conflics, it just worked, add to the equation the wonderful Devexpress components and the productivity multiplied, I haven't created desktop applications in a while, all web now, but I think today my new secret weapon would be Dart, while the others are using JavaScript for a rich client experience, I'm using Dart and all the advantages it has, so, I think it is equivalent of my desktop programming days, but now is not Delphi vs VB, but Dart vs JavaScript and I believe I have the advantage.
14
Johann Dirry's profile photo
 
So you had a Sumo Wedding
Add a comment...
 
Does anybody know why Dart was excluded from Material 2 or what happens with polymer-dart? Also there are no updates on angular 2 package.
It doesn't look good :/
7
Daniel Davidson's profile photoBenjamin Jesuiter's profile photo
17 comments
 
+Daniel Davidson​ I now use Angular 2 in Dart for the websites I'm programming as a freelancer. It was a bit tricky to get some points right, because of incomplete documentation. But It was doable.

In the first place I wanted to go with angular dart 1 for the last project, because all my custom components where written in angular dart, but for some reason, one component stopped working.

Conclusion: Angular 2 is not completely mature right now, but given the beta /rc state, it's quite usable. And I see it normal for dart projects to lag behind some weeks behind a Javascript /typescript counterpart, at least if there is such a counterpart and the lib is not written in dart directly.
But normally the updates are arriving, it's only a bit quite in the meantime between them. 😄
Add a comment...

Mike Mitterer

Discussion  - 
 
MDL/Dart talks to Android - proof of concept
https://github.com/MikeMitterer/android-hybrid

Hi guys - as said, it's just a proof of concept. No alternative to Flutter but maybe an option for one or the other.
14
Add a comment...

Monty Rasmussen

Discussion  - 
 
So you want to start writing web apps, progressive web apps, server apps, command-line utilities, mobile apps, and IoT programs with Dart, right? Of course you do! It's a fantastic developer experience. But first you need to set up your development environment, and I'm here to show you how you can do that for the low, low price of free, using the planet's most hackable code editor, Atom.

#gde #article #dartlang
So you want to start writing web apps, progressive web apps, server apps, command-line utilities, mobile apps, and IoT programs with Dart, right? Of course you do! It's a fantastic developer experience. But first you need to set up your development environment, and I'm here to show you how you
40
27
mats mcmats's profile photoJairo Rudas's profile photo
Add a comment...

Nane Kratzke

Discussion  - 
 
Some fun again this summer. Here are the first game submissions by my students taking part in my web technology course at Lübeck University of Applied Sciences this summer.
http://www.nkode.io/lecture/2016/04/11/lecture-webtech.html

Feel free to play:

- Break Out
- Till Death
- Pacman

I expect further game submissions until 5th July 2016. So stay tuned.

All games are developed by students in Dart. If you are interested in the educational backgrounds: I recently was interviewed by +Filip Hráček from the Dart Team at Google about applying Dart in Education.
http://news.dartlang.org/2016/04/dart-in-education-interview-with-prof.html


21
2
Nils Döhring's profile photoNane Kratzke's profile photoMonty Rasmussen's profile photoClaudio Omar Biale's profile photo
2 comments
 
Hi, sadly I give this course only for the computer science study program.
Add a comment...

曹忠

Discussion  - 
 
A few months have not seen the news polymer.d art.
5
Monty Rasmussen's profile photo
 
What kind of news are you looking for? There is regular discussion about it on Dart's Slack channel, and a fantastic community member has been making steady progress updating the element collections on GitHub.
Add a comment...
 
If someone ever needed `groupBy()` function on an `Iterable` then `ListMultimap` from `quiver/collection` library is your best friend.

It's a bit unintuitive and hard to find (I've been googling for `dart list groupBy` all the time but it points to some declined issues on github).

https://www.dartdocs.org/documentation/quiver/0.22.0/quiver.collection/ListMultimap-class.html
API docs for the ListMultimap class from the quiver.collection library, for the Dart programming language.
6
Add a comment...
 
Let's refactor some code.... uuuuupss.
 
I think i can do it, no may be next time.
#cuteanimals   #funnyanimals  
6
Add a comment...

Filip Hráček
moderator

Discussion  - 
 
What documentation should we focus on?¹

● What are the topics (design patterns, core libs, Angular2, ...) that need the most work?
● What are the formats (tutorials, guides, codelabs, API docs, ...) that need the most work?
● Do you have any especially egregious examples of bad (or missing) documentation?

___
[1]: I know I touched on this before, but I wanted to have a self-contained discussion here.
15
Monty Rasmussen's profile photoRaph Alves Sa's profile photo
21 comments
 
The crypto package documentation looks like it could use some more love: https://www.dartdocs.org/documentation/crypto/2.0.1/index.html
Add a comment...
 
I had a little issue with Cloudinary the past week and I had to remove all of our images from there. There is no tool that allows you to do that with their service, so I wrote a little dart command line application that does just that: Back up your Cloudinary images to your local drive.

https://github.com/mobilejazz/cloudinary-backup
cloudinary-backup - Back Up your Cloudinary files to your computer
4
Pol Batlló Casadesús's profile photoFaisal Abid's profile photo
3 comments
 
LOL. Same issue here. Adult images :)
Add a comment...

Edouard Tavinor

Discussion  - 
 
Hello!

I'm wondering if someone at Google can update the polymer tutorial at https://www.dartlang.org/docs/tutorials/using-polymer/

I just spent 2 hours fighting with it to try to get it to work and then gave up :(
Use a Polymer element, such as a material design button or menu, in any Dart web app.
12
Filip Hráček's profile photoMonty Rasmussen's profile photo
10 comments
 
I checked, and the latest Dart analyzer does kill Polymer projects. I've updated the tutorial at https://dart.academy/polymer-dart-code-lab-your-first-elements/ with a note about how to fix it (using analyzer 0.27.2).
Add a comment...

Filip Hráček
moderator

Discussion  - 
 
Even with Futures, asynchronous code can blow up quite fast. (I'm not even talking about old-school callbacks here.) On the right, async/await keeps it tight and "procedural".

This code is inspired by one that +Tomáš Zvěřina shared earlier today. I quite like the use of await inside the if condition check.

The confirm() method returns a Future (aka Promise in JavaScript land) with the result of a user interaction. But obviously any method that returns a Future<bool> can be used in this way.
27
1
BLeAm Z.'s profile photoJay Turner's profile photo
16 comments
 
Hi again,

This curiosity led me to learn somethings these 2-3 days and just want to share with you guys. Hopefully I'm not disturbing the original post.

First, figured out that the sleep function from dart:io can't be used in asynchronous approach to introduce pause, instead, it will block the whole thing.

And second, I've learn that await keyword is like handover signal between subcall and caller, whenever subcall run into await it passes back the loop to the caller. So, that's why when we call await at top-level function it blocks the main loop since there's no caller to pass the loop to.

As shows in this DartPad: https://dartpad.dartlang.org/d49cc7e9d996e8fe4afca036dbc2bbbb
It shows that the await in ranBool(5) didn't block main from calling Timer to start immediately, it passes back the loop, while await in main function obviously blocked the loop from printing "main finished" until it gets result from ranBool(5) since there's no caller to pass the loop back. The total running time of this script is 5secs.

Another test is in this DartPad: https://dartpad.dartlang.org/97b714a42be759dadef935e6b88ddec2
This approach shows how we can wait for the confirm dialog's answer without having it blocks the loop from printing 'some flag'. For some reason I can't get the confirm dialog shows up in DartPad, it needs to be tested in Dartium.

I feel like playing with this curiosity/question help me grasping more understanding with asynchronous approach. Any addition/advice would be appreciated.
Add a comment...

Tomasz Kubacki

Discussion  - 
 
You can now debug Dart on Atom - didn't know that - nice
28
2
William DeVore's profile photoSanti Fri's profile photoGiovanni Laquidara's profile photo
 
And you can use the debugger statement for finer control, for example: debugger(when: ClassServer.debugTrap == 0); to break on conditions.
Add a comment...