17

Yep, this code is in production....

Comments
  • 6
    There must be some weird, hacky explanation for it right?
  • 1
    @alexbrooklyn I really want to believe that 😝
  • 1
    TO type ... Wtf
  • 2
    Shite code = pressured work || lack of knowledge. There may be more reasons but I am actually wondering what caused this mess 🤔
  • 1
    What the fuck is TO?
  • 4
    Don't touch that shit, nothing good will come from it.
  • 0
    @jAsE-Official I guess it means type output
  • 0
    @pacjent3444 in this Case, I would say it was lack of knowledge. Doing the correct way would be faster
  • 0
    TO = Template Object???
  • 0
    Why are there break statements if you are just going to return. Why not just return?

    Also noted the obvious, wtf is a TO type.

    I dunno java
  • 0
    In slovak language means "To" = it
    Check if the person wo wrote this code isn't from Slovakia or Czech republic, maybe he just froget he should write in english 😂
  • 0
    It's C# guys. TO is the generic type parameter where it has a constraint that the type you specify must implement the IConvertible interface. You can call it like GetFilterValue<int>() and make it return an int. TO could've been any name. Starting a type parameter with T is the convention in C#. The author clearly didn't know about pattern matching.
Add Comment