Josh A. Young
Software Engineer


These are some tips for development that I have found helpful. These also serve as helpful future reminders.

  • Do not add your IDE files to your repos .gitignore file. Instead add them to a global .gitignore file.
  • Before writing any code, build a architectural design with a diagramming tool using (UML, Entity Diagram, etc.) to insure you are programming the right thing.
  • Sync with your team on a continual basis through the progress of your work by opening small pull requests to get their feedback.
  • Never push production code to master unless it has good tests (unit, integration) backing that code.
  • Before building out a new feature test it with a "spike" / "discovery".
    • This discovery work is typically code that you build out quickly that has no tests. It provides a quick way to develop a workable/feasible plan.
  • Programming Cases:
    • kebab-case
    • camelCase
    • PascalCase
    • snake_case
  • When naming a method, use a name that signifies either 'What It Does' or 'What It Is'.
    • Do not use a method name that signifies how it does it.
  • Make sure your editor displays trailing white space. This will make your diffs easier and prevent unnecessary changes.
  • When building a mobile app, do not let the API's design determine how your build your mobile app's model(s).
  • When writing a ticket for a kanban board (i.e. Jira, Trello, etc) in a team environment, include enough details in the ticket so that any one on the team can pull the ticket without having to consult anyone else.
  • When using an external service (library, API, etc), try not to include the language of that project inside your application so that you can easily switch library's or APIs in the future without having to change your model/service names.
  • Do not use exceptions for flow control.
  • Before you start debugging an issue, always ask the simple questions first: "is the plugin initialized correctly", "am I calling the right function", is my element hidden, etc.
  • If your code base is suddenly failing and you cannot determine why, find the last commit where it worked and see what has changed in each commit since. You should be able to git checkout [hash of commit] to see if it worked at that point.

Maui / Xamarin

  • If you add a page as a singleton and have a form it it, it will keep the data you type in the form everytime you re-open the apge.
  • Having an initialize method keeps most of the code for the vm out of the constructor. This is recommended practice by Microsoft, and allows for async methods.
  • The wrong order of DI classes in Xamrin will cause the app to crash for no reason (sometimes it will not tell you, the app will just close).
  • if x:Class it not correct, the xaml page will be blank!
  • On IOS, if you have the ‘Entry’'s MaxLength set a a number that is smaller than the length of the value that is binding to, it will cause a crash on IOS (at least if it is in a CarouselView). This same error does not occur in Android. Error: “Value cannot be null. (Parameter 'fromPosition’)”.
Icons made by Freepik and Pixel perfect from Also icon(s) from iconfinder.
"Nōn nōbīs, Domine, nōn nōbīs, sed nōminī tuō dā glōriam."