Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
XTend: A language made for Java developers
Search
MadridJUG
October 15, 2012
Programming
400
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
Transcript
23 slides
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
More Decks by MadridJUG
See All by MadridJUG
Introducción a Scala
madridjug
3
550
Gradle: un moderno sistema de build para la JVM
madridjug
2
340
Introducción a la minería de datos con R y WEKA
madridjug
0
790
REST para móviles en tiempo real: trabajando al milisegundo
madridjug
0
170
Rapid and Reliable Developing with HTML5 & GWT
madridjug
1
210
Reflection Madness (contenidos de Java Specialist)
madridjug
2
150
JBoss Forge 101
madridjug
2
170
Lessons learned with Akka
madridjug
1
190
Gestión de gemas y jars en JRuby con Maven
madridjug
0
120
Other Decks in Programming
See All in Programming
How SRE Grew Out of Server-Side Work and Became the Team's Own / サーバサイドから始まったSREを チームに渡すまで
maaaato
1
380
React Native経験者が Flutterを30⽇間触って驚いたこと
3saito
0
210
Growing PicoRuby's Ecosystem on ESP32
yuuu
2
150
Kotlin Fest 2026: Kotlin コンパイラに Contribute してみよう! - Kotlin/Wasm で深い再帰を書けるようにした話
ternbusty
1
430
AIコーディング時代のKotest ユニットテストから APIレベルの仕様固定化テストへ
ooga04
0
350
例外からRich Errorsまで Kotlinエラーハンドリングの進化を読み解く
shiita0903
0
250
RaspberryPi 5で軽くはじめるk3sとtailscaleを用いたホームサーバー構築 (1)
nasum
0
450
vue-tsc x TypeScript7
koukimiura
0
110
正解の無い問題を 「できるだけ上手く」解く ヒューリスティックで感性を磨こう。〜現実課題をプログラミングで解きあうコミュニティについて〜
allegrogiken
0
120
Scalaの型でマルチテナントの認可を守る
nextbeatdev
0
180
Debian JP Projectのサーバー構成
uwabami
1
190
手の動かし方がわからなかった私が個人開発者になるまで
usagi0920_pochi
0
350
Featured
See All Featured
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.6k
Statistics for Hackers
jakevdp
799
230k
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.9k
The Pragmatic Product Professional
lauravandoore
37
7.5k
More Than Pixels: Becoming A User Experience Designer
marktimemedia
3
640
Color Theory Basics | Prateek | Gurzu
gurzu
1
530
Fashionably flexible responsive web design (full day workshop)
malarkey
409
67k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
Building Experiences: Design Systems, User Experience, and Full Site Editing
marktimemedia
1
680
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
4
4.5k
Darren the Foodie - Storyboard
khoart
PRO
5
4.1k
A Guide to Academic Writing Using Generative AI - A Workshop
ks91
PRO
1
580