Question: are portal 1 and 2 connected?
Answer: You can play Portal 2 without having played Portal first as every game mechanic is presented in Portal 2. However, you'll spoil the story of the first one doing that as it is a direct sequel (and there are many references to the first one, in the story and in some puzzle).