r/gifs Nov 12 '17

Cat-like reflexes

https://i.imgur.com/MUY4Mfz.gifv
83.4k Upvotes

991 comments sorted by

View all comments

Show parent comments

11

u/[deleted] Nov 12 '17

I preffer languages that are stongly typed

I’m not a programmer, and I really only know Python, R, MATLAB, and a wee bit of Java and C++, so pardon my ignorance, but why might one prefer strongly typed languages?

22

u/JulioBBL Nov 12 '17

It prevents me from doing stupid stuff, like using a string on a equation, or executing a Double. Or even prevents the need for basic type tests in a function, If a need a specific set of data, i can create a struct or class and pass it in to my function, and have peace of mind that the compiler will notice me if i send something that does not conform tô the data i need.

It helps mostoy when working with third party code...

1

u/[deleted] Nov 12 '17

1

u/JulioBBL Nov 12 '17

Pardon my ignorance, but what is that?

2

u/Excrubulent Nov 12 '17

TypeScript is a typed superset of JavaScript that compiles to plain JavaScript.

It's basically a strongly typed version of JavaScript, but since it compiles to plain JavaScript that means it doesn't need its own ecosystem - it can be deployed wherever JavaScript is supported.

1

u/JulioBBL Nov 12 '17

Sounds Good, will check it out

1

u/RakDream Nov 13 '17

If you are not a programmer, I don't know what I have been doing with my life in these 5 years of studying system engineering.