It prevented you from learning anything? You really would have been better playing Candy Crush?
Like other comments say, there's a lot of misguided hate towards Duolingo. The lack of original criticism is almost a meme.
Duolingo is fun and addicting, and it 100% helps you learn vocab and grammar. You can argue that it's not sufficient to fully learn a language, but no single tool is. You need to mix it with other media, podcasts, music, immersion, and personal lessons. But it's a great starting point. You can argue that there's more efficient, non-gamified ways to learn the basic vocab and grammar, but for a lot of people that's too much effort or not as fun because it's not gamified.