37 comments
@harryprayiv @Crell @vascorsd That's because JavaScript is not a strongly typed language. Trying to get almost anything to behave like something other than what it is will be an uphill battle. @agarzola @harryprayiv @Crell @vascorsd @agarzola @harryprayiv @Crell @vascorsd Typing once you've gone from strong language (C, C++, Java, C#, golang) to PHP, JS, Ruby, Python is always extra work, and remittive. So all the same machine exists, and you need to make it larger and more complex. @lewiscowles1986 @harryprayiv @Crell @vascorsd I'm not arguing to make JavaScript strongly typed. I'm arguing the opposite, in fact. @agarzola @harryprayiv @Crell @vascorsd Okay then, your machine is the same size 😉 @lewiscowles1986 @harryprayiv @Crell @vascorsd Right. I'm saying use the machine as it was intended and you won't have to fight the machine so much. Or pick a different machine that is better suited to your needs/taste/what have you. @agarzola @lewiscowles1986 @harryprayiv @vascorsd Assuming you have a choice. JS is the only option for client side browsers, which is far and away the largest reason it's so popular. @Crell @lewiscowles1986 @harryprayiv @vascorsd That's a good point for my “pick a different machine” argument. My “use it as it was intended to be used and you won't have to fight it so much” argument still stands. @lewiscowles1986 @agarzola @harryprayiv @Crell @vascorsd Not to make this a strong/weak typing war, but I’ve never heard a compelling argument for weak typing. You’re just replacing “tests” that the compiler does really well with writing manual tests to do the same. If it’s duck-typing you want, strongly typed languages like C++ do that too. @birwin @lewiscowles1986 @agarzola @harryprayiv @vascorsd This video makes what I think is the most compelling case, and for why it's not a compelling case anymore. That said, there's also a very strong interpreted vs compiled correlation to be considered as well. Static typing in a scripting language is really hard. Just ask #PHP, which has done it better than anyone. @Crell @birwin @agarzola @harryprayiv @vascorsd The fact go (amazing btw), swift etc are static typed and came out after PHP etc should mean nothing. It's as relevant as the difference between choice of curtains for a home. Almost everything besides bug fixing, and especially the piece of crap that was coffeescript was a mistake. Tech becoming "hyped" or popular says nothing for it's fitness for purpose. @lewiscowles1986 @birwin @agarzola @harryprayiv @vascorsd There's a clear correlation historically and so it's irrelevant? Sorry, that's nonsense. @Crell @birwin @agarzola @harryprayiv @vascorsd correlation is not causation. Thank you for using the right word 😉 @Crell @birwin @agarzola @harryprayiv @vascorsd The example they showed about type errors. We had a would-be senior last year that didn't pass probation. When pairing with them; they stated they'd been reading their IDE (still full of red lines) rather than running their code. They regularly set fire to days, being overwhelmed by myopic, unimportant details. @Crell @birwin @agarzola @harryprayiv @vascorsd You might argue against this, or blame them. I Blame an increasing focus-shift to myopic trivialities. @lewiscowles1986 @birwin @agarzola @harryprayiv @Crell @vascorsd Enlightened centrist opinion: Variables should only be byte arrays. Strong and weakly typed, all in one! @lewiscowles1986 Strong language is for when you really need to shout at the computer to make it do what you want. Everybody knows this! @Crell I still use basic HTML on my website from 2002. It loads instantly, it has text and images. Every toads dream. It now has RSS and the world is at my fingertip. Such a joy. It works on all screens, from 720 to ultra wide. Every one is happy. It uses 10Kb of RAM and the CPU/GPU never complain. PS. I never understood JS. @Crell @thunderfist Lead developer (the one with an outstretched hand): “these are all the npm modules needed to make it work.” |
@Crell @vascorsd after spending three months fighting with Purescript and purs-nix, this image is more about Purescript, IMO. It’s insane the hoops you have to jump through to get any semblance of type safety from JS.