{"id":616,"date":"2018-03-11T13:50:09","date_gmt":"2018-03-11T13:50:09","guid":{"rendered":"http:\/\/cppdepend.com\/blog\/?p=616"},"modified":"2023-05-31T16:03:51","modified_gmt":"2023-05-31T16:03:51","slug":"being-productive-cpp-developer-without-internet","status":"publish","type":"post","link":"https:\/\/cppdepend.com\/blog\/being-productive-cpp-developer-without-internet\/","title":{"rendered":"Being a Productive C++ Developer Without Internet"},"content":{"rendered":"<p>As developer, How many times during a day you need to ask google for something related to your work? How to use a library? Is there a fix for an encountered\u00a0problem?<\/p>\n<p>Maybe the answer is at least once a day.<\/p>\n<p>Currently and as developers, the internet saves us a lot of time. Whatever the problem you have, just search the right keywords in google and instantly and in many cases you have a result that matches your need.<!--more--><\/p>\n<p>For example, if we want to know how to read a file line by line and we do the following search:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.cppdepend.com\/img\/cppsearch.png\" \/><\/p>\n<p>The\u00a0first result is a StackOverflow answer with a very good rating<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.cppdepend.com\/img\/cppsearch2.png\" \/><\/p>\n<p>The developer becomes an internet-dependent which is good because it helps\u00a0to resolve quickly many problems and let the developers more productive. But\u00a0as a developer can we still productive without the internet connection?<\/p>\n<p>Let&#8217;s first discover how was it before the internet boom, where only a\u00a0few development resources\u00a0were referenced in the web?<\/p>\n<p>20 years ago and as I remember when we had an issue to resolve, we\u00a0try these ways:<\/p>\n<ul>\n<li>Searching the answer in books: Indeed at work or at home a developer has a library of books related to its development perimeter, and in case of a blocking issue we take a look at\u00a0these books hoping we find a solution. However, we can&#8217;t find real problems in books and in many times we can&#8217;t find what we search.<\/li>\n<\/ul>\n<ul>\n<li>Asking colleagues: Another way was to rely\u00a0on the experience of the colleagues, and we ask if someone has already seen a specific\u00a0problem hoping to have a solution.<\/li>\n<\/ul>\n<ul>\n<li>Go inside the code: Sometimes when a library is used and a problem occurs, the efficient way was to debug the library to understand how to resolve the issue. I remember\u00a0when we used a Corba bus in the past and few resources existed we needed to debug the external library to understand what happens.<\/li>\n<\/ul>\n<ul>\n<li>Contact the support: Sometimes when we encountered an advanced issue and where we do not have the source code we contact the solution provider hoping to have a solution. For example, I remember an advanced DCOM issue where\u00a0we contacted Microsoft, it takes us 3 weeks to resolve the issue because we had to reach the right person which is not an easy task.<\/li>\n<\/ul>\n<p>Fortunately, the web becomes a gold mine for the developers and just with a few clicks, the solution comes to us. But what are the disadvantages\u00a0of being internet dependent:<\/p>\n<ul>\n<li>Aquire the Copy\/Paste bad habit: In general when a developer finds a solution from the web he copy\/paste\u00a0it into its code and if it works he continues to do other staff.\u00a0 He does not try to understand exactly the motivations behind the solution provided.<\/li>\n<li>Lazy developer: The developer becomes lazy and sometimes he does not even search for the solution, but directly ask a question for a basic need and want the others to search for him. Indeed many times we can be surprised by the basic StackOverflow questions and where a very simple search gives us a good match for what he needs.<\/li>\n<li>Minimises the communication between the developers.<\/li>\n<\/ul>\n<p>Back to the original question and let&#8217;s focus on C++,\u00a0\u00a0could you find quickly an efficient solution\u00a0to these basic needs without having access to the internet:<\/p>\n<ul>\n<li>Find if an std::string\u00a0starts with another string.<\/li>\n<li>Find if an std::string ends with another string.<\/li>\n<li>Calculate the factorial of a number.<\/li>\n<li>Check if a number is prime or not.<\/li>\n<\/ul>\n<p>You can try yourself to resolve these questions, and maybe you can be surprised by the fact that you are an internet dependent. And without the web\u00a0and even for basic needs\u00a0it&#8217;s not an easy task to resolve them.\u00a0 It&#8217;s not an issue if we are more and more dependent on the web but we must be aware of the drawbacks of this attitude. Maybe before searching directly on the web, we can try just for a few minutes to resolve it\u00a0to understand exactly the problem. it helps us to do a more relevant search with the good keywords and if we found a solution understand well its motivations.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>As developer, How many times during a day you need to ask google for something related to your work? How to use a library? Is there a fix for an encountered\u00a0problem? Maybe the answer is at least once a day. Currently and as developers, the internet saves us a lot of time. Whatever the problem &hellip; <a href=\"https:\/\/cppdepend.com\/blog\/being-productive-cpp-developer-without-internet\/\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Being a Productive C++ Developer Without Internet&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[67,13,191,192,137],"class_list":["post-616","post","type-post","status-publish","format-standard","hentry","category-uncategorized","tag-c-2","tag-cpp","tag-internet","tag-productivity","tag-programming"],"_links":{"self":[{"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/posts\/616","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/comments?post=616"}],"version-history":[{"count":24,"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/posts\/616\/revisions"}],"predecessor-version":[{"id":1485,"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/posts\/616\/revisions\/1485"}],"wp:attachment":[{"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/media?parent=616"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/categories?post=616"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cppdepend.com\/blog\/wp-json\/wp\/v2\/tags?post=616"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}