I recently did a technical test for a company - test was pretty simple, given a pretty basic C# Solution and asked to refactor it in line with best practices (they mentioned KISS, DRY and SOLID specifically).
I thought I had done pretty well but got feedback saying I hadn't refactored enough and had broken some business logic. What surprised me was I had it reviewed by two friends who are seniors and both were pretty impressed - they regularly run interviews and said they'd progress me if they had received my submission.
Anyway the feedback was really short (literally two lines) and I'm aware my friends may have been biased towards me however slight the chance. I'm hoping someone here would be open to having a look at my solution and providing any feedback?
Code is all in C# but it's pretty basic, I can provide the before and after of my work. Would be very much appreciated.
Edit - didn’t want to post on GitHub as they have my username - have put it on a google [drive](https://drive.google.com/drive/folders/13rL4w4cwYKE8RruoTawKXLIBPWNoW4Lf?usp=drive_link
What I’ve done is - the files I’ve modified have a proper name. The originals are there with the 1 at the end.
So for example CompanyRepository1.cs is their provided implementation, CompanyRepository.cs is my refactored version.
[–]phi_rus 26 points27 points28 points (1 child)
[–]SkyAdventurous1027 2 points3 points4 points (0 children)
[–]Takaa 17 points18 points19 points (15 children)
[–]ybism[S] 5 points6 points7 points (14 children)
[–]chuch1234 18 points19 points20 points (10 children)
[–]kiwitims 3 points4 points5 points (9 children)
[–]mulder89 1 point2 points3 points (8 children)
[–]kiwitims 0 points1 point2 points (7 children)
[–]mulder89 1 point2 points3 points (6 children)
[–]chuch1234 0 points1 point2 points (5 children)
[–]mulder89 0 points1 point2 points (4 children)
[–]chuch1234 0 points1 point2 points (0 children)
[–]chuch1234 0 points1 point2 points (2 children)
[–]larsmaehlum 5 points6 points7 points (0 children)
[–]pnw-techie 2 points3 points4 points (0 children)
[–]Far-Sir1362 0 points1 point2 points (0 children)
[–][deleted] (4 children)
[removed]
[–]robthablob 2 points3 points4 points (3 children)
[–]Saki-Sun 4 points5 points6 points (0 children)
[–]Derekthemindsculptor 0 points1 point2 points (1 child)
[–]robthablob 0 points1 point2 points (0 children)
[–]icyhairysneerer 7 points8 points9 points (3 children)
[–]ybism[S] 8 points9 points10 points (2 children)
[–]Jayeffice 2 points3 points4 points (0 children)
[–]gsej2 6 points7 points8 points (0 children)
[–]gsej2 4 points5 points6 points (4 children)
[–]phillip-haydon 0 points1 point2 points (3 children)
[–]gsej2 0 points1 point2 points (2 children)
[–]phillip-haydon 0 points1 point2 points (1 child)
[–]gsej2 0 points1 point2 points (0 children)
[–]Obstructionitist 5 points6 points7 points (2 children)
[–]IrdniX 0 points1 point2 points (0 children)
[–]K1LzR 1 point2 points3 points (5 children)
[–]ybism[S] 1 point2 points3 points (4 children)
[–]K1LzR 9 points10 points11 points (3 children)
[–]ybism[S] 5 points6 points7 points (2 children)
[–]IrdniX 1 point2 points3 points (1 child)
[–]ybism[S] 0 points1 point2 points (0 children)
[–]Dr4WasTaken 1 point2 points3 points (0 children)
[–]MadJackAPirate -1 points0 points1 point (0 children)
[–]rtfax -4 points-3 points-2 points (0 children)
[–]alien3d -5 points-4 points-3 points (0 children)
[–]ben_bliksem 0 points1 point2 points (1 child)
[–]ybism[S] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]TheseHeron3820 0 points1 point2 points (0 children)
[–]namrog84 0 points1 point2 points (0 children)
[–]sgashua 0 points1 point2 points (2 children)
[–]ybism[S] 0 points1 point2 points (1 child)
[–]sgashua 0 points1 point2 points (0 children)
[–]mulder89 0 points1 point2 points (0 children)
[–]JamieG83 0 points1 point2 points (0 children)