Hi Bumcat, nice to see you here on the F&G forum. As Tuli said "The million dollar question" It the gardener's scourge, a task that never ends.
There are lots of different answers but it all comes down to one answer, there is no easy solution. Gardens are lots of work.
Veggie gardens: It's very important to keep the soil loose here. A potato rake works great in between the rows, but you still need to hand pick around the plants. I use grass clippings on the rows when the soil finally gets warm. This helps block some weeds and also helps to keep the soil moist. Never let the soil get hard this makes your work more difficult.
Flower gardens: Some people use a weed inhibitor, this is fine for a small garden but I find them too expensive and I'm not crazy about using chemicals, if they kill weeds they also harm other things. I have choosen to use mulches. They do work. I use a pine mulch, I still need to airate the mulch and soil at least once a month. Most of my flower gardens have become a lot easier over the years. I turm last years mulch into the soil on all my gardens, then apply new mulch. This makes for a busy spring, but most of my flower gardens remain weed free through the growing season.