The character of Sheldon Cooper was inspired by a computer programmer personally known to series co-creator Bill Prady. He is named in honor of actor/producer Sheldon Leonard and Nobel Prize Laureate Leon Cooper.
The infection is caused by bacteria. However, excessive use may irritate you. Soda also dehydrates you, and for proper urinary health you should be drinking lots of water, and also cranberry juice. Your physician was definitely right in telling you that it could have made the bladder infection worse.
Certain beverages and condiments can also play a part in affecting the bladder and urine consistency. Beverages that can irritate the bladder and cause pain during urination are coffee, sodas, chocolate milk, beer, wine, tea and citrus juices. Drinks that should not bother the bladder would be chamomile and mint tea, water, milk and decaf low acid coffees.