Need help avoiding cupping, trying to make a FLAT desktop out of wood planks
I'm completely new to woodworking, have a few tools(including a table saw, which I'll use for jointing), and want to build a big, sturdy computer desk with some thick wood panels for the desktop. I did a kind of practice run using 6-foot long 2x8s of Douglas Fir, using pocket screws + glue to join them, and it worked but I had a good amount of cupping in the wood. I alternated the grain pattern but the cupping is still pretty noticeable, and I really want to make something that feels nice and flat and high quality.
I know part of the problem is that I screwed up jointing the boards, probably didn't have perfect 90 degree cuts and didn't account for that when cutting/arranging the boards to glue up, but even along a single board there is some visible cupping that I'd like to avoid.
Is there anything I can do to avoid this next time? I feel like I don't know what the problem was, and if I go buy more wood I'm likely to have the same issue again. I bought some high quality(as far as I could tell) Douglas Fir from a local Lumber Yard, let it acclimate for a week or so, stored it horizontally and off the ground, etc. Are 2x8's just too wide to work with in this way? I may go for 2x6s next time, even if I do, I'm hoping there is something more I can do to prevent cupping though.