Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
XTend: A language made for Java developers
Search
MadridJUG
October 15, 2012
Programming
0
360
XTend: A language made for Java developers
MadridJUG
October 15, 2012
Tweet
Share
More Decks by MadridJUG
See All by MadridJUG
Introducción a Scala
madridjug
3
490
Gradle: un moderno sistema de build para la JVM
madridjug
2
250
Introducción a la minería de datos con R y WEKA
madridjug
0
740
REST para móviles en tiempo real: trabajando al milisegundo
madridjug
0
130
Rapid and Reliable Developing with HTML5 & GWT
madridjug
1
160
Reflection Madness (contenidos de Java Specialist)
madridjug
2
110
JBoss Forge 101
madridjug
2
150
Lessons learned with Akka
madridjug
1
140
Gestión de gemas y jars en JRuby con Maven
madridjug
0
98
Other Decks in Programming
See All in Programming
pylint custom ruleで始めるレビュー自動化
shogoujiie
0
120
富山発の個人開発サービスで日本中の学校の業務を改善した話
krpk1900
5
390
Grafana Cloudとソラカメ
devoc
0
170
『GO』アプリ バックエンドサーバのコスト削減
mot_techtalk
0
150
『品質』という言葉が嫌いな理由
korimu
0
160
Java Webフレームワークの現状 / java web framework at burikaigi
kishida
9
2.2k
Ruby on cygwin 2025-02
fd0
0
150
Pulsar2 を雰囲気で使ってみよう
anoken
0
240
責務と認知負荷を整える! 抽象レベルを意識した関心の分離
yahiru
7
840
Djangoにおける複数ユーザー種別認証の設計アプローチ@DjangoCongress JP 2025
delhi09
PRO
4
200
dbt Pythonモデルで実現するSnowflake活用術
trsnium
0
180
もう僕は OpenAPI を書きたくない
sgash708
5
1.8k
Featured
See All Featured
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
46
2.3k
Let's Do A Bunch of Simple Stuff to Make Websites Faster
chriscoyier
507
140k
How STYLIGHT went responsive
nonsquared
98
5.4k
[RailsConf 2023] Rails as a piece of cake
palkan
53
5.3k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
28
9.3k
Thoughts on Productivity
jonyablonski
69
4.5k
Gamification - CAS2011
davidbonilla
80
5.1k
Mobile First: as difficult as doing things right
swwweet
223
9.3k
Save Time (by Creating Custom Rails Generators)
garrettdimon
PRO
29
1k
Art, The Web, and Tiny UX
lynnandtonic
298
20k
Navigating Team Friction
lara
183
15k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Transcript
A language made for Java developers @jerolba
[email protected]
None
None
Origen XPand
¿Y en mi IDE? SIN SOPORTE :(
pero.... ..siempre nos quedará:
Características •Es un DSL •Genera código Java, no bytecode •Es
100% compatible con Java •Usa todo el sistema de tipos de Java •Interoperable •Programación Funcional •Creación de DSLs
Desarrollo ClaseA.xtend ClaseA.java ClaseB.java Generación de código Compilación ClaseA.class ClaseB.class
App.war Empaquetado XTend Runtime (100KBs)
¿Por qué lo usaría? •Scala es muy complejo y curva
de aprendizaje elevada •Por las closures, no puedo esperar a la JDK8 •Excelente soporte del IDE •Mi plataforma destino tiene recursos limitados
Hola Mundo
Una clase Privado por defecto Constructor Declaración de método Todo
son expresiones Herencia simple Público por defecto ; opcional
Atributos Privado por defecto Tipo String inferido int inferido variable
final
Extension methods I
Extension methods II
Extension Fields
@Property
Lambdas X X
Funciones Primera Clase Cachis! f(value)
Un poco más sencillo Cachis! f(value)
Un poco más funcional!
Funciones parciales
Test de aceptación
Gracias! • XTend • Documentación • Google Group • JNairo
• 20 Facts about Xtend • http://c.funius.com/xtend