<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Robert Colley</title>
    <description>The latest articles on DEV Community by Robert Colley (@robertjcolley).</description>
    <link>https://dev.to/robertjcolley</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F845304%2F287226db-18a4-4bdf-9d23-745f1d635d71.jpeg</url>
      <title>DEV Community: Robert Colley</title>
      <link>https://dev.to/robertjcolley</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/robertjcolley"/>
    <language>en</language>
    <item>
      <title>How to ask for software development help on the internet</title>
      <dc:creator>Robert Colley</dc:creator>
      <pubDate>Sun, 23 Oct 2022 13:48:24 +0000</pubDate>
      <link>https://dev.to/robertjcolley/how-to-ask-for-software-development-help-on-the-internet-ghh</link>
      <guid>https://dev.to/robertjcolley/how-to-ask-for-software-development-help-on-the-internet-ghh</guid>
      <description>&lt;p&gt;All too often, I see that there are tons of people who post comments like this:&lt;/p&gt;

&lt;p&gt;&lt;a href="https://res.cloudinary.com/practicaldev/image/fetch/s--QWrPLS77--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0l18mc43kixex0i5m80.png" class="article-body-image-wrapper"&gt;&lt;img src="https://res.cloudinary.com/practicaldev/image/fetch/s--QWrPLS77--/c_limit%2Cf_auto%2Cfl_progressive%2Cq_auto%2Cw_880/https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0l18mc43kixex0i5m80.png" alt="Example question on Reddit r/reactnative" width="880" height="1281"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What is wrong with this?
&lt;/h2&gt;

&lt;p&gt;I mean no offense to this wonderful user, but there is nothing here that I can start helping out with. It is important to have a list of the steps you have taken to get to the point of this error in a detailed way. Often in software development, the order that commands are run can have a great impact on how the end result turns out. I don't know anything about the environment they are using other than they are using windows 11. There are so many softwares you can install that can mess up your local environment, that it is almost impossible to guess past just "windows 11"&lt;/p&gt;

&lt;p&gt;For example:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;run &lt;span class="nb"&gt;command &lt;/span&gt;abc
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;run &lt;span class="nb"&gt;command &lt;/span&gt;xyz
&lt;span class="go"&gt;
&lt;/span&gt;&lt;span class="gp"&gt;#&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;Exit code 0 - success!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;vs.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;run &lt;span class="nb"&gt;command &lt;/span&gt;xyz
&lt;span class="gp"&gt;$&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;run &lt;span class="nb"&gt;command &lt;/span&gt;abc
&lt;span class="go"&gt;
&lt;/span&gt;&lt;span class="gp"&gt;#&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;ERROR when running commands!
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;the two examples have a very different output. Let's look at the theoretical documentation for this set of commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="gp"&gt;#&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;run &lt;span class="nb"&gt;command &lt;/span&gt;abc
&lt;span class="go"&gt;Enables you to set up your workspace.

&lt;/span&gt;&lt;span class="gp"&gt;#&lt;/span&gt;&lt;span class="w"&gt; &lt;/span&gt;run &lt;span class="nb"&gt;command &lt;/span&gt;xyz
&lt;span class="go"&gt;Starts the application in your workspace. Depends on abc
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;What do you notice?&lt;/p&gt;

&lt;h3&gt;
  
  
  1. A better understanding of the commands by the developer could have avoided this problem
&lt;/h3&gt;

&lt;p&gt;Developers need documentation to understand how to use the tools they posses. No one writes any public software without at least making a small attempt at conveying how to use it! If no one can understand your software, it will not be used.&lt;/p&gt;

&lt;p&gt;Many software packages like &lt;a href="https://reactnative.dev/docs/getting-started"&gt;React Native&lt;/a&gt; have excellent guides to getting started. Double and triple checking&lt;/p&gt;

&lt;h3&gt;
  
  
  2. This error could have been found with a google search
&lt;/h3&gt;

&lt;p&gt;In big enough softwares, you are usually not the first person to come up with an issue. Searching the error message on google can usually be a great way to get started. Our friend here had this error:&lt;/p&gt;

&lt;h3&gt;
  
  
  3. Read the error message first
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight console"&gt;&lt;code&gt;&lt;span class="go"&gt;error Failed to install the app. Make sure you have the Android development environment set up:
https://reactnative.dev/docs/environment-setup.
Error: Command failed: gradlew.bat app:installDebug-PreactNativeDevServerPort=8081
&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;First of all, React Native (and most softwares) knows what they need to run. It cannot run without certain parts of the environment set up. The error even &lt;em&gt;gives a direct link to what you need to do to fix this issue&lt;/em&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Final thoughts
&lt;/h2&gt;

&lt;p&gt;I believe the vast majority of people are only asking questions and not answering any questions. I challenge you to try and answer a question on any GitHub repo or subreddit you like! Answering questions can give you a better perspective and help teach you how to write your own questions!&lt;/p&gt;

&lt;p&gt;Check out my &lt;a href="https://www.robertjcolley.com"&gt;website&lt;/a&gt;! Talk to me on social media!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
