I finally figured out what was wrong with LinkedIn. I believe they are using React. I think this is why they are hiring so many React Developers. It slows down if you leave the tab open, or use it too much.
Single page apps suck to maintain don’t believe me read this
React is hype and coolism
All the cool kids are using it it has to be teh most bestestes.
Twitter uses React too. It crashes so bad in Google Chrome on Ubuntu that you have to restart Ubuntu to get Chrome working again. No smart guys restarting Chrome doesn’t work.
Apparently Ubuntu doesn’t regulate how much ram browsers or anything can use so React nomnoms it all up and crash goes the browser.
These issues were due to using LinkedIn for too long in a tab. I now open it, do some stuff really quick and close it. No more issues, that is part of how I came to this conclusion too. I eventually learned this stops Twitter from crashing too. With React you have to close the damn tabs to get performance. SWEET!
For a while I kept wondering why linkedin comments, posts etc. would get very sluggish when I typed. Other things were slow too.
So laggy and slow I often have to just stop trying for up to a minute while Linkedin code catches up. Why does it constantly pause while I am typing?
Don’t believe me? Watch this. At about 29 seconds you can see it looks like I am not typing. I am still typing it is just not responding and lagging.
Why do React sites suck?
The reason Functional programming eats so much ram is because every time you do something an object is created. If the state of that object changes a new object is created from the old object and the old one is often preserved at least for a certain amount of time.
This creation uses cpu and ram, which phones are really limited on. Most developers use a laptop or PC so they think their code is wiz bang fast. When in reality it is often dead ass slow.
You can’t predict if the persons device has 2Gb ram or 256mb of ram. You can’t predict if they have tabs open etc. So you should try to use as little of it as possible.
All of the lost lessons
The Tech industry is partly to blame for this with all of their greed. They used to find smart people. Pay to move them. Pay for their college etc. Seriously they used to do this.
All of this has been a turn in the wrong direction. A leap backwards. Long ago programmers and engineers learned the treacheries of using NoSQL
The computers of a decade and two decades ago are the phones of today. The old computers slowed down, the phones slow down now. Maybe not the super expensive newest of phones, but most of your uses will not have the best phone and assuming so is stupid.
Phones and browsers have limited ram. Your app shouldn’t be eating it all.