Click here to Skip to main content
15,881,898 members

Survey Results

JavaScript, TypeScript, or something else?

Survey period: 1 Jul 2019 to 8 Jul 2019

Assuming you need to write JavaScript, do you prefer plain JavaScript or one of the typed alternatives?

OptionVotes% 
Javascript all the way34638.83
TypeScript for me18520.76
CoffeeScript please20.22
Flow40.45
Reason20.22
PureScript20.22
Something else222.47
I don't write JavaScript32836.81



 
GeneralJust JS but because of the in browser tooling Pin
Dan Neely8-Jul-19 5:29
Dan Neely8-Jul-19 5:29 
GeneralI wanted to choose 'I don't write Javascript' BUT Pin
MarkTJohnson2-Jul-19 2:10
professionalMarkTJohnson2-Jul-19 2:10 
Generalwhere options for vanilla-js with jquery? :P Pin
maze32-Jul-19 0:16
professionalmaze32-Jul-19 0:16 
GeneralI won't write JavaScript... Pin
Daniel Pfeffer1-Jul-19 8:54
professionalDaniel Pfeffer1-Jul-19 8:54 
GeneralRe: I won't write JavaScript... Pin
kalberts1-Jul-19 21:33
kalberts1-Jul-19 21:33 
GeneralRe: I won't write JavaScript... Pin
BillMillerPD@2-Jul-19 1:30
professionalBillMillerPD@2-Jul-19 1:30 
GeneralRe: I won't write JavaScript... Pin
Slow Eddie2-Jul-19 2:10
professionalSlow Eddie2-Jul-19 2:10 
GeneralRe: I won't write JavaScript... Pin
Brian Battles2-Jul-19 4:30
Brian Battles2-Jul-19 4:30 
GeneralRe: I won't write JavaScript... Pin
BillMillerPD@2-Jul-19 4:52
professionalBillMillerPD@2-Jul-19 4:52 
GeneralRe: I won't write JavaScript... Pin
Brian Battles2-Jul-19 5:36
Brian Battles2-Jul-19 5:36 
PraiseRe: I won't write JavaScript... Pin
RickZeeland7-Jul-19 10:22
mveRickZeeland7-Jul-19 10:22 
GeneralRe: I won't write JavaScript... Pin
Brian Battles8-Jul-19 2:33
Brian Battles8-Jul-19 2:33 
GeneralRe: I won't write JavaScript... Pin
Fabio Franco3-Jul-19 0:37
professionalFabio Franco3-Jul-19 0:37 
Daniel Pfeffer wrote:
Weakly-typed languages are IMO too error-prone for production work


I believe the main problem about this misconception is because you don't work with it. In fact if you take Stack Overflow's statistics JavaScript outweighs C# twofold and it's more used than any other language. I suppose if we extrapolate that fact we can assume there are more Javascript based production environments than anything else. It would be very dangerous to assume Javascript is not suited for production with the amount of work out there.

There are many ways to ensure good code quality on JavaScript with linters and automated CI tools that runs automated code analysis plus unit tests (if you don't do these, no matter the language you program in, you're in deeper trouble than the choice of language). If you have a good test coverage it almost completely mitigates the weakly typed disadvantages.

Daniel Pfeffer wrote:
TypeScript is only putting lipstick on a pig.

Not really. It's not a layer, in the end it's just a means for writing JavaScript in safer and more organized way. Which addresses some of the weaknesses of JavaScript. In the end TypeScript gets transpiled to JavaScript. So maybe, roughly 70% of programmers works with pigs Wink | ;)

To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson


Our heads are round so our thoughts can change direction - Francis Picabia

GeneralRe: I won't write JavaScript... Pin
den2k884-Jul-19 22:53
professionalden2k884-Jul-19 22:53 
GeneralJavascript all the way Pin
Dominic Burford1-Jul-19 6:28
professionalDominic Burford1-Jul-19 6:28 
GeneralPurist Pin
W Balboos, GHB1-Jul-19 1:54
W Balboos, GHB1-Jul-19 1:54 
GeneralLucky me Pin
Nelek30-Jun-19 23:46
protectorNelek30-Jun-19 23:46 
GeneralI've got big hopes for Blazor Pin
OriginalGriff30-Jun-19 23:19
mveOriginalGriff30-Jun-19 23:19 
GeneralRe: I've got big hopes for Blazor Pin
PeejayAdams1-Jul-19 1:47
PeejayAdams1-Jul-19 1:47 
GeneralRe: I've got big hopes for Blazor Pin
OriginalGriff1-Jul-19 1:57
mveOriginalGriff1-Jul-19 1:57 
GeneralRe: I've got big hopes for Blazor Pin
PeejayAdams1-Jul-19 2:08
PeejayAdams1-Jul-19 2:08 
GeneralRe: I've got big hopes for Blazor Pin
kmoorevs1-Jul-19 2:48
kmoorevs1-Jul-19 2:48 
GeneralRe: I've got big hopes for Blazor Pin
Dr.Walt Fair, PE2-Jul-19 7:37
professionalDr.Walt Fair, PE2-Jul-19 7:37 
GeneralJavaScript all the way! Sort of. Pin
Sander Rossel30-Jun-19 21:55
professionalSander Rossel30-Jun-19 21:55 
GeneralOnce into TypeScript, never back Pin
GregoryW30-Jun-19 20:35
GregoryW30-Jun-19 20:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.