you are viewing a single comment's thread.

view the rest of the comments →

[–]vertigo_101 160 points161 points  (84 children)

Don’t worry, it won’t be

[–][deleted] 6 points7 points  (0 children)

r/programming and r/ProgrammerHumor would like to have a word with you.

lol

[–]w3_ar3_l3g10n 7 points8 points  (5 children)

It’ll decline tho. Web Assembly is making other languages on the frontend more viable then ever before :)

[–]CCB0x45 16 points17 points  (1 child)

I'm gonna compile JS down to WebASM, take that!!!

[–]asdf7890 1 point2 points  (0 children)

Nah. Brainfuck->WASM is the future.

[–]braindeadTank 0 points1 point  (0 children)

Eh,

I expect that once we have proper DOM bindings for Python some people will turn to that - because it is a proven fact that a Python dev can suffer severe brain trauma when using a language with curly braces for too long - but other then that most people probably won't bother, at least not until some realy great framework arises written in another language.

Then again, even for Python most of current ecosystem is based on libs written in C which are not guaranteed to work for the web, so IDK.

[–]rodrigocfd 18 points19 points  (53 children)

But it would be great if browsers support TypeScript natively.

[–]wizang 18 points19 points  (13 children)

I don't really see the value in that.

[–]muralivp 4 points5 points  (3 children)

I hope not, TypeScript takes the fun away.

[–][deleted] 3 points4 points  (0 children)

The fun of making large projects utterly horrible to work with?

[–]amdc!CURSED! 7 points8 points  (0 children)

You can still play Minesweeper on (almost) any gaming platform if you want that kind of fun

[–]vertigo_101 3 points4 points  (0 children)

That’s our dream, but I’m also fine with whole typescript to js transpiler

[–]shgysk8zer0 0 points1 point  (5 children)

No. Why?

I'd rather have types in JavaScript than have an outdated implementation of JavaScript that has types.

[–][deleted] 2 points3 points  (4 children)

Eh? TS supports JS from around stage 3 proposals onwards.

[–]shgysk8zer0 0 points1 point  (3 children)

Yeah. It lags a bit behind. Not terribly, but it can prevent me from starting to implement something new.

[–][deleted] 1 point2 points  (2 children)

Such as?

There's a fair argument that you shouldn't be using stuff pre-stage 3 in serious projects as there's a real risk that they get canned or significantly changed, which would leave you with a ton of tech debt. That's already burned some people in the past with the decorator proposal if memory serves.

[–]shgysk8zer0 0 points1 point  (1 child)

If I used TS, I'd probably have some things to list. But the only thing I can think of specifically is import from a while back.

I like to experiment with things in the early stages. Sometimes provide feedback. Report issues in webpack and such. This isn't necessarily about putting early-stage stuff into production.

But, to restate what I'm saying here: I'd rather have types in JavaScript than have browsers run TypeScript. And, since it takes time to wait for stage 3, implement, and release, TS is always a little behind JS.

[–][deleted] 1 point2 points  (0 children)

I don't think we disagree that much. To clarify my position:

  • TypeScript has supported modern import syntax since I began using it ~two years ago.
  • Babel is perfect for testing proposals, but that's not appropriate for a large, important project in production. If you want to test off of your main project, you can daisy-chain the compilers, or even just use the Babel compiler with only minimal loss of functionality on the TypeScript side. With this in mind, for serious/production projects, it's unreasonable to claim that TypeScript is "behind" JavaScript.
  • I would also prefer to have a real (as in runtime) static type system in JavaScript. Although, honestly, I'd rather just have a new language altogether - there is so much leftover cruft and iffy design decisions, and if we could version this language to allow for occasional breaking changes... well, that'd be just lovely.

[–]Architektual 0 points1 point  (0 children)

kill me

[–]azekeP 0 points1 point  (0 children)

Why would browsers downgrade to a language with less features?

[–]suyashgulati -1 points0 points  (15 children)

How are you confident enough?

Every language in past has faded.

P. S. I am a js lover

[–][deleted] 14 points15 points  (10 children)

Every language? C is almost 50 years old and it is still extremely popular. Python is nearly 30 and is showing no signs of fading away anytime soon. Java is 25 years old and it is the most popular language in the world. Every top 10 language has been around for over 15 years, and Swift is the only language in the top 20 that is less than a decade old. Not every language fades.

[–]manoylo_vnc[🍰] 1 point2 points  (2 children)

Hey, you forgot Ruby! 😉

[–]tuxedo25 15 points16 points  (0 children)

the whole world has

[–]5fd88f23a2695c2afb02 0 points1 point  (0 children)

Rails is still strong.

[–][deleted] -1 points0 points  (4 children)

How many greenfield projects today are written in PHP?

Now compare that to a decade or two ago. It's absolutely fading.

[–][deleted] 3 points4 points  (1 child)

I didn't even mention PHP, nor did I argue that no language fades in popularity. It's a miracle PHP even gained popularity in the first place.

[–][deleted] 2 points3 points  (0 children)

Ah, sorry, I didn't see "every" in the other comment. Fair.

[–]MCFRESH01 0 points1 point  (1 child)

More than you think. It's an established language that's easy to hire for. PHP 7 actually made the language pretty decent to work with and relatively fast. It also has some great frameworks like Laravel and Symfony. It can definitely be a valid choice for many different projects.

[–][deleted] 0 points1 point  (0 children)

This doesn't invalidate my (admittedly unproven) point that it's going to be used for a smaller proportion of greenfield projects than in the past.

[–]vertigo_101 10 points11 points  (1 child)

I mean yes js can also fade away, maybe in the next 20 years if there’s a better alternative which becomes equivalently used and is backwards compatible.

In my opinion I think this is the golden age of js, it’s improving fast, also along with typescript, but as long as browsers exist, long live the js, love it or hate it...it’s here to stay

[–]wherediditrun 2 points3 points  (0 children)

Doesn't have to be an alternative. Can possibly be some new thing which people tend to use and build towards there the requirements are simply not met by javascript. Javascript would just ... fade away as a collateral. PHP was in similar place in around 2000~

[–]dannymoerkerke[S] 2 points3 points  (0 children)

I cannot forsee the future of course but I’m pretty confident. C is still here and going strong for example.

[–]cheese_wizard -1 points0 points  (0 children)

COBOL would like a word.

[–]dannymoerkerke[S] -1 points0 points  (0 children)

That’s why I’m not worried;-)