jsug - as3 vs java by christoph pickl
DESCRIPTION
Presentation of Christoph Pickl, comparing Flex and Java (development style)TRANSCRIPT
![Page 1: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/1.jpg)
AS3 vs JavaChristoph Pickl
1Thursday, March 5, 2009
![Page 2: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/2.jpg)
Getting used to Flex/ActionScript from a Java developer's perspective
www.jsug.at www.alpenflash.at2Thursday, March 5, 2009
![Page 3: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/3.jpg)
Agenda1. Languages
2. Development
3. Design Patterns
4. Miscellaneous
3Thursday, March 5, 2009
![Page 4: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/4.jpg)
About Myself
TU Wien Student
Former Java Developer
Flash since Version 5
Co-Founder of jsug.at
DJ/Turntablist
http://web.student.tuwien.ac.at/~e0525580
4Thursday, March 5, 2009
![Page 5: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/5.jpg)
Discussions during presentation are welcome
5Thursday, March 5, 2009
![Page 6: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/6.jpg)
LanguagesActionScript 3 compared to Java
6Thursday, March 5, 2009
![Page 7: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/7.jpg)
The limits of my language are the limits of my world.
Ludwig Wittgenstein
7Thursday, March 5, 2009
![Page 8: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/8.jpg)
Advantages of AS3
Common Syntax
Function Type
Metaprogramming
Type Hinting (~static)
Built-in Language (e4x)
Mandatory override
+
8Thursday, March 5, 2009
![Page 9: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/9.jpg)
Disadvantages of AS3
Lack of OOP Features
No abstract classes
No private constructors
Dynamic Classloading
Strings instead Enums
Runtime Errors
−Many things are coming soon...
9Thursday, March 5, 2009
![Page 10: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/10.jpg)
DevelopmentFlex Builder vs Java perspectives
10Thursday, March 5, 2009
![Page 11: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/11.jpg)
Advantages
Fully integrated in Eclipse environment
Low Barrier of Entry
Use yet existing Power
Common Perspectives(Sync, Debug, ...)
Switching Languages
+
11Thursday, March 5, 2009
![Page 12: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/12.jpg)
Disadvantages
Reorganize Imports
Slow Auto Completion
Code Templates
Incremental Compilation
Maven Plugin(s)
Not open source
Submitting patches?
−
12Thursday, March 5, 2009
![Page 13: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/13.jpg)
Design PatternsReuse solutions for common problems
13Thursday, March 5, 2009
![Page 14: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/14.jpg)
Patterns are great for forming a design vocabulary.
Bill Scott
14Thursday, March 5, 2009
![Page 15: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/15.jpg)
Singleton in Javapackage at.jsug.as3vsjava;
public class Single {
private static final Single INSTANCE = new Single(); private Single() {} public static Single getInstance() { return INSTANCE; }}
// final Single single = Single.getInstance();
15Thursday, March 5, 2009
![Page 16: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/16.jpg)
Singleton in AS3package at.jsug.as3vsjava {
public class Single { private static var INSTANCE: Single; public function Single(enforcer: SingletonEnforcer) { } public static function get instance(): Single { if(INSTANCE == null) { INSTANCE = new Single(new SingletonEnforcer()); } return INSTANCE; }}}class SingletonEnforcer { }
// const single: Single = Single.instance;
16Thursday, March 5, 2009
![Page 17: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/17.jpg)
Design Patterns Book
Features of AS 3.0
OOP Concepts
12 Sample Patterns
Creational
Structural
Behavioral
www.as3dp.com17Thursday, March 5, 2009
![Page 18: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/18.jpg)
RIA Patterns
http://www.uxmatters.com/mt/archives/2007/03/conference-review-uie-web-app-summit-2007-part-ii.php
18Thursday, March 5, 2009
![Page 19: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/19.jpg)
MiscellaneousStuff that didn’t fit (in other chapters)
19Thursday, March 5, 2009
![Page 20: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/20.jpg)
Frameworks?!
Apache Stuff
Logging, Collections, ...
IoC-Container
Spring ActionScript
Maven
Unit Testing
OR-Mapper
20Thursday, March 5, 2009
![Page 21: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/21.jpg)
We don’t like proprietary stuff!
If it’s not opensource,please keep it away from us!
21Thursday, March 5, 2009
![Page 22: JSUG - AS3 vs Java by Christoph Pickl](https://reader033.vdocuments.us/reader033/viewer/2022051412/5482a5fcb4af9f640d8b482a/html5/thumbnails/22.jpg)
ConclusioSun guys are engineers
Adobe guys are designers
Bring’em together
22Thursday, March 5, 2009