Get Reactive Programming With JavaScript 1st Edition Hayward Jonathan PDF Ebook With Full Chapters Now
Get Reactive Programming With JavaScript 1st Edition Hayward Jonathan PDF Ebook With Full Chapters Now
com
https://textbookfull.com/product/reactive-
programming-with-javascript-1st-edition-hayward-
jonathan/
https://textbookfull.com/product/reactive-programming-with-
rxjs-5-untangle-your-asynchronous-javascript-code-1st-edition-sergi-
mansilla/
textbookfull.com
https://textbookfull.com/product/rxswift-reactive-programming-with-
swift-1st-edition-florent-pillet/
textbookfull.com
https://textbookfull.com/product/nitrogen-overload-environmental-
degradation-ramifications-and-economic-costs-1st-edition-brian-g-katz/
textbookfull.com
Unlocking Blockchain on Azure: Design and Develop
Decentralized Applications Shilpa Karkeraa
https://textbookfull.com/product/unlocking-blockchain-on-azure-design-
and-develop-decentralized-applications-shilpa-karkeraa/
textbookfull.com
https://textbookfull.com/product/advances-in-medicine-and-medical-
research-mieczyslaw-pokorski/
textbookfull.com
https://textbookfull.com/product/the-university-as-a-critical-
institution-1st-edition-rosemary-deem/
textbookfull.com
https://textbookfull.com/product/the-greatest-comic-book-of-all-time-
symbolic-capital-and-the-field-of-american-comic-books-1st-edition-
bart-beaty/
textbookfull.com
Artistic License: The Philosophical Problems of Copyright
and Appropriation Darren Hudson Hick
https://textbookfull.com/product/artistic-license-the-philosophical-
problems-of-copyright-and-appropriation-darren-hudson-hick/
textbookfull.com
Reactive Programming
with JavaScript
Jonathan Hayward
BIRMINGHAM - MUMBAI
Reactive Programming with JavaScript
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 author, 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-78355-855-1
www.packtpub.com
Credits
Reviewers Proofreader
Antal Orcsik Safis Editing
Sven A Robbestad
Hibai Unzueta Indexer
Rekha Nair
Commissioning Editor
Kunal Parikh Graphics
Jason Monteiro
Acquisition Editor
Manish Nainani Production Coordinator
Aparna Bhagat
Technical Editor
Mohita Vyas
Copy Editors
Vikrant Phadke
Alpha Singh
Ameesha Smith-Green
About the Author
He believes that technology is nothing without technique and technique in turn needs
a solid vision-based foundation. He enjoys territories where different knowledge
areas overlap. Lately, he has been involved in projects of data visualization and user
experience design.
For the past 2 years, he has been researching travel search paradigms and technology
with the intention of launching a new project that is expected to rethink the way we
do travel planning. As a result, he has worn many hats, but never all of them at once.
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 [email protected] 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.
TM
https://www2.packtpub.com/books/subscription/packtlib
Do you need instant solutions to your IT questions? PacktLib is Packt's online digital
book library. Here, you can search, access, and read Packt's entire library of books.
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
[i]
Table of Contents
[ ii ]
Table of Contents
[ iii ]
Table of Contents
[ iv ]
Preface
Preface
Charles Cézanne famously said about the impressionist painter Claude Monet,
"Monet is only an eye, but what an eye!" Today, we can similarly say, "ReactJS
[or if you prefer, "ReactJS is only a view, but what a view!"
ReactJS has neither the intention nor the ambition to be a complete, general-purpose
web framework. It doesn't even include tooling for Ajax calls! Rather, the intent
is that you will use technologies that make sense for different concerns in your
application, and use ReactJS's power tools for views and user interface development.
This book is about ReactJS, a simple and small technology that nonetheless lets huge
teams work together on different components of a web page without stepping on
each others' feet, but without a hint of bureaucratic measures. And add some liberal
help of pixie dust.
[v]
Preface
Chapter 2, Core JavaScript, covers some of JavaScript's better neighborhoods and omits
the minefields, with a debt to Douglas Crockford, if not a complete agreement. In
terms of the parts of JavaScript that you use, you should be doing most of your
work within this core.
Chapter 5, Learning Functional Programming – The Basics, helps you if you want to
understand functional programming but have no idea where to start. Here's one
place to start! Map, reduce, and filter are introduced as an inexhaustible bag of tricks.
Chapter 6, Functional Reactive Programming – The Basics, covers what has been said about
functional programming and reactive programming. It will be put together with some
sage advice, and the last bit of foundation will be laid for the remaining hands-on work
in this book.
Chapter 7, Not Reinventing the Wheel – Tools for Functional Reactive Programming,
contains a lot to cover in one book, let alone one chapter. But there is meant to be an
interesting sampling of a space where a lot of interesting options are made available,
including writing ReactJS code from a language other than JavaScript.
[ vi ]
Preface
Chapter 12, How It All Fits Together, reviews what we covered in this book, and we
look at the next steps in a world to explore.
Appendix, A Node.js Kick start, looks at some of the good, the bad, and the ugly of
a "Wild, Wild West" technology that everybody seems to want in on.
However, all that you really need is a server or desktop, a browser such as Chrome,
a web server, and a willingness to dive into something new. Everything else is
provided in the text.
[ vii ]
Preface
Conventions
In this book, you will find a number of text styles that distinguish between different
kinds of information. Here are some examples of these styles and an explanation of
their meaning.
Code words in text, database table names, folder names, filenames, file extensions,
pathnames, dummy URLs, user input, and Twitter handles are shown as follows:
"The typeof function returns a string containing a description of a type; thus,
typeof can offer an extended type."
New terms and important words are shown in bold. Words that you see on the
screen, for example, in menus or dialog boxes, appear in the text like this: "When
the installer starts, click on Next, as follows:"
[ viii ]
Preface
Reader feedback
Feedback from our readers is always welcome. Let us know what you think about
this book—what you liked or disliked. Reader feedback is important for us as it helps
us develop titles that you will really get the most out of.
If there is a topic that you have expertise in and you are interested in either writing
or contributing to a book, see our author guide at www.packtpub.com/authors.
Customer support
Now that you are the proud owner of a Packt book, we have a number of things
to help you to get the most from your purchase.
Errata
Although we have taken every care to ensure the accuracy of our content, mistakes
do happen. If you find a mistake in one of our books—maybe a mistake in the text or
the code—we would be grateful if you could report this to us. By doing so, you can
save other readers from frustration and help us improve subsequent versions of this
book. If you find any errata, please report them by visiting http://www.packtpub.
com/submit-errata, selecting your book, clicking on the Errata Submission Form
link, and entering the details of your errata. Once your errata are verified, your
submission will be accepted and the errata will be uploaded to our website or added
to any list of existing errata under the Errata section of that title.
[ ix ]
Visit https://textbookfull.com
now to explore a rich
collection of eBooks, textbook
and enjoy exciting offers!
Preface
Piracy
Piracy of copyrighted material on the Internet is an ongoing problem across all
media. At Packt, we take the protection of our copyright and licenses very seriously.
If you come across any illegal copies of our works in any form on the Internet, please
provide us with the location address or website name immediately so that we can
pursue a remedy.
We appreciate your help in protecting our authors and our ability to bring you
valuable content.
Questions
If you have a problem with any aspect of this book, you can contact us at
[email protected], and we will do our best to address the problem.
[x]
Introduction and Installation
Welcome to the wonderful world of reactive (functional) programming in JavaScript!
In this book, we will cover the good parts of JavaScript, although we will not follow
it religiously. We will cover functional programming, reactive programming, and
the ReactJS library and integrate all of these into functional reactive programming
with JavaScript. If you are going to study reactive programming, it is our suggestion
that you seriously consider functional reactive programming, including learning
functional programming as much you can. In this context, the whole of functional
reactive programming is more than the sum of its parts. We will be applying reactive
programming to JavaScript user interface development. User interfaces are one
domain in which functional reactive programming (FRP), really shines.
A 10,000-foot overview
There are a lot of things that can be stated, but (functional) reactive programming
may be easier than you think. Today, much that has been written about functional
reactive programming is intimidating, much like the instructions for closures a few
years ago.
[1]
Introduction and Installation
The purpose of this book is to provide something comparable to the monkey see,
monkey do way of conveying how to use a closure to make a JavaScript object with
private fields. Theory, as such, is not bad, nor is it a problem to introduce theory for
a discussion, but making a full-fledged dissertation's theoretical backing as the price
to do something simple is a problem.
It is our hope that this book will let you understand why building, for instance, a game
UI in JavaScript is easier with functional reactive programming than with jQuery.
[2]
Chapter 1
Programming paradigms
There are multiple programming paradigms around, and not all are mutually
exclusive. Many programming languages are multiparadigm languages, supporting
the use of more than one paradigm, including not only JavaScript, but also the likes
of OCaml, PHP, Python, and Perl.
Note that you can at least sometimes use a paradigm with a language that is not
explicitly designed to support it. Object-oriented programming was originally
formulated not for languages such as Java or Ruby that are specifically intended to
support object-oriented programming, but as matter of an engineering discipline
originally used in languages that predate object-oriented programming.
[3]
Introduction and Installation
[4]
Random documents with unrelated
content Scribd suggests to you:
"I shall stay whatever happens," said Clarissa. "Is it likely I shall go
whilst Eva's fate hangs in the balance?"
"But it doesn't hang," said a husky voice from behind. "It's because I
knew you'd be in such a funk about her that I've come," and there advanced
into the circle a boy with grimed face and torn clothes that only those who
knew him best could recognize as Jack.
"Jack! Jack!" cried Betty, throwing her arms about him, and her
enormous feeling of relief found vent in hysterical laughter.
"Where had he come from, where was Eva?" etc., but Tom, watching
Jack's face paling under its grime, knew him fairly played out.
"Eva is with Jessie," was all he could gasp out, and he would have fallen
to the ground but that Tom's arms caught him and laid him down gently on
a bed of fern.
"Give him air and space and a drink of water. His story can wait till later.
It's enough to know they are safe."
"And when Eva was put to bed," he said, "I ran off to join the beaters,
but I found the fire had swept on, taking a different course, so there was no
need for further alarm. Then I sneaked off on my own to see if there was a
chance of getting back to you, and I got through somehow."
"Came through the bush?" said Tom. "It was a horrible risk."
"But someone had to come, and I found a place where the fire had not
caught on much, and I made a dash for it and dodged it, racing from tree to
tree. No, I've not a burn on me. The soles of my boots are scorched and my
clothes half off my back, because I could not stop to pick my way, and the
fire had only penetrated quite a narrow way into the bush. The puzzle was
when I came to the far side of it to find the track. I should have been here
quicker else."
"Yes, I found it safe enough. That's why I wanted to get off whilst it was
daylight. Even with a moon I should have lost my way."
Jack made a little grimace. "I never thought of them, only of you, but it's
different, isn't it? Eva's all right. She'll sleep as sound as a top till the
morning, and for the rest, I don't belong to them as I do to Aunt Betty."
"No, no," said Clarissa Kenyon, seizing one of Jack's hands, and laying
her soft cheek against it. "They will only wonder vaguely what has become
of you, but my heart was breaking, Jack, breaking with the fear that I had
lost my little Eva. God bless you for bringing me the news of her safety."
Jack drew away his hand uneasily as her tears fell on it, and tried to rub
it clean.
"Come along, Jack, come down to the river and have a wash and a comb
up before we start for home," said Aunt Betty, in her matter-of-fact way, but
Jack never guessed that her heart was thumping against her ribs with joy
and pride in the boy who was ready to go through fire or water if he thought
that duty demanded it of him, and her pride found its lawful expression later
when she found herself alone with Tom for a minute.
GOING HOME
Jack passed in rapid review his conduct of the last few days, and decided
that there was nothing Aunt Betty could want to lecture him about, and yet
the brevity of the summons sounded like the preface to a lecture. He came
up the paddock rather reluctantly.
"Well," he said, joining her in the verandah, but not sitting down. "Don't
keep me long, there's a dear. I'm making an aeroplane, and it's frightfully
exciting."
"But I think the news I have for you will be frightfully exciting too," she
said smiling at him.
Betty's heart smote her that she had raised the boy's hope so high only to
dash it again.
"Not quite so exciting as that, but something that will get you more
ready to go to England. Father wants you to go to school in Melbourne, a
boys' school that Uncle Tom knows about, and thinks a good one. Father is
very anxious that you should be working hard now so that you will be able
to take your place with other boys of your age when you go home."
Jack seized his cap from his head and sent it spinning into the air with a
whoop of triumph.
"I should say it just was exciting! Why, Aunt Betty, it's glorious."
His delight was so natural, that Betty would not dim it by any expression
of personal regret. Besides, although she did not tell Jack this, his father's
decision was the result of her own advice. She did not consider that the
experiment of sending him to the State school had answered. He was too
well known to every boy in the place, and was contracting acquaintances
she did not care for him to make, and imitating follies that were by no
means harmless, and she believed a complete change of companionship
would be better for him and for his progress in learning. She knew that
Captain Stephens was making not only a name but some money by his
inventive skill and mastership of aircraft, and that it was his full intention to
give Jack a good education, so she had written some months back
suggesting the change of school and saying that she believed her influence
over Jack stood a better chance of making itself felt when he was away
from her and constantly in need of her than now, when more than half his
time was spent out of her sight, and when her presence at home was so
completely a matter of course that he scarcely realised its value. And from
Jack's father had come an entirely reassuring answer. No mother could have
his little son's interests more entirely at heart than Betty, and he was quite
willing to accept her judgment, and that of the man who had acted the part
of a kind and wise elder brother to Jack, and to send him to the school Tom
Chance recommended.
"And you need not worry about ways and means. Let Jack have a proper
school outfit. You will know what he needs better than I. It was certainly
my wish at first that he should remain with you at all hazards until I could
come and fetch him, but the time has been longer than I at first expected,
and I quite see the force of your argument that he shall be able to take his
proper standing with other boys of his age on his return, and possibly the
education of a State school would hardly prepare him for this. Is it asking
too much that Tom Chance will keep an eye to him as regards religious
matters? A boy's first plunge into school life is an important era in his life.
I'm not sure that Mr. Chance is still in the colony, but if you are in touch
with him tell him what I feel about it."
All this was running through Betty's mind as she listened to Jack's
outpouring of delight.
"I'm off, Aunt Betty; I'm off to find Uncle Tom, and to tell Eva. She'll
mind rather much, I fancy, but I'll tell her she can write to me if she likes,
and I'll answer as I get time," and away he flew, leaving Betty half amused
and half heart-sore.
"A budding lord of creation," she said to Tom later in the day when he
came to talk matters over with her.
"Women and girls find their right place in looking after him."
The words were playful, but there was an under-lying sadness in them.
"It's partly the fault of the women and the girls who spoil boys and men,
isn't it? But there's scarcely one amongst us but owns in his secret heart that
all that is noble in him he owes to the influence of some good woman—a
mother, a sister, or an aunt—and Jack, come to man's estate, will look back
and call Aunt Betty's name blessed."
Tears stood in Betty's eyes, but her smile was sweet and tender.
"If that prophecy comes true, I shall consider that life has been worth
living," she said.
"Let us hope that there may be other causes by that time which will
make your life very much worth living; others who will need you even
more than little Jack, a husband, perhaps, and—children of your own."
The colour mounted to Betty's face flooding it from brow to chin, then
faded leaving her deadly pale. Tom was standing over her looking down on
her with a smile that told her more clearly than any words that he loved her,
that the husband his imagination pictured was himself.
"Betty," he said, using her Christian name for the first time, "I did not
mean to speak yet. I meant to wait until I am recalled to England and have a
likelihood of a home to offer you, but your regret at losing your Jack led me
on. Should I do, can you think of me as the husband? Betty, my dear, my
whole heart cries out to you, I love you so. I don't know when it began, but
I almost think it was the first day we ever met, and you caught me at
cricket. It will be the biggest blow of my life if you catch me out now.
Betty, my sweet one, what answer will you give me? My whole happiness
hangs on it. Is it yes, or no?"
Betty looked into his face with a tremulous smile, put out her hands to
him, and the next moment was clasped in his arms.
"My darling," he said, as he reverently kissed her, "you shall never have
cause to regret your decision."
Later on they talked of their future. Tom had mapped out work that
would take him about two years to carry through, and then he meant to go
home.
"And you will come with me, Betty darling, come with me as my wife,"
he said joyously. "I wonder if you realise what you are doing in marrying
me. It's rather like catching a lark and shutting it up in a close dark cage, for
my work will lie in some slum parish probably, where sorrow and sin will
close you in on every side, and after your free country-life out here, you
will feel choked by it often and often."
"I daresay I shall, but—I shall have you," said Betty, simply. "Shall we
go and tell mother?"
Mr. and Mrs. Treherne's consent was a foregone conclusion, and
separation from their only daughter being as yet a thing in the distance, left
them free now to rejoice in her happiness. Ted's congratulations when he
came in from the farm were rather less hearty.
"It's rather a mean trick to play," he said. "You had all England to choose
from, and you come out here and want to carry off our Betty, and there's not
a girl who can hold a candle to her in all the colony, is there, mother?"
"Not one," said Mrs. Treherne, giving the hand she held a squeeze.
"And that's the very reason why I want to take her home when the time
comes," said Tom with a happy laugh. "I want them to see the kind of girl
the colony can produce. I don't underrate her, Ted."
"I won't stay and be discussed as if I wasn't here," said Betty, blushing a
little. "Ought not we to go and see Clarissa, Tom?" so they walked off
together down the paddock, hand-in-hand.
"And that's how they'll walk off one day for good and all," said Ted,
watching them moodily from the verandah. "Hang it all, mother. I wonder
you can take it so quietly. Why can't she marry some man in the colony, and
stay in the land she belongs to? They will only look down upon her in
England," but that fired Mrs. Treherne into speech.
"No fear, mother. There's one who will stick by the old birds, and keep
their nest warm and dry for them," he said gruffly, and stirred by an unusual
emotion he strolled off to the farm and solaced himself with a pipe.
Meanwhile no explanations were necessary with Clarissa. She just
glanced at the smiling faces, saw the clasped hands, and burst into a laugh.
"So it's settled at last," she said, her own hands closing over their clasped
ones, "but the wonder to me is why you have been so long about it, for
you've known your own minds long enough. Betty, my dear, you're a lucky
woman."
"But I remember your telling me almost the first night I came that you
should like a sister just like Betty," Tom grumbled.
"So I did, so I do, but all the same I call her a lucky sister in marrying
you," and with that assertion Betty was well content.
"Oh yes," Betty said. "I never see the use of making mysteries out of
things that are clear and true as daylight, and to Jack it will make no
difference. He claimed Tom as his uncle long ago. Where are they, Clarissa?
Jack rushed off here in great excitement to tell the news of his going to
school, and I have not seen him since."
"They are in the garden, I think. Eva is full of lamentation that she was
not born a boy, so that she might go to school with Jack, but he comforts
her by reminding her that she would be in a lower form, and would see little
of him!"
"He's a little beyond himself; he'll come back to his bearings directly,"
Tom said. "It's the first event of importance that has come to him. Come,
Betty; we will find them."
They sat side by side in the swing, their heads close together deep in
conversation, but at sight of Aunt Betty and Tom, Jack sprang to the ground
and came rushing towards them.
"Uncle Tom, has Aunt Betty told you? Do you know I'm going to
school?"
"Yes, I know that and something else which makes me very glad, happier
than I've ever been in all my life."
"That some day, when I go home, Aunt Betty will marry me, and go
home with me as my wife. That's a big bit of news, isn't it, Jack?"
Eva laughed and clapped her hands, but Jack stood looking from Tom to
Aunt Betty, with a slight air of bewilderment.
"Then she'll stay with you for ever and ever?" he said.
"Then I'm jolly glad, and oh, Aunt Betty," fresh light dawning on him, "it
will mean that I'll have you always too the same as I do now. I think I'm
almost as glad as Uncle Tom," and forgetful of his boyish dignity his arms
closed round her neck in a rapturous hug, and Betty, as she held him fast,
felt no congratulation on her engagement was quite so dear and sweet as
his.
*****
The days would have dragged heavily after Jack's departure but for the
new great happiness which filled Betty's heart to overflowing. Tom had
taken Jack to school and installed him there, a very good school Tom told
her, with a wholesome religious basis, where "Jack will get such teaching as
you and his father would wish him to have," Tom wrote, and Betty was
content in this, as in all things, to rely upon Tom's judgment.
Months passed by, Jack came for his first holidays full of his school-
mates, and, what pleased Betty more, very full of his work.
Meanwhile, as the months ran into years, Betty went on quite quietly and
contentedly with her own work—her preparations for her marriage which
she now knew not to be far distant. Had not Tom said he would come to
fetch her in about two years? The dainty garments she fashioned were
finished one by one and laid by in a box which she named her glory box.
"Then my gift shall be the household linen," said Mrs. Treherne, and side
by side with the glory box there stood a large chest which received Mrs.
Treherne's contributions as they were folded and marked in readiness for
Betty's marriage.
And true to his promise when the two years were nearly completed Tom
wrote a letter, almost incoherent in its happiness, to tell her he was coming
to claim his own.
"I shall bring Jack along with me, for, as you know, his holidays will be
due, and the dear boy is looking forward with sober happiness to his
Confirmation day. I always promised to be present at it if I were still in the
Colony, and the Bishop, I hear, holds one at Wallaroo about the 21st of
December. Jack's preparation has been a careful one, and by his letters to
me I think his mind is fully made up to continue Christ's faithful soldier and
servant unto his life's end. He had his choice of being confirmed in the
cathedral at Melbourne, when some other lads from his school received the
laying on of hands, but he wrote that he would rather wait for the
Confirmation in his own little church at home, 'when you and Aunt Betty
will be there with me.' I thought it sweet of the boy, but, indeed, my Betty, I
think Jack will turn into a boy you will have every cause to be proud of."
And the post which brought that letter brought another which was almost
as important. Jack's father was coming to take his boy home; indeed, within
a week of the letter's departure he would be on his way. Pressure of business
would make his stay in the colony a short one, "but I always promised Jack
to come and fetch him, and I will keep my word."
He gave the name of the liner in which his passage was taken, and the
date when she was due at Melbourne.
"But mother—it's too delightful," said Betty, looking up from the letter.
"Jack's father is coming and is due in Melbourne on the 18th or 19th of
December. By good luck he should be here on Jack's Confirmation day.
Won't it be beautiful if he is?"
Clarissa had clamoured to make her her wedding gown, but Betty
asserted she did not mean to have one.
"Tom and I are of one mind," she said. "We think the greatest and holiest
day of our lives shall not be desecrated by flutter and fuss. I'll be married in
a coat and skirt, a white one if you prefer it, and we mean to have no fuss of
any kind, and we want only those present who love us, and will say their
prayers for us. We have not yet settled the day, but it will be pretty soon
after he comes, for he has marching orders to return to England. He means
to take our passages for about the end of the year. Don't you wish you were
coming too?"
"No, I don't," said Clarissa, vehemently. "I love this place and its kind,
warm-hearted people, and I love your father and mother, and mean to make
up your loss to them as far as I can. I know it will be very imperfectly
accomplished, but just think of the desolation which will be theirs when
you've left them for good, gone out of their reach, Betty."
Tears stood in Betty's eyes. "Yes, I know, and often I wonder at myself
for doing it, and yet—it's not that I love them less than I ever did, that I
don't know what I'm leaving behind me, but if Tom were going to the
uttermost parts of the earth I feel my call to go with him. I love him better
than life itself, Clarissa. Don't you know what I mean?"
Clarissa was very white. "Yes, I loved George like that, but, unlike you, I
married without the sanction of my father, and I never felt that God's
blessing followed me as it will follow you, my Betty, going before and after
like the pillar of cloud that guided the Israelites. It's because I love George
so dearly that I don't want to go home. I want to live and die in the country
where we spent our short married life together."
On the 16th of December Betty stood in her simple white gown waiting
at the corner of the green lane for the evening coach that was to bring Tom
and Jack from the station, and as she heard the rattle of the wheels and the
sound of the galloping horses breasting the hill, her own heart beat in joyful
sympathy, for her happiness was close at hand. And almost before the coach
stood still, Tom and Jack had jumped from their seats on the top, and were
taking her eagerly between them up the green lane towards the farm.
"But, Jack, you grow by feet, not by inches," said Betty, putting him a
little away from her that she might see him more distinctly. "Father will feel
quite shy of you."
"More than I'll be of him, then. Do you see he's won a medal for his last
invention, Aunt Betty? Isn't he glorious? The boys at school chaff me
because they say I'm always boasting about father, and I tell them they
would boast too if they had a father like him to boast about. Why, there's
Eva, waiting at the gate. I'll just run on and have a word with her."
Then Tom and Betty were left alone, and took a long look into each
other's eyes.
"Then I've settled it," said Tom joyously. "I saw the Bishop at
Launceston and he's kind enough to express a wish to perform the Service.
The Confirmation is to be quite early in the morning of the twenty-first and
if you could fix the wedding to take place immediately after it, it would be
delightful. It's short notice, but will it suit you, my darling? The time has
dragged just lately Your face, your dear face, has come between me and my
work. We've been pretty patient, I think. Will your mother object?"
"The time will suit me, and I don't think mother will object," said Betty,
slipping her hand into his. "She is prepared for us to sail about the end of
the year. She knows the parting is quite close; sometimes I think the strain
tells on her. It will be better for her when it's over. We needn't tell anyone,
Tom. We'll be married and slip away somewhere."
"To Melbourne," said Tom, "or we'll keep our Christmas at Launceston
and your luggage can follow us there."
"And it's a good time in a way for us to be going, for Jack's father will be
here and take away the bitterness of the parting. He will be following us
soon to England."
"Betty, are you afraid, afraid to trust yourself to me all that long distance
from home? It's a tremendous trust you give me."
It was the evening before Jack's confirmation and Tom's and Betty's
wedding day. Up and down the paddock paced Tom and Jack, arm in arm,
and Tom's heart was almost as full of the boy who gripped his arm as of the
fair woman whom he would call wife on the morrow.
"It will be a great day for us both, Jack," he said, giving expression to his
thought.
"It would be if you did not feel sure that the hosts of God, that God
Himself is behind you."
"Ah no," said Tom quickly. "There is but one model for us all to copy,
the man Christ Jesus."
"I do wish father could have got here in time," he said, wistfully.
"Aunt Betty thinks he will appear some time to-morrow, but she does not
think it possible that he can arrive in time for the service."
"I heartily wish he could for all our sakes. Aunt Betty is almost as keen
as you, for she longs to get a glimpse of him before I carry her off. We leave
for Launceston in the afternoon."
"It would be just beastly if I did not know that I shall see you both in
England in a few months' time; but now I shall have father, and going about
with him all the time, I shan't be able to miss anyone very much. I wish
girls didn't cry. Whenever I talk of going to England, Eva cries or blows her
nose to prevent it! Men aren't made like that, are they? It would be horrid if
they were! I always tell her to dry up, and perhaps some day, when I'm a
man, I'll come out and marry her."
Tom laughed out loud; it was rather refreshing to find that the boy at his
side, so manly in some ways, was still at heart as innocent as a child.
"But Eva might have found someone else to marry by that time," he
suggested.
"Oh, of course if she did it would be all right, and she would not want
me," said Jack, nonchalantly, in no way affected at the thought of the loss of
his ladylove. "She has cheered up a bit since Aunt Betty has consented to
her being bridesmaid, although she's not to be dressed up fine, just a new
white frock and a white muslin hat, she says."
Then Aunt Betty's voice, ringing down the paddock, called them both in
to supper.
The little church was full to overflowing on the morrow, for quick as had
been the final choice of the wedding day the rumour of it had spread like
fire through the township, and loving hands had been busy on the previous
afternoon, decorating the tiny sanctuary with Madonna lilies and other
white flowers for the double service. And all had been carried through so
quickly and quietly that no one at the farm knew anything of it.
The Bishop's charge was a very simple one, but the earnest words could
scarcely fail to reach the hearts of all who listened to them, and a reverent
hush fell on the congregation as he pronounced the blessing. And then there
was a pause for those who wished to leave the church, but not one stirred
from his place. They waited for what was to follow. Then Tom, with a
glance at Betty, moved to the chancel steps to be followed immediately by
Betty, leaning on her father's arm, while little Eva with round wondering
eyes took her place behind, and forthwith the wedding service proceeded.
Jack's father, meanwhile, had walked up the church and taken his own place
by his son.
Then, in low clear voices, fully audible to all present, Tom and Betty
spoke out their promises to be true and loyal to each other as long as life
should last. There were those in the congregation who beforehand had
grumbled that such an unusual event as a wedding should be carried
through in what they were pleased to call such a hole-and-corner fashion,
but criticism vanished when the simply attired bride came down the church
upon her husband's arm. All felt the bright-faced bride was in her right
setting.
The Bishop, after shaking hands with the wedding couple, had to hurry
off for another function, and then the wedding party walked quietly back to
the farm, where a meal, laid in readiness beforehand, awaited them. Jack sat
by his father and Tom and Betty were placed in the centre of the table. Just
at the end of the meal, Mr. Treherne rose to his feet.
"God bless my girl, as good a daughter as ever stepped, and God bless
the man she has married," was all he said, and Betty turned and kissed him.
The last half hour before the buggy came round to carry them to the
station was spent by Betty in her mother's room. What passed between them
none knew, but when Betty came out in her neat travelling dress, there were
traces of tears in her eyes. Then came the hubbub of adieus, and more
farewells had to be spoken at the gate of the paddock, where half the
township had gathered to wish the bride and bridegroom farewell. Missiles
of all description had been tabooed, but the kindly cheers of her neighbours,
the eager outstretched hands which grasped hers, were a lovely ending to a
happy life, thought Betty, as she drove off with her husband at her side. For
she fully realised that one page of her life was folded down, but another
page, very fair and white, was spread out before her.
What shall be written upon it is not for us to say. Some blots will surely
blister it.
But now as Betty drives away with sunshine in her face and sunshine in
her heart, we breathe the prayer that such days will be few and far between.
EPILOGUE
This paper, with others, was forwarded in due time to Mrs. Kenyon, who
read aloud the paragraph just quoted to Eva, now a blooming girl of
seventeen. She flew round the table and snatched it from her mother's
hands.
"Let me read it for myself, mother. We shall all feel proud of him. He's
playing our childish game of subduing giants to some purpose, isn't he?
He's fairly earned his rights to his title of 'Jack, the Englishman.' I'm ever so
glad. I'll run across to the farm and tell them about it."
Updated editions will replace the previous one—the old editions will
be renamed.
1.D. The copyright laws of the place where you are located also
govern what you can do with this work. Copyright laws in most
countries are in a constant state of change. If you are outside the
United States, check the laws of your country in addition to the
terms of this agreement before downloading, copying, displaying,
performing, distributing or creating derivative works based on this
work or any other Project Gutenberg™ work. The Foundation makes
no representations concerning the copyright status of any work in
any country other than the United States.
1.E.6. You may convert to and distribute this work in any binary,
compressed, marked up, nonproprietary or proprietary form,
including any word processing or hypertext form. However, if you
provide access to or distribute copies of a Project Gutenberg™ work
in a format other than “Plain Vanilla ASCII” or other format used in
the official version posted on the official Project Gutenberg™ website
(www.gutenberg.org), you must, at no additional cost, fee or
expense to the user, provide a copy, a means of exporting a copy, or
a means of obtaining a copy upon request, of the work in its original
“Plain Vanilla ASCII” or other form. Any alternate format must
include the full Project Gutenberg™ License as specified in
paragraph 1.E.1.
• You pay a royalty fee of 20% of the gross profits you derive
from the use of Project Gutenberg™ works calculated using the
method you already use to calculate your applicable taxes. The
fee is owed to the owner of the Project Gutenberg™ trademark,
but he has agreed to donate royalties under this paragraph to
the Project Gutenberg Literary Archive Foundation. Royalty
payments must be paid within 60 days following each date on
which you prepare (or are legally required to prepare) your
periodic tax returns. Royalty payments should be clearly marked
as such and sent to the Project Gutenberg Literary Archive
Foundation at the address specified in Section 4, “Information
about donations to the Project Gutenberg Literary Archive
Foundation.”
• You comply with all other terms of this agreement for free
distribution of Project Gutenberg™ works.
1.F.
1.F.4. Except for the limited right of replacement or refund set forth
in paragraph 1.F.3, this work is provided to you ‘AS-IS’, WITH NO
OTHER WARRANTIES OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO WARRANTIES OF
MERCHANTABILITY OR FITNESS FOR ANY PURPOSE.
Please check the Project Gutenberg web pages for current donation
methods and addresses. Donations are accepted in a number of
other ways including checks, online payments and credit card
donations. To donate, please visit: www.gutenberg.org/donate.