-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rewrite frontend #185
Comments
Anuglar 1.x or Angular 2? They differ quite a lot, so be sure to make the correct choice :) |
haha, good question. First of all version 2.0 of MCJS has nothing to do with Angular's versioning ;) |
Have you seen react ? Is this something you want to look into ? |
@benzen given the DOM interactions for mediacenterjs are probably not significant enough for either Angular or React to have a clear advantage. Personally, I really like the Flux+React paradigm more, but don't think performance is a significant real world difference between the two in usage here. If this was moving forward to Angular 2, then I would definitely suggest at least considering alternatives like Flux+React, Mercury, Meteor, and others... |
I really like React in general (whether with Flux or not). |
Hmm, I'll dive into React more to make an educated discussion! Thanks guys for pointing this out! |
Given the hint you provided, I totaly agree with your choice. Wont this mean a lot of rewrite for you ? |
It would ;) I would stick to 1.x for now I guess. What I'm wondering is hoe well react and angular work together. So say I use angular for the routing and other Model controller stuff and use React for the view. Eg components. Would that work? Or would that just get messy ? Thanks! |
Hm i would not mix both together. |
I've started reading up on react, and it seems flux goes with it fairly often. Though I'm unsure about the what the difference between flux and react is, does anyone here know? |
I've spent some time arround react. IMO what is really awesome is more flux. Flux is just a pattern on how to WE can use react for build directive (https://github.com/davidchang/ngReact What in my opinion make more sense, is looking at flux, and apply it to But again this will change radically the way you build pages. Hope this helps 2015-03-06 10:52 GMT-05:00 Jonathan Bailey [email protected]:
Benjamin DREUX |
So flux is for data whereas react is more view/Dom stuff? I think the weather app is the only one not on on Angular, should it be converted or wait until angular 2.0/react is decided? |
I'm still very much on the fence. I've been running through demo's and tutorials of all these libraries and think all of them have a thing going for them. Personally I'm most familiar with Angular 1x but that shouldn't be the reason to pick that one. I like the component driven syntax of react /flux but haven't been able to make an educated decision to be honest. If we port the weather app and redo the routing in angular, we'll be able to wrap the entire app in atom shell which is (for me at least) is a big goal to achieve :) |
So I've been playing with React and so far I'm really liking it. Sometimes it feels a bit more barebone than angular, but the virtual dom and the component driven development are awesome and would work great for this project. |
Hi Jan, long time no hear! Looks like things are going good with mediacenterjs. Just my two cents, I would go angular 1.x. I don't know much about react, but with angular you can create dynamic routing based on a compiled template and the state provider. At run time the template is compiled with the routes from different controllers. This enables each controller to specify it's route and be separate from other routes in the $stateprovider. Have a look at https://github.com/Karnith/JMedia/tree/Dev/assets/src/app for an example. If you have questions, let me know. Karnith |
There's also now: http://jsblocks.com which they claim is faster than react |
For work I've been using https://github.com/rackt/react-router a lot recently and I have to say, although not as full featured as Angulars routing it helps to route to specific react components. I really liked working with React these last few weeks. Everything is very flat and transparent. State and stack management are intuitive and easily manageable. I'm currently building a mini MCJS locally in React to gauge the speed pitfalls etc of porting to angular. Still thanks for keeping the conversation alive, sorry I haven't been as responsive as I used to! |
what about something like http://ionicframework.com/ or http://reapp.io/ |
I can't speak for the other frameworks, but angular has ui-router for states and is able to use future states with a plugin. I'm just starting to play around with future states now, but from what I understand future states allow for dynamic states to be used, say coming from a db on the fly verses needing to reload your app every time a new state is added... |
@jansmolders86, I think it may be worth looking at how Redux handles state, and workflows... it's a flux-like framework that's pretty simplified over Flux and has become pretty popular... it's about consistent, and immutable state. I find that Redux + React + Router is a pretty good combination for application workflow and rendering. |
@tracker1 :) I am using it for work atm and love it as well! Now I just have to find time to rewrite MCJS with it haha |
@jansmolders86 true enough... been following this project with great interest for a while, and honestly still haven't had the time to dig in... was thinking on doing something similar, that could run on a desktop/server, then have a tablet/phone UI that then "plays" through a chromecast... I've seen some chromecast bits in npm, and combined with the work here, I think it's entirely doable, it's just a matter of getting the free time... thanks for all your work on this project. |
Hello, are you still looking at doing this? If so, I can help out with the transition to react. The other framework you might want to consider is vue.js |
I wish I had the time, sadly work has kept me way too busy to start such a huge endeavor |
Wow, totally forgot about this... haven't looked at it in a long time... today, my choice for UI in general is absolutely React + Redux + Material-UI ... Couldn't be happier. Have done a little with Vue and for a mid-large app it's difficult to get it all working together. |
Even Redux wouldn't be necessary. I'd go React 16.8 (hooks FTW) with styled components and React spring. |
For MCJS 2.0 I really want to make the move to react/webpack for the entire project.
Even though nearly all apps are angular already.
The text was updated successfully, but these errors were encountered: