Programming TypeScript Making Your JavaScript Applications Scale 1st Edition Boris Cherny - Own the ebook now with all fully detailed chapters
Programming TypeScript Making Your JavaScript Applications Scale 1st Edition Boris Cherny - Own the ebook now with all fully detailed chapters
com
https://ebookmeta.com/product/programming-typescript-making-
your-javascript-applications-scale-1st-edition-boris-cherny/
OR CLICK HERE
DOWLOAD EBOOK
https://ebookmeta.com/product/programming-typescript-making-your-
javascript-applications-scale-1st-edition-boris-cherny/
ebookmeta.com
https://ebookmeta.com/product/learning-typescript-enhance-your-web-
development-skills-using-type-safe-javascript-josh-goldberg-2/
ebookmeta.com
https://ebookmeta.com/product/learning-typescript-enhance-your-web-
development-skills-using-type-safe-javascript-josh-goldberg/
ebookmeta.com
https://ebookmeta.com/product/the-shakespearean-inside-a-study-of-the-
complete-soliloquies-and-solo-asides-1st-edition-marcus-nordlund/
ebookmeta.com
The Dutch East India Company Captivating History
https://ebookmeta.com/product/the-dutch-east-india-company-
captivating-history/
ebookmeta.com
When the Smoke Cleared Attica Prison Poems and Journal 1st
Edition Celes Tisdale
https://ebookmeta.com/product/when-the-smoke-cleared-attica-prison-
poems-and-journal-1st-edition-celes-tisdale/
ebookmeta.com
https://ebookmeta.com/product/dorsolateral-prefrontal-cortex-working-
memory-and-executive-functions-1st-edition-shintaro-funahashi/
ebookmeta.com
https://ebookmeta.com/product/a-different-look-at-artificial-
intelligence-on-tour-with-bergson-proust-and-nabokov-1st-edition-
ulrike-barthelmes/
ebookmeta.com
https://ebookmeta.com/product/everyday-go-the-fast-track-for-golang-
alex-ellis/
ebookmeta.com
PCEP Book 1 Maternal and Fetal Evaluation and Immediate
Newborn Care Robert A Sinkin (Editor In Chief)
https://ebookmeta.com/product/pcep-book-1-maternal-and-fetal-
evaluation-and-immediate-newborn-care-robert-a-sinkin-editor-in-chief/
ebookmeta.com
1. Preface
a. How This Book Is Organized
b. Style
i. Conventions Used in This Book
c. Using Code Examples
d. O’Reilly Online Learning
e. How to Contact Us
f. Acknowledgments
2. 1. Introduction
3. 2. TypeScript: A 10_000 Foot View
a. The Compiler
b. The Type System
i. TypeScript Versus JavaScript
c. Type-Driven Development
d. Summary
e. Exercises
6. 5. Classes and Interfaces
i. Declaration Merging
ii. Implementations
iii. Implementing Interfaces Versus
Extending Abstract Classes
e. Classes Are Structurally Typed
f. Classes Declare Both Values and Types
g. Polymorphism
h. Mixins
i. Decorators
j. Simulating final Classes
k. Design Patterns
i. Factory Pattern
ii. Builder Pattern
l. Summary
m. Exercises
7. 6. Advanced Types
e. Conditional Types
i. Distributive Conditionals
ii. The infer Keyword
iii. Built-in Conditional Types
f. Escape Hatches
i. Type Assertions
ii. Nonnull Assertions
iii. Definite Assignment Assertions
i. React
ii. Angular 6/7
b. Typesafe APIs
c. Backend Frameworks
d. Summary
11. 10. Namespaces.Modules
i. Collisions
ii. Compiled Output
d. Declaration Merging
e. Summary
f. Exercise
12. 11. Interoperating with JavaScript
a. Type Declarations
e. Summary
13. 12. Building and Running TypeScript
i. Globals
ii. ES2015 Exports
iii. CommonJS Exports
iv. UMD Exports
b. Extending a Module
i. Globals
ii. Modules
19. E. Triple-Slash Directives
a. Internal Directives
b. Deprecated Directives
20. F. TSC Compiler Flags for Safety
21. G. TSX
22. Index
Programming TypeScript
Making Your JavaScript Applications Scale
Boris Cherny
Programming TypeScript
by Boris Cherny
See http://oreilly.com/catalog/errata.csp?isbn=9781492037651
for release details.
978-1-492-03765-1
[LSI]
Dedication
To Sasha and Michael, who might also fall in love with types,
someday.
Preface
This is a book for programmers of all walks: professional
JavaScript engineers, C# people, Java sympathizers, Python
lovers, Ruby aficionados, Haskell nerds. Whatever language(s)
you write in, so long as you have some experience
programming and know the basics of functions, variables,
classes, and errors, this book is for you. Some experience with
JavaScript, including a basic knowledge of the Document
Object Model (DOM) and the network, will help you along the
way—while we don’t dive deep into these concepts, they are a
wellspring of excellent examples, and if you’re not familiar with
them the examples might not make as much sense.
Italic
Constant width
TIP
This element signifies a tip or suggestion.
NOTE
This element signifies a general note.
WARNING
This element indicates a warning or caution.
This book is here to help you get your job done. In general, if
example code is offered with this book, you may use it in your
programs and documentation. You do not need to contact us
for permission unless you’re reproducing a significant portion
of the code. For example, writing a program that uses several
chunks of code from this book does not require permission.
Selling or distributing a CD-ROM of examples from O’Reilly
books does require permission. Answering a question by citing
this book and quoting example code does not require
permission. Incorporating a significant amount of example
code from this book into your product’s documentation does
require permission.
We appreciate, but do not require, attribution. An attribution
usually includes the title, author, publisher, and ISBN. For
example: “Programming TypeScript by Boris Cherny (O’Reilly).
Copyright 2019 Boris Cherny, 978-1-492-03765-1.”
If you feel your use of code examples falls outside fair use or
the permission given above, feel free to contact us at
[email protected].
NOTE
For almost 40 years, O’Reilly Media has provided technology and business
training, knowledge, and insight to help companies succeed.
Sebastopol, CA 95472
707-829-0104 (fax)
TYPE SAFETY
Using types to prevent programs from doing invalid things.1
let obj = {}
obj.foo // Evaluates to undefined
function a(b) {
return b/2
}
a("z") // Evaluates to NaN
let obj = {}
obj.foo // Error: You forgot to define the
function a(b) {
return b/2
}
a("z") // Error: The function "a" expects
// but you gave it a string.
That’s where TypeScript comes in. Even cooler than the fact
that TypeScript gives you helpful error messages is when it
gives them to you: TypeScript gives you error messages in
your text editor, as you type. That means you don’t have to
rely on unit tests or smoke tests or coworkers to catch these
sorts of issues: TypeScript will catch them for you and warn
you about them as you write your program. Let’s see what
TypeScript says about our previous example:
2 If you’re not sure what “type level” means here, don’t worry. We’ll go
over it in depth in later chapters.
Chapter 2. TypeScript: A
10_000 Foot View
Over the next few chapters, I’ll introduce the TypeScript
language, give you an overview of how the TypeScript
Compiler (TSC) works, and take you on a tour of TypeScript’s
features and the patterns you can develop with them. We’ll
start with the compiler.
The Compiler
Depending on what programming languages you worked with
in the past (that is, before you decided to buy this book and
commit to a life of type safety), you’ll have a different
understanding of how programs work. The way TypeScript
works is unusual compared to other mainstream languages like
JavaScript or Java, so it’s important that we’re on the same
page before we go any further.
NOTE
JavaScript compilers and runtimes tend to be smushed into a single
program called an engine; as a programmer, this is what you’ll normally
interact with. It’s how V8 (the engine powering NodeJS, Chrome, and
Opera), SpiderMonkey (Firefox), JSCore (Safari), and Chakra (Edge)
work, and it’s what gives JavaScript the appearance of being an
interpreted language.
And if you want TypeScript to infer your types for you, just
leave them off and let TypeScript get to work:
let a = 1 // a is a number
let b = 'hello' // b is a string
let c = [true, false] // c is an array of
NOTE
In general, it is good style to let TypeScript infer as many types as it can
for you, keeping explicitly typed code to a minimum.
He should have the printed bills and other documents in his possession so
classified and arranged that he can at once answer any call upon him for
them.
His assistant assists him generally in the discharge of his duties, and takes
his place when he is absent.
The Door Keeper attends to the principal door; opens and closes it for the
entry and exit of all persons; maintains order in the lobby and vestibule;
sees that visitors are seated, and that the regulations of the House, in his
department, are strictly enforced.
The Firemen attend to the warming and ventilation of the House chamber,
and under the direction of the sergeant-at-arms, make themselves generally
useful.
DUTIES OF MESSENGERS.
To be in attendance from 8 o’clock A. M. until 10 o’clock P. M. every day
(Sundays excepted), whether the House is in session or not.
To receive the journals and printed bills from the Sergeant-at-Arms, and
arrange them in order on the file of each member.
Not to leave the House chamber during the morning hour, or absent
themselves from the sessions of the House during an entire day, except
upon leave of the Speaker or the House.
During the morning hour to take the positions assigned to them by the
Clerk; and, standing up, so as to see and be seen, hold themselves in
readiness to bring all bills, resolutions, etc., from the several members to the
Clerk, when presented.
After the expiration of the morning hour, when not engaged in filing bills,
etc., for the members they have in charge, to answer promptly any call, and
render assistance to any member requiring it.
To refrain from throwing any paper balls, darts, or other missile; to move
lightly across the House chamber, and demean themselves respectfully
towards every member and officer of the House.
STATIONERY.
The Secretary of State furnishes to the Sergeant-at-Arms the stationery
required by the members, the clerk and other officers.
NEWSPAPERS.
In regard to the supply of newspapers there are no regulations. The House
determines what papers, and how many, shall be furnished.
A member having prepared a bill and endorsed the title thereof, together
with his name, upon the back of it, rises to his feet, at such time as the
introduction of bills is in order, and says:
“Mr. Speaker.”
The bill is then sent to the Clerk by a messenger. The Clerk then reads the
title of the bill, and places it on file for its first reading, and when the order
for the first reading of bills is reached, the Clerk reads the first bill on file at
length, when the Speaker announces:
Bills in the general file are usually considered in Committee of the Whole in
the exact order in which they are placed upon the file. Proceedings in
Committee of the Whole will be elsewhere considered.
After a Committee of the Whole has completed its action upon any bill, and
reported the same back to the House, and any recommendations made by
the committee passed upon, it is taken up in its order, when the Speaker
puts the following question:
When, under the order of business, the bill is reached, the title of the bill is
read, and the bill itself is read at length, when the Speaker says as follows:
“This bill having been read three several times, the question is: Shall the bill
pass?”
If the bill passes it is taken to the Senate, with a message announcing its
passage by the House, and asking the concurrence of the Senate therein.
If the Senate concurs, the bill is sent to the Enrolling Clerk, who makes a
copy thereof, as is elsewhere described. When enrolled, it goes to the
Committee on Enrolled Bills, who compare it with the engrossed bill. When
found or made correct, they report the bill to the House as correctly
enrolled; the engrossed bill is filed by the Clerk; the enrolled bill is then
endorsed by the Clerk as having originated in the House (for the information
of the Governor, in case he vetoes it). It is then referred to a joint committee
of enrollment, who present the same to the Speaker, who has the title of the
bill read in hearing of the House, and then signs it, after which the joint
committee present the bill to the President of the Senate, who has the title
of the bill read in hearing of the Senate, and then signs it. The committee
then proceed to the Governor and present the bill thus duly signed for his
approval, and report that fact to the House, and the hour when it was
deposited in the Governor’s hands. The Governor, if he approves the bill,
informs the House in which it originated of that fact, and that he has
deposited it with the Secretary of State.
This is the ordinary process of a bill through all its stages until it becomes a
law. A bill of great interest or importance, or one which is warmly contested,
may, by reason of majority and minority reports, special orders,
recommitment, amendments, substitutes, committees of conference, and
various other parliamentary appliances, pass through a vast number of
stages not before enumerated.
Senate bills coming into the House after passing the Senate, are read twice
by title and then read at length, and then referred to the appropriate
committee.
If it is decided affirmatively, the bill passes into the order of “bills on third
reading;” and when reached in that order, the question is:
If concurred in, the bill is returned to the Senate, with the message
informing it of that fact.
The House may resolve itself into a Committee of the Whole upon some
particular bill, resolution or subject, or it may go into Committee of the
Whole upon the general file of bills.
“That the House do now resolve itself into a Committee of the Whole upon
[bill No. ——, A, a bill ——], or [joint resolution No. ----, A, providing, etc.],
or [upon all bills relating to ——], as the case may be.”
“That the House do now resolve itself into a Committee of the Whole upon
the general file of bills.”
Bills, resolutions, and general matters which have been once considered in
committee of the whole, and in which progress has been made, and leave
granted for further consideration, have the preference. The motion of the
Committee of the Whole, for their further consideration, must be made
under the head of “bills in which the committee of the whole have made
progress and obtained leave to sit again;” and in which case the member
who presided when the same matter was previously considered in
committee of the whole, resumes the chair.
The motion for the committee of the whole upon the general file, must be
made under the order of “bills not yet considered in committee of the
whole.”
When the House resolves itself into committee of the whole, the Speaker
selects a chairman as follows:
The appointed chairman advances to the Speaker’s desk, and having taken
the chair, receives from the clerk the papers indicated by the motion for the
committee, when the chairman announces:
“No amendments being offered to the first section, the second section will
be read.”
This process is continued through the whole bill, when at the close of the
reading the chairman says:
“The ——th section and the whole bill have now been read, and are open to
amendment.”
At this point, after the friends of the bill have perfected it, it is customary for
the opponents of the bill to open their attack. After the discussion of the bill
to such an extent as may be desired, if no amendments are made, the final
vote is generally upon a motion—
“That the bill be reported back to the House without amendment.”
If any other bills are before the committee, they are proceeded with in the
same manner. If it is desired to have further consideration of any matter
before the committee, or if the general file has not been gone through with,
the motion is:
“That the committee rise, report progress, and ask leave to sit again.”
“It is moved that the committee do now rise and report (or otherwise, as the
case may be).”
“Gentlemen,—Those who are of opinion that this committee do now rise and
report, say ‘Aye;’ those of a contrary opinion say ‘No.’”
In case of doubt a division must be had, as the ayes and noes cannot be
called in committee of the whole.
When the committee rises, the Speaker resumes his seat, and the chairman,
in his place on the floor, reports as follows:
“Mr. Speaker.”
“Mr. Chairman.”
Who reports:
“The committee of the whole have had under consideration bill No. ——, A,
entitled ——, and have instructed me to report the same to the House with
amendment” (or as the case may be).
When the general file has been under consideration, the report is as follows:
“The committee of the whole have had under consideration the general file
of bills, have gone through the same, and have directed me to report to the
House the bills contained therein, with sundry amendments and
recommendations as follows, to-wit:” [Here follows the titles of bills
considered, with action taken upon them.]
In case the file has been left unfinished, the report is:
“The committee of the whole have had under consideration the general file
of bills, and have made some progress therein. I am directed to report back
the following bills, with the amendments and recommendations hereinafter
specified, and ask leave for the committee to sit again.” [Here follows the
report of amendments, etc., as above.]
“The committee of the whole have had under consideration ——, and, after
some progress therein, find there is no quorum present; that fact I herewith
report to you.”
In case of confusion or disorder, the Speaker, of his own accord, resumes the
chair temporarily and without any formality, for the purpose of suppressing
it. When order is restored the chairman resumes the chair, and the business
proceeds.
“Is the committee ready for the question upon the amendment?”
And if no further amendment or debate offer, he puts the question in the
usual manner.
“That the amendment offered by the gentleman from ——, to the ----th
section, be reconsidered.”
“Those who are of the opinion that said amendment be reconsidered say
‘Aye;’ those of the contrary opinion say ‘No.’”
FORMS.
Of Titles:
Amending Bill:
A bill relating to ——, and amendatory of section ——, of chapter ----, of the
——.
Repealing Bill:
A bill to repeal section ——, of chapter ——, of the ——, relating to ——
(filling the blanks with the proper section and chapter of the revised statutes
or general laws, designating the same, and also the subject, object or
purpose of the section of the chapter repealed; and in the body of every bill,
the full title of the act repealed shall be recited at length).
Appropriation Bill:
Titles should be written inside the bill, and endorsed upon the outside as
follows:
No. ——, A.
A Bill to change the name of
Andrew Jackson to James Madison.
Mr. Gorden.
Resolutions should not be entitled, but should have the name of the mover
endorsed upon them. The same rule applies to amendments.
“Mr. Tucker.”
“The committee on ——, to which was referred bill No. ——, A., a bill to ——,
respectfully report the same back to the House with an amendment, and
recommend its passage when amended;” or, “and recommend that it do
pass;” or, “and recommend that it be indefinitely postponed;” or, “and
recommend that it be referred to the delegation from ——;” or, “to a select
committee.”
Or, if the committee report by bill:
“The committee on ——, to which was referred ——, respectfully report “by
bill No. ——, A., a bill to ——;
INVESTIGATIONS.
When an investigation is required into any matter, the person most
interested in having the inquiry made, should move the appointment of a
committee to take the subject in charge. This is done by resolution. The
resolution should be so drawn as to state the precise subject to be
investigated, and to give the committee all the power which the mover may
deem necessary to a thorough examination into the subject matter to be laid
before them; this should be done to prevent any misapprehension as to the
intention and extent of the inquiry to be made. In case of the adoption of
the resolution, the mover, together with other members, will be appointed a
committee. They have power to send for persons and papers. The form of a
subpœna is as follows:
“To —— ——: You are hereby commanded, that, laying aside all business
and excuse, you personally appear and attend before Messrs. —— ——, on
the part of the Senate, and Messrs. —— ——, on the part of the House, a
joint committee appointed under a resolution of the Senate and House, to
investigate at the room of said committee ——, in the city of Denver, the
capital of the State, on the —— day of ——-, A. D. one thousand eight
hundred and ——, at the hour of —— in the —— noon, then and there, and
from time to time, as required by said committee, to testify and give
evidence upon the matters of inquiry before said committee.
“Hereof fail not, under penalty in such case made and provided.
“Given at the House chamber, in the city of Denver aforesaid, this —— day
of ——, A. D. 18——.
—— ——.”
“Given at the House chamber, in the city of Denver aforesaid, this —— day
of ——, A. D. 18——.
“By virtue of the within process, I did, on the —— day of ——, 18—, arrest
the body of —— ——, and took him before the committee within named,
and the said —— —— having refused to answer interrogatories propounded
by said committee, I have him, by direction of said committee, now before
the House.
“Why did you not answer the question put or propounded to you on the ——
instant, by a member of the joint investigating committee, of which —— ——
is chairman?”
3. Resolutions, or a bill providing for the action which the committee deem
proper to be taken in the premises.
QUORUMS.
Whole number electable:
“Not less than 25 nor more than 49.”
To expel a member:
“Two-thirds.”
To do any business except to adjourn from day to day, and compel the
attendance of absent members:
“A majority.”
To cause the ayes and nays on any question to be entered upon the journal:
“Two members.”
To pass any bill which imposes, continues or renews a tax, or creates a debt
or charge, or makes, continues or renews any appropriation of public trust,
money or release, discharges or commutes a claim or demand from the
State:
“A majority of all.”
To adjourn from day to day:
“A smaller number than a majority.”
To agree to an amendment of the Constitution:
“A majority of all the members.”
To recommend a constitutional convention:
“Two-thirds of all.”
To contract a public debt:
“A majority of all members elect.”
To pass any resolution or motion:
“A majority of all present.”
To pass any bill:
“A majority of all the members elect.”
To make a Call of the House:
“Two members.”
To order the previous question:
“A majority present.”
To suspend the rules:
“Two-thirds of the members present.”
To change the order of business:
“Two-thirds of the members present.”
To bring in a bill which has been rejected by the Senate:
“Two-thirds of the House.”
To agree to an amendment made by the Senate to a House bill bill with an
emergency clause:
“Two-thirds of all members elect.”
RULES AND ORDERS OF THE SENATE.
1. The hours of meeting shall be 10 A. M. and 2 P. M., unless otherwise ordered.
2. The President having taken the chair, and a quorum being present, the journal of the preceding
day shall be read, to the end that any mistake may be corrected, which shall be made in the
entries. A quorum shall consist of a majority of the members of the Senate.
3. No member shall speak to another, or otherwise interrupt the business of the Senate, or read
any newspaper, while the journal or public papers are being read, or when any member is
speaking in debate. No smoking shall be allowed during the sitting of the Senate.
4. Every member, previous to speaking, shall rise from his chair, and respectfully address the
President, and shall confine himself to the question under debate, and avoid personality.
5. No member shall speak more than twice on any one debate on the same day, without leave of
the Senate.
6. When two members rise at the same time, the President shall name the person to speak; but
in all cases the member who shall first rise and address the chair shall speak first.
7. When a member shall be called to order by the President or a Senator, he shall sit down; and
every question of order shall be decided by the President, without debate, subject to an appeal to
the Senate; and the President may call for the sense of the Senate on any question of order.
8. If the member be called to order by a Senator for words spoken, the exceptional words shall
immediately be taken down in writing by the Secretary, that the President may be better enabled
to judge of the matter.
9. No member shall absent himself from the service of the Senate without leave of the Senate,
and in case a less number than a quorum of the Senate shall convene, they, or a majority of
them, may send the Sergeant-at-Arms, or other suitable person or persons, for any or all absent
members, at the expense of such absent members respectively, unless such excuse for non-
attendance shall be made, as the Senate, when a quorum is convened, shall judge sufficient.
11. When a motion shall be made and seconded, it shall be reduced to writing, if desired by the
President or any member, delivered at the table of the Secretary, and read before the same shall
be debated.
12. When a question is under debate no motion shall be received, except as otherwise provided in
these rules, but to adjourn, to lie on the table, to postpone indefinitely, to postpone to a day
certain, to commit, or amend, which several motions shall have precedence in the order they
stand arranged. Any motion may be withdrawn by the mover at any time before a discussion,
amendment, or ordering of the yeas and nays, except a motion to reconsider, which shall not be
withdrawn without leave of the Senate. A motion to adjourn shall always be in order. That, and
the motion to lay on the table, shall be decided without debate.
13. The previous question shall be in this form: “Shall the main question be now put?” It shall
only be entertained when demanded by a majority of the members present, and its effects shall
be to put an end to all debate, and bring the Senate to a direct vote upon amendments reported
by a committee, if any, upon pending amendments, and then upon the main question. On a
motion for the previous question, and prior to the seconding of the same, a call of the Senate
shall be in order, but after a majority shall have seconded such motion, no call shall be in order
prior to a decision of the main question.
14. When the previous question is decided in the negative, it shall leave the main question under
debate for the residue of the sitting, unless disposed of by taking the question, or in some other
manner.
15. Any five members may make a call of the Senate and require absent members to be sent for,
but a call of the Senate cannot be made after the voting has commenced, and the call of the
Senate being in order, and the absentees noted, the doors shall be closed and no member
permitted to leave the room until the report of the Sergeant-at-Arms be received and acted upon,
or further proceedings in the call be suspended by a vote of two-thirds of the Senate.
16. The President shall rise to put a question, but may state it sitting.
17. No motion or proposition on a subject different from that under consideration shall be
admitted under color of amendment.
18. If a question in debate contains several points, any member may have the same divided, but
on motion to strike out and insert, it shall not be in order to move for a division of the question,
but the rejection of a motion to strike out and insert one proposition shall not prevent a motion to
strike out and insert a different proposition, nor prevent a subsequent motion simply to strike out,
nor shall the rejection of a motion simply to strike out, prevent a subsequent motion to strike out
and insert.
19. All so called substitute motions and resolutions shall be considered as amendments only, and
shall be subject to the rules relating thereto, except such matters as may be reported by
committees.
20. In filling up blanks the largest sum and longest time shall be first put.
21. When the reading of a paper is called for, and the same is objected to by any member, it shall
be determined by a vote of the Senate, and without debate.
22. When the ayes and nays shall be called for by two of the members present, each member
called upon shall declare openly, and without debate, his assent or dissent to the question, unless
by special reason he be excused by the Senate.
23. When the ayes and nays shall be taken on any question in pursuance of the above rule, no
member shall be permitted, under any circumstances whatever, to vote after the decision is
announced from the chair.
24. On a motion made and seconded to shut the doors of the Senate, on the discussion of any
business which may in the opinion of the Senate require secrecy, the presiding officer shall direct
the lobby to be cleared, and during the discussion of such motion the doors shall remain shut.
25. No motion shall be deemed in order to admit any person or persons whatsoever, other than a
Senator, within the Senate chamber, to present any petition, memorial or address.
26. When a question has been carried or negatived, it shall be in order for any member of the
majority to move for the reconsideration thereof. But no motion for the reconsideration of any
vote shall be in order after a bill, resolution, message, report, amendment, or motion, upon which
the vote was taken, shall have gone out of the possession of the Senate, announcing their
decision; nor shall any motion to reconsider be in order unless made on the same day on which
the vote was taken, or within the next two days of actual session of the Senate thereafter.
27. The President of the Senate, or President pro tempore, shall have the right to name a
member to perform the duties of the Chair; but such substitution shall be for that day only.
28. Every petition or memorial, or other paper, shall be referred, of course, without putting a
question for that purpose, unless the reference be objected to at the time the same is presented;
and before any petition or other paper shall be received or read, a brief statement of the contents
of the same shall be verbally made by the introducer.
29. The following shall be the order of business for the day:
30. All bills introduced in the Senate shall, after the second reading be printed for the use of the
members, but no other paper or document shall be printed without special order.
31. Every bill shall receive three readings at length previous to its being passed, and the President
shall give notice at each, whether it be the first, second or third, which readings shall be on three
different days. All resolutions to which the signature of the Governor may be requisite, shall be
treated, in all respects, in the introduction and form of proceedings on them in the Senate, in a
similar manner with bills, and all other resolutions shall lie on the table one day before being
taken up for consideration, and also all reports of committees.
32. No bill shall be committed or amended until it shall have been twice read, after which it shall
be referred to a committee.
33. All bills after second reading shall be printed and considered by the Senate in the committee
of the whole before they shall be taken up and proceeded on by the Senate, agreeably to the
standing rules, unless otherwise ordered. When the Senate shall consider a bill or resolution as a
committee of the whole, the President or President pro tempore shall call a member to fill the
chair during the time the Senate shall remain in committee of the whole.
34. The final question, upon the second reading of every bill, resolution or motion, originating in
the Senate and requiring three readings previous to being passed, shall be, “whether it shall be
engrossed and read a third time?” And no amendments shall be received for discussion at a third
reading, of any bill, resolution or motion, unless by unanimous consent of the members present,
but it shall at all times be in order, upon the final passage of any bill, resolution or motion, to
move its commitment, and shall such commitment take place, and any amendment be reported
by the committee, said bill, resolution or motion, shall again be read the second time and
considered in committee of the whole, and then the aforesaid question shall be again put.
36. When motions are made for reference of the same subject to a select committee and to a
standing committee, the question on reference to the standing committee shall first be put.
37. When motions are made for reference of the same subject to a select committee and to a
standing committee, the question on reference to the standing committee shall first be put.
37. When nominations shall be made in writing by the Governor to the Senate, a future day shall
be assigned, unless the Senate otherwise direct, for taking them into consideration.
38. All confidential communications made by the Governor shall be kept secret. When acting on
confidential or executive business, the Senate room shall be closed to all persons except the
Secretaries and Sergeant-at-Arms. All information or remarks touching the character or
qualifications of any person nominated by the Governor to office, shall be kept secret. The
legislative proceedings, the executive proceedings, and the confidential legislative proceedings of
the Senate, shall be kept in separate and distinct books.
39. The proceedings of the Senate, when not acting in committee of the whole, shall be entered
on the journal as concisely as possible, care being taken to detail a true and accurate account of
the proceedings and every vote of the Senate shall be entered on the journal, and a brief
statement of the contents of each petition, memorial or paper presented to the Senate, shall be
inserted on the journal.
40. Messages shall be sent to the House by the Secretary or Assistant Secretary; the Secretary
having previously endorsed the final determination of the Senate thereon.
41. The Sergeant-at-Arms shall not permit any person not a member or officer of the Senate to
pass inside the railing, in the rear of the seats of the members, at any time during the session of
the Senate, except the Judges of the Supreme and District Courts, the Governor and other State
officers, and duly accredited representatives of the press, and the members of the Legislature of
the State of Colorado, and such other persons as may be invited by the members.