←back to thread

201 points olvy0 | 3 comments | | HN request time: 0.414s | source
1. Culonavirus ◴[] No.41880430[source]
There has to be a better way to do things than this annotation noodle soup. My eyes are bleeding every time I look at modern Net code.
replies(2): >>41880606 #>>41880904 #
2. bob1029 ◴[] No.41880606[source]
Those attributes correspond to the benchmarking library used in the article. Unit testing & benchmarking code does typically look kind of like a plate of spaghetti.

That said, you would never get a PR through me that does this in the actual business logic. You can use things like AspNetCore without touching a single attribute if you really don't want to.

3. recursive ◴[] No.41880904[source]
What .net code are you looking at? I rarely use attributes at all.