A good ratio of salt/water is one tablespoon per litre (or gallon)A gallon is 3.5-4 litres. This doesn't seem right.
Cook your pasta is _as little_ water as possible.
This advice is worthless without some baseline like g of pasta to l water or how much water to cover your pasta with. You should cook your pasta in a large volume of water so the water will still be hot when you add the pasta and the pasta will be cooked as quickly as possible. Too little water and you risk the pasta sticking to itself as well. All this in mind, properly cooked pasta with diluted pasta water is a better outcome than starchy pasta water with pasta that has an odd texture. Maybe that last bit is personal preference, but when eating pasta, the first thing I notice is the texture of the pasta, not the starchiness of the pasta water. Hell, maybe we're thinking about the same amount of water, and you've just seen people try to cook with comically large amounts, I dunno.