Email or username:

Password:

Forgot your password?
37 comments
harryprayiv

@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.

Alfonso Gómez-Arzola

@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.

Lewis Cowles

@agarzola @harryprayiv @Crell @vascorsd
You just argued the machine isn't big enough, so lets add some more to the machine.

Lewis Cowles

@agarzola @harryprayiv @Crell @vascorsd
For any non-"strongly typed" language, the "strongly typed" is either asking folks to use another language, or asking them to invent or use tooling to make it "strongly typed".

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.

Alfonso Gómez-Arzola

@lewiscowles1986 @harryprayiv @Crell @vascorsd I'm not arguing to make JavaScript strongly typed. I'm arguing the opposite, in fact.

Lewis Cowles

@agarzola @harryprayiv @Crell @vascorsd
Oh, so I misunderstood ☺️

Okay then, your machine is the same size 😉

Alfonso Gómez-Arzola

@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.

Larry Garfield

@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.

Alfonso Gómez-Arzola

@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.

Benjamin

@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.

Larry Garfield

@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.

youtu.be/Tml94je2edk?si=PGTM-g

Lewis Cowles

@Crell @birwin @agarzola @harryprayiv @vascorsd
This guy is working backwards from his beliefs to explain the past.

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.

Larry Garfield

@lewiscowles1986 @birwin @agarzola @harryprayiv @vascorsd There's a clear correlation historically and so it's irrelevant? Sorry, that's nonsense.

Lewis Cowles

@Crell @birwin @agarzola @harryprayiv @vascorsd correlation is not causation. Thank you for using the right word 😉

Lewis Cowles

@Crell @birwin @agarzola @harryprayiv @vascorsd
they use Haskell and Elm. Fantastic! Stay in the corner writing esoteric nonsense.

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.

Lewis Cowles

@Crell @birwin @agarzola @harryprayiv @vascorsd
Worse still, just as happened in old and new Java, after passing tests, we had to roll-back some code they'd released because the type-checker, and tests, missed third-party system behaviour they could have read about in their 2 weeks shipping adding a query-string to a URL.

You might argue against this, or blame them. I Blame an increasing focus-shift to myopic trivialities.

Lewis Cowles

@birwin @agarzola @harryprayiv @Crell @vascorsd
All "weakly typed" languages are built atop type safe languages, built atop a machine that only knows about bits and bytes.

If you believe that types are necessary, why don't they exist in what the machine accepts?

If you are willing to concede that to the machine they don't matter, then you are making claims about the human side.

So you need flawed people to impose a system, upon flawed code, so that people are less flawed... IDK bro.

@birwin @agarzola @harryprayiv @Crell @vascorsd
All "weakly typed" languages are built atop type safe languages, built atop a machine that only knows about bits and bytes.

If you believe that types are necessary, why don't they exist in what the machine accepts?

If you are willing to concede that to the machine they don't matter, then you are making claims about the human side.

Prophyt

@lewiscowles1986 @birwin @agarzola @harryprayiv @Crell @vascorsd Enlightened centrist opinion: Variables should only be byte arrays. Strong and weakly typed, all in one!

nthcdr

@lewiscowles1986 Strong language is for when you really need to shout at the computer to make it do what you want. Everybody knows this!

@agarzola @harryprayiv @Crell @vascorsd

Larry Garfield

Oof. RIP my mentions on this one... :-)

Annie

@Crell@phpc.social I'd trade this for the blink tag in a heartbeat.

gauche

@Crell why why why dear god oh god do they take something so simple and make it so complex?

Boss Nass currently Ruby Nass

@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.

David Nash

@Crell @thunderfist Lead developer (the one with an outstretched hand): “these are all the npm modules needed to make it work.”

DELETED

@Crell there is no such thing as "static HTML" in any way having anything to do with HTML except but that HTML was incidental in the production of what was already decidedly "static"

Jaakko Nissi

@Crell and I'm the crazy fuck in my shed doing it with Rust and Yew.

Stephan Eggermont

@Crell Fake! You can tell by the way they look like they are agreeing

Go Up