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. You've got to be kidding me

You've got to be kidding me

Scheduled Pinned Locked Moved The Lounge
comquestion
25 Posts 15 Posters 3 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.
  • M Marc Clifton

    So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

    XPressTier

    Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

    People are just notoriously impossible. --DavidCrow

    C Offline
    C Offline
    Christian Graus
    wrote on last edited by
    #3

    Marc Clifton wrote:

    189K in one .cs file

    :omg:

    Marc Clifton wrote:

    And in that 189K, there is one single comment. The copyright notice/warning/threat.

    No XML comments AND no normal comment blocks ? I guess they wanted to get the source file under 200k and stripped them out ?

    Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog

    1 Reply Last reply
    0
    • M Marc Clifton

      So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

      XPressTier

      Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

      People are just notoriously impossible. --DavidCrow

      I Offline
      I Offline
      Igor Sukhov
      wrote on last edited by
      #4

      Is it your first time you see source code of a 'commercially successful' product?

      Best regards, ----------- Igor Sukhovhttp://sukhov.net

      -- modified at 23:14 Sunday 23rd July, 2006

      1 Reply Last reply
      0
      • M Marc Clifton

        So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

        XPressTier

        Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

        People are just notoriously impossible. --DavidCrow

        A Offline
        A Offline
        Anton Afanasyev
        wrote on last edited by
        #5

        :( .....And I liked their controls.

        rara avis in terris

        1 Reply Last reply
        0
        • M Marc Clifton

          So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

          XPressTier

          Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

          People are just notoriously impossible. --DavidCrow

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #6

          If the code is clear, well formatted and well written, who cares? I've found modifying third party libraries generally a bad idea anyway since it makes merging patches and new versions a nightmare.

          Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

          S P realJSOPR M J 5 Replies Last reply
          0
          • J Joe Woodbury

            If the code is clear, well formatted and well written, who cares? I've found modifying third party libraries generally a bad idea anyway since it makes merging patches and new versions a nightmare.

            Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

            S Offline
            S Offline
            Super Lloyd
            wrote on last edited by
            #7

            Absolutely! But if you have a hard to catch and very specific bug, it could be a good idea to submit the correction to them!

            1 Reply Last reply
            0
            • M Marc Clifton

              So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

              XPressTier

              Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

              People are just notoriously impossible. --DavidCrow

              P Offline
              P Offline
              peterchen
              wrote on last edited by
              #8

              Without comments, it compiles faster. Have you ever looked at STL sources? :rolleyes:


              Some of us walk the memory lane, others plummet into a rabbit hole
              Tree in C# || Fold With Us! || sighist

              J 1 Reply Last reply
              0
              • J Joe Woodbury

                If the code is clear, well formatted and well written, who cares? I've found modifying third party libraries generally a bad idea anyway since it makes merging patches and new versions a nightmare.

                Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

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

                Joe Woodbury wrote:

                I've found modifying third party libraries generally a bad idea anyway since it makes merging patches and new versions a nightmare.

                Absolutely - but sometimes it's your only choice


                Some of us walk the memory lane, others plummet into a rabbit hole
                Tree in C# || Fold With Us! || sighist

                1 Reply Last reply
                0
                • M Marc Clifton

                  So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

                  XPressTier

                  Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

                  People are just notoriously impossible. --DavidCrow

                  W Offline
                  W Offline
                  wout de zeeuw
                  wrote on last edited by
                  #10

                  Sheesh, I thought I was overdoing it, having one class of 7k lines. But I could justify it to myself because the class is pretty straightforward, with just lots of almost repetitive methods. Guess I shouldn't be close to worrying! :laugh:

                  Wout

                  1 Reply Last reply
                  0
                  • M Marc Clifton

                    So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

                    XPressTier

                    Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

                    People are just notoriously impossible. --DavidCrow

                    T Offline
                    T Offline
                    ThatsAlok
                    wrote on last edited by
                    #11

                    Marc Clifton wrote:

                    I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED.

                    you are in grave danger! happy coding...when i have joined my company a year back... i have to go through over 4 lakhs line of c++ code with no design document.. no inline or un useful comment.. :(.. you can understand your tention :)

                    "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

                    cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You

                    1 Reply Last reply
                    0
                    • M Marc Clifton

                      So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

                      XPressTier

                      Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

                      People are just notoriously impossible. --DavidCrow

                      R Offline
                      R Offline
                      Rocky Moore
                      wrote on last edited by
                      #12

                      Probably due to the code generator they use to convert from Java :)

                      Rocky <>< Latest Post: ASP.NET HttpException - Cannot use leading "..".. Blog: www.RockyMoore.com/TheCoder/[^]

                      1 Reply Last reply
                      0
                      • J Joe Woodbury

                        If the code is clear, well formatted and well written, who cares? I've found modifying third party libraries generally a bad idea anyway since it makes merging patches and new versions a nightmare.

                        Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

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

                        Joe Woodbury wrote:

                        If the code is clear, well formatted and well written, who cares?

                        There's NO excuse for not commenting your code.

                        "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

                        1 Reply Last reply
                        0
                        • J Joe Woodbury

                          If the code is clear, well formatted and well written, who cares? I've found modifying third party libraries generally a bad idea anyway since it makes merging patches and new versions a nightmare.

                          Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                          M Offline
                          M Offline
                          Marc Clifton
                          wrote on last edited by
                          #14

                          Joe Woodbury wrote:

                          well formatted

                          It uses the style where you put the opening brace on the same line as the method, if, for, while, etc. Which is a style I threw out 20 years ago.

                          Joe Woodbury wrote:

                          well written

                          I'd say no. There methods with multiple return points. No assertions, no tests on parameters in public methods (take your pick on which philosophy you like, but I would expect at least one of these techniques to be utilized). There's probably more, but not worth investigating. Marc

                          XPressTier

                          Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

                          People are just notoriously impossible. --DavidCrow

                          1 Reply Last reply
                          0
                          • J Joe Woodbury

                            If the code is clear, well formatted and well written, who cares? I've found modifying third party libraries generally a bad idea anyway since it makes merging patches and new versions a nightmare.

                            Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

                            J Offline
                            J Offline
                            James R Twine
                            wrote on last edited by
                            #15

                            Joe Woodbury wrote:

                            If the code is clear, well formatted and well written, who cares?

                            Clear and well formatted according to whose coding standards and experience?  For example, I have seen tons of older code from older Unix side, "Maddog-looking" developers with math degrees that looks completely clear and well written to them, but looks like pages of complex mathematical formulas to me due to the formatting and terse identifier names...!    Also, you could have clear, well formatted, and "well written" code that is absolutely incorrect and buggy as hell.  Without comments, how do you know what the code is supposed to be doing?  Simply looking at raw code just tells you what the code is doing and how it is doing it, but not what it is supposed to be doing.    Also, not everyone understands that iter may be a prefix for an STL iterator, and it may not be clear if the increment operator being applied in a particular situation is supposed to be prefix, or if it is supposed to be postfix.  Comments, when properly used to explain and/or describe the intent of the code, allow things like this to be spotted quickly and easily.    Of course, this assumes that the comments are correct and written in accordance with whatever language is common for the target audience, but that is another problem in itself! :) :) Note: John "Maddog" Hall is a well-known Linux evangelist who used to work near me at DEC.  I mean no offense to him, I have lots of respect for him, but if you have ever met him, you know what I mean by "Maddog-looking".    Peace!

                            -=- James


                            If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                            Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                            DeleteFXPFiles & CheckFavorites (Please rate this post!)

                            1 Reply Last reply
                            0
                            • P peterchen

                              Without comments, it compiles faster. Have you ever looked at STL sources? :rolleyes:


                              Some of us walk the memory lane, others plummet into a rabbit hole
                              Tree in C# || Fold With Us! || sighist

                              J Offline
                              J Offline
                              James R Twine
                              wrote on last edited by
                              #16

                              No, it pre-processes faster! :) :laugh: :-D    (Yes, I know that the two normally go hand-in-hand.)    Peace!

                              -=- James


                              If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                              Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                              DeleteFXPFiles & CheckFavorites (Please rate this post!)

                              W P 2 Replies Last reply
                              0
                              • J James R Twine

                                No, it pre-processes faster! :) :laugh: :-D    (Yes, I know that the two normally go hand-in-hand.)    Peace!

                                -=- James


                                If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                                Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                                DeleteFXPFiles & CheckFavorites (Please rate this post!)

                                W Offline
                                W Offline
                                Warren Stevens
                                wrote on last edited by
                                #17

                                James R. Twine wrote:

                                No, it pre-processes faster!

                                There is no pre-processor in C# But not having comments will make code (any language) compile or pre-process faster (i.e. less characters to look at, smaller files) Not that that is a good reason to not add comments...

                                J 1 Reply Last reply
                                0
                                • M Marc Clifton

                                  So, my client purchased the DevExpress "experience" thing with source. So for giggles, I pick the TreeList control to look at. 189K in one .cs file. That's the first warning sign. And in that 189K, there is one single comment. The copyright notice/warning/threat. You're kidding me, right? I mean, this isn't the same code that they maintain inhouse, right? Please tell me it ain't so!!! They strip out all the comments when they ship the code, right? Christ. And people say open source is bad. I'll tell you something, open source is WAY BETTER than 189K in one .cs file that is TOTALLY UNDOCUMENTED. :omg: :wtf: X| :sigh: Marc

                                  XPressTier

                                  Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

                                  People are just notoriously impossible. --DavidCrow

                                  V Offline
                                  V Offline
                                  Varindir Rajesh Mahdihar
                                  wrote on last edited by
                                  #18

                                  switch to opensource and linux then.

                                  M 1 Reply Last reply
                                  0
                                  • W Warren Stevens

                                    James R. Twine wrote:

                                    No, it pre-processes faster!

                                    There is no pre-processor in C# But not having comments will make code (any language) compile or pre-process faster (i.e. less characters to look at, smaller files) Not that that is a good reason to not add comments...

                                    J Offline
                                    J Offline
                                    James R Twine
                                    wrote on last edited by
                                    #19

                                    Yes, I was referring to C/C++-kind of setups where a seperate preprocessor step is used.    And yes, I know that the lexing of the contents of a file is faster without ignored content (like comments or whitespace for that matter).  (Actually, that is an interesting thought - comments are used by Intellisense/Codesense-type features...)    Peace!

                                    -=- James


                                    If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                                    Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                                    DeleteFXPFiles & CheckFavorites (Please rate this post!)

                                    1 Reply Last reply
                                    0
                                    • V Varindir Rajesh Mahdihar

                                      switch to opensource and linux then.

                                      M Offline
                                      M Offline
                                      Marc Clifton
                                      wrote on last edited by
                                      #20

                                      Varindir Rajesh Mahdihar wrote:

                                      switch to opensource and linux then.

                                      The point is, I expected better source code quality from a toolkit one spends over a thousand of dollars on, per developer. I expected to learn neato things. As usual, my expectations lead to disappointments. Marc

                                      XPressTier

                                      Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson
                                      People are just notoriously impossible. --DavidCrow
                                      There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer

                                      R 1 Reply Last reply
                                      0
                                      • J James R Twine

                                        No, it pre-processes faster! :) :laugh: :-D    (Yes, I know that the two normally go hand-in-hand.)    Peace!

                                        -=- James


                                        If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
                                        Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
                                        DeleteFXPFiles & CheckFavorites (Please rate this post!)

                                        P Offline
                                        P Offline
                                        peterchen
                                        wrote on last edited by
                                        #21

                                        :doh: you are right. 5 :)


                                        Some of us walk the memory lane, others plummet into a rabbit hole
                                        Tree in C# || Fold With Us! || sighist

                                        1 Reply Last reply
                                        0
                                        • M Marc Clifton

                                          Varindir Rajesh Mahdihar wrote:

                                          switch to opensource and linux then.

                                          The point is, I expected better source code quality from a toolkit one spends over a thousand of dollars on, per developer. I expected to learn neato things. As usual, my expectations lead to disappointments. Marc

                                          XPressTier

                                          Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson
                                          People are just notoriously impossible. --DavidCrow
                                          There's NO excuse for not commenting your code. -- John Simmons / outlaw programmer

                                          R Offline
                                          R Offline
                                          Roger Alsing 0
                                          wrote on last edited by
                                          #22

                                          Now come one it cant be that bad, show the code to us ;) :P

                                          M 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