I am a software development engineer in test for Infosys. My job is officially to write automated tests in Selenium Webdriver. I'm also a web developer as a hobbyest
Intellisense is easier and better supported with typed languages because Intellisense knows what it's looking for. I found that I have more problems with Intellisense in JavaScript than I do in Typescript
Types catch bugs at the editor level, so even before compile time, with a good editor/IDE.
Types allow you to create functions that know what to expect. Suppose I have the following:
Then neither the programmer nor the compiler knows that the httpManager has a sendRequest object and I could pass the function an object that doesn't have that method. Program will attempt execution and crash when it calls the function. In a typed language, this doesn't happen, because you'll catch the error at the editor level.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Intellisense is easier and better supported with typed languages because Intellisense knows what it's looking for. I found that I have more problems with Intellisense in JavaScript than I do in Typescript
Types catch bugs at the editor level, so even before compile time, with a good editor/IDE.
Types allow you to create functions that know what to expect. Suppose I have the following:
In the above snippit I know, and the compiler knows, that the
httpManager
, which is of type HttpManager, has asendRequest
method.But if I do the same in JavaScript:
Then neither the programmer nor the compiler knows that the
httpManager
has asendRequest
object and I could pass the function an object that doesn't have that method. Program will attempt execution and crash when it calls the function. In a typed language, this doesn't happen, because you'll catch the error at the editor level.