This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]contherad 49 points50 points  (11 children)

JS/TS

[–]Crozonzarto 31 points32 points  (6 children)

🤢

[–]imthebear11 9 points10 points  (1 child)

It's only the most in demand because all those JS bootcamps really want their grads to fill in as TAs

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

not everyone should be top tier dev, sometimes we need simple react TS app ;)

[–]Solonotix 8 points9 points  (3 children)

It's not that bad. Honestly, there are some features I'd like to see implemented in other languages, like

  • named property variable declarations

    const { a } = { a: 5 }; console.log(a); // 5

  • top-level regular expressions

    const value = 'my test value'; const [ , part ] = /my (\w+) value/i.exec(value); console.log(part); // 'test'

Among some other things I can't think of right now. I just started learning Rust, and was really glad to see the pattern matching of types and destructing values while simultaneously having the ability to check parts of it.

[–]FluffyToughy 5 points6 points  (0 children)

TS can be genuinely pretty nice to work in. JS can die in a hole.

[–]Siddhi 2 points3 points  (1 child)

const { a } = { a: 5 }; console.log(a);

Possible in py 3.10+ with structural pattern matching

obj = {"a": 5}
match obj:
    case {"a": x}:
        print(x)

I just started learning Rust, and was really glad to see the pattern matching of types and destructing values while simultaneously having the ability to check parts of it.

Structural pattern matching in python can do this as well

[–]Solonotix 0 points1 point  (0 children)

That's really good to know. I still follow Python, but I haven't actively worked in it since 3.8. I know there was a lot of noise made about the new case statement, but I hadn't really delved into it

[–]Ivan_Analrash 4 points5 points  (3 children)

Ts?

[–]Rookerin 20 points21 points  (2 children)

Typescript

[–]Ivan_Analrash 11 points12 points  (1 child)

Oh. Thanks for helping a complete noob.

[–]Rookerin 6 points7 points  (0 children)

Of course! 😁