Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

When I took over my current job a outsourcing company who employed developers based in Islamabad (Pakistan) wrote most of the code. It's C#, they didn't understand the concept of null, by ref or by value.

It was interesting. The database was Mongo and they had some horrible Entity Framework port that they forked on Github and used which wasn't maintained and at the time in 2015, 3 years old.

The data layer had business logic. Let's say they were getting a user record from the database but they didn't want to include the first and last name they'd write a method called

GetUserWithoutFirstAndLastName();

That would be in the User repository. Another requirement would come up to get the user but not include the user's language for instance and they'd create another method

GetUserWithoutFirstAndLastNameAndLanguage();

Ended up with about 70 or so methods which basically gave different levels of hydration for the User object.

The frontend was written in Extjs which took about 25 seconds to load.

They had no tests.



C# 8 just announced optional nullability as a feature




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: