In the 90's most teens already had access to a primitive internet where they could chat with anyone in the world using BBS[1], which was not too different from a modern social network. Email was already a thing as well for some time, but probably became widespread at this time... by the late 90's the internet was already quite similar to today for geeks, except perhaps videos (and even high resolution pics) were not a thing due to the low speed of the net.
StackOverflow and GitHub only came around in the late 2000's, which is basically yesterday. Before them, there were similar sites as well (the infamous expertsexchange for SO, and SourceFourge for GH, for example) for quite some time, but they surely became very dominant in their areas.
As a side note, my first intern job was to make a localized ripoff of SO (within a team, of course). It was still a relatively shining new thing by the time.