Application patterns
As MeteorJS is young, there is no definite pattern that we can follow for our application. However, people are testing against their needs and are coming up with various patterns to follow. Here, in this section, we will see two popular patterns that are talked about by the community.
The package pattern
Let's break the mystery and learn what package pattern is. We know that, by definition, we can build a MeteorJS application using packages. There are applications out there built by developers using this pattern. Why is it that some developers embrace creating an application only by writing their business logic inside packages? To answer this question, we must understand the following:
- What might probably go wrong with the usual way of writing code in a typical MeteorJS application?
- How the packages offer a greater control over our code
Problems with the usual way of writing MeteorJS code
We discussed some of the problems earlier. Let's look at them again, little...