Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. What is your Opinion about Generics ?

What is your Opinion about Generics ?

Scheduled Pinned Locked Moved C#
questioncsharpcomarchitecture
9 Posts 5 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shyam K Pananghat
    wrote on last edited by
    #1

    What is your Opinion about Generics in .Net 2.0. The good parts.. bad aspects. and it's actual use in designing a good architecture.

    Shyam.. My Blog dotnetscoups.blogspot.com

    J P 2 Replies Last reply
    0
    • S Shyam K Pananghat

      What is your Opinion about Generics in .Net 2.0. The good parts.. bad aspects. and it's actual use in designing a good architecture.

      Shyam.. My Blog dotnetscoups.blogspot.com

      J Offline
      J Offline
      J4amieC
      wrote on last edited by
      #2

      Thats kind of like asking an oppinion of a hammer. If you're banging in nails, a hammer is great - if you're trying to paint your spare room its not quite the tool for the job. Use generics for what they're for.

      S 1 Reply Last reply
      0
      • J J4amieC

        Thats kind of like asking an oppinion of a hammer. If you're banging in nails, a hammer is great - if you're trying to paint your spare room its not quite the tool for the job. Use generics for what they're for.

        S Offline
        S Offline
        Shyam K Pananghat
        wrote on last edited by
        #3

        Ok.. And that yourself have told that "Use generics for what they're for." And i am expeing the answer "what they're for". explain your thoughts if you dont mind. rather than a negative answer. Let others also post their thoughts. we can have a collective set of good things which will defenetive contain some good points that even you were unaware or not thought about till this point of time. :) :cool:

        Shyam.. My Blog dotnetscoups.blogspot.com

        J 1 Reply Last reply
        0
        • S Shyam K Pananghat

          Ok.. And that yourself have told that "Use generics for what they're for." And i am expeing the answer "what they're for". explain your thoughts if you dont mind. rather than a negative answer. Let others also post their thoughts. we can have a collective set of good things which will defenetive contain some good points that even you were unaware or not thought about till this point of time. :) :cool:

          Shyam.. My Blog dotnetscoups.blogspot.com

          J Offline
          J Offline
          J4amieC
          wrote on last edited by
          #4

          If you picked up a book, or did some online research, you would know exactly what generics do, when to use them, and what they're "for". This forum is to provide specific answers to coding problems in C#, not to do your research for you.

          S 1 Reply Last reply
          0
          • J J4amieC

            If you picked up a book, or did some online research, you would know exactly what generics do, when to use them, and what they're "for". This forum is to provide specific answers to coding problems in C#, not to do your research for you.

            S Offline
            S Offline
            Shyam K Pananghat
            wrote on last edited by
            #5

            Please do understand that i dont want to do any research and right now im not of any use on generics. :mad:

            Shyam.. My Blog dotnetscoups.blogspot.com

            L 1 Reply Last reply
            0
            • S Shyam K Pananghat

              Please do understand that i dont want to do any research and right now im not of any use on generics. :mad:

              Shyam.. My Blog dotnetscoups.blogspot.com

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              Skpananghat wrote:

              i dont want to do any research

              And you expect us to share our opinions? What's the value of an opinion if it isn't based on experience or research? QPQ, I'll give my opinion on generics once you can tell me in three lines (or less) what a "generic" is and how I might recognize one when I trip over it :)

              I are troll :)

              M 1 Reply Last reply
              0
              • L Lost User

                Skpananghat wrote:

                i dont want to do any research

                And you expect us to share our opinions? What's the value of an opinion if it isn't based on experience or research? QPQ, I'll give my opinion on generics once you can tell me in three lines (or less) what a "generic" is and how I might recognize one when I trip over it :)

                I are troll :)

                M Offline
                M Offline
                Megidolaon
                wrote on last edited by
                #7

                I certainly love generics. I use them all the time, I don't get why so many people still use arrays in C# when only few or rarely used .NET methods need them. Enough opinion?

                L 1 Reply Last reply
                0
                • M Megidolaon

                  I certainly love generics. I use them all the time, I don't get why so many people still use arrays in C# when only few or rarely used .NET methods need them. Enough opinion?

                  L Offline
                  L Offline
                  Lost User
                  wrote on last edited by
                  #8

                  Megidolaon wrote:

                  Enough opinion?

                  Yeah, but my point was that an opinion isn't a research-tool for the lazy. I like red, but that opinion doesn't make red a "good" color for the walls or the ceiling. Asking generally for peoples' opinion because one is too damn lazy is like asking what color your ceiling should be. It should be red. Because I like red. The TS should avoid generics because his "research" (which consists of the collection of answers to his question, therefore our posted opinions) state that "red" is better than "generic". :rolleyes: Without the usual sarcasm; I enjoy using generics as it increases my productivity, compared to handwriting strong-typed collections. It saves the time that is required to launch and execute CodeSmith, and I enjoy having a built-in collection over an external generated collection as reduces complexity and improves readability and maintainability.

                  I are troll :)

                  1 Reply Last reply
                  0
                  • S Shyam K Pananghat

                    What is your Opinion about Generics in .Net 2.0. The good parts.. bad aspects. and it's actual use in designing a good architecture.

                    Shyam.. My Blog dotnetscoups.blogspot.com

                    P Offline
                    P Offline
                    PIEBALDconsult
                    wrote on last edited by
                    #9

                    As good as they are, they don't go far enough.

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups