Skip to main content

Posts

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 What are you trying to do What is the expected output What programming language or tools you are using What have you tried What errors did you receive if any (with stack trace) Minimal code to assist reproduce or debug (Well formatted or via a code snippet site) https://stackoverflow.com/help/minimal-reproducible-example Helpful screenshot of UI if it's about a UI issue (eg trying to replicate ...
Recent posts

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 https://code.visualstudio.com/ 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 fol...