![]() Yes, the compiler is going to yell at you…a lot. It still amazes me how often the TypeScript compiler catches a bug that I did not see at first. TypeScript is incredibly powerful and there is much more to learn than simple type annotations, but this first step will prevent you from regularly shooting yourself in the foot. By “the basics” I mean: how to add type annotations to your variables, class properties, function arguments, and function return values. With that in mind, I recommend that you learn the basics of TypeScript as soon as possible. TypeScript alleviates these issues through adding strong typing and the ability to create readonly properties (among many other wonderful things). It is all too easy to write side-effect-vulnerable code when you are passing around variables and data objects that have no type contracts and no immutability. JavaScript is a loosely typed, dynamic programming language. This recommendation has less to do with JavaScript than it does with best coding practices. However, I believe in TypeScript so strongly that I had to include it. I debated with myself for probably an hour on whether or not to include this, since this is a post about learning JavaScript and TypeScript is not JavaScript it is a super-set of it and requires a build step to use. Using Fetch from the Mozilla Development Network (MDN).Chapter 3: Promises from Kyle Simpson’s Async & Performance Book.Chapter 2: Callbacks from Kyle Simpson’s Async & Performance Book.The History (and Future) of Asynchronous JavaScript from the Okta developer blog.They should give you a good idea of where to start with asynchronous programming. Take some time to read the resources I am listing below, in order. That is where you should invest a lot of your time early on learning JavaScript, since it encapsulates other core tenets such as callbacks, promises, async/await, and fetch. It is safe to say that asynchronous programming is a core tenet of web development. The ability to make an HTTP request and wait for the response without reloading the page, quite literally, changed the world wide web. It allowed websites to go from static pages with only client-side actions to full-blown applications in your browser. If you look at the history of JavaScript (or web development in general), you will find that asynchronous JavaScript completely changed the game. ![]() Get comfortable with asynchronous JavaScript. With the lessons learned over the course my 7 year career in mind, these are my recommendations on how you should learn JavaScript. There are innumerable things I learned that I never ended up using, and other things I wish I had spent more time on. How do you know where to start? On which topics should you be spending your time? There is a wide array of front-end frameworks, a handful of module bundlers, and 1000s of utility libraries - not to mention all of the Node.js modules that can run on your machine or server. Navigating the vast ecosystem of modern JavaScript is a daunting task.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |