om

Please ask the channel first, not @dnolen directly!
baptiste-from-paris 2017-03-12T15:36:17.976385Z

hello all, little om.next question. How do you interact with an API you don’t control ?! Little use case, I am building a newsfeed from the New York Time API . My UI is quite simple, something like that =>

(def init-data {:news-feed [{:id 1
                             :title "This is a title"
                             :author {:id 3 :name "Baptiste"}}
                            {:id 2
                             :title "This is an other title"
                             :author {:id 4 :name "Vincent"}}]})
The nyt API send me back completly different fields (https://developer.nytimes.com/archive_api.json) . Should I map their API to my app-state on the front-end ? Should I write a back-end which deal with it ? Feedbacks are welcomed 🙂

levitanong 2017-03-12T16:51:45.240461Z

@baptiste-from-paris That’s how I would do it, in the send function, before passing it to the callback.

levitanong 2017-03-12T16:51:55.241027Z

*in the front-end

baptiste-from-paris 2017-03-12T16:52:40.243732Z

ok, that’s what I am doing but it can become quite ugly

baptiste-from-paris 2017-03-12T16:52:49.244200Z

thx @levitanong

levitanong 2017-03-12T16:53:59.248226Z

@baptiste-from-paris specter might help you shape your data

baptiste-from-paris 2017-03-12T16:55:41.254450Z

yes indeed

sova-soars-the-sora 2017-03-12T22:51:22.591697Z

Hi. I'm interested in recursive queries and I want to do indented comments on entries. So a reply to a comment is indented one unit width. How can I ... make indentations cumulative, or do you recommend using list elements and styling via css that way?

2017-03-12T23:20:13.699794Z

could potentially use react virtualized