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
  1. Home
  2. The Lounge
  3. C# 4.0. w00t.

C# 4.0. w00t.

Scheduled Pinned Locked Moved The Lounge
csharpc++comarchitecture
35 Posts 20 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.
  • J Josh Smith

    Dynamic variables are nothing to shake a stick at, imo.

    :josh: Try Crack![^] Sleep is overrated.

    C Offline
    C Offline
    Chris Maunder
    wrote on last edited by
    #3

    I was going to post tomorrow's survey as "Does the thought of Dynamic variables make you break out in a cold sweat?" Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

    cheers, Chris Maunder

    CodeProject.com : C++ MVP

    J L R C 4 Replies Last reply
    0
    • C Chris Maunder

      I was going to post tomorrow's survey as "Does the thought of Dynamic variables make you break out in a cold sweat?" Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

      cheers, Chris Maunder

      CodeProject.com : C++ MVP

      J Offline
      J Offline
      Josh Smith
      wrote on last edited by
      #4

      Chris Maunder wrote:

      Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

      Please try explaining that logic to the manufacturers and distributors of firearms. I'd love to live in a world where things like this[^] are unheard of.

      :josh: Try Crack![^] Sleep is overrated.

      P B R 3 Replies Last reply
      0
      • C Chris Maunder

        I was going to post tomorrow's survey as "Does the thought of Dynamic variables make you break out in a cold sweat?" Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

        cheers, Chris Maunder

        CodeProject.com : C++ MVP

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

        Chris Maunder wrote:

        icture the code that is going to come from developers who don't understand when and where to use them. And not use them.

        took the words right out of my mouth~

        Life is like a pubic hair on the toilet seat... ...sometimes, you just get pissed off. .\\axxx (That's an 'M')

        1 Reply Last reply
        0
        • C Chris Maunder

          I was going to post tomorrow's survey as "Does the thought of Dynamic variables make you break out in a cold sweat?" Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

          cheers, Chris Maunder

          CodeProject.com : C++ MVP

          R Offline
          R Offline
          Roger Wright
          wrote on last edited by
          #6

          Chris Maunder wrote:

          Does the thought of Dynamic variables make you break out in a cold sweat?"

          Heck, it gives me nightmares. I have enough trouble getting variables to hold the values I gave them!

          "A Journey of a Thousand Rest Stops Begins with a Single Movement"

          1 Reply Last reply
          0
          • C Chris Maunder

            Named and Optional Parameters. My life is complete.

            cheers, Chris Maunder

            CodeProject.com : C++ MVP

            R Offline
            R Offline
            Roger Wright
            wrote on last edited by
            #7

            Chris Maunder wrote:

            My life is complete.

            Not until you've tried women; then you're done.

            "A Journey of a Thousand Rest Stops Begins with a Single Movement"

            C 1 Reply Last reply
            0
            • C Chris Maunder

              Named and Optional Parameters. My life is complete.

              cheers, Chris Maunder

              CodeProject.com : C++ MVP

              Steve EcholsS Offline
              Steve EcholsS Offline
              Steve Echols
              wrote on last edited by
              #8

              But, but, you had those in C++ and VB(A). How many times can you complete your life (if you're not a cat)? :)


              - S 50 cups of coffee and you know it's on! A post a day, keeps the white coats away!

              • S
                50 cups of coffee and you know it's on!
                Code, follow, or get out of the way.
              R 1 Reply Last reply
              0
              • C Chris Maunder

                Named and Optional Parameters. My life is complete.

                cheers, Chris Maunder

                CodeProject.com : C++ MVP

                C Offline
                C Offline
                ChandraRam
                wrote on last edited by
                #9

                Chris Maunder wrote:

                Named and Optional Parameters.

                VB has had those since... oh... the dinosaurs. So C# 4.0 is really VB in disguise? ;P

                C 1 Reply Last reply
                0
                • C Chris Maunder

                  Named and Optional Parameters. My life is complete.

                  cheers, Chris Maunder

                  CodeProject.com : C++ MVP

                  L Offline
                  L Offline
                  LucasBreedlove
                  wrote on last edited by
                  #10

                  VS for C/C++ programmers (not necessarily MFC) has sucked since the end of VS 6. You want help with that function? No, you have too many template classes. It is nice that they continue to make their tabs rounder, and their gradients smoother. I've always said, "you know what VS could use? More gradients!"

                  D 1 Reply Last reply
                  0
                  • J Josh Smith

                    Chris Maunder wrote:

                    Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

                    Please try explaining that logic to the manufacturers and distributors of firearms. I'd love to live in a world where things like this[^] are unheard of.

                    :josh: Try Crack![^] Sleep is overrated.

                    P Offline
                    P Offline
                    Patrick Etc
                    wrote on last edited by
                    #11

                    Josh Smith wrote:

                    I'd love to live in a world where things like this[^] are unheard of.

                    Mmm, you'll be waiting an awfully long time. Every gun in the world could be destroyed and you'd still get random stabbings, baseball battings, getting run over by cars... the very nature of freedom is one of risk. That's the nature of reality as we currently inhabit it. Now, if we could invent an alternate reality where freedom and absolutely perfectly responsible behavior went hand in hand... but I digress.

                    J M 2 Replies Last reply
                    0
                    • C Chris Maunder

                      Named and Optional Parameters. My life is complete.

                      cheers, Chris Maunder

                      CodeProject.com : C++ MVP

                      L Offline
                      L Offline
                      l a u r e n
                      wrote on last edited by
                      #12

                      you mean like in javascript? :rolleyes:

                      "mostly watching the human race is like watching dogs watch tv ... they see the pictures move but the meaning escapes them"

                      1 Reply Last reply
                      0
                      • C Chris Maunder

                        Named and Optional Parameters. My life is complete.

                        cheers, Chris Maunder

                        CodeProject.com : C++ MVP

                        R Offline
                        R Offline
                        realJSOP
                        wrote on last edited by
                        #13

                        Optional parameters would be damn handy.

                        "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                        -----
                        "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                        B 1 Reply Last reply
                        0
                        • C Chris Maunder

                          Named and Optional Parameters. My life is complete.

                          cheers, Chris Maunder

                          CodeProject.com : C++ MVP

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

                          Chris Maunder wrote:

                          Named and Optional Parameters. My life is complete.

                          A w00t for that! Jesus Chris, what you doing for Code Projects 9th birthday? Feel like a leisurely flight to Sydney and a few hours of drinking over at old Mount Druitt? You can even bring your snowboard along, we could do with the shade.

                          Michael Martin Australia "I controlled my laughter and simple said "No,I am very busy,so I can't write any code for you". The moment they heard this all the smiling face turned into a sad looking face and one of them farted. So I had to leave the place as soon as possible." - Mr.Prakash One Fine Saturday. 24/04/2004

                          1 Reply Last reply
                          0
                          • C Chris Maunder

                            Named and Optional Parameters. My life is complete.

                            cheers, Chris Maunder

                            CodeProject.com : C++ MVP

                            D Offline
                            D Offline
                            Daniel Turini
                            wrote on last edited by
                            #15

                            Optional parameters are, imho, a bad thing, most of the time. It's a more structured variation of the "Accumulate and fire" antipattern. All too often, optional parameters are actually fields in a class that you are missing. And, if you're missing fields, you're missing methods. This, on the long run, means longer methods, repeated code, and harder to test. For quick and dirty code, it's a good tool, but not on larger projects.

                            I see dead pixels

                            S 1 Reply Last reply
                            0
                            • D Daniel Turini

                              Optional parameters are, imho, a bad thing, most of the time. It's a more structured variation of the "Accumulate and fire" antipattern. All too often, optional parameters are actually fields in a class that you are missing. And, if you're missing fields, you're missing methods. This, on the long run, means longer methods, repeated code, and harder to test. For quick and dirty code, it's a good tool, but not on larger projects.

                              I see dead pixels

                              S Offline
                              S Offline
                              Steve Hansen
                              wrote on last edited by
                              #16

                              You know how many string.Format methods there are? 5 You know how many have actual code (instead of calling another overload)? 1 And that is just one example, there are lots of overloads in the .NET frameworks that do nothing else. I don't see how you could handle this with extra fields...

                              1 Reply Last reply
                              0
                              • P Patrick Etc

                                Josh Smith wrote:

                                I'd love to live in a world where things like this[^] are unheard of.

                                Mmm, you'll be waiting an awfully long time. Every gun in the world could be destroyed and you'd still get random stabbings, baseball battings, getting run over by cars... the very nature of freedom is one of risk. That's the nature of reality as we currently inhabit it. Now, if we could invent an alternate reality where freedom and absolutely perfectly responsible behavior went hand in hand... but I digress.

                                J Offline
                                J Offline
                                Josh Smith
                                wrote on last edited by
                                #17

                                Patrick Etc. wrote:

                                Every gun in the world could be destroyed and you'd still get random stabbings, baseball battings, getting run over by cars... the very nature of freedom is one of risk.

                                True. So, with that logic, why not sell nuclear bombs at K-Mart? :)

                                :josh: Try Crack![^] Sleep is overrated.

                                P C 2 Replies Last reply
                                0
                                • J Josh Smith

                                  Chris Maunder wrote:

                                  Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

                                  Please try explaining that logic to the manufacturers and distributors of firearms. I'd love to live in a world where things like this[^] are unheard of.

                                  :josh: Try Crack![^] Sleep is overrated.

                                  B Offline
                                  B Offline
                                  Bassam Abdul Baki
                                  wrote on last edited by
                                  #18

                                  Must be in Pakistan or India. Sorry. Off to the Soapbox for me.


                                  Web - Blog - RSS - Math - BM

                                  1 Reply Last reply
                                  0
                                  • C Chris Maunder

                                    Named and Optional Parameters. My life is complete.

                                    cheers, Chris Maunder

                                    CodeProject.com : C++ MVP

                                    B Offline
                                    B Offline
                                    Bassam Abdul Baki
                                    wrote on last edited by
                                    #19

                                    I keep telling people that Microsoft's big plan is to change C++ to C# and VB to C# and make all their developers use the same language. Obviously, they'll have to dumb things down if they want all their developers to be called .NET Devs.


                                    Web - Blog - RSS - Math - BM

                                    1 Reply Last reply
                                    0
                                    • R realJSOP

                                      Optional parameters would be damn handy.

                                      "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997
                                      -----
                                      "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001

                                      B Offline
                                      B Offline
                                      Bassam Abdul Baki
                                      wrote on last edited by
                                      #20

                                      You VB closet hider you.


                                      Web - Blog - RSS - Math - BM

                                      R 1 Reply Last reply
                                      0
                                      • J Josh Smith

                                        Chris Maunder wrote:

                                        Nice idea, but I can just picture the code that is going to come from developers who don't understand when and where to use them. And not use them.

                                        Please try explaining that logic to the manufacturers and distributors of firearms. I'd love to live in a world where things like this[^] are unheard of.

                                        :josh: Try Crack![^] Sleep is overrated.

                                        R Offline
                                        R Offline
                                        rwinte
                                        wrote on last edited by
                                        #21

                                        I'd also love to live in a world where are current laws are enforced. Ex-convicts aren't allowed to own firearms, let alone a fully-automatic? If current laws were enforced, this guy would have been in jail for violating two current laws. I guess laws don't stop criminals from selling fully-automatic weapons on the black market to ex-cons.

                                        1 Reply Last reply
                                        0
                                        • C Chris Maunder

                                          Named and Optional Parameters. My life is complete.

                                          cheers, Chris Maunder

                                          CodeProject.com : C++ MVP

                                          W Offline
                                          W Offline
                                          Waylon Flinn
                                          wrote on last edited by
                                          #22

                                          I actually don't program in VB because I think it produces code that's harder to read. This makes it more difficult to understand and thus more difficult to maintain. This is especially true for projects of any complexity or size. I thought with C# that MS had finally learned an important lesson from Java: They need a clean language with a simple, clear syntax and straightforward semantics. It seems like their resolve has begun to waver. They've finally given in to the temptation to turn their most beautiful language to date into something more like it's "easy" sister. I am saddened by this turn of events.

                                          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