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
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
MadridJUG
October 15, 2012
Programming
390
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
XTend: A language made for Java developers
MadridJUG
October 15, 2012
More Decks by MadridJUG
See All by MadridJUG
Introducción a Scala
madridjug
3
540
Gradle: un moderno sistema de build para la JVM
madridjug
2
320
Introducción a la minería de datos con R y WEKA
madridjug
0
760
REST para móviles en tiempo real: trabajando al milisegundo
madridjug
0
150
Rapid and Reliable Developing with HTML5 & GWT
madridjug
1
200
Reflection Madness (contenidos de Java Specialist)
madridjug
2
130
JBoss Forge 101
madridjug
2
170
Lessons learned with Akka
madridjug
1
170
Gestión de gemas y jars en JRuby con Maven
madridjug
0
110
Other Decks in Programming
See All in Programming
なぜ型を書くのか? TSKaigi2026で改めて考える #tskaigi_smarthr
kajitack
0
170
はてなアカウント基盤 State of the Union
cockscomb
1
970
SREは、MCPとSRE Agentをこう使え!
kazumax55
0
120
TAKTでAI駆動開発の品質を設計する
j5ik2o
7
1.6k
Skillsは効率化、Agentsは"自分の拡張"——Builder時代のエージェント編成(CC Night 2026)
wemra
1
170
Creating Composable Callables in Contemporary C++
rollbear
0
170
Vite+ Unified Toolchain for the Web
naokihaba
0
360
Honoでのサプライチェーン侵害対策 〜 3つのライブラリに学ぶ
yusukebe
7
1.5k
Lessons from Spec-Driven Development
simas
PRO
0
220
決定論的オーケストレーションの設計と実装 / Design and Implementation of Deterministic Orchestration
nrslib
4
1.5k
代数的データ型って何が嬉しいの? #frontend_phpcon_do
kajitack
8
3.8k
Observability in Practice:Grafana 與 Edge Device SRE 的那些事
blueswen
0
180
Featured
See All Featured
Navigating the Design Leadership Dip - Product Design Week Design Leaders+ Conference 2024
apolaine
1
360
Breaking role norms: Why Content Design is so much more than writing copy - Taylor Woolridge
uxyall
0
330
Technical Leadership for Architectural Decision Making
baasie
3
420
How People are Using Generative and Agentic AI to Supercharge Their Products, Projects, Services and Value Streams Today
helenjbeal
1
220
YesSQL, Process and Tooling at Scale
rocio
174
15k
From π to Pie charts
rasagy
0
220
Mind Mapping
helmedeiros
PRO
1
270
GraphQLとの向き合い方2022年版
quramy
50
15k
Leo the Paperboy
mayatellez
7
1.9k
Producing Creativity
orderedlist
PRO
348
40k
Information Architects: The Missing Link in Design Systems
soysaucechin
0
980
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.5k
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