-
Notifications
You must be signed in to change notification settings - Fork 2
/
a-vocabulary.md.erb
91 lines (51 loc) · 4.57 KB
/
a-vocabulary.md.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
title: Meteor Vocabulary
slug: meteor-vocabulary
date: 0099/01/01
number: 99
points: 1
appendix: true
contents: Review a few common Meteor terms.
paragraphs: 24
---
#### Client
כאשר אנו מדברים על צד לקוח, אנו מתייחסים לקוד שרץ ב*סייר האינטרנט* של המשתמש, בין כאשר מדובר בסייר מסורתי כגון פיירפוקס או ספארי, או,
כאשר מדור בחלון סייר בתוך אפליקציית אייפון נייטיב
#### Collection
A Meteor Collection is the data store that automatically synchronizes between client and server. Collections have a name (such as `posts`), and usually exist both on client and server. Although they behave differently, they have a common API based on Mongo's API.
#### Computation
A computation is a block of code that runs every time one of the reactive data sources that it depends on changes. If you have a reactive data source (for example, a Session variable) and would like to respond reactively to it, you'll need set up a computation for it.
#### Cursor
A cursor is the result of running a query on a Mongo collection. On the client side, a cursor isn't just an array of results, but a *reactive* object that can be observed as objects in the relevant collection are added, removed and updated.
#### DDP
DDP is Meteor's Distributed Data Protocol, the wire protocol used to synchronize collections and make Method calls. DDP is intended as a generic protocol, which takes the place of HTTP for realtime applications that are data heavy.
#### Tracker
Tracker is Meteor's reactivity system. Tracker is used behind the scenes to keep HTML automatically sync with the underlying data model.
#### Document
Mongo is a document-based data-store, so the objects that come out of collections are called "documents". They are plain JavaScript objects (although they can't contain functions) with a single special property, the `_id`, which Meteor uses to track their properties over DDP.
#### Helpers
When a template needs to render something more complex than a document property it can call a helper, a function that is used to aid rendering.
#### Latency Compensation
Is a technique to allow simulation of Method calls on the client, to avoid lagginess while waiting for the server to respond.
#### Meteor Development Group (MDG)
The actual company developing Meteor, by opposition to the framework itself.
#### Method
A Meteor Method is a remote procedure call from the client to the server, with some special logic to keep track of collection changes and allow Latency Compensation.
#### MiniMongo
The client-side collection is an in-memory data store offering a Mongo-like API. The library that supports this behaviour is called "MiniMongo", to indicate it's a smaller version of Mongo that runs completely in memory.
#### Package
A Meteor package can consist of JavaScript code to run on the server, JavaScript code to run on the client, instructions on how to process resources (such as SASS to CSS), and resources to be processed. <br/>A package is like a super-powered library. Meteor comes with an extensive set of core packages, and there's also [Atmosphere](http://atmosphere.meteor.com), which is a collection of community supplied third party packages.
#### Publication
A publication is a named set of data that is customized for each user that subscribes to it. You set up a publication on the server.
#### Reactive
תגובתי, מגיב בזמן אמת
#### Server
The Meteor server is a HTTP and DDP server run via Node.js. It consists of the all the Meteor libraries as well your server-side JavaScript code. When you start your Meteor server, it connects to a Mongo database (which it starts itself in development).
#### Session
The Session in Meteor refers to a client-side reactive data source that's used by your application to track the state that the user's in.
#### Subscription
A subscription is a connection to a publication for a specific client. The subscription is code that runs in the browser that talks to a publication on the server and keeps the data in sync.
#### Template
A template is a method of generating HTML in JavaScript. By default, Meteor supports Spacebars, a logic-less templating system, although there are plans to support more in the future.
#### Template Data Context
When a template renders, it refers to a JavaScript object that provides specific data for this particular rendering. Usually such objects are plain-old-JavaScript-objects (POJOs), often documents from a collection, although they can be more complicated and have functions available on them.