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

> This meme needs to die. I've seen "10 layer abstraction heavy" code base only once

I dont think so. I like Go code because its usually pretty "flat" unless you find someone from a Java or C# background. C# code is similar to Java in that nearly everyone writes it with an IDE, so you end up with nested folders like 8 levels deep. it makes reading the code stupidly hard, unless you download and load into an IDE or something like GitHub with essentially a web IDE. so anyone used to just a normal editor like Vim or similar is basically out of luck.



While I agree that almost everyone uses IDEs when doing C#

then I'm not sure about this folder thing.

I've been shocked many times when seeing Java repos that they have like 5 empty folders nested just to have 3 java files. I don't see that in C# world.

>it makes reading the code stupidly hard, unless you download and load into an IDE or something like GitHub with essentially a web IDE. so anyone used to just a normal editor like Vim or similar is basically out of luck.

What does "normal editor" even mean?

Shouldn't "normal" be dictated by market share? so VS Code, Notepad++ according to SO Survey 22


> that they have like 5 empty folders nested just to have 3 java files. I don't see that in C# world.

This is because Java ties the package path to the filesystem, and C# does not tie namespaces to file paths. Typically in C# codebases you'll see the layers implemented as separate DLL projects.


That's not my experience, and I've been writing C# since .NET 1.1. Obviously though it depends on the scale of the app. If you have 1m+ LoC, you really need to have some sort of structure, regardless of the language.




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

Search: