4 ms·
One strange thing I notice right off the bat is that one metric the author is using to compare is Lines of Code (where smaller is better): >.NET Core MVC Appli
by Permit 9y ago
One strange thing I notice right off the bat is that one metric the author is using to compare is Lines of Code (where smaller is better):
>.NET Core MVC Application, written using 86 lines of code...
>Iris MVC Application, written using 27 lines of code...
But the files are formatted differently...
In C#:
public void Delete(int id)
{
}
In Go:
func (vc *ValuesController) Delete() {}
- _ix 9y agoI don't know either language, but I've heard so many good things about go when talking about formatting with gofmt. I believe that line in go is as gofmt would have you write it, isn't it? Could someone weigh in on whether the C# written in this post is idiomatic?
- int_19h 9y agoIdiomatic, yes, but coding style isn't really a part of idiomatic C#. He's using the default formatting settings of Visual Studio. This is a very popular choice for sure, but by no means universal even inside Microsoft itself.
- matthewking 9y agoAlso looks like more than a few completely unnecessary using statements.