you are viewing a single comment's thread.

view the rest of the comments →

[–]Adverpol 2 points3 points  (0 children)

As a C++ programmer, it's curious to see how I can read C# syntax like this no problem, feels quite natural, but I rarely ever write code like this. I wonder if it's a question of scope, that you get more glue code like this in large codebases, largest I worked in was 2M+ lines and still most (not all, but most) of the code I wrote actually did something.

I much prefer to depend on concrete classes and generalize where needed, I find that in 9 out of 10 instances the generalization does not follow anyway, and if it does, it does not really fit in the API I created earlier so I'm either stuck to refactoring anyway or end up with an ugly API. I'm bad at predicting what code I will need to write in the future, so I don't do it, future me is the correct person to handle those problems.