▲ 125 ▼ What is the technical hill you are willing to die on in your industry? (lemmy.world) submitted 8 months ago by slazer2au@lemmy.world to c/asklemmy@lemmy.world 278 comments fedilink hide all child comments Every industry is full of technical hills that people plant their flag on. What is yours?
[–] JackbyDev@programming.dev 3 points 7 months ago (2 children) From my perspective, dynamic typing IS type corrosion! permalink fedilink source parent hideshow 4 child comments replies: [–] petersr@lemmy.world 1 point 7 months ago (2 children) Type coercion = Allow types to be converted to other types automatically to perform some operations like comparison. Type corrosion = some non-standard condescending term to say that dynamic typing has no proper rigid types? permalink fedilink source parent hideshow 4 child comments replies: [–] JackbyDev@programming.dev 4 points 7 months ago It was obviously a typo permalink fedilink source parent [–] PeriodicallyPedantic@lemmy.ca 2 points 7 months ago It was a typo, but I also wanted to add that type coercion is not dynamic typing, the coercion can be done statically during compile time, so it could not be the 2nd one, even if it wasn't a typo permalink fedilink source parent [–] Nibodhika@lemmy.world 0 points 7 months ago (1 child) No it's not, they're completely different concepts. In C/C++ lingo Dynamic typing is having every variable be a void * whereas type coercion is implementing conversion functions for your types to allow casting between types, e.g. having a temperature class that can be casted to a double (or from it). This is a function with dynamic typing and no type coercion in C/C++: int foo(void* param) { Temperature* t = (Temperature*) param; return t->intValue() + 10; } This is the same function with type coercion and no dynamic typing in C/C++: int foo(Temperature& t) { return t + 10; } permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 2 points 7 months ago I'm making a Star Wars joke based on a typo. I know what type coercion is. The joke is that dynamic typing is corroded and disgusting to me. The Star Wars reference being Anakin saying from his perspective the Jedi were evil. permalink fedilink source parent
[–] petersr@lemmy.world 1 point 7 months ago (2 children) Type coercion = Allow types to be converted to other types automatically to perform some operations like comparison. Type corrosion = some non-standard condescending term to say that dynamic typing has no proper rigid types? permalink fedilink source parent hideshow 4 child comments replies: [–] JackbyDev@programming.dev 4 points 7 months ago It was obviously a typo permalink fedilink source parent [–] PeriodicallyPedantic@lemmy.ca 2 points 7 months ago It was a typo, but I also wanted to add that type coercion is not dynamic typing, the coercion can be done statically during compile time, so it could not be the 2nd one, even if it wasn't a typo permalink fedilink source parent
[–] JackbyDev@programming.dev 4 points 7 months ago It was obviously a typo permalink fedilink source parent
[–] PeriodicallyPedantic@lemmy.ca 2 points 7 months ago It was a typo, but I also wanted to add that type coercion is not dynamic typing, the coercion can be done statically during compile time, so it could not be the 2nd one, even if it wasn't a typo permalink fedilink source parent
[–] Nibodhika@lemmy.world 0 points 7 months ago (1 child) No it's not, they're completely different concepts. In C/C++ lingo Dynamic typing is having every variable be a void * whereas type coercion is implementing conversion functions for your types to allow casting between types, e.g. having a temperature class that can be casted to a double (or from it). This is a function with dynamic typing and no type coercion in C/C++: int foo(void* param) { Temperature* t = (Temperature*) param; return t->intValue() + 10; } This is the same function with type coercion and no dynamic typing in C/C++: int foo(Temperature& t) { return t + 10; } permalink fedilink source parent hideshow 2 child comments replies: [–] JackbyDev@programming.dev 2 points 7 months ago I'm making a Star Wars joke based on a typo. I know what type coercion is. The joke is that dynamic typing is corroded and disgusting to me. The Star Wars reference being Anakin saying from his perspective the Jedi were evil. permalink fedilink source parent
[–] JackbyDev@programming.dev 2 points 7 months ago I'm making a Star Wars joke based on a typo. I know what type coercion is. The joke is that dynamic typing is corroded and disgusting to me. The Star Wars reference being Anakin saying from his perspective the Jedi were evil. permalink fedilink source parent