Fork me on GitHub
#onyx
<
2016-10-29
>
colinhicks03:10:12

Okay, here's the tutorial prototype. *Not recommended for low-bandwidth.* EDIT: https://colinhicks.github.io/onyx-blueprint/resources/public/index.html

colinhicks03:10:42

Starting with core.cljs, you'll see the example tutorial data set up in components and sections. These are separate so that content is orthogonal to layout. You could imagine a slideshow layout with the same content, for example. Also we might want to generate interactive docs by transforming other content like the user guide. In any case, the goal is to send tutorial content and layout to the om machinery with api/render-tutorial. Note that the naming of core.cljs is a vestige of figwheel's boilerplate: The core ns will be removed. A better name for this file would be prototype.cljs.

colinhicks03:10:33

The om app renders ui components based on each map in components. UI is decorated based on :component/type. At the first url, you can see text, editor, graph and simulator components in action.

colinhicks03:10:40

Will be back tomorrow to discuss further

mariusz_jachimowicz10:10:21

good job @michaeldrogalis @colinhicks Next future step could be building UI Editor that could simplify creating job and could generate whole clj file from UI and run in browser hosted onyx or on the server then. I think about UI like Apache Nifi for instance. Our brain is best on graphical shapes and patterns recognition. What do you think?

yonatanel10:10:30

@mariusz_jachimowicz I'd like to have that too but not for editing. Maybe for monitoring. I've never seen a flow-control UI that is more convenient than code for non-trivial cases. There's this: https://github.com/onyx-platform/onyx-dashboard

mariusz_jachimowicz11:10:03

yes I agree. This kind of editing could be usefull for new comers, when you want to quickly go from novice to master, I think. Onyx dashboard is good starting point of course. I am thinking about rebuilding it further in the future. I have WIP PR there 😄.

yonatanel13:10:37

I wonder what UI the new hosted product has.

mariusz_jachimowicz15:10:41

Yeah, I am also very curious about new product 😄

yonatanel16:10:37

Started reading the onyx-kafka source 😰

lucasbradstreet16:10:26

which version? Hopefully not the onyx-kafka-0.8 plugin… onyx-kafka is better, but still needs work. The current onyx 0.9 plugin interface is pretty complex to get right. We’ll be improving things a lot in the next version and it’ll get a rewrite at that point

yonatanel17:10:50

@lucasbradstreet Do you have anywhere documenting what are the difficulties and what is still a work in progress? I'm thinking of writing a plugin for EventStore and that might help.

lucasbradstreet17:10:05

We have another plugin interface that was kind of a trial balloon for the next version of Onyx. It’s here https://github.com/onyx-platform/onyx/blob/0.9.x/src/onyx/plugin/simple_input.clj

lucasbradstreet17:10:29

You can see an implementation of onyx-twitter here https://github.com/onyx-platform/onyx-twitter

lucasbradstreet17:10:45

This plugin interface will be much closer to what ends up being used in the next version of onyx

yonatanel17:10:49

Thanks for the heads-up

yonatanel17:10:04

If I write a plugin do I get an Onyx t-shirt? ;)

Travis18:10:34

I probably need to get one written for Cassandra

Travis18:10:19

Been in devops mode for the last 2 months. Need to get back to onyx

michaeldrogalis18:10:42

@colinhicks Beautiful work my friend.

Travis18:10:45

Second that, just checked it out

michaeldrogalis18:10:37

In response to the above, in my opinion, having an extensive, interactive in-browser tutorial such as what @colinhicks has started will be the fastest way to get up to speed with Onyx. I've spent a good chunk of time teaching Onyx in person, and the reason that learn-onyx is effective is because it approaches the platform from the programming model, and for most people, that's where the value proposition is.

michaeldrogalis18:10:10

The lower we can make the cost for someone to try and explore the programming model, the better.

colinhicks19:10:25

Thanks, all 🙂. Excited about where this is going. Here are some thoughts about the tutorial-creation process. https://github.com/colinhicks/onyx-blueprint/issues/7

colinhicks19:10:14

Note the repository name change, to onyx-blueprint. The GH pages link needs to use this, too.