Skip to main content

On asking good questions as a software developer for beginners

 As a programmer, there are times that you encounter bugs that are either too difficult to track down or fix.

At times like that, you look for help somewhere. This can be in stackoverflow or developer groups on discord, slack or anywhere else.

How do you phrase your question in order for others to understand the problem and help you resolve it?

This is going to be a general technique in question asking that will give you quality answers or at least get the right people to point you in the right direction.

Elements of a good question

The following are in my opinion what makes a good question

  1. What are you trying to do
  2. What is the expected output
  3. What programming language or tools you are using
  4. What have you tried
  5. What errors did you receive if any (with stack trace)
  6. Minimal code to assist reproduce or debug (Well formatted or via a code snippet site)
  7. Helpful screenshot of UI if it's about a UI issue (eg trying to replicate a certain design)

After writing the question.

Once you are done writing your question, read it through. Correct any grammatical errors.

Make sure that the question has enough details to help anyone else understand the context of the problem.


Happy coding

Please refer to this blog post for a checklist of things to consider when asking a question


Popular posts from this blog

How to use Visual Studio Code for Flutter - 2023

Introduction Visual Studio code is a customizable  editor that allows for you to tweak things the way you like it. To install vscode go to and following the instructions relevant to your operating system. Install flutter and dart extensions  Go to view -> command palette Type install and select extensions: install extenstions Type flutter in the search field and click install Debugging a flutter app   Image 1 Running a debug app To run your flutter app, click on the debug button (1) from the image 1 above. Click on Run and debug (2) . This will show the device list to run. If a emulator and a device is already connected, it will use that device instead.  Creating a custom run command There are times that you have some parameters to the flutter run command. At those times, custom launch config is the right thing to use.  Click on the debug button (1) image 1, click on create a launch.json file (3). This will create a folder called .vscode with