You can remember the meaning of 赌博 with this easy mnemonic:
Want to make a bet (赌) on who has a more extensive (博) knowledge of the world? Oh, no thank you, I don't gamble anymore.
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.