This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2023-11-21
Channels
- # announcements (1)
- # beginners (20)
- # biff (5)
- # calva (43)
- # cider (5)
- # clj-commons (7)
- # clj-kondo (11)
- # clojure (58)
- # clojure-brasil (1)
- # clojure-denmark (1)
- # clojure-europe (27)
- # clojure-nl (1)
- # clojure-norway (13)
- # clojure-uk (2)
- # clojurescript (71)
- # data-science (32)
- # datalevin (6)
- # datomic (19)
- # emacs (1)
- # gratitude (3)
- # honeysql (8)
- # hoplon (15)
- # hyperfiddle (3)
- # introduce-yourself (1)
- # lsp (19)
- # malli (4)
- # nbb (7)
- # other-lisps (5)
- # practicalli (1)
- # re-frame (14)
- # releases (1)
- # ring-swagger (1)
- # squint (118)
- # xtdb (9)
- # yada (2)
One of the nice things about biff and other clojure web frameworks is structural editing of hiccup. When i think of other languages "integration" with html, and the experience of editing html documents as strings or "templates" - I smile.
➕ 4
I don't see any problems:
public Object[] displayMyString(badge: Object[], myString: Object[]) {
return new Object[]{[
"div",
Map.of(
"style", Map.of("background-color", "red")
),
new Object[] {
"div",
badge,
new Object[]{
"p",
myString
}
}
]
}
}
On a similar note: We also have integrations like honeysql where you have the select statement as a data structure instead of string manipulation or a thousand of factory functions.😆 6
I think in clojure it is much easier to take the bottom "p" and make it wrap around the top "div", using structural editing
I expected a rage of Java developers because "it's not OOP and 'look how many maps you created'" 😂
🙂 1
I agree. Structural editing is a killed app, often taken for granted. Applyi g it to html nesting helps so much!