3 ms·
Hmm not convinced. Is it pleasant UX that you can put petrol in your diesel car because the nozzle fits? Would it be pleasant UX to have your bank let someone
by bbcbasic 10y ago
Hmm not convinced.
Is it pleasant UX that you can put petrol in your diesel car because the nozzle fits? Would it be pleasant UX to have your bank let someone withdraw money from your account without ID? Bleach bottle with no safety cap?
Also the laid back kid of JS will throw a tantrum if the coffee is not a coffee. He'll throw the tantrum at your customer though (at runtime), not your developer (at compiler time). Which arguably is a good UX for coding but not the bottom line.
- tracker1 10y agoConsidering the variety of fuel sources a diesel engine can use (oil, deisel, etc), I'd say it is pretty useful... ;-) Yeah, and good luck dealing with that remote API that now gives you an extra field in the JSON or XML, and your compiled client in a few thousand workstations needs to be updated and redeployed because of said fit.
- bbcbasic 10y ago> Yeah, and good luck dealing with that remote API that now gives you an extra field in the JSON or XML Java C# and every other decent typed language has good serialization and deserialization support. The extra field poses no problem.
- tracker1 10y agoI've had to consume Java generated wsdl in C#, having response types of "Object" from the Java side, meaning the .Net side has no properties on the responses from those methods, I'd have to disagree...
- bbcbasic 10y agoNothing to do with static vs dynamic typing. Just get Java and C# to talk in another protocol. How about JSON or vanilla XML
- dccoolgai 10y agoIt would be pleasant if your engine didn't care whether you put gas or diesel in it and just ran. I think that's the point made in the cartoon. I like that the kid just holds the cup and pours it when I tell him to. If I wanted him to pour coffee and gave him a cup of beer, I'm ok saying that's my fault. I'd still rather have the kid. Having a guy that only accepts "Large cups of coffee" is necessary at lower levels (c), but keep it out of my scripting language.
- bbcbasic 10y agoIn this analogy I'd say the engine cares in both JS and Java. In Java you get an annoying compiler error. In JS you get a trashed engine at runtime.
- fdgdasfadsf 10y agoTo continue the analogy what happens when you accidentally pass him a cup of bleach?