It would be best if I could sort/filter the samples basing upon the languages and programming paradigms.

What I am currently doing is using the Project Euler and some other sites for programming contests where I first have to solve a problem on my own and then I can pick the examples in the languages I am interested in the forum thread of this particular problem. This is ok, but sometimes it is a somewhat too long way for me.

2 Answers
2

Rosetta Code is the first one which comes to my mind.
Though I find it not very helpful, personally for me.

As to my practice, stating the problem and trying to dissect it to simplest task,
and then trying to solve each simple task is indeed a good way to learn new language, but stackexchange actually influenced me more than any such resource.