[JAVA] I recently made a js app in the rumored Dart language

Recently, when I was researching various things with Flutter, which is three times more productive than the rumor, there was a dart language, and I was wondering if I could make a JS application, so I tried using it. https://dart.dev

Published as a facebook instant game. https://fb.gg/play/solitaireproworld

Ported the android application developed in java. https://play.google.com/store/apps/details?id=jp.co.projapan.solitaire

Since it is a game app, it uses the StageXL framework. This is a Flash-like API. http://www.stagexl.org

good point

--The build is fast. It reloads in about 5 seconds. Once you get used to it, you can develop it quickly and it feels super comfortable. --Similar to Java, so it's easy to port from java. Easy for java programmers to enter. --Compared to java, Dart is better without complaint. completely different. Objective-C fucking --Since it is a new language, there are few strange restrictions. C ++ or shit --I used VS Code for the IDE, but it's light. Recent XCode is shit. Can also be developed in android Studio. ――When you get used to it, you can develop it quickly and it feels super comfortable. ――It's not related to Dart, but automatic source formatting with VS Code is good. Increase productivity. (I wasn't interested until now) --You can also use webGL. Stage XL is turned on at Defo. Well it turned off because of an old device. If it is a new device, ON will improve the performance. ――JS is quite big, but it can be gzipped, so there is no problem. This app was 748KB-> 212KB. --Dart source level DEBUG is possible only with Chrome! As expected it is genuine.

Bad point

--With VS Code, Japanese comments are garbled. (It seems that it has been fixed in the latest version) --There is little Japanese information. There is no StageXL information in particular. Not at all. ――It's annoying because the screen is constructed with code. Well this is fine. You don't have to remember weird tools. --Sometimes I get an exception that I can't trace the source, and I have a hard time fixing it. --If double is entered in num and assigned to int, an exception will occur because it is not an integer. ――You can start DEBUG from VS Code, but I didn't use it because it will be a big deal. You can debug with Chrome only, so use that. It may be improved now. --There is no function of language-specific resources. I couldn't help it, so I built it myself. Well, just kick it out to json for each language. --If (xx) and xx is null, an exception will be thrown. Shit. --I'm tired because the build wait time is short: sob: I'm super tired. I run out of time to read news.


I was able to make it almost crispy. : v: Productivity is good. : relaxed: It's justice to build fast.

Maybe I'm the only Japanese who uses StageXL. Maybe I could be a valuable old programmer.

Let's do Flutter soon. Angular Dart is currently in use.

Recommended Posts

I recently made a js app in the rumored Dart language
I made a chat app.
I made a matching app (Android app)
[Android] I made a pedometer app.
I made a rock-paper-scissors app with kotlin
I made a calculator app on Android
I made a rock-paper-scissors app with android
I made a rock-paper-scissors game in Java (CLI)
I made a viewer app that displays a PDF
I made a Ruby extension library in C
I made a simple calculation problem game in Java
I made a check tool for the release module
I made a Restful server and client in Spring.
I made a lock pattern using the volume key with the Android app. Fragment edition
I made a program in Java that solves the traveling salesman problem with a genetic algorithm
[Beginner] I made a program to sell cakes in Java
I tried JAX-RS and made a note of the procedure
I was confused because there was a split in the Array
I made roulette in Java.
I made the "Sunshine Ikezaki game" I saw on Twitter in Java.
[Rails] I made a simple calendar mini app with customized specifications.
Do I need a test if I do DDD in a language with types?
I tried to create a simple map app in Android Studio
I want to create a chat screen for the Swift chat app!
What if I write a finally clause in the try-with-resources syntax?
I tried to illuminate the Christmas tree in a life game
I made a Ruby container image and moved the Lambda function
I made a reply function for the Rails Tutorial extension (Part 1)
I made a gem to post the text of org-mode to qiita
I made a reply function for the Rails Tutorial extension (Part 5):
I made a tool to output the difference of CSV file
Ruby: I made a FizzBuzz program!
I created a PDF in Java.
I made a GUI with Swing
Create a new app in Rails
I made a simple recommendation function.
I made an annotation in Java.
I made a package.xml generation tool.
I was in trouble at work, so I made a plugin for IntelliJ
The parameters I received in Rails were a bit different than I expected
I made an app to scribble with PencilKit on a PDF file
I thought about the best way to create a ValueObject in Ruby
I will expose the fucking app that I made hard to get a job as an engineer from inexperienced.