This book is considered a classic but the latest edition was published almost 20 years ago. Is it still relevant? Does it still succeed in its stated goal of bridging the gap between research and commercial software development?
It's good advise and has helped me a lot over my 32 years of writing code (you pretty much had to pseudocode when I started as assembly isn't exactly expressive, especially for a young kid).
in nearly all my 100- and 200-level programming classes 20+ years ago, we had to hand-in a pseudocode for our assignment before our assignment
It didn't have to be completely correct, but it did need to be directionally correct (or, at least illustrate a way of solving the problem, even if we ended-up doing it differently)
I poo-pooed those, and would only create my pseudocode after writing my program - I'd already "been programming" for close to a decade, so why go through the 'pointless exercise' (as I thought at the time) of designing a solution only to have to implement the solution?!
Then I left those intro classes and we started getting more-interesting assignments
All of a sudden, having a plan - even a very simple block diagram, or set of bullet points, etc - became vital to solving the problem
I don't know that I'd tell someone to fully pseudocode their solution before implementing something today ... but blocking it out, getting the high- and medium-level logic/parts drawn-out/written-down is most definitely vital to having a chance at a successful implementation
Interesting. I always do that when programming something non trivial. I found it very helpful to sort the threads and clear my thoughts and capture what I don't know but I thought I knew.
I then keep the pseudo code as comments in code and go from there.
But I don't know others are doing the same. I'm a pretty mediocre programmer so I have to do it a lot.
Expressive languages help, but for anything larger than a homework problem I would still sketch up the system elements and how they communicate on a piece of paper, then write the implementation in a high level pseudocode. My 2c.
I do it regularly but it's always invisible if all you see is the resulting code.
I do it to structure my code, but I remove the comments as I implement it because I try to make it obvious in the code what's being done. You know, regular good programming, pick good names, keep the code reasonably short, add comments when needed, etc.
The same way you won't see the detailed outline of a writing once it has been written. Yet, the author likely started with an outline.
I mean if it's just a few lines, a change to existing code, etc, you can jump straight in with actual code.
But if it's a new object/module etc, start by writing some function names, and some rough structure within them, etc. All in IDE/editor. And I wouldn't call it pseudo-code, just a rough outline.
Sometimes, for some confusing piece of functionality that I am developing, I would write pseudocode in a comment first to see whether it makes sense; and would use it as an outline for implementing the feature. I've found it useful. I've never read Code Complete though :-)
I liked /Rapid Development/ too. It misses out on things like the Unix philosophy and worse-is-better, which are sort of previous incarnations of the agile/lean stuff that is very popular today.
I would assume the author just hadn't had much exposure to those ideas so they weren't even considered for inclusion. (Besides, they tend to not be researched so actively because they don't leave as many paper trails.)
Other than that gripe, though, I learned a lot from it!
McConnell has never really been a fan of “purist” Agile.
Construx eventually developed a curriculum around a fairly “corporate-friendly” version of Scrum, that I never found that appealing.
The way I write code, these days, makes Agile look like Orthodox religion.
However, it’s highly dependent upon me, being who I am, and a lifetime of habit and personal process. It would probably not scale well.
McConnell has always been about introducing process, metrics, and rigor to software development. I don’t think he’d be thrilled with the way I do stuff.
I think anything that makes you take a new perspective on (software) product development and reflect on your experiences and pay attention to patterns of outcomes is going to make you a better developer.
Even if the book would be hopelessly outdated, that's usually informative too. It tells you which specific parts of the industry change slowly and which evolve rapidly. That will help you figure out where we are headed and what you can count on will be roughly the same for the next 25 years of your career.
It's very hard to rank books precisely, because how much people get out of them also depends on past experiences.
If you already have the book or can get free access to it -- why not try? Even just the preview on Amazon is usually good to give a sense of what it is like. Read a few chapters and see if it's something you think you want to continue with.
But what's important is not that you pick The Right Book now, it's that you pick up another book when you are finished with this one.
It's absolutely still relevant, but it might not be as dominant as it was when first released. By that I mean that the landscape of software development has changed significantly with much more community-driven ecosystems (no longer ~just CPAN) and much more programming is figuring out how to think about choosing the right off-the-shelf architectural components.
So, it's relevant and still excellent in guiding you how to write and manage code, but make sure you don't let it lead you to a conclusion that you should write your own code for all aspects of your system.
I'd say it's still a good resource to have; it's not just about programming but about project management, planning, etc.
I'd take their recommendations about code style and documentation and whatnot with a grain of salt though, languages, tools and styles have changed since then. Don't skip them, but don't adhere to them religiously; add them to your arsenal of knowledge.
It's also a bit of a slog to read front to back, so consider picking one chapter at a time or only looking up a subject you're curious about; I'd consider it more of a reference.
It's in the same group as Pragmatic Programmer, Refactoring, Patterns of Application Architecture and the Gang-of-Four book for me. Still recommended for junior programmers as they're all teaching the core of good design.
However seeing as the better frameworks/languages/IDEs have internalised a lot of the learnings and that the specific conventions may be outdated - so just follow the recommendations for your platform/framework.
I would still recommend it. Well actually I would recommend Code Complete II as it is the be updated version. I met Steve McConnell in person and have read most of his books. I've found them to be gems.
There is a lot of value in reading different things even if you aren't sure about the value to see what you pick up. Sometimes you will learn something or see a situation you never would have expected.
I work as a data engineer and I always wanted to enforce some rules for the team:
1. DAGs must have a section that describes what it does and have link to jira ticket and documentation if applicable. Stakeholders should be named too.
2. DAGs must have a created by and modified by section with a summary of what they did. Yes we can track changes in GitHub but if we do a lift and shift upgrade of Composer instances all trackable changes are gone.
3. Comment the sql queries wherever hacky. There is no way I know why the original author put up some conversions in the code.
4. Every etl should check source data before and check loaded data after. Put up some test cases there. For critical processes, failure should always trigger emails and slack message sent to at least two places: DE team and related stakeholder team. God there are SO MANY cases we can get rid the trouble to pick and clean the data because we did not reject obviously wrong source data.
5. Think about potential errors. If you have to SUM a column of large integers, watch for overflows. If your column is nullable, watch for unexpected nulls. Such and such.
"Clean code" does change a lot based on IDEs and programming language. For example, we don't use variable names like mIntScore anymore. And we're finding that Javadocs might add little value and go out of date.
Architecture can change quite a bit too - all the async webs make things difficult. Most of the bug reports we get on mobile are not test coverable. e.g. some jankiness when going back to a page, or something like liking a post three levels down and finding that your like was not registered when you go back towards the home screen. We had some bugs like an OS modding text animations, making the text invisible in very niche situations. Then you have combos of ltr and rtl languages and layouts. Adding test coverage can be 4x the effort of writing the code once with no tests, not to mention the architecture for test support making things exponentially more complex.
Maybe we have to rethink what complete code really means.
The "Good practices^TM" is a giant bag of mix of good practices, "clean coders", software evangelists and architect's fantasies being collected over various technologies
Agree, but sometimes looking for recent books with the same underlying message is better than going through the classic.
I read the mythical man month recently and the examples often involving OS/360 development are brutally outdated. I couldn't relate and I had to force myself to finish.
I find it surprising that you thought Mythical Man Month was "brutally outdated"
Bentley's Programming Pearls, by that standard, is also "brutally outdated" - but the point of the book is not "how do I make this work in early 1980s technology"
The point of PP is "ask the right question"
The point of MMM is "add resources when necessary; be brutally minimalistic about how many resources are added"
The acronyms and names are basically irrelevant to the point, though :)
If anything, having "outdated" acronyms and names may actually make the message stronger - because you don't need to be distracted by what they "are", you can just accept they exist[ed] :)
The book's nearly 50 years old. Most books not written very recently are not going to adhere to contemporary values and mores. If you're not willing to offer generosity when reading them and pick the useful part and discard the parts that haven't aged well, then you're going to miss out on a lot of very worthwhile reading.
That's one way to look at it. Another way to look at it is: Why do we not *update* these books? This gets back into the question of copyright of course.
Because the human brain has the capacity to frame specific pieces of work in their time periods, understand the discrepancies between past and present and work around it.
I would also like to offer an additional counterpoint: Leaving work intact will, not only preserve the work "as is", but also contribute to future historians the true sociological impression that is aptly accurate for their time period.
Because then we lose any sense of historical context.
Old books at their essence lets us talk to people from the past. We won't always like what they have to say, but they will speak about themselves and highlight how we've changed. If we can't understand where we came from, then we can't hope to understand how we got where we are.
It's been about ten years since I read it, but I don't remember anything particularly "anti-feminist" in it. Or anything political at all. I'm curious why you think so.
I think "anti-feminist" implies it expressses some opinion about the feminist movement, which it doesn't, to my recollection.
That said, it is somewhat sexist in its assumption that all programmers are men, which is not a surprise given when it was published. That lack of gender inclusivity is right there in the title. But it doesn't really take away from the value of the writing unless you're trying to be offended.
I don't have my copy with me so I can't supply an exact quote right now. The part that really stuck out was about companies relocating though. First, there was absolutely no possibility that women would be working, and iirc the primary reason that a company might not want to relocate was that a wife might complain her husband had to move, thus inconveniencing his boss. Something like this.
The book is at least a decade or two out of political fashion.
For thousands of years, certainly in European culture, the default human entity, when not specified, was masculine in gender. By which I mean grammatical gender, not the current politically vogue meaning of "gender."
We don't need to disregard thousands of years of knowledge because the authors were unaware of what would be PC in their future. That would be puerile. ("Childish," from the Latin word for "boy.")
Most likely no! Do you really need to read a 900 page book to understand how to write good code? There might be nuggets of wisdom here and there, but you'll most likely pick them on your own as you code and grow. Problem with these books is that you tend to over-apply whatever you read. You read the fact that configurations are good, so you create a nest of abstractions to make code configurable, even when it doesn't make sense. This is the stuff that I have seen happen over and over again. Over-engineered crap resulting from programmers trying to make future-proof code.
The best way is still, reading and writing lots of code. You'll pick the right way quite naturally.
I agree that you don't need to have read it to be a good programmer. Yet, in my experience, there is a large overlap between those who are good programmers and those who have read it. With such a heavy use of anecdata, it's hard to say how much is causation or just correlation.
You have confused the book and its content with its application. One still needs to use their brain, and one blindly applying patterns from a book where it doesn't make sense doesn't make the book bad.
I had planned to write on the topic. In his book, Steve McConnell advocates for PPP = Pseudocode Programming Process
Basically, he says you should outlines the structure of your code first, before writing your actual code.
IMHO this is even more relevant in the age of AI assisted programming. Pseudocode Programming Process is becoming Prompt Programming Process.
The process is the same, it's just the tooling around it that has evolved.