6
kapten77
169d

Js made me crazy!

Comments
  • 4
    Crazy?
    I was crazy one
  • 10
    It's the other way around, you use javascript because you are crazy
  • 2
  • 3
    so use typescript
  • 4
    @localpost you want to see the world burn, don't you? Worst advice ever
  • 2
    @localpost yes, turn it up a notch, go typescript
  • 0
    I've always been mental.
  • 2
    @retoor (TS noob here) why?
  • 3
    @netikras it adds complexity. But type hinting is nice I guess
  • 3
    @retoor frankly, I like TS more than JS mostly for type hinting and compile-time type-related errors.

    Why do you (or "people") deem TS inferior to JS?

    Genuine question. Because I always saw TS superior to JS
  • 1
    Typescript sucks because it transpiles into JS anyway. Also it produces JS codes which supposedly can work even in older browsers. I don't like the sound of that. I work in education institution where I can be pretty sure that all my users use modern browsers. It's proven by how nobody complained yet until now.

    IE and ancient Safari/Chrome/Firefox/Opera can go to hell. :-D
  • 1
    @daniel-wu I mean... Asm / machine code is a headache to work with and is an unsafe language and yet all the languages are converted into format close to asm. Does that also mean that all the languages are inferior? I think not. They provide additional layers providing whatever they provide
  • 1
    @netikras honestly, I have a hard time putting it into words. Once I tried implementing a pattern matching algorithm in typescript. It was like headbanging a wall. Until I decided to write it in JavaScript first and then write its .d.ts file. Things went so smooth I couldn't believe how fast I got it done. Since then, although I rarely write JavaScript, TypeScript feels a bit too patchy
  • 0
    @netikras That's like comparing apples to oranges. All codes in the world are translated into machine codes anyway.

    Translating TS to JS is something more similar to using BabelJS or any JS polyfill library.
  • 0
    @jestdotty "that does it properly instead of transpiling"
    Has to be compiled instead and include bloated glue code 🤡
Add Comment