10
billgates
13d

Too lazy to come up with a better name...

Yea... the app still works...

5th time editing the crawler logic... 2 years now?

Comments
  • 0
    You don't use the var keyword?
  • 0
    @MrCSharp why should I? I only use it if I'm lazy or for LINQ.
  • 0
    @billgates understandable if it's only for the primitive types. For things like generic collections and so on, var is much nicer.

    I got into the habit of using var whenever possible though.
  • 0
    @MrCSharp ah yes generics with multiple types similar to Java HashMap<> just less typing.

    Was thinking dynamic vars is the only other reason in C#
  • 5
    @MrCSharp var in strongly typed launguage is HERESY.
  • 2
  • 1
    @MrCSharp Use var for an int and face my wrath.
  • 1
    Why issue.issueUrl tho? If url belongs to issue doesn't it make its url by default?
  • 1
    @Omnisus because there is a CoverImageUrl too.
  • 1
    @Gregozor2121 it is not. when variables are names properly, and the structure of the code is sound and reasonable, then the type of the variable becomes obvious. And if you are going through some code to fix a bug then you really don;t need to know every type of every declared variable.
  • 1
    @Gregozor2121 I'd argue that if the code is clear enough, you can tell what type the variable is.

    var is not an evil keyword in C# when variables and methods are named properly.
  • 0
    Just use it like the typed language it is. It takes half a second to type the type.
  • 0
    @MrCSharp I just prefer using strong typing. That post was a semi meme too. There is nothing wrong with var, dynamic ect but people should use them if they dont have too. Limit the amount of programing features that you use and you wont have to constantly look into the docs when readings somebodies code. Follow KISS
Add Comment