The #1 question people ask is "HOW DO I GET ONE?!?!" It's not difficult, but you need to plan ahead and be willing to devote some time.
First, consult the Candy Cane Calendar for the year. If you have the luxury of being able to go any day you want, your best bet is to pick a weekday when candy canes are being released at Disney California Adventure and it is not an Early Admission day.
If your schedule is less flexible but you still have some options:
DCA days are less crowded than Disneyland days, mostly because fewer people enter DCA right at park opening. This means fewer people who didn't already know what was going on are likely to see the crowd/lines/sign and join the line.
Weekdays are less crowded than weekends.
Avoid Early Entry Days unless you have Early Entry yourself (in which case, that's THE day to go), or unless you have no other choice. If you go on an Early Entry day but don't have that benefit yourself, you'll be in line behind people who got into the park an hour before you.
Once you decide when to go, check to see what time the park opens and get to the front gates at least 30 minutes early. If it's not an Early Entry day, Main Street and/or Buena Vista Street will open a bit early for "Shopping Convenience Hour," and you'll be able to join the line as soon as they do.
Once inside the park, head straight for the Candy Palace or Trolley Treats - there will be time to get Starbucks later. If you're one of the first 40 or so people in line, you may be offered the option to purchase a fresh-and-ready candy cane from the first batch of the day, made before the park opened that morning. Disney this year started making a pre-opening batch to increase the number of candy canes available each day. If you'd prefer to watch your candy cane being made, or if there are no pre-made ones ready, you'll get a wristband.
Each color-coded wristband corresponds to a specific batch, and will have the return time written on it. That's when you'll return to the candy shop to purchase your candy cane. If you don't want to watch the candies being made, just return at the time indicated to claim your treat. In all cases, you must return by 2:00 p.m., after which unclaimed candy canes will be sold on a first-come, first-serve basis.
There is a limit of one wristband per person, and everyone in your party who wants a wristband must be there in person to claim one. You can't send family members off to a ride and claim a wristband for them in their absence. Children can get their own wristbands.
Candy canes are $12.99 plus tax. No discounts apply, and there is a limit of one candy cane per person. Disney says that "All candy canes sold will be made fresh at the Disneyland Resort."