Feedback on designing a polymorphic association in Ecto

This is off-topic but I have to ask because this tripped me up :slight_smile: : why do you mix English with Dutch/Flemish? You have new/1 (EN), voor_lezer?/1 (NL) and get_uitlener/1 (EN+NL) which cover all possibilities when it comes to mixing the two languages.

As a native Dutch speaker and someone who works in a German code base I would suggest you write everything in English or stick to either language. Even asking questions and showing you code like this would make it easier for other people to understand if it was in English.

If you have a strong reason for writing it this way, please let me know because I’m really curious about the thought behind this.

I also learned that there is something called @for so thanks for that!

1 Like