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: 
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
If there is any ambiguity in what you are allowed to do I would start by **asking a coworker.** A coworker will know exactly what you can and cannot do.

Next, are you expected to know the answer to every problem? As a junior programmer, probably not. They will expect you to use the skills your demonstrated in your interview though.

What is the consensus on using websites for research? In general if you are a programmer you are allowed (even expected?) to use stackoverflow.com. Use that site first for all your programming related questions. After that, you should become familiar with the 4 or 5 sites that generally have the answers to your questions and try to reuse them. That is usually how research plays out.

I would under no circumstances visit a site with pornographic material in the office. If you must read the answer then maybe try to do it on your phone, or try to use an ad blocker. In the worst case, did you know you can just right click the ad and select inspect in firefox/google-chrome/Microsoft-edge and just delete the div where the ad is? That will make the ad go away. Realtime ad-blocking.

Try to be professional. Especially if you are new.