Earlier quoted context omitted.
because JQ is already loaded, and it IS minimal. You could do querySelector(...).addEventListener etc but why would you?
Because you don't need another library to do it? Why load jQuery at all in 2022?
Remix web framework aquired by Shopify
71–80 of 209 posts
Re: Remix web framework aquired by Shopify
#72Is Shopify shifting away from Rails?
Re: Remix web framework aquired by Shopify
#73Earlier quoted context omitted.
Why do you feel that way? What is wrong with a quick inline jquery click handler? What part of web development requires webpack + react + tailwindcss + a bunch of random packages that provide 1 function? Sometimes people just want to get stuff done, and doing a simple $('.cart').on('click', () => {}); does the job. If you want to get fancy as another user posted, use the full API suite and do it all yourself. It's ro…
If the argument is for minimalism, why use jQuery when vanilla JS suffices?
You’re much more likely to find a snippet using jQuery that was created over the last 10 years or so that’s consistent and works correctly than you are vanillaJS.
VanillaJS queries would be all over the place with multiple if/else’s for IE, Chrome, WebKit, Mozilla, etc.
Re: Remix web framework aquired by Shopify
#74There seems to be a disconnect between what Shopify do internally and what they ask of their users. With Hydrogen and now Remix you would think they have their sh*t together. But when the official docs recommend that you inline jquery click handlers for a simple adjustment to their shop, I just don't know what to think. All in all the Shopify dev experience for me is on par with Wordpress. I hold my nose and cash the…
Re: Remix web framework aquired by Shopify
#75Re: Remix web framework aquired by Shopify
#76Earlier quoted context omitted.
Why do you feel that way? What is wrong with a quick inline jquery click handler? What part of web development requires webpack + react + tailwindcss + a bunch of random packages that provide 1 function? Sometimes people just want to get stuff done, and doing a simple $('.cart').on('click', () => {}); does the job. If you want to get fancy as another user posted, use the full API suite and do it all yourself. It's ro…
If the argument is for minimalism, why use jQuery when vanilla JS suffices?
But nearly every Shopify website’s hero image itself would completely dwarf any bandwidth concerns jQuery might cause.
In the meanwhile, jQuery is a much better known API among developers, there’s far more and higher quality documentation and snippets available in it on the internet, and there are fewer foot guns.
jQuery easily seems the superior choice over VanillaJS, with very few downsides given Shopify’s use case.
Re: Remix web framework aquired by Shopify
#77This is huge. Remix is my favorite React framework at the moment. It is by far the best abstraction I've seen of client/server model. Their API abstraction layer is just right, working with native browser and nodejs APIs, not obscure them. Typescript support is amazing. I'd bet my money on Remix model and direction vs Nextjs
Re: Remix web framework aquired by Shopify
#78Earlier quoted context omitted.
Shopify likes to brag about having 4,000 developers. Given the output of the company - that comes across to me as bloat.
Judging the visible output as a metric for how many developers a company needs is very naive. Think about the teams that don't directly interact with the outside like infrastructure, business intelligence, hiring (onboarding tools), internal tooling, all the work they do on Ruby ( https://shopify.engineering/shopify-ruby-at-scale-research-i... ).