Answers.Body: <p>You mention that you are already using ES6, which suggests that package management and complication are not really barrier, though I would expect that many reading this problem are not setup to ensure node and npm are installed and/or may have access to git/ssh protocols for fetching dependencies or projects. So, the first thing I'd point out is that for some readers, compiling TypeScript could be a barrier that reduces is teaching value.</p>
  
  <p>The second and more relevant point is that JavaScript is dynamically typed language. There is value in tools like Flow and TypeScript, especially in production systems, but there is also a great amount of value learning how to program in a dynamic type system. If you're already teaching Java, there are few better choices to teach strategies, advantages and disadvantages to dynamically typed systems. Some students will prefer that type of programming over strictly typed languages. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-03-05T15:50:43.363Z
Answers.LastActivityDate: 2018-03-05T15:50:43.363Z
Answers.UserDisplayName: Jed Schneider
Answers.Body: <p>To be fair, TypeScript is promoted by Microsoft. That means, it has excellent intellisense support along with type checking and all the other standard stuff (regularly updated with bug fixes, premium support, dedicated team and of course the huge marketing muscle of a huge tech giant) we can expect.</p>
  
  <p>However, the thing is, Javascript is simply far more popular. There are more resources and stack overflow itself has like thousands of questions on that. Almost every web app and web site I can think of uses JavaScript at some level. I cannot say the same for TypeScript. If anything, I have not seen it being used either academically or at workplaces. </p>
  
  <p>I would say, if you are already onboard with JavaScript, stick with it and avoid TypeScript. Further, if you really want to add something on top of JavaScript, I would suggest you use jQuery (which is used almost as widely as Javascript) and is actually useful to build stuff. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-09-29T15:47:55.427Z
Answers.LastActivityDate: 2017-09-29T18:35:36.873Z
Answers.LastEditDate: 2017-09-29T18:35:36.873Z
Answers.UserDisplayName: Jay
Body: <p>At my school the students learn some very basic javascript, and a while ago it was decided to expand on that (by teaching nodejs).</p>
  
  <p>by "basic", I mean that we only teach html manipulation through JS.</p>
  
  <p>We have two options for going about it:</p>
  
  <ol>
  <li>Just teach javascript (es6 modules included)</li>
  <li>introduce TypeScript and all that comes with it.</li>
  </ol>
  
  <p>This decision is important because of the students familiarity with java. TypeScript offers more similarity to Java (what with it having, em, <strong>types</strong>, and all), but it is more complicated to teach than just sticking to javascript.</p>
  
  <p>This decision is influenced greatly by the fact that the students are familiar with Java, which means it has to be a big factor in the choice we make. </p>
  
  <p>Naturally, no method is "better" than another, but some methods would teach the students valuable skills.</p>
  
  <p>So, <strong>which skills (and how significant are those skills) would the students learn, should we teach with typescript, instead of just javascript?</strong></p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2017-09-27T14:14:01.173Z
Comments.Text: I wonder whether your primary mission is to create scholars or professionals. Are you mostly getting students ready for university or for jobs in industry? I think those sorts of overall goals should have a strong influence on what you do.
Comments.UserDisplayName: Buffy
Tags: <secondary-education><language-choice><javascript>
Title: Advantages of teaching basic javascript through typescript
ThreadText: # Advantages of teaching basic javascript through typescript
  
  (Asked by: username_0 on 2017-09-27)
  
  At my school the students learn some very basic javascript, and a while ago it was decided to expand on that (by teaching nodejs).
  
  by "basic", I mean that we only teach html manipulation through JS.
  
  We have two options for going about it:
  
  1. Just teach javascript (es6 modules included)
  2. introduce TypeScript and all that comes with it.
  
  This decision is important because of the students familiarity with java. TypeScript offers more similarity to Java (what with it having, em, **types**, and all), but it is more complicated to teach than just sticking to javascript.
  
  This decision is influenced greatly by the fact that the students are familiar with Java, which means it has to be a big factor in the choice we make.
  
  Naturally, no method is "better" than another, but some methods would teach the students valuable skills.
  
  So, **which skills (and how significant are those skills) would the students learn, should we teach with typescript, instead of just javascript?**
  
  **Tags:** secondary-education, language-choice, javascript
  
  > **Comments:**
  > **username_1**: I wonder whether your primary mission is to create scholars or professionals. Are you mostly getting students ready for university or for jobs in industry? I think those sorts of overall goals should have a strong influence on what you do.  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_2 on 2018-03-05. Score: 3
  
  You mention that you are already using ES6, which suggests that package management and complication are not really barrier, though I would expect that many reading this problem are not setup to ensure node and npm are installed and/or may have access to git/ssh protocols for fetching dependencies or projects. So, the first thing I'd point out is that for some readers, compiling TypeScript could be a barrier that reduces is teaching value.
  
  The second and more relevant point is that JavaScript is dynamically typed language. There is value in tools like Flow and TypeScript, especially in production systems, but there is also a great amount of value learning how to program in a dynamic type system. If you're already teaching Java, there are few better choices to teach strategies, advantages and disadvantages to dynamically typed systems. Some students will prefer that type of programming over strictly typed languages.
  
  
  ---
  
  ### Answer by username_3 on 2017-09-29. Score: 2
  
  To be fair, TypeScript is promoted by Microsoft. That means, it has excellent intellisense support along with type checking and all the other standard stuff (regularly updated with bug fixes, premium support, dedicated team and of course the huge marketing muscle of a huge tech giant) we can expect.
  
  However, the thing is, Javascript is simply far more popular. There are more resources and stack overflow itself has like thousands of questions on that. Almost every web app and web site I can think of uses JavaScript at some level. I cannot say the same for TypeScript. If anything, I have not seen it being used either academically or at workplaces.
  
  I would say, if you are already onboard with JavaScript, stick with it and avoid TypeScript. Further, if you really want to add something on top of JavaScript, I would suggest you use jQuery (which is used almost as widely as Javascript) and is actually useful to build stuff.
  
  
  ---
  
  