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
Por que clojure
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Octavio Turra
September 14, 2016
Programming
57
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Por que clojure
Pontos observados da linguagem clojure
Octavio Turra
September 14, 2016
Other Decks in Programming
See All in Programming
はじめてのPLATEAU
nokonoko1203
1
580
私なりのハーネスエンジニアリング ~独自の言語処理系の開発を通して~
seosoft
0
180
高橋メソッドでCVE解説シリーズ 〜CVE-2026-112816〜
hakkadaikon
0
230
Crash Auto Pipelines
veronikapj
1
380
AI駆動開発4年目の現在地(『あなたはFDEになるべきか?』イベント資料)
kumaiu
0
240
Goコンパイラを作ってGoをもっと理解する / Build a Go compiler to better understand Go
ikura_hamu
0
120
SODA - FACT BOOK(EN)
sodainc
1
210
S3 TablesのIcebergデータに、AIエージェントからアクセスしてみた / 20261016developersio2026joetsu-accessing-iceberg-in-s3tables-via-agent
kasacchiful
PRO
0
280
PumaからFalconに移行したRailsアプリケーションでの実践
falcon8823
0
360
Getting Started with Vibe Coding
miccheng
0
190
3回つくってわかった、 定期実行ジョブ基盤の本質情報
takai
4
3.7k
まずはコードより業務と向き合う:テーブル解体のためにPdMを呼んだ話
sakawe_ee
0
180
Featured
See All Featured
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Learning to Love Humans: Emotional Interface Design
aarron
275
41k
30 Presentation Tips
portentint
PRO
1
460
How to build a perfect <img>
jonoalderson
1
6.2k
Sam Torres - BigQuery for SEOs
techseoconnect
PRO
0
610
Noah Learner - AI + Me: how we built a GSC Bulk Export data pipeline
techseoconnect
PRO
0
480
Jess Joyce - The Pitfalls of Following Frameworks
techseoconnect
PRO
1
470
A designer walks into a library…
pauljervisheath
211
25k
Building a Scalable Design System with Sketch
lauravandoore
464
34k
The browser strikes back
jonoalderson
0
1.9k
Kristin Tynski - Automating Marketing Tasks With AI
techseoconnect
PRO
0
580
Designing Dashboards & Data Visualisations in Web Apps
destraynor
232
55k
Transcript
Por que Clojure FUNCIONAL
Como surgiu? Criada por Rich Hickey https://clojure.org/ “Realm of Lisp”
[Benevolent dictator] Concorrência Funcional Homoiconicidade 2009 : 1.0 / 2016 : 1.8 λ
Por que eu usaria? Homoiconicidade se dá pelo fato de
que os dialetos de Lisp respeitam uma estruturação homogênea. Lisp (operador ..operandos) //form (funcao parametro parametro) (+ 1 2) (map sum [1 2 3 4 5])
Por que eu usaria? Anonymous functions Funcional (fn [arg] (println
arg)) Nil Punning High order functions Closures (str nil) => “” (map #(* % %) [1 2 3 4 5]) (defn f [x] (fn [y] (+ x y))) Threading expressions (->> (range 10) (map inc)) Laziness (take 5 (positive-numbers))
Por que eu usaria? Multimétodos Polimorfismo em Runtime (defmulti area
:shape) (defmethod area :rectangle ==[{:keys [l w]}] (* l w)) (defmethod area :circle ==[{:keys [r]}] (* Math/PI r r)) (area {:shape :circle :r 10}) => 314.1592653589793 (area {:shape :rectangle :l 5 :w 10}) => 50 Protocolos (defprotocol Foo ====(bar [x y]) ====(baz [x] [x y])) (deftype Bar [data] Foo ====(bar [x y] (println x y)) ====(baz [x] (println x)) ====(baz [x y] (println x y))) (let [b (Bar. "some data")] ====(.bar b "param") ====(.baz b) ====(.baz b "baz with param"))
Por que eu usaria? Macros (defmacro defprivate [name args &
body] ==`(defn ~(symbol name) ~args =====(if (:user @session) =======(do ~@body) ======="please log in"))) (defprivate foo [greeting] ==(println greeting))
Quem usa? http://clojure.org/community/companies