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

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() {}


I 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?


Idiomatic, 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.


Also looks like more than a few completely unnecessary using statements.




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

Search: