Question: I am a junior developer. I usually google some difficult problems if I don't manage to solve problem myself. But today I googled a site that looked it might contain a solution. Unfortunately there was some pornographic material.

How bad a mistake this is? Is there some guidelines how to find help on the Internet if I meet some problem I'm unable to solve on my own and I won't get any help from other people from my work? Should I just use [Lynx](https://en.wikipedia.org/wiki/Lynx_%28web_browser%29)?

Also, is it okay to ask help for programming problems from, say, Stack Overflow or do employer assume that one has to find out the solutions by themselves?

I studied only basics of computer science in the university as I read it as my minor subject. But my current job involves data science and mathematics where I am good at and programming where I am a novice.

Answer: 
Use Stack Overflow as your first port of call in searching for answer.

Otherwise, explore the idea of using Ad Blocking plugins for whatever browser you're using. This will minimise adverts popping up. Also, don't log into a browser at work with the same account that you use at home (otherwise you'll be "suggested" things that you search for at home).

The more you search, the more you'll recognize websites that are both informative and advert-safe.
Depends very much on the company, I would say. And by that I mean if it is bad you stumbled upon pornographic material when using google to find a solution. I would just mention it casually to my colleague / supervisor but would not make a big deal out of it. But this is very depending on the company culture and probably also the country / culture. I'm in Europe (Netherlands)

As for googling to find help on problems encountered while programming, I don't know a single developer that doesn't do this. I think we all do. I used to program in Python, and now I'm programming in ABL (Progress) and it is much harder to find anything about that on the net. I don't like it :D