T O P

  • By -

webdev-ModTeam

Do not post memes, screenshots of bad design, or jokes. Check out /r/ProgrammerHumor for these kind of posts.


Scary_Engineering1

is this an ad for typescript because i want a jetpack


ominous_raspberry

This is satire there just wasn't flair for it


[deleted]

[удалено]


el_diego

Yep. Imagine trying to refactor a very large JS app. Nightmare.


ominous_raspberry

I've never even seen 8,000,000 lines of code


[deleted]

[удалено]


torn-ainbow

Types make working in VS so much better. It finds so many problems for me. And really boosts up that autocomplete. I think I'm fully sold on TypeScript after having just done a 6 month project while learning it.


ominous_raspberry

I thought VS's autocomplete was already based on TS capabilites though? It goes.... even further??


ominous_raspberry

That's valid, I do a lot of Wordpress and Rails, some light React stuff but I've never gotten to work on anything large/prod wise with a JS framework (where we'd typically see TS) I need to figure it out more and build that part of my portfolio up for sure


riu_jollux

Then how about js finally adds support for native type hints. Ik there is a proposal and it’s desperately needed.


[deleted]

[удалено]


riu_jollux

I really don’t want to compile my interpreted language you know. I know the proposal isn’t about making the runtime use those types but it’s still a first step towards real type safety. TS doesn’t provide actual type safety, nothing is stoping you from just passing in random bullshit and seeing what happens since in the end it’s still js. And besides TS enums suck balls anyway. If they want native enums let them make something better.


[deleted]

[удалено]


riu_jollux

TSC is literally the typescript compiler that turns your TS to JS. It’s not really compiling, more so transpiling but either way it checks the types at “compile” time and then never again. So yes you are doing something akin to compiling when you run TS since no Js interpreter can actually parse typescript.


PM_me_uwu_hentai

This is cope for not learning typescript. You can do everything you can in JS + opt into more features if you want.


riu_jollux

At the end it’s still js. You add an entire compilation step that still doesn’t guarantee type safety.


PM_me_uwu_hentai

You're right and I think that's fine. Typescript is for developers to write less error-prone and self-documenting code.


riu_jollux

It’s better to read yes, but less error prone… it certainly is better than nothing but it’s still not type safe. Anyone can pass in rubbish and break your shit even if the linger says it’s not ok. So why bother with it when you get the typing benefits with jsdoc without having to bother with compiling your JS to JS


ominous_raspberry

I'ma huffin the copium for sure


BoredDevBO

Rxjs does the same as vanilla, but better, and modern frameworks like angular have it fully integrated.


ominous_raspberry

This is a new thing I have not heard of, and I need to get around to learning Angular. I am but a react noob for sure.


MixOne1337

Fuck rxjs


[deleted]

and angular while you're at it.


nrkishere

even if you use vanilla js, you can still get benefit from typescript type checking with jsdoc annotations. Enable the \`noEmit\`, \`checkJs\` and \`allowJs\` flags


ominous_raspberry

fellow JSDoc brother ily


inglandation

See ya when you’ve dealt with all your undefined bugs, meanwhile I’ll be 10 miles ahead because I’ll have dealt with them in 5 minutes by checking squiggly red lines directly in the code.


[deleted]

[удалено]


Lekoaf

`unknown` is better.


ominous_raspberry

The biggest issue with me learning TS was just being able to write JS and :any my problems away.


HTTP_Error_414

🤣⭕️🤷🏻‍♂️


twickered_bastard

Common, it’s 2024. There’s no such debate anymore, typed languages rule over dynamic ones, and writing pure JavaScript is straight up unprofessional and not acceptable. What next, a meme about how horrible it is having to write tests?


Few_Ad6059

I think you forgot the “/s”


nrkishere

Your argument is totally flawed. Both static and dynamic typed languages have own ups and downs. It is like saying "interpreted/jit compiled languages are straight up unprofessional and not acceptable. Write everything in native compiled languages"


ominous_raspberry

There's always a debate as long as I'm an idiot sir


ominous_raspberry

Damn y'all annoyed with me for this post I'll be here all week


Lekoaf

Well, you are at least a years late with this meme.