>I wonder how many websites on the web still use jquery today
Probably more than use React, by total domains alone. It's a bit like WordPress; so ubiquitous you forget it's even there, and with a long tail that will outlive many people reading this.
yup. we still had it on every page at my last job, even though it was a 100% React frontend (literally - even things like error pages were done with JSX for some reason!) merely because when the first parts of the site were written, they used $.ajax instead of fetch for some reason, and they never wanted to refactor anything.
fetch only became available in 2015 and it was awhile before it was commonly supported. At the time, jQuery's ajax was much nicer than handling the XMLHttpRequest yourself. I have sites that have gone through all three, finally replacing $().ajax with fetch only in the last couple years.
That’s gotta be it. I think the older parts of the codebase definitely either predated 2015 or straddled the time where you couldn’t assume fetch was there. And I agree, XHR was actually pretty absurd, having used it in about 2006 before discovering JQ.
Yeah. And also, 2015 was the same time when Promises became part of the spec. That was the justification for fetch in the first place. Now that we have this ability to do asynchronous stuff, and everyone is writing these hairy XHMLHttpRequests listening for 200s and 400s, let's just make this a standard thing. It was a good idea. So, $().ajax still handled its results with callbacks, it wasn't async, didn't need a shim for that, although it was easy enough to wrap. You wouldn't necessarily replace it until you were ready to rewrite a whole bunch of other stuff in your code with async functions. For me, a bigger question for older code was transitioning the bulk of the code to promise patterns, even though I would've otherwise wanted to swap fetch for ().ajax much sooner.
[edit] I just checked, and I still have one major production site whose backend calls still run:
`let req:XMLHttpRequest = new XMLHttpRequest();
req.onreadystatechange = ()=> {`
well its actually ship by wordpress, although not turned on my default, most themes and plugins do. So that already makes up for a huge part of the internet.
Totally. If business can ship more in less time. They won’t stop at 15-hour, they will keep shipping more because competition and hamster wheel. In fact, I feel like the amount of work is actually increasing too…
Some multithreaded workloads will use the full logical processor count to pin every core and that can really suck on low-end systems. I think aside from balancing multithreading overhead, this is one of the reasons why some more advanced software (such as 7-Zip) lets you select the number of threads to use for a workload, even if you already know and accept that it'll be expensive until it's completed.
Lots of multithreading things I come across as a developer have a default of something like 4 threads, or only use a certain fraction of logical cores up to a certain maximum, etc. because it's generally more polite not to always pin every core.
Not only UK, Europe in general is stuck in this nonsense. People buy properties, tenants pay their mortgage. In 15 years the property is yours mostly at the expense of someone else plus it gained in value. After owning it for so long and selling the property you probably pay lower capital gains from that too. Unless you put all that money in the right stocks in 2010, renting just doesn’t make all that much sense in this economy.
> renting just doesn’t make all that much sense in this economy
I disagree.
Example scenario of many young Europeans in their 20s:
- living in small or mid-sized city
- job offer pops up paying significantly more across the country, either capital or one of the top cities
- move and earn significantly more (even when adjusted for CoL)
- continue progressing careerwise
- job offer pops up elsewhere, possibly in other EU countries, pays significantly more
A reasonable person in their 20s would allow themselves the chance to focus on professional career growth/salary growth up until they hit their mid-30s in which they can start considering settling in a given place and purchasing. Before that it's nonsensical.
To give my own example, I went through various cities across several countries, starting at 12k, then a few years later job offer in another country for 33k, then a few years later at 54k, then at 115k, all before 30 years old (because I allowed myself to be anchor-free).
The rest who stayed put in the same city? 12k to 30k in the same span of time.
Anyone telling a person in their 20s: "buy a house and stay put" is giving terrible advice. The advice should be something along the lines of: "what you do in your 20s will bear fruits in your 30s, stay open-minded, adventurous, don't be afraid to burn out and discover your limits, see the world before your parents get old, and try your hardest".
reply