Skip to content

Brunof89/DictionaryFile

Repository files navigation

DictionaryFile

Dictionary File Project.

  • Tecnology used
    • Asp.NET Core 3.1 ( Console App )
    • *C# 8.0
    • Visual Studio 2019
    • Nuget Packages for NUnit and Moq
    • Git
  • Problem resolution:
    • First i made my console app able to inject any kind of service provider. Then as a normal .Net Core app i saved my configurations in a appsettings file, although one of  the best practices  now-a-days the most of the configurations should be saved in environment variables.  While the program recives inputs from the user it validates straight away the existence of the file and the length of the start and end words.
    • As arquitecture of the solutions concerns, i based on the Domain Drive Design (DDD) pattern, where your domain level is responsible for the lead of the infrastructure layer and the application layer. Normally the infrastructure layer has the persistence providers, in this case, it is just a file. In the application layer, it can then be injected into whatever presentation technology we want, for example a WebApi ,Job routine, or in this case a console app.
  • Algorithm ( Breadth-first search )
  • Problems encountered:
    • Understanding what the algorithm had to do. For example, if it could have more than one change in the same character index.
    • If the list had to be ordered alphabetically of not. ( I considered it had to be...)
    • If Unit testing had to be in all used methods
    • Did not use repository pattern, but most DDD i would have.
    • Efficient and better way to write the algorithm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages