Skip to content
This repository was archived by the owner on Nov 16, 2023. It is now read-only.

Small Grammar and Wording Changes #5

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

gcrev93
Copy link

@gcrev93 gcrev93 commented Aug 27, 2019

After reading through the handbook, I made some small changes to some of the wording so that sentences made more sense and grammatically correct.

Let me know if I need to make any other changes!

@@ -185,7 +185,7 @@ npm install -g typescript
> This installs the TypeScript Compiler `tsc` globally.
> You can use `npx` or similar tools if you'd prefer to run `tsc` from a local `node_modules` package instead.

Now let's move to an empty folder and try writing our first TypeScript program: `hello.ts`:
Now create an empty directory named ts-example and create a new file called: `hello.ts` and input the following code:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't understand how specifying the directory name improves the clarity. Anyway for all code or filenames we've been using fixedwidth formatting

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was thinking in more of a beginner sense and doing many workshops I've noticed that many people need things specifically spelled out for them. Versus when we write docs we know what we mean.

@@ -217,7 +217,10 @@ console.log("Hello world!");

In this case, there was very little for TypeScript to transform, so it looks identical to what we wrote.
The compiler tries to emit clean readable code that looks like something a person would write.
While that's not always so easy, TypeScript indents consistently, is mindful of when our code spans across different lines of code, and tries to keep comments around.
While that's not always so easy, TypeScript:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the general idea that all lists of things need to be bullets? I'd like to understand the motivation.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yea, so I proposed bullets because it seemed hard to read as one long sentence. It visually helped when I separated them as a bulleted list. Could just be a me thing!

@@ -321,7 +324,7 @@ That's a feature, and it's best not to add annotations when the type system woul

## Erased Types

Let's take a look at what happens when we compile with `tsc`:
Let's take a look at the differences in the JavaScript code created from `tsc`:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like that this calls out that we're looking at the JS code, but "differences" is kind of left hanging in terms of what the other thing we're comparing against is.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmmm I see your point. Maybe "Lets take a look at the JavaScript code created when we compile with tsc"?

@@ -187,7 +187,7 @@ TypeScript doesn't hurt us here at all, but this is behavior worth noting if you
TypeScript can often help you catch bugs early on, but if you choose to do *nothing* with a value, there's only so much that it can do without being overly prescriptive.
If you want, you can make sure you handle situations like these with a linter.

One last word on narrowing by truthiness is that Boolean negations with `!` filter out from negated branches.
One last word on narrowing by truthiness is that Boolean negations with `!`, filter out from negated branches.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This sentence is a complete disaster (I can barely figure out what it means) and should just be rewritten.

The proposed change doesn't improve it. See "Using A Comma Before A Verb In Relative Clause"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's an honor to receive this feedback 😅

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Totally agree the change was not the best as I too had issues figuring out what it meant. I didn't want to change too much but a whole new sentence is preferred.

@RyanCavanaugh
Copy link
Member

Left some comments and questions; the rest of the changes are 👍👍

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants