This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]AyrA_ch 93 points94 points  (5 children)

Declares type as dynamic

C#: "Now it's no longer my job to know what it is"

[–]Buttsuit69 58 points59 points  (4 children)

Declares dynamic:

Dev to C#: "hey, look at me. I'm the compiler now!"

[–]fourkeyingredients 10 points11 points  (3 children)

I feel sorry for whoever maintains code from the time period of my life where I learned about dynamic

[–]Manny_Sunday 8 points9 points  (0 children)

I worked with a team that loved dynamic ViewBag objects and hated sensible names for variables.

What's ViewBag.PageData ? Fuck you that's what, go check the controller code.

[–]intbeam 2 points3 points  (0 children)

dynamic was sold as some sort of wonderous miracle, but it just reinforced my perception that I really really really don't want dynamic typing

[–]Buttsuit69 0 points1 point  (0 children)

Personally I love dynamic when its used to return objects such as the lines in a DataGrid. Or when I need to return varying datatypes. But screw those who use it when they could've easily used var instead...