Dice the onion. A sharp white onion will provide a nice contrast to the sweetness of the corn. Place the onion on a cutting board and use a sharp knife to slice it from root to tip. Peel the skin from both halves. Lay the halves flat-side down on the cutting board. Make a series of parallel cuts in one direction, then turn the onion half 90 degrees and slice in the other direction.