Skip to content

Fixed grammar mistakes in exercise definitions #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from Apr 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions exercises/exercise-0/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@ import chalk from 'chalk';
Intro:

We are starting a small community of users. For performance
reasons we decided to store all users right in the code.
reasons we have decided to store all users right in the code.
This way we can provide our developers with more
user-interaction opportunities. At least with user-related data.
All the GDPR-related issues we will solve some other day.
user-interaction opportunities. With user-related data, at least.
All the GDPR-related issues we will solved some other day.
This would be the base for our future experiments during
this workshop.

Exercise:

Given the data, define an interface "User" and use it accordingly.
Given the data, define the interface "User" and use it accordingly.

Run this exercise:

Expand Down
10 changes: 5 additions & 5 deletions exercises/exercise-1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ import chalk from 'chalk';
Intro:

All 2 users liked the idea of the community. We should go
forward and put some order. We are in Germany after all.
forward and introduce some. We are in Germany after all.
Let's introduce a couple of admins.

Initially we only had users in the in-memory database, now
since we introduced Admin, we need to fix the types so that
Initially we only had users in the in-memory database. After
introducing Admins, we need to fix the types so that
everything works well together.

Exercise:

Type "Person" is missing, please define it and use
in persons array and logPerson function in order to fix all
the TS errors.
it in persons array and logPerson function in order to fix
all the TS errors.

Run this exercise:

Expand Down
2 changes: 1 addition & 1 deletion exercises/exercise-10/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
Intro:

In order to engage users in the communication with
each other we decided to decorate user names
each other we have decided to decorate usernames
in various ways. A brief search led us to a library
called "str-utils". Bad thing is that it lacks
TypeScript declarations.
Expand Down
6 changes: 3 additions & 3 deletions exercises/exercise-12/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@ import './module-augmentations/date-wizard';

Intro:

The next logical step for us it to provide more
The next logical step for us is to provide more
precise registration date for our users and admins.
We've approximately made up dates for each user and
admin and used a library called "date-wizard" in
order to pretty-format the dates.

Unfortunately type declarations which came with
Unfortunately, type declarations which came with
"date-wizard" library were incomplete.

1. DateDetails interface is missing
time-related fields such as hours, minutes and
time related fields such as hours, minutes and
seconds.
2. Function "pad" is exported but not declared.

Expand Down
4 changes: 2 additions & 2 deletions exercises/exercise-13/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ import {expect} from 'chai';

Intro:

We've grown over 10 users and we should use some serious
We've grown over 10 users and we should use a serious
database for admins and users. Such as a text file.
And it turns out that we should write our own database library.
Why not, we are a technology company in the end!

Exercise:

Implement the suggested Database class according to the usage.
This database should store records one JSON object each line.
This database should store records, one JSON object each line.
Each line starts with "E" character which means "Record [E]xists".
This can be useful for the future when we decide to mark
records as deleted.
Expand Down
2 changes: 1 addition & 1 deletion exercises/exercise-15/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Intro:

CEO's friend Nick told us that databases don't only store static
data, but also provide API for adding new data and modifying
existing data. That was completely unexpected for us.
existing data. That was completely unexpected from us.
After drinking hard for a week we decided to move forward.

Exercise:
Expand Down
6 changes: 3 additions & 3 deletions exercises/exercise-4/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ import chalk from 'chalk';
Intro:

Time to filter the data! In order to be flexible
we filter users using a number of criterias and
return only those matching all the criterias.
we filter users using a number of criteria and
return only those matching all of the criteria.
We don't need Admins yet, we only filter Users.

Exercise:

Without duplicating type structures, modify
filterUsers function definition so that we can
pass only those criterias which are needed
pass only those criteria which are needed,
and not the whole User information as it is
required now according to typing.

Expand Down
8 changes: 4 additions & 4 deletions exercises/exercise-6/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import chalk from 'chalk';

Intro:

Filtering was comletely removed from the project.
Filtering was completely removed from the project.
It turned out that this feature was just not needed
for the end-user and we spent a lot of time just because
our office manager told us to do so. Next time we should
Expand All @@ -18,10 +18,10 @@ Intro:
Exercise:

Implement swap which receives 2 persons and returns them in
the reverse order. Actually the function itself is already
there. We just need to provide it with proper types.
the reverse order. The function itself is already
there, actually. We just need to provide it with proper types.
Also this function shouldn't necessary be limited to just
Person types, let's type it so that it works with any types
Person types, lets type it so that it works with any two types
specified.

Run:
Expand Down
4 changes: 2 additions & 2 deletions exercises/exercise-7/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Intro:

Project grew and we ended up in a situation with
some users starting to have more influence.
Therefore we decided to create a new person type
Therefore, we decided to create a new person type
called PowerUser which is supposed to combine
everything User and Admin have.

Higher difficuly exercise:

Define type PowerUser which should have all fields
from both User and Admin (except for type),
and also has type 'powerUser' without duplicating
and also have type 'powerUser' without duplicating
all the fields in the code.

Run:
Expand Down
6 changes: 3 additions & 3 deletions exercises/exercise-9/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ Intro:
This makes us a tech startup officially now.
But one of the consultants spoiled our dreams about
inevitable future IT leadership.
He said that callbacks-based asynchronicity is not
popular anymore. And everyone should use Promises.
He said that callback-based asynchronicity is not
popular anymore and everyone should use Promises.
He promised that if we switch to Promises, this would
bring promising results. Promises-promises-promises.
bring promising results. Promises, promises, promises.

Higher difficuly exercise:

Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy