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.
  • G Grimolfr

    The Grand Negus wrote:

    Whichmakesalotofdifference

    Shouldn't that be WhichMakesALotOfDifference? Which, for most of us, is easier to read than what you wrote, highlighting the importance of coding style to maintainability. This in turn brings us back to the book in the topic, which is about style, not language.


    Grim

    (aka Toby)

    MCDBA, MCSD, MCP+SB

    Need a Second Life?[^]

    SELECT * FROM users WHERE clue IS NOT NULL GO

    (0 row(s) affected)

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

    Grimolfr wrote:

    Shouldn't that be WhichMakesALotOfDifference? Which, for most of us, is easier to read than what you wrote, highlighting the importance of coding style to maintainability. This in turn brings us back to the book in the topic, which is about style, not language.

    Certainly, "WhichMakesALotOfDifference" is easier to read than "Whichmakesalotofdifference". Why? Because the mixed case helps one separate the individual words. But "Which makes a lot of difference" does a better job still. Which brings us back, as you say, to the range of "styles" supported by a given programming language. All three alternatives are available in Plain English; only the first two are supported by traditional languages.

    1 Reply Last reply
    0
    • P Pravarakhya

      The Grand Negus wrote:

      But isn't "If the book is good" closer to what the programmer is thinking than "if (itbg_TF)" or "if (isBookGood)"?

      Again trying to plug "Plain English Programming" :zzz:

      Pravar My Image Processing Article! Rate it!! My Blog

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

      Hey, you're fouling up all the hard work we've been doing to keep him on topic and not plug his product. I'm giving his posts in this thread a 5 for staying on topic. And you ought to get hosed for provoking him back to the old ways. Just get over it. :zzz::zzz::zzz:

      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

        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. "itbg_TF" is not meaningful. On the other hand, something like "isBookGood" is meaningful and short enough to not cloud the comprehension of the reader. And remember, the reader is a programmer not a layman. 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).

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

        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 1 Reply Last reply
        0
        • T tgrt

          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. "itbg_TF" is not meaningful. On the other hand, something like "isBookGood" is meaningful and short enough to not cloud the comprehension of the reader. And remember, the reader is a programmer not a layman. 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).

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

          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 T 2 Replies 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.

            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
                                          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