-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Revise content architecture #216
Comments
Per #219, need to add "Glossary" under "Resources". (added to above list 9/23/14) |
I think we should include Security and Performance too, under Advanced Topics. |
Yes! Do we have content for that topic? |
I can write :) |
@dougwilson We have a planned section for "Components" that is currently empty. Could you please help fill it in, e.g. brief description of "what is a component", links to pillarjs modules, etc. Any pointers or help on this would be appreciated. There are two relevant articles:
|
Sure, though, what is an "Express component" (from the developing article)? Is that just an express middleware? |
Introducing another term might be confusing. Here are some questions. i. What is the purpose of using the term "Express components"? Middleware is already a function, which is a callback function, which is an explicit or implicit route handler. If the term "Express component" is introduced without proper forethought, it could end up creating more confusion. If we can avoid introducing another term, we should; if we must introduce, it should be well justified. |
@hacksparrow I agree with you. Right now I'm not 100% sure what an "Express component" even is? |
For what I know, components == middleware. Let's hear what Rand has to say. |
Sounds like he means pillarjs - type modules, i.e. our frameworks components, such as the future Router(s). |
Ah. Those wouldn't be "Express components" and a "how to make one" article doesn't make sense to even be in Express documentation, as they don't build off Express, Express builds off them. It sounds like that lineage was just misunderstood. |
Actually, nevermind on what I said above; re-reading the OP #216 (comment) it sounds like the "Using components" page is for the pillarjs et al. and "Developing Express components" page really does refer to middleware. |
I think middleware should be middleware. No use changing the name now. (We aren't in the front-end haha) Components should be framework components, and that stuff would belong in the pillarjs docs. |
This terminology was per @altsang ... thought it was a known thing.... Will let Al comment |
we have two things - middleware that is now pluggable as regular Node modules that Express uses with the app.use(...) interface, these are the pieces that were pulled out of Connect when the decoupling was complete and then we have other things in express that will be pulled out like the router that aren't "middleware". Can we generalize as "Express components"? I'm fine with "Express Middleware", but last time I kept referring to middleware to generalize both of these I was getting funny looks 😄 We can have two categories as well - one that references the "middleware' pointing to expressjs.org and the "components" pointing to PillarJS - would that work? |
stuff you can shove in app.use / call with a req/res/next signature (or err/req/res/next for error handlers = Middleware modules that can be swapped inplace of (or including) pillarjs modules = PillarJS Components |
Gotcha all. The components are below the level of Express and even below Connect; they transcend Express itself, unlike the middlewares, so calling them "Express components" only makes sense in that "these components are what make up Express" from Express's point of view, but they are outside the scope of Express. i.m.o calling them "Express components" would be similar to saying we use "Express HTTP". |
OK, so it sounds like "Express components" is not right. So, we have "middleware" (as currently) and "PillarJS components"....? Obviously the doc will describe how to use and write middleware. Do we want to discuss PillarJS components, and how it relates to Express, links to the repos, etc? |
So, it's really, I think, undecided right now. If a page where to exist on it, it would be to talk about how Express is made of components and which ones, etc. I have to muse over is this would even be of value to the users who come to Express's site looking for how to build with Express. |
I think it will be best to state that it's made of PillarJS components, but we aren't quite there yet, so i wouldn't worry about that sort of thing. |
My suggestion: i. Show how to use middleware - npm and locally created modules. HTTPJS / PillarJS should not be menu items, it will only confuse the users. Their modules can be listed under point iii. |
Sounds good. So I think we should have a "Middleware" topic under "Guide" for i. and ii. above (replacing "Using Components") in my original outline. Should iii. be a part of this topic, or a separate topic? If separate, would it be best to keep under "Guide" or put elsewhere? |
iii looks like something which should go under Resources. |
With update of the site, closing this issue. If there are specific issues with the organization, they should be raised in individual issues. |
Once the site has the ability to have a multi-level topic hierarchy -- see issue #214 -- the content needs to be reorganized to make it easier to understand, maintain, and navigate. Here is my suggested reorganization.
The text was updated successfully, but these errors were encountered: