Is Googling every code a bad practice? [duplicate]

I just came from an interview in which they asked me several questions about programming and problem solving. Regarding the programming questions, I asked them to let me Google so I can see the code (I quoted that logic is the thing to learn, not the language). At the end of the interview they told me that my skills very good but what would I do if Google has been blocked around our country(It can happen in Pakistan, Youtube is yet blocked). Is it really that a programmer should know the code too?

3

You should be able to develop algorithms without the IDE and definitely without Google, and without help.

In terms of solviing simple problems I would say yes.

The only thing you should rely on research is complex problems, and particularly learning new developments and frameworks.

I used to be able to code in VB3 when I was 12 with no internet, no intellisense. I consulted help when I needed to.

With that said, I wouldn’t appreciate an applicant Googling to find an answer for a sort algorithm or for a simple structure such as a list or queue.

4

I see no problem with that as long as you know you could eventually solve it on your own.

Googling for snippets of code is just a way to find a solution quicker than if you have to do it yourself. Besides, it’s rarely the case you find some code that is exactly what you were looking for — in practice, you always have to change it anyway to suit your problem at hand.

Also, Googling for solutions “just for the heck of it” is a great way to learn new stuff and approaches. Even though your solution certainly works, there might be other, more elegant ways to solve it.

We’re not living in the dark. Use whatever tool you have at your disposal!

It depends on the situation.

Personally if I were an interviewer, I would tell the candidate that they are not allowed to Google, but pseudocode is fine as long as it is sufficiently detailed that I am convinced that it could be translated directly into a real language.

However once you’ve actually typed in enough code, you’re unlikely to need to refer to Google for how to write basic code. Unless, possibly, you’re used to having an IDE type for you.

1

It depends on what you google for.

  • You should not need to google for basic algorithms and logic. If you cannot come up with the basic logic to solve a problem yourself, you have a problem.
  • You may need to google for complex algorithms or for getting an idea how to approach a complex problem. There are many intelligent people out there attempting to solve complex problems using heretofore non-existent algorithms, there’s no need for you to have to do the same thing from scratch; benefit from the existing work done by others.
  • You should not google for basic syntax questions. You should know your language of choice well enough to be able to write code without help.
  • You may look at the manual for specific API details. Nobody can be expected to keep the exact parameter order and behavior for every possible functions and method in one’s head. You should not google for this, you should be able to go directly to the relevant manual page.

Specifically in an interview, if you’re expected to be able to solve a particular kind of problem in your head and you’re not able to, then this probably means you do not have enough experience required for the job. If you can do it in pseudocode but would need to look at the documentation for specific API calls, that’s fine IMO.

2

Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa Dịch vụ tổ chức sự kiện 5 sao Thông tin về chúng tôi Dịch vụ sinh nhật bé trai Dịch vụ sinh nhật bé gái Sự kiện trọn gói Các tiết mục giải trí Dịch vụ bổ trợ Tiệc cưới sang trọng Dịch vụ khai trương Tư vấn tổ chức sự kiện Hình ảnh sự kiện Cập nhật tin tức Liên hệ ngay Thuê chú hề chuyên nghiệp Tiệc tất niên cho công ty Trang trí tiệc cuối năm Tiệc tất niên độc đáo Sinh nhật bé Hải Đăng Sinh nhật đáng yêu bé Khánh Vân Sinh nhật sang trọng Bích Ngân Tiệc sinh nhật bé Thanh Trang Dịch vụ ông già Noel Xiếc thú vui nhộn Biểu diễn xiếc quay đĩa Dịch vụ tổ chức tiệc uy tín Khám phá dịch vụ của chúng tôi Tiệc sinh nhật cho bé trai Trang trí tiệc cho bé gái Gói sự kiện chuyên nghiệp Chương trình giải trí hấp dẫn Dịch vụ hỗ trợ sự kiện Trang trí tiệc cưới đẹp Khởi đầu thành công với khai trương Chuyên gia tư vấn sự kiện Xem ảnh các sự kiện đẹp Tin mới về sự kiện Kết nối với đội ngũ chuyên gia Chú hề vui nhộn cho tiệc sinh nhật Ý tưởng tiệc cuối năm Tất niên độc đáo Trang trí tiệc hiện đại Tổ chức sinh nhật cho Hải Đăng Sinh nhật độc quyền Khánh Vân Phong cách tiệc Bích Ngân Trang trí tiệc bé Thanh Trang Thuê dịch vụ ông già Noel chuyên nghiệp Xem xiếc khỉ đặc sắc Xiếc quay đĩa thú vị
Trang chủ Giới thiệu Sinh nhật bé trai Sinh nhật bé gái Tổ chức sự kiện Biểu diễn giải trí Dịch vụ khác Trang trí tiệc cưới Tổ chức khai trương Tư vấn dịch vụ Thư viện ảnh Tin tức - sự kiện Liên hệ Chú hề sinh nhật Trang trí YEAR END PARTY công ty Trang trí tất niên cuối năm Trang trí tất niên xu hướng mới nhất Trang trí sinh nhật bé trai Hải Đăng Trang trí sinh nhật bé Khánh Vân Trang trí sinh nhật Bích Ngân Trang trí sinh nhật bé Thanh Trang Thuê ông già Noel phát quà Biểu diễn xiếc khỉ Xiếc quay đĩa
Thiết kế website Thiết kế website Thiết kế website Cách kháng tài khoản quảng cáo Mua bán Fanpage Facebook Dịch vụ SEO Tổ chức sinh nhật