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. Code Complete, Second Edition

Code Complete, Second Edition

Scheduled Pinned Locked Moved The Lounge
helpquestiondiscussionlearning
83 Posts 38 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.
  • 1 123 0

    tgrt wrote:

    Using "Is this book good" is just too long. And when you're dealing with allot of code or a complex algorithm than that is not good.

    But we have experience both ways; you do not. We've used Plain English (and traditional languages) to produce significant programs (compilers, page editors, etc); you haven't. So we know that what you say is not true: natural language programming does work, and works well with "allot [sic] of code" and with "complex algorithms".

    tgrt wrote:

    I'm really tired of you pimping your natural language compiler do-hicky. Every once in awhile, maybe, but does every post you write have to mention it (or blatantly try to hook people into it)? Just put a friggin' link to your site in your signature and let the curious click. Stop trying to shove your religion down our throats (for you it is a religion).

    It's a programming site. I'm discussing programming issues with programmers. The fact that our views are broad enough and deep enough to apply to a wide variety of programming topics is a point in their favor. In light of the fact that your inexperience with natural language programming led you to the wrong conclusions above, perhaps you'd do better to quietly consider our views rather than loudly criticize that which you do not understand.

    C Offline
    C Offline
    Chris S Kaiser
    wrote on last edited by
    #50

    And thank you for staying on topic. Sounds good. I may not agree with the verbosity of the spaced variable name, but the discourse was on topic.

    What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

    1 1 Reply Last reply
    0
    • J Jerry Hammond

      Reading your argument about programming languages is like reading a sophomoric argument that the bellybutton is useless because it a circle and not a square. It's logical in a logic 101 kind of way, but none the less your arguments reveals a shallow understanding of why the bellybutton is no longer useful, or in this case how programming structure. Further, your incorrect assumptions and false presumptions bring to light your fallow understanding of programming and your unwillingness to explore, learn, and listen to bedrock concepts of programming languages. In light of all this it becomes more difficult to listen to and take seriously anything you have to say in your advocating of your "english language" programming paradigm. Your advocacy simply doesn't wash in light of your constant miscues...

      “Some have an idea that the reason we in this country discard things so readily is because we have so much. The facts are exactly opposite - the reason we have so much is simply because we discard things so readily. We replace the old in return for something that will serve us better.”--Alfred P. Sloan

      C Offline
      C Offline
      Chris S Kaiser
      wrote on last edited by
      #51

      Jerry Hammond wrote:

      Some have an idea that the reason we in this country discard things so readily is because we have so much.

      Or its because companies keep making disposable products. Sorry, couldn't resist. :laugh:

      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

      1 Reply Last reply
      0
      • C Chris S Kaiser

        And thank you for staying on topic. Sounds good. I may not agree with the verbosity of the spaced variable name, but the discourse was on topic.

        What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

        1 Offline
        1 Offline
        123 0
        wrote on last edited by
        #52

        Chris S Kaiser wrote:

        I may not agree with the verbosity of the spaced variable name

        I think you meant "clarity" where you said "verbosity". See here[^]. Spaced variable names are not more verbose (they don't add words), they're simply easier to read.

        C 1 Reply Last reply
        0
        • 1 123 0

          Captain See Sharp wrote:

          I want to really learn something that will help me be a better architect of my software and a better coder also. What do you think?

          Try this little book: "Programming Pearls" by Jon Louis Bentley. But do as he says, not as he does. You might also try "Project Oberon - The Design of an Operating System and Compiler" by N. Wirth and J. Gutknecht which is available free as a PDF here[^]. And, of course, you can always... well, you know.

          C Offline
          C Offline
          Chris S Kaiser
          wrote on last edited by
          #53

          You should put your PE stuff in your signature. And include:

          The Grand Negus wrote:

          And, of course, you can always... well, you know.

          That would be good.

          What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

          1 1 Reply Last reply
          0
          • L Lost User

            I'm thinking about buying the book Code Complete, Second Edition. How many of you have actually read it and how good was it. I know there are things like naming your booleans descriptively like isThisBookGood or buyThisBook instead of itbg_TF. Is there more to this book than that? I want to really learn something that will help me be a better architect of my software and a better coder also. What do you think? Is The Pragmatic Programmer: From Journeyman to Master good also?

            █▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██

            V Offline
            V Offline
            Victor Ionescu
            wrote on last edited by
            #54

            I highly recommend this book. I find it extremely useful for intermed to advanced programmers. The best book on programming I've ever read.

            1 Reply Last reply
            0
            • 1 123 0

              Chris S Kaiser wrote:

              I may not agree with the verbosity of the spaced variable name

              I think you meant "clarity" where you said "verbosity". See here[^]. Spaced variable names are not more verbose (they don't add words), they're simply easier to read.

              C Offline
              C Offline
              Chris S Kaiser
              wrote on last edited by
              #55

              Nah I meant verbosity. A shortened var like isBookGood is much more clear than "if this book is good". And that's more verbose. I take the middle road with regard to var names. Just enough to communicate what it is. But enough to communicate what it is. I'm not writing a book.

              What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

              1 Reply Last reply
              0
              • 1 123 0

                tgrt wrote:

                Using "Is this book good" is just too long. And when you're dealing with allot of code or a complex algorithm than that is not good.

                But we have experience both ways; you do not. We've used Plain English (and traditional languages) to produce significant programs (compilers, page editors, etc); you haven't. So we know that what you say is not true: natural language programming does work, and works well with "allot [sic] of code" and with "complex algorithms".

                tgrt wrote:

                I'm really tired of you pimping your natural language compiler do-hicky. Every once in awhile, maybe, but does every post you write have to mention it (or blatantly try to hook people into it)? Just put a friggin' link to your site in your signature and let the curious click. Stop trying to shove your religion down our throats (for you it is a religion).

                It's a programming site. I'm discussing programming issues with programmers. The fact that our views are broad enough and deep enough to apply to a wide variety of programming topics is a point in their favor. In light of the fact that your inexperience with natural language programming led you to the wrong conclusions above, perhaps you'd do better to quietly consider our views rather than loudly criticize that which you do not understand.

                T Offline
                T Offline
                tgrt
                wrote on last edited by
                #56

                No, you're spamming and you know it.

                1 1 Reply Last reply
                0
                • C Chris S Kaiser

                  tgrt wrote:

                  I'm really tired of you pimping your natural language compiler do-hicky. Every once in awhile, maybe, but does every post you write have to mention it (or blatantly try to hook people into it)? Just put a friggin' link to your site in your signature and let the curious click. Stop trying to shove your religion down our throats (for you it is a religion).

                  While this one might have been subtly veiled, it was on topic and he didn't mention PE once. But you guys did. Why don't you just give it a rest? :zzz::zzz:

                  What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                  T Offline
                  T Offline
                  tgrt
                  wrote on last edited by
                  #57

                  Chris S Kaiser wrote:

                  Why don't you just give it a rest?

                  Why? First, I just picked it up. But, I continually see his posts either leading to if not blatantly talking about his stupid natural language compiler and how it can solve all of the world's problems. We're not talking about a post or two a month. This is a continual, habitual thing.

                  C 1 Reply Last reply
                  0
                  • C Chris S Kaiser

                    You should put your PE stuff in your signature. And include:

                    The Grand Negus wrote:

                    And, of course, you can always... well, you know.

                    That would be good.

                    What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                    1 Offline
                    1 Offline
                    123 0
                    wrote on last edited by
                    #58

                    Chris S Kaiser wrote:

                    You should put your PE stuff in your signature.

                    As I've said before, a link labeled "Plain English Programming" in my signature makes every one of my posts, on any and every topic, a free advertisement for our product; and I have been told, in no uncertain terms, that "free advertising" is frowned upon on this site. Besides, it clutters up the posts and makes them harder to read - especially when they're on a different topic. I'd prefer, from a design perspective, if the whole signature feature were removed from the site. I think what people mean when they make this suggestion is "Quiet down. We'll compromise, unofficially, with you. We'll give you a bit of free advertising if you stop discussing the differences, benefits, and opportunities an approach like yours offers." But we didn't come here for "free advertising"; we came here specifically to discuss the differences, benefits, and opportunities that an approach like ours offers.

                    C 1 Reply Last reply
                    0
                    • T tgrt

                      Chris S Kaiser wrote:

                      Why don't you just give it a rest?

                      Why? First, I just picked it up. But, I continually see his posts either leading to if not blatantly talking about his stupid natural language compiler and how it can solve all of the world's problems. We're not talking about a post or two a month. This is a continual, habitual thing.

                      C Offline
                      C Offline
                      Chris S Kaiser
                      wrote on last edited by
                      #59

                      Because in this case it was actually on topic, and he didn't mention it. You did. So you were the problem in this case and not him. You have to reward good behavior if you're gonna complain about the bad behavior. Not provoke continued bad behavior.

                      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                      S 1 Reply Last reply
                      0
                      • 1 123 0

                        Chris S Kaiser wrote:

                        You should put your PE stuff in your signature.

                        As I've said before, a link labeled "Plain English Programming" in my signature makes every one of my posts, on any and every topic, a free advertisement for our product; and I have been told, in no uncertain terms, that "free advertising" is frowned upon on this site. Besides, it clutters up the posts and makes them harder to read - especially when they're on a different topic. I'd prefer, from a design perspective, if the whole signature feature were removed from the site. I think what people mean when they make this suggestion is "Quiet down. We'll compromise, unofficially, with you. We'll give you a bit of free advertising if you stop discussing the differences, benefits, and opportunities an approach like yours offers." But we didn't come here for "free advertising"; we came here specifically to discuss the differences, benefits, and opportunities that an approach like ours offers.

                        C Offline
                        C Offline
                        Chris S Kaiser
                        wrote on last edited by
                        #60

                        The Grand Negus wrote:

                        As I've said before, a link labeled "Plain English Programming" in my signature makes every one of my posts, on any and every topic, a free advertisement for our product; and I have been told, in no uncertain terms, that "free advertising" is frowned upon on this site.

                        You are nitpicking again. Disecting language which really obscures truth. The truth is its allowed in your sig. That is acceptable. Its like seeing it on your shirt. Its when you want to talk about it all the time that it becomes promoting. Spam. In your sig, is perfectly acceptable. To argue this point is to just be difficult. And we aren't making a special case with you. Links in the sig have always been acceptable. You went outside the bounds instead of staying bounds by not having it in your sig, and making every topic about your product. Come on, you can't be that belligerent can you?

                        What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                        1 Reply Last reply
                        0
                        • T tgrt

                          No, you're spamming and you know it.

                          1 Offline
                          1 Offline
                          123 0
                          wrote on last edited by
                          #61

                          tgrt wrote:

                          No, you're spamming and you know it.

                          No, I'm not, and no, I don't know it. This morning my inbox had an unsolicited message with the subject "U.S., Iraqi forces battle insurgents" whose content was an encouragement to buy a particular penny stock: that's spam. It was unsolicited, the title was misleading, and I'm not interested in penny stocks. My posts, on the other hand, are solicited, not misleading, and (should be) of interest to the original poster. In this thread, for example, Captain See Sharp publicly asked for advice regarding programming practices, and used data naming techniques as an example. My post was therefore solicited since he didn't exclude me from the "public" he addressed; was not misleading since my reply was on topic; and should have been of interest to him because it presented an alternative, interesting, and logically-supported view of the very topic he raised. That's not spam in any sense of the word; it's discussion.

                          1 Reply Last reply
                          0
                          • L Lost User

                            I'm thinking about buying the book Code Complete, Second Edition. How many of you have actually read it and how good was it. I know there are things like naming your booleans descriptively like isThisBookGood or buyThisBook instead of itbg_TF. Is there more to this book than that? I want to really learn something that will help me be a better architect of my software and a better coder also. What do you think? Is The Pragmatic Programmer: From Journeyman to Master good also?

                            █▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██

                            J Offline
                            J Offline
                            JHubSharp
                            wrote on last edited by
                            #62

                            I've got mixed feelings on the book. I do think there's a lot of opinion treated as fact (though there's also a lot of opinions supported by hard data). Ultimately I think it depends on what you want to read. If you're looking for a book on high-level design, I'd recommend something else. If you're after best practices of actually typing out the code, then this book is definitely one to read. Either way, it's worth skimming through as anyone can take something useful from it. Plus, you'll probably get points when you mention reading it. ;)

                            1 Reply Last reply
                            0
                            • 1 123 0

                              Stephen Hewitt wrote:

                              Assuming you're not being sarcastic (which I admit I’m having trouble discerning, I'm leaning towards sarcastic however), this seems a little inconsistent with your philosophy: to be advocating English language programming but rejecting descriptively named variables is a contradiction to say the least.

                              Well, it seems to me that someone who prefers "isBookGood" to "itbg_TF" should also prefer "If the book is good" to "if (itbg_TF)" or even "if (isBookGood)". Clearly, "isBookGood" is closer to the thought in the programmer's mind than "itbg_TF" which is less readable and drags in all sorts of implementation issues. But isn't "If the book is good" closer to what the programmer is thinking than "if (itbg_TF)" or "if (isBookGood)"?

                              D Offline
                              D Offline
                              destynova
                              wrote on last edited by
                              #63

                              The Grand Negus wrote:

                              Well, it seems to me that someone who prefers "isBookGood" to "itbg_TF" should also prefer "If the book is good" to "if (itbg_TF)" or even "if (isBookGood)". Clearly, "isBookGood" is closer to the thought in the programmer's mind than "itbg_TF" which is less readable and drags in all sorts of implementation issues. But isn't "If the book is good" closer to what the programmer is thinking than "if (itbg_TF)" or "if (isBookGood)"?

                              Nonsense. "isBookGood" is, to my eye, the best compromise between descriptiveness and unwieldiness given that the programming language's syntax and semantic rules are assumed to be constant. Someone says X = 1, another suggests X = 1.5 and you respond with "well if you're going THAT way, why not have X = 9999? That's clearly what you want".

                              1 1 Reply Last reply
                              0
                              • D destynova

                                The Grand Negus wrote:

                                Well, it seems to me that someone who prefers "isBookGood" to "itbg_TF" should also prefer "If the book is good" to "if (itbg_TF)" or even "if (isBookGood)". Clearly, "isBookGood" is closer to the thought in the programmer's mind than "itbg_TF" which is less readable and drags in all sorts of implementation issues. But isn't "If the book is good" closer to what the programmer is thinking than "if (itbg_TF)" or "if (isBookGood)"?

                                Nonsense. "isBookGood" is, to my eye, the best compromise between descriptiveness and unwieldiness given that the programming language's syntax and semantic rules are assumed to be constant. Someone says X = 1, another suggests X = 1.5 and you respond with "well if you're going THAT way, why not have X = 9999? That's clearly what you want".

                                1 Offline
                                1 Offline
                                123 0
                                wrote on last edited by
                                #64

                                destynova wrote:

                                givenThatTheProgrammingLanguagesSyntaxAndSemanticRulesAreAssumedToBeConstant...

                                ...not to mention unnaturally and unnecessarily restrictive.

                                D 1 Reply Last reply
                                0
                                • 1 123 0

                                  destynova wrote:

                                  givenThatTheProgrammingLanguagesSyntaxAndSemanticRulesAreAssumedToBeConstant...

                                  ...not to mention unnaturally and unnecessarily restrictive.

                                  D Offline
                                  D Offline
                                  destynova
                                  wrote on last edited by
                                  #65

                                  The Grand Negus wrote:

                                  ...not to mention unnecessarily and unnaturally restrictive.

                                  I don't think so. I find the precise simplicity and lack of ambiguity very useful in specifying problems and solutions. 'Natural' languages, on the other hand, are so full of ambiguities and context/assumption-sensitive that programming might be very difficult indeed. With the programming languages we use nowadays, the rules are simple and enumerable - not only is it easy to write parsers and analysers to form compilers for those languages, it's also easy to understand the flow of what should happen and deterministically understand what you're doing.

                                  1 1 Reply Last reply
                                  0
                                  • D destynova

                                    The Grand Negus wrote:

                                    ...not to mention unnecessarily and unnaturally restrictive.

                                    I don't think so. I find the precise simplicity and lack of ambiguity very useful in specifying problems and solutions. 'Natural' languages, on the other hand, are so full of ambiguities and context/assumption-sensitive that programming might be very difficult indeed. With the programming languages we use nowadays, the rules are simple and enumerable - not only is it easy to write parsers and analysers to form compilers for those languages, it's also easy to understand the flow of what should happen and deterministically understand what you're doing.

                                    1 Offline
                                    1 Offline
                                    123 0
                                    wrote on last edited by
                                    #66

                                    destynova wrote:

                                    'Natural' languages, on the other hand, are so full of ambiguities and context/assumption-sensitive that programming might be very difficult indeed.

                                    Might be, but isn't. We know because we've actually done it both ways.

                                    destynova wrote:

                                    With the programming languages we use nowadays, the rules are simple and enumerable - not only is it easy to write parsers and analysers to form compilers for those languages, it's also easy to understand the flow of what should happen and deterministically understand what you're doing.

                                    Same as above. Having written a wide variety of programs both ways, we can categorically state from experience that for a large number problem areas - including compiler writing - natural language syntax makes the programmer's job easier and his resulting code clearer.

                                    1 Reply Last reply
                                    0
                                    • C Chris S Kaiser

                                      Because in this case it was actually on topic, and he didn't mention it. You did. So you were the problem in this case and not him. You have to reward good behavior if you're gonna complain about the bad behavior. Not provoke continued bad behavior.

                                      What's in a sig? This statement is false. Build a bridge and get over it. ~ Chris Maunder

                                      S Offline
                                      S Offline
                                      Stephen Hewitt
                                      wrote on last edited by
                                      #67

                                      Oh come on! The implication was clear.

                                      Steve

                                      1 Reply Last reply
                                      0
                                      • S S Douglas

                                        Joe Woodbury wrote:

                                        I found it very pompous and dogmatic

                                        Don't hold back, tell us how you really fell. :)

                                        Joe Woodbury wrote:

                                        As I've said in past critiques of the book,

                                        Link? I would be interested in your take on it, I believe yours is about the only voice of dissension when it comes to Code Complete.


                                        I'd love to help, but unfortunatley I have prior commitments monitoring the length of my grass. :Andrew Bleakley:

                                        S Offline
                                        S Offline
                                        stephen hazel
                                        wrote on last edited by
                                        #68

                                        I didn't really get much (new info) out of the book... Great stuff in there for a newbie developer, but if you've been a dev for 3 years, you've run into all the tips before. I read allllll the way through the thing, hoping to come up with somethin new. But, well, I should have skimmed it. Some of the humor was enjoyable, but, man... LONG read... ...Steve

                                        1 Reply Last reply
                                        0
                                        • L Lost User

                                          I'm thinking about buying the book Code Complete, Second Edition. How many of you have actually read it and how good was it. I know there are things like naming your booleans descriptively like isThisBookGood or buyThisBook instead of itbg_TF. Is there more to this book than that? I want to really learn something that will help me be a better architect of my software and a better coder also. What do you think? Is The Pragmatic Programmer: From Journeyman to Master good also?

                                          █▒▒▒▒▒██▒█▒██ █▒█████▒▒▒▒▒█ █▒██████▒█▒██ █▒█████▒▒▒▒▒█ █▒▒▒▒▒██▒█▒██

                                          D Offline
                                          D Offline
                                          db_cooper1950
                                          wrote on last edited by
                                          #69

                                          I do not know if the book is an overall "I really want it...", book but at Amazon right now it is going at the following: Price: $27.49 & this item ships for FREE with Super Saver Shipping. at: http://www.amazon.com/Code-Complete-Second-Steve-McConnell/dp/0735619670[^] I hope thta this information is in some way helpful.

                                          DB_Cooper1950 "Life is like a box of..."

                                          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