PDF Mastering JavaScript Single Page Application Development 1. Edition Klauzinski download
PDF Mastering JavaScript Single Page Application Development 1. Edition Klauzinski download
com
https://ebookname.com/product/mastering-javascript-single-
page-application-development-1-edition-klauzinski/
OR CLICK HERE
DOWLOAD NOW
https://ebookname.com/product/beginning-windows-store-application-
development-html-and-javascript-edition-burns/
ebookname.com
https://ebookname.com/product/beginning-ios-application-development-
with-html-and-javascript-1st-edition-richard-wagner-2/
ebookname.com
https://ebookname.com/product/beginning-ios-application-development-
with-html-and-javascript-1st-edition-richard-wagner/
ebookname.com
https://ebookname.com/product/fighting-from-your-back-ground-
fighting-2nd-edition-geoff-thompson/
ebookname.com
A Macaronic Sermon Collection Studies and Texts First
Edition Pontifical Institute Of Mediaeval Studies
https://ebookname.com/product/a-macaronic-sermon-collection-studies-
and-texts-first-edition-pontifical-institute-of-mediaeval-studies/
ebookname.com
https://ebookname.com/product/java-an-introduction-to-problem-solving-
and-programming-6th-edition-walter-savitch/
ebookname.com
https://ebookname.com/product/mcts-windows-server-2008-applications-
infrastructure-configuration-study-guide-exam-70-643-joel-stidley/
ebookname.com
https://ebookname.com/product/bridging-the-gap-between-theory-and-
practice-in-educational-research-rachelle-winkle/
ebookname.com
https://ebookname.com/product/the-social-worker-as-manager-a-
practical-guide-to-success-seventh-edition-edition-robert-w-weinbach/
ebookname.com
Deep Nature Photographs from Iowa 1st Edition Edition John
Pearson
https://ebookname.com/product/deep-nature-photographs-from-iowa-1st-
edition-edition-john-pearson/
ebookname.com
Mastering JavaScript Single
Page Application Development
Philip Klauzinski
John Moore
BIRMINGHAM - MUMBAI
Mastering JavaScript Single Page
Application Development
Copyright © 2016 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or
transmitted in any form or by any means, without the prior written permission of the
publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the
information presented. However, the information contained in this book is sold without
warranty, either express or implied. Neither the authors, nor Packt Publishing, and its
dealers and distributors will be held liable for any damages caused or alleged to be caused
directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-78588-164-0
www.packtpub.com
Credits
I would like to thank my Mom and Dad for always stressing the importance of education in
my life, not just institutional education, but more importantly, the pursuance of self-
education. My own interest in technology and software from a young age has driven my
subsequent, self-taught approach to my career. As a result, I love what I do for a living,
and I have been able to shape my professional life around the things in which I am truly
interested. I am inherently driven to learn more every day, and I believe that is what has
led to my success. Thank you, Mom and Dad!
John Moore has been working in web development for 20 years. He is an industry expert in
JavaScript and HTML5. He has developed award-winning web applications and worked
and consulted for Digital Equipment Corporation, Ernst & Young, Wachovia Bank, and
Fidelity Investments. Having focused his early career on frontend web development, he
helped usher in responsive web design and Single Page Applications in his roles in
development and architecture. Most recently, he led Full Stack development in JavaScript,
serving as CTO of a Maine-based startup company.
I would like to thank my wife, Dr. Myra Salapare, and daughters, Mila Moore and Sophia
Moore, for all of their support. I would also like to thank Andrea Shiflet, Erin Benner, and
Lauren Grousd for their tremendous help.
About the Reviewer
Ciro Artigot is currently working as an IT manager at ECODES, an Spanish foundation that
works for the welfare of all people within the limits of our planet.
He has developed websites for over 15 years. He is a Full Stack developer and CMS expert
and is addicted to Joomla, He has worked for 10 years in open source GNU projects, mainly
in LAMP .
For the last few years, he has been investigating and working with SPA in MEAN
environments.
I would like to thank Pampa, Diego,and Hugo, for giving me the time to review this book,
and my parents and brothers, for making it possible for me to devote myself to what I like
best—develop
www.PacktPub.com
For support files and downloads related to your book, please visit www.PacktPub.com.
Did you know that Packt offers eBook versions of every book published, with PDF and
ePub files available? You can upgrade to the eBook version at www.PacktPub.com and as a
print book customer, you are entitled to a discount on the eBook copy. Get in touch with us
at service@packtpub.com for more details.
At www.PacktPub.com, you can also read a collection of free technical articles, sign up for a
range of free newsletters and receive exclusive discounts and offers on Packt books and
eBooks.
https://www.packtpub.com/mapt
Get the most in-demand software skills with Mapt. Mapt gives you full access to all Packt
books and video courses, as well as industry-leading tools to help you plan your personal
development and advance your career.
Why subscribe?
Fully searchable across every book published by Packt
Copy and paste, print, and bookmark content
On demand and accessible via a web browser
Table of Contents
Preface 1
Chapter 1: Getting Organized with NPM, Bower, and Grunt 7
What is Node Package Manager? 8
Installing Node.js and NPM 8
Configuring your package.json file 9
NPM dependencies 10
Updating your development dependencies 11
Bower 11
Installing Bower 12
Configuring your bower.json file 12
Bower components location and the .bowerrc file 14
Bower dependencies 14
Searching the Bower registry 15
Grunt 16
Installing the Grunt CLI 17
Installing the Grunt task runner 17
Installing Grunt plugins 17
Configuring Grunt 19
Understanding Node.js modules 19
Creating a Gruntfile 20
Defining Grunt task configuration 21
Loading Grunt plugins 22
Running the jshint Grunt task 24
Running the watch Grunt task 25
Defining the default Grunt task 27
Defining custom tasks 27
Summary 29
Chapter 2: Model-View-Whatever 30
The original MVC pattern 30
The Model 31
The View 32
The Controller 33
MVP and MVVM 34
MVP 34
MVVM 35
Summarizing the differences between MVC, MVP, and MVVM 36
VIPER and other variations of MVW 36
VIPER 36
Other variations of MVW 37
AngularJS and MVW 38
A brief history of AngularJS 38
AngularJS components 39
Template 39
Directives 39
Model 40
Scope 40
Expressions 40
Compiler 41
Filter 41
View 41
Data binding 41
Controller 42
Dependency injection 42
Injector 43
Module 43
Service 43
Using the MVW pattern in an SPA 44
Building a simple JavaScript SPA 44
Creating the Model 45
Creating the View 45
Setting up frontend assets 46
Compiling web templates 46
Precompiling web templates 46
Handling server HTTP requests 47
Creating the SPA layout 47
Serving the SPA 48
Overview of a simple JavaScript SPA 49
Summary 50
Chapter 3: SPA Essentials – Creating the Ideal Application Environment 51
The JSON data format 51
Other data formats 53
XML 53
YAML 54
BSON 54
Why does JSON reign supreme? 55
The differences between SQL and NoSQL databases 55
NoSQL data typing 56
Relational data typing 56
ACID transactions 57
Atomicity 57
[ ii ]
Consistency 57
Isolation 58
Durability 58
MongoDB and ACID 58
Write-ahead logging with MongoDB 58
When to use SQL versus NoSQL databases 59
Scalability 59
Horizontal scaling 59
Big Data 59
Operational Big Data 60
Analytical Big Data 60
Overall considerations 61
Methods of presenting an SPA container 61
How to define your SPA container 62
Partial page container 62
Full page container 62
How to load your SPA container 63
Loading on user interaction 63
Login page transition 63
Loading based on the DOMContentLoaded event 64
Loading based on the document readystatechange event 65
Loading directly from the document.body 65
Using the script tag async attribute 67
Using the script tag defer attribute 67
Managing layouts 68
Static layouts 68
Dynamic layouts 69
Installing Express 69
Setting up a basic server with Express 70
Basic routing with Express 70
Running a server with Express 71
Loading static assets with Express 71
Dynamic routing with Express 72
Summary 73
Chapter 4: REST is Best – Interacting with the Server Side of Your App 74
Understanding the fundamentals of REST 75
Understanding an architectural style versus a protocol 75
Architectural style 75
Protocol 76
Transport layer protocols 76
Application layer protocols 76
Using HTTP as a transfer protocol for REST 77
The constraints of REST 78
Client-server 78
[ iii ]
Stateless 78
Cache 79
Uniform interface 80
Identification of resources 80
Manipulation of resources through representations 81
Self-descriptive messages 81
Hypermedia as the engine of application state 81
Layered system 81
Code-on-demand 82
Benefits of REST 83
Performance 83
Simplicity 84
Separation of concerns 84
Scalability 84
Portability 84
Visibility 85
Reliability 85
RESTful web services 85
Setting up a simple database with MongoDB 86
Installing MongoDB 86
Installing MongoDB on Mac using Homebrew 86
Creating a MongoDB data directory 87
Running MongoDB 87
Creating a collection with MongoDB 87
Installing the Node.js MongoDB driver 88
Writing basic REST API endpoints 89
CRUD with REST 89
Handling request data with Node.js and Express 90
Creating with a POST request 90
Testing the POST request on the frontend 92
Reading with a GET request 93
Testing the GET request on the frontend 94
Updating with a PUT request 96
Testing the PUT request on the frontend 97
Deleting with a DELETE request 99
Testing the DELETE request on the frontend 100
Alternatives to REST 101
TCP versus UDP 101
SOAP 103
WebSockets 104
MQTT 105
AMQP 106
CoAP 107
DDP 108
[ iv ]
Summary 109
Chapter 5: Its All About the View 110
JavaScript templating engines 110
Underscore.js 111
Mustache.js 112
Sections 113
Boolean values 113
Lists 114
Lambdas 115
Inverted sections 115
Comments 116
Partials 117
Set alternative delimiters 118
Handlebars.js 119
Explicit path lookup versus recursive path lookup 119
Helpers 121
Helpers as block expressions 122
#if block helper 122
#unless block helper 123
#each block helper 123
#with block helper 124
Other differences in Handlebars from Mustache templates 125
Precompiling templates 125
No alternative delimiters 125
Pure.js 126
Markup 126
Pug 127
Embedded JavaScript (EJS) 129
Synchronous template loading 130
Asynchronous data loading 131
Caching 131
View helpers 131
The link_to view helper 132
The img_tag view helper 132
The form_tag view helper 132
Partials 133
Optimizing your application layout 134
UglifyJS and grunt-contrib-uglify 134
grunt-contrib-handlebars 136
Options configuration 137
Files configuration 138
[v]
Running the Grunt Handlebars task 138
Watching for changes 139
Putting it all together 142
Summary 142
Chapter 6: Data Binding, and Why You Should Embrace It 143
What is data binding? 143
One-way data binding 144
Two-way data binding 145
Data binding with modern JavaScript frameworks 146
Data binding with AngularJS 146
One-way data binding with AngularJS 146
Two-way data binding with AngularJS 147
Dirty checking with AngularJS 148
Dirty checking by reference 149
Dirty checking by collection contents 150
Dirty checking by value 150
When to use dirty checking for data binding 151
Data binding with Ember.js 151
Computed properties 152
One-way data binding with Ember.js 153
Two-way data binding with Ember.js 153
Data binding with Rivets.js 154
One-way data binding with Rivets.js 155
Defining your own one-way binder 156
Two-way data binding with Rivets.js 157
Defining your own two-way binder 157
Implementing data binding with native JavaScript 158
Object getters and setters 158
The object initializer 159
The Object.defineProperty() method 159
Designing a getter and setter data binding pattern 160
Synchronizing data in the View 161
Abstracting the design pattern to a reusable method 162
Accounting for DOM mutations 164
MutationObserver 164
Extending dataBind with MutationObserver 166
Why use data binding? 169
Use cases for one-way data binding 169
Use cases for two-way data binding 170
Summary 170
Chapter 7: Leveraging the MEAN Stack 171
The Node.js environment 172
[ vi ]
Running the REPL 172
Writing a hello Node.js script 173
Setting up a Node.js project with NPM 174
Getting started with Express 176
Installing Express 176
Standard method 177
Express generator 177
Setting up your Express application 178
Exploring the main script 179
Looking at the main application 180
Loading dependencies 180
Configuring the application 180
Application-level middleware 181
Our first Express route 181
Rendering the first view 182
Exploring MongoDB 183
Setting up MongoDB 183
Working with the MongoDB shell 184
Selecting a database 184
Inserting documents 185
Finding documents 185
Updating documents 186
Removing documents 187
Create your SPA database 188
Starting with AngularJS 189
Installing AngularJS into the application 189
Building the first AngularJS module 191
Adding a controller 192
Displaying data with Angular expressions 194
Two-way data binding 195
Summary 196
Chapter 8: Managing Data Using MongoDB 197
Exploring the NoSQL database model 197
Defining NoSQL 198
NoSQL 198
Non-relational 198
Distributed 198
Features of MongoDB 199
Document model 199
Schemaless 200
Open source 200
Why use MongoDB? 200
[ vii ]
Well supported 200
Data model 201
Popularity 201
Commanding MongoDB 202
Getting information 202
Inserting and updating data 203
Running scripts in the MongoDB shell 204
Running bulk operations 206
Finding, modifying, and removing data 208
Specific results 208
Query operators 209
Projections 210
Query modifiers 211
Modifying data 212
Removing data 215
The cursor 217
Incorporating MongoDB into the SPA 218
Adding the NPM modules 218
Adding MongoDB into the main application 218
Writing a query 220
Displaying data in a page 222
MongoDB database performance 224
Indexing 224
Optimizing queries 225
Using limit 226
Using projections 226
Using hint() 227
Analyzing performance 228
Summary 230
Chapter 9: Handling Web Requests with Express 231
Examining Express in detail 232
App object 232
app.locals 234
app.set() 236
app.enable() 237
app.disable() 237
app.listen() 237
app.METHOD() 238
app.all() 239
Request object 239
req.params 240
req.body 243
req.query 244
[ viii ]
Another Random Scribd Document
with Unrelated Content
whom something has to be kept back, to whom the villages must be closed with
fear, and to whom the chosen centers must be closed with a feeling of loathing....
The element of distinction between Jews and other citizens remains and is even
more emphasized. The principle of equality of rights for Jews has not been
realized and without it no material benefits promised by the new act will
find their way to the soul of the people. Only acknowledgment of the
right of Jews to all rights of Russian citizenship will melt the ice of that
cold disappointment which has seized all Russian Jews.”
Finally, the eminent Jewish historian, Simeon Dubnov, in an
impassioned article in “Evreyskaya Nedelya” (September, 1915),
denounced the hypocrisy of the government and demanded the
immediate abolition of all Jewish restrictions:
“It is fully a year since the terrified faces of the ‘prisoners’ appeared through the
bars of that gigantic prison known as ‘the Jewish Pale.’ Part of the prison was
already enveloped in the flames of war, and the entire structure was threatened.
The prisoners, in deathly terror, clamored that the doors be thrown open. They
were driven from one part of the prison to another part that seemed in less
danger, but the prison doors remained shut. The warden’s answer to their prayer
was that it was impossible to ‘release them,’ even in war time, because later it
would be difficult to ‘recapture’ them!
“Ultimately the keepers were compelled to open the doors slightly and to let out
a part of the dazed and half-asphyxiated inmates; but even then they were
quarantined within three governments, which were immediately congested with
refugees; and only now, when the largest section of the Pale, with a Jewish
population of two million, has become foreign country—only now are the gates of
the overcrowded prison thrown wide open and the prisoners cautiously permitted
to leave....
“Should our further emancipation proceed at the same pace, we shall
attain full freedom only after our complete annihilation.... The sop is
thrown to us under conditions internal and external which sharply emphasize its
enforced character. This measure is not one of restoration; rather it is like a rag
thrown to the victim after his last shirt has been taken from him. This belated,
partial, privilege must remind the Jew that of all nationalities in Russia—not
excepting the semi-savage tribes—he alone needed such a favor.
“At this time of profound mourning, upon the graves of thousands of our
brothers who have fallen victims not only to the sword of the enemy, but because
of outrage within our own borders, amidst the ruins of our cities, our weary hearts
cannot rejoice over the beggarly dole tossed out to us. In silence shall our people
accept the miserly gift from those from whom it is accustomed to receive only
blows; but, as ever, it will demand aloud that those rights of which it has been
deprived should be restored to it.”
It is apparent, therefore, that the legal status of the Jews in
Russia has remained substantially unchanged by the war.
The restrictions normally imposed upon the Jews of Russia (with
the exception of certain specially designated—and numerically
negligible—fractions) subject them to the following principal
disabilities:
2. Occupational Restrictions
The public service of the Empire, or of any of its political
subdivisions, is practically closed to Jews. Jews may not be teachers
(except in Jewish schools), or, as a rule, farmers. These artificial
restrictions operate to drive the Jews into the occupations permitted
to them, chiefly trade and commerce, thus overcrowding the ranks
of tradesmen and artisans.
3. Property Restrictions
Jews may not buy or sell, rent, lease or even manage land or real
estate outside the Pale or outside of the city limits within the Pale.
The artisans privileged to practise their handicraft outside the Pale
may under no circumstances own their homes. The ownership, direct
or indirect, of property in mines or oil fields is also forbidden to
Jews.
4. Fiscal Burdens
The Jews pay, in addition to the normal taxes, a candle tax,
designed for the support of Jewish schools, and a meat tax,
originally destined for Jewish religious purposes; but in practice
these funds are diverted to general, non-Jewish, purposes, and even
used, in part, for the enforcement of police measures against the
Jews.
5. Educational Restrictions
Jews are not admitted to the secondary or higher educational
institutions and universities, except in proportions varying from 3 to
15 per cent. of the entire number of non-Jewish pupils. (For high
schools: 10 per cent. within the Pale and 5 per cent. outside the
Pale, except in the two capitals St. Petersburg and Moscow, where it
is only 3 per cent.; and for universities all over the Empire, about 3
per cent.)
A ministerial decree issued in August, 1915, permits the
children of all Jews actively connected with the war to enter
any educational institution in the country regardless of the
percentage norm; but in practice this decree, like the decree
abolishing the Pale, is entirely subject to interpretation and
modification by the local authorities, who have, so far,
virtually ignored it.
The result of the percentage norm applied to the admission of
Jews to secondary schools and universities is that in the towns to
which the Jews are restricted by the domiciliary regulations and
where they constitute in many cases a very large proportion of the
population, the great majority of the Jewish youth are denied
the means of a higher education. In Warsaw, the Jews
constitute 36.30 per cent. of the population; in Lodz, 47.59 per
cent.; in Lomza, 39.42 per cent.; in Kovno, 54.60 per cent.; in Vilna,
40 per cent.; in Grodno, 52.45 per cent.; in Bialostock, 65.62 per
cent.; in Brest Litovsk, 78.81 per cent.; in Pinsk, 80.10 per cent.; in
Berditcheff, 87.52 per cent., etc., yet in all these towns only the
stipulated percentage of Jewish students may be admitted.
In addition to this restriction, many secondary schools (School of
Military Medical Hygiene, School of Railroad Engineering, School of
Electricity, etc.), are entirely closed to Jews. Even commercial
schools, maintained by Merchants’ Guilds, admit Jews only in
proportion to the Jewish membership of the Guilds.
The Government also restricts the establishment of higher
schools under Jewish auspices. In 1884, it closed the Technical
Institute of Zhitomir (founded in 1862), on the ground that, in the
southwestern Pale provinces, the Jews contributed a majority of the
artisans, and a special Jewish technical school would increase this
disproportion. In 1885 it closed the Teachers’ Institute (a noted
center of Jewish learning) because “there was no further need for
it.”
As a consequence of these limitations and restrictions there has
been a scramble among Jews to gain admission to these institutions.
Parents have employed every expedient to have their children
enrolled. Another consequence is that many Jewish young men
emigrated to Switzerland, Germany and France, to obtain a higher
education, and thereafter to return to Russia to enter professional
life. A recent calculation shows that about 3,000 Jewish students
from Russia annually exile themselves in order to attend foreign
universities.
6. Military Service
The Jews constitute only 4.05 per cent. of the population of the
Empire, but the proportion of Jews in the annual army contingent
was estimated, at the outbreak of the Japanese war, at 5.7 per cent.
This is due to the fact that a great many exemptions which the law
provides for non-Jews are made inapplicable to Jews. In the army
the Jews can achieve no rank higher than that of corporal. A
penalty of 300 rubles ($150) is placed upon each Jewish defection,
and the whole family, including parents and relatives by marriage of
the person accused, is held responsible therefor.
The results of these repressions and persecutions are known.
Politically outlawed, socially and economically degraded, the Jewish
population imprisoned in the Pale has festered in misery. The
merchants have been obliged to resort to fearful competition.
Workingmen, overcrowding their industries, have been compelled to
work for starvation wages. Most of the Jewish homes in Russia are
miserable hovels, with little air or light. In the great cities, the
proportion of paupers approximates a fifth of the Jewish population.
In Odessa in 1900, of a population of 150,000 Jews no less than
48,500 were supported by charity; 63 per cent. of the dead had
pauper burials, and a further 20 per cent. were buried at the lowest
possible rate. In the Governments of Ekaterinoslav, Bessarabia,
Pietrikov, Chernigov and Siedlets, the number of charity cases at the
Passover festival increased from 41.9 per cent. to 46.8 per cent. in
four years.
THE OUTBREAK OF THE WAR
It was against this background of ever-spreading persecution and
misery that the great war broke upon the Jews. They accepted it as
loyal Russian citizens, and not without hope that it might lead to
some improvement in their own conditions.
The Kehillas (communities) of Petrograd, Odessa and other cities
officially sent large sums in gold for the reservists, established
hospitals for the use of the wounded without distinction of race or
creed, held great patriotic demonstrations in the synagogues, at
which the Rabbis urged the Jewish youth to render their full share of
military service, and in other ways, presented, as the Mayor of
Odessa said, “an example of readiness to sacrifice everything for the
army.”
The spirit of the Jews of Russia at the outbreak of the war is well
expressed in the appeal which the Jewish community of Vilna, the
oldest in Russia, at the very heart of the Pale, issued in connection
with the establishment of a military hospital:
“Our beloved Fatherland—the great Russian Empire—has been provoked to
bloody, terrible conflict. It is a struggle for the integrity and greatness of Russia.
All true sons of Russia have risen as one man to shield their country, with their
own breasts, against the onslaught of the enemy. Our brothers of the Jewish faith,
all over the Russian Empire, have also responded to the call of duty ... and many
have voluntarily joined the army which has gone forth to the field of battle. But
circumstances now demand that those of us who have not been fortunate enough
to be called forward to fight for our country with weapons in our hands should
also make whatever sacrifices we can. We owe a sacred obligation to those who
have left their families behind, those who are defending our country, and us, with
their blood and their lives. It is our duty to assume all responsibility for the families
of the reservists. It is our duty to take care of those who will fall wounded or ill in
the war. No doubt this sacred duty will be assumed by the entire Jewish population
of the Empire, by individuals no less than by entire communities. The history of all
past wars, especially those of the nineteenth century, beginning with the war of
1812, shows that the Jews have honestly and sacredly fulfilled their duty as
citizens and were ever ready to sacrifice upon the altar of their country their
wealth, their blood and even their lives.... In like manner, at this great crisis in the
life of our country, we, the representatives of the Jewish community of Vilna, the
oldest in Russia and at the very heart of the present conflict, take the liberty of
appealing to our co-religionists to begin at once the work of organizing relief for
the wounded and for the families of the reservists. We must care equally for all
the soldiers of our glorious army, without distinction of race or creed, for
all are brothers, sons in common of our great Fatherland....”
The Jewish press also gave resonant voice to this spirit of loyalty
and devotion. The “Novy Voskhod,”[14] one of the leading Jewish
organs in Russia, issued this call:
“We were born and brought up in Russia. Our ancestors
are buried here. We Russian Jews are bound to Russia by
ties which cannot be broken, and our brothers who have
been driven beyond the ocean by cruel fate cherish their
memories of Russia all through life. Custodians of the
commandments of our forefathers, nucleus of the entire
Jewish nation, we, the Jews of Russia, are nevertheless
united inseparably with the country in which we have dwelt
for hundreds of years, and from which neither persecution
nor oppression can tear us away. At this historical moment,
when our country is threatened by foreign invasion, when
brute force has taken up arms against the great ideals of
humanity, the Jews of Russia will bravely go forth to battle
and will fulfil their sacred duty....”
The Jewish contingent in the Russian army numbered from
350,000 (an estimate made by the Mayor of Petrograd before the
Conference of Russian Mayors in August, 1914), to 400,000 (the
estimate made by the Jewish Colonization Association, Petrograd).
The thousands of Jewish students who have matriculated at foreign
universities because the “percentage rule” had closed the Russian
universities to them, returned to enroll under the colors, even
though they knew that there was no hope of preferment for them.
On the field of battle the Jewish soldiers distinguished themselves
for valor. Over one thousand received the Medal or Cross of St.
George. From the many letters of appreciation and affection written
by Russian officers to the relatives of Jewish soldiers under their
command who had been disabled or killed, it was evident that the
Jews had won the affection and respect of the fighting men in the
field. But it was their eternal misfortune that the war, by the logic of
military geography, had to be fought out, on the Eastern side, in
Poland; for between the Poles and the Jews there had long been a
state of open conflict—and the developments of the campaign in
Poland foredoomed the Jews to disaster appalling and almost
irretrievable.
Anti-Semitism in Poland
A significant observation upon the economic character of the
Polish-Jewish struggle was made by the well known Russian
journalist, Madam A. E. Kuskova.
“I found red-hot anti-Semitism everywhere in Poland. We have anti-Semitism in
Russia, but of a different kind.... Anti-Semitic papers like ‘Dva Grosha’ accused all
Jews of all sorts of crimes, without protest from the Progressive press, and
succeeded in arousing the Polish people. In Pyasechna, a ruined place near
Warsaw, where ten-day battles took place, I spoke to many peasants who accused
the Jews of many of their troubles, but could never explain what they really
blamed them for. We Russians held a meeting to try to find the causes of this
feeling.... We came to the conclusion that ... the Polish-Jewish question is
really a Russian-Polish-Jewish question, and touches us as much as the
Poles. They have not room enough to live, and more and more Jews are
coming there. Even democratic organizations are compelled to take cognizance of
this. One peasant organization expresses through its organ the idea that it is true
that the Jews are a burden to Poland, but it warns the peasants against anti-
Semitism nevertheless.”[17]
At Kieltse and Radom the Poles plundered many Jewish shops and
when the Russians returned after the German retreat the Poles
denounced the Jews as German sympathizers. Here also those Jews
who were arrested were found to be innocent and released after
investigation.[20]
At Mariampol, near the East Prussia frontier, because of a similar
accusation, the entire Jewish male population, with their Rabbi,
Krovchinski, at their head, were compelled to work the roads for
three days—September 22–24 (October 5–7), 1914 (the first two of
these days falling on the Sukkoth holiday.)[21]
In this town, also, one Gershenovitz was sentenced to penal
servitude for six years because he acted as Mayor during the
German occupation, although the inquiry held by the Russians
showed that he had been forced by the Germans to accept the
office.[20]
At Jusefow the Jews were accused of poisoning the wells.
Seventy-eight were killed outright, many Jewish women were
violated and all the houses and shops plundered.[22]
In Drsukenihi a mill owner, Chekhofski, was accused of having
given a signal for the German bombardment of the town by blowing
his mill whistle. When the Russians reoccupied the town he was
brought to trial before the Military Tribunal and the charge was
proven to be groundless.[23]
These are only a few instances, taken at random, of Polish
slanders. In not a single known case were the charges
justified; on the contrary, their gross absurdity was
demonstrated on numerous occasions before military
tribunals that could not possibly be charged with prejudice
in favor of the Jewish side of the issue. A perfect illustration of
this is furnished by the story of the villages of Groitsi and Nove-
Miasto, near Warsaw.
The Jews of the city of Kovno were notified on the evening of May
3 (16) to leave not later than midnight of May 5 (18), 1915.
Cruelty of Officials
In a speech delivered in the Duma the non-Jewish deputy
Dzubinsky declared:
“As a representative of our 5th Siberian division I was myself on the scene and
can testify with what incredible cruelty the expulsion of the Jews from the Province
of Radom took place. The whole population was driven out within a few
hours during the night. At 11 o’clock the people were informed that they
had to leave, with a threat that any one found at daybreak would be
hanged. And so in the darkness of the night began the exodus of the
Jews to the nearest town, Ilzha, thirty versts away. Old men, invalids
and paralytics had to be carried on people’s arms because there were no
vehicles.
“The police and the gendarmes treat the Jewish refugees precisely like
criminals. At one station, for instance, the Jewish Commission of Homel
was not even allowed to approach the trains to render aid to the
refugees or to give them food and water. In one case a train which was
conveying the victims was completely sealed and when finally opened
most of the inmates were found half dead, sixteen down with scarlet
fever and one with typhus....
“In some places the Governors simply made sport of the innocent
victims; among those who particularly distinguished themselves were the
governors of Poltava, Minsk, and Ekaterinoslav ... who illegally took away the
passports of the victims and substituted provisional certificates instructing them to
appear at given places in one of five provinces at a given date. When they
presented themselves at these designated places they were shuttled back and
forth from point to point at the whim or caprice of local officials.
“In Poltava the Jewish Relief Committee was officially reprimanded by
the governor for assuming the name ‘Committee for the Aid of Jewish
Sufferers from the War,’ and ordered to rename itself ‘Committee to Aid
the Expelled’ on the ground, as stated explicitly in the order, that the
Jews had been expelled because they were politically unreliable—and,
therefore, presumably, deserved no help.”[38]
No distinction of age, sex or physical condition was made. As most
of the able-bodied young men were at the front, those affected by
the expulsions were the persons least able to bear up under the
suffering and privation entailed—old men and women, children, the
sick from the hospitals, the insane from the asylums, even wounded
and crippled Jewish soldiers—all were driven out en masse, without
the slightest regard for human comfort or decency. Women in labor
were given no consideration and many births occurred along the
route. Mothers were separated from their children, entire families
were broken up and dispersed all over Russia. The Jewish and liberal
Russian press is filled with long lists of victims seeking their lost
relatives. Where transportation was provided, the exiles were packed
in cattle-cars and forwarded to their destination on a way-bill, like so
much freight. In many places thousands of them were forced for
weeks at a time to stay in congested villages which were absolutely
unable to afford them a roof and shelter, or to sleep in the freight
cars or in the open fields. And tens of thousands were forced to
tramp weary distances along the open road, or, in the fear of the
soldiery, to take to the back roads, the woods and swamps, there to
die of hunger and exposure.
The total number of Jews who have been expelled to date is
unknown. Expulsions are still going on. At the beginning of June,
1915, at the deliberation of the Petrograd Central Committee for the
Relief of Jewish War Sufferers, which was participated in by the most
prominent provincial committees, it was calculated that the total
number of homeless Jews ruined by the expulsion—in Poland and
the northwestern district—is 600,000 at the least.[39] After the
Kovno-Kurland expulsions there collected in the Vilna government
alone some 200,000 exiles.[40] In Riga there gathered, by May 18
(31), some 9,600 families or 42,000 persons.[41] Up to August 6,
1915, there collected in the government of Volhynia upwards of
250,000 refugees.[42]
Hostages
There is evidence to indicate that the Russian government,
overwhelmed by the consequences of the expulsion policy, has
suggested to the military authorities the advisability of repatriating
the exiles; but these authorities have refused to consider the
suggestion except on condition that the Jews voluntarily give
hostages from among their own ranks, these hostages to include the
Rabbi and other leading Jews. This proposal has been universally
rejected by the Jews through their representative in the Duma,
Deputy Friedman, in a letter to the President of the Council of
Ministers:
“As a deputy from the province of Kovno, from which I, together with all other
Jews, have now been expelled, I consider it my duty to call the attention of your
excellency to the following:—
“According to the latest decrees of the authorities the Jews who have been
expelled from their homes are to be allowed to return on condition that they give
hostages. This monstrous condition, which the government aims to
impose upon its own subjects, the Jewish people will never accept. They
prefer to wander about homeless and to die of starvation rather than to
submit to demands which insult their self-respect as citizens and Jews.
They have honestly performed their duty toward their country and will
continue to do so to the very end. No sacrifices frighten them and no
persecutions will make them swerve from the path of honor. But neither
will any persecutions force them to accept a lie, to give testimony,
through base submission, that the monstrous accusations against them
are true. When the insolent enemy threw down the gauntlet to Russia the Jews
arose to shield their country with their breasts, and I had the honor to appear at
the historic session of the Duma as their spokesman in the expression of this
spontaneous, inspiring enthusiasm. The Jews gladly assumed all the
sacrifices demanded of them by their country because of a feeling of
duty to the land to which they are bound by century old, historic bonds,
and also because of a sincere hope for a brighter future. And I may say
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookname.com