Discourse 对 React 的看法是什么

If I am saying stupid stuff, please correct me as i don’t know how to “web” stuff. I posted this so that i can hear the opinions of more experienced developers, along with some examples if there are any.

I know that Discourse uses Ember for UI stuff but right now, i see that all the craze is for Facebook’s React and (to a lesser extent?) for Vue or Angular.

What is your opinion on other UI frameworks? Would others be interesting for Discourse? What should a noob like myself get into? (right now i am learning from freeCodeCamp )

Why do you like ember and not the others?

Note that I am asking this as I have a long term wish: I want to make a ~utility~ website for someone in which to store as much details about “paleontology” stuff as possible. The items have to be indexable, searchable, comparable, must have lots of details, location, pictures, can refer to each other, blah, blah.

So far i have only been a backend developer (java), and all this frontend world seems super-mega-much-more complicated.

2 个赞

If I’m not mistaken, react powers the discourse mobile app.

1 个赞

Aren’t they all a bit of a muchness? Ember seems excellent, especially the handlebar template concept. The main issue currently is surely that it’s not set up for Ember CLI, not that they need another framework …

The main test of a modern framework is that it can deliver a Progressive Web App. Ember seems to handle things well!

2 个赞

All the web front-end technologies work fine, an Angular or React rewrite wouldn’t make the UI better, it would only enable a larger community of developers to make plugins and theme components. It’s very difficult to find ember devs in my area, but angular and/or react are on almost every resume.

2 个赞

OK, I have a React-ion here…

Everything is awesome! Ember Awesome, React Awesome, Vue Awesome

But we picked Ember and are happy with our choice and do not see ourselves moving anywhere new any time soon.

Well… I can help here. If you want to hack on Discourse, learn Ember! There is a very lively community with tons of resources. If you do not want to hack on Discourse … well this is not the place to be discussing this :stuck_out_tongue_winking_eye:

19 个赞

Definitely put Ember on your to-learn list if you wanna get into Discourse development. Angus has put an excellent reading list together here: Learn how to start building stuff for Discourse if you're newbie (like myself)

But while you’re on FreeCodeCamp, I’d say stick with the material they’ve got. Most of what you’ll learn there will be generally applicable to any web development project anyhow.

5 个赞

Okay, so it seems that the community is not as opinionated as i expected (hoped for?).

I’m unsure if Discourse dev is something that i want. It is true that it is an interesting platform, but i see a lot of features i wanted (and a lot more i never thought of) already here, so i’m good with this.

also,

that’s just awful, man :)).

Anyhow, thanks for all the opinions, but for now i’m not yet set on anything :^) .

If you want hot opinions, here’s one:

The use of React would make it extremely hard to customize the JS app’s behavior. Ember’s design is much more open to on-the-fly changing of behavior, like you do in a theme script.


However, if you’re trying to use Discourse as a base to make some other application: I’d recommend avoiding that. Use Discourse as a discussion forum, because if you use it for anything that’s Not A Discussion Forum you’re going to have breakage from core changes and get stuck on an old version.

If you want to make your own webapp, go and make your own webapp, and you can use Discourse to talk about it :slight_smile:

11 个赞

Oh, no no no

This is what i had in mind from the beginning.

What i am looking for is opinions from people who actually work with these technologies daily, on their +es and -es. Therefore thanks for that note about easier extensibility.

3 个赞

Not an easy question to answer without knowing what you want to do.

I think of most things web to be analogous to “tools”. For example, if you have two sledge hammers, a two pounder and a one hundred pounder, once you know how to use one, learning how to use the other is relatively easy. But if you want to break out wall slats the two pounder is the better choice, breaking rocks the one hundred pounder might be better. But if you are willing to put in more effort in order to have more control, a fifty pounder might be your choice. i.e. choose the tool based on the job and your preferences.

Getting back to code, what you’re asking for is a side-by-side comparison of two complex front ends which IMHO is a bit much to ask for. However, if you have something specific in mind, that could be a reasonable question that could be answered.

4 个赞

我在研究如何嵌入 React 应用时发现了这个帖子。两年后才来发言,我确实犹豫再三。如果话题不合适,请帮忙调整。

能够(双关语:react)对很久以前的对话做出回应,是 Discourse 最棒的功能之一。我找了很久才找到这个功能,非常高兴 @sam 在这里实现了它。能够随时自定义功能,这一点我非常珍视,感谢 @riking 指出这一点。

回到我最初寻找的内容。Gravatar(getgravatar.com)是我正在考虑为用户采用的 React 应用。也许这与我不熟悉的一种趋势背道而驰,但从 React 与 Ember 的角度来看,是否有任何理由不建议这样做?

这里有一位开发者关于 React 和 Ember 的观点,来自 @TheBestPessimist
https://medium.com/front-end-weekly/using-react-components-in-your-ember-app-8f7805d409b0