19 ms·
“Code” 2nd Edition Now Available
- guzik 4y agoOne of my favorite books of all time. It taught me how computers work from the ground up. Somewhat similar to nand2tetris: https://www.nand2tetris.org/book https://www.nand2tetris.org/book
- AndrewDucker 4y agoI'd recommend that pair of books to anyone wanting to really understand computers.
- xmonkee 4y agoI've already "completed" (and loved) nand2tetris. Would Code still be good to read?
- AndrewDucker 4y agoIt's very different, and useful more from a general approach to what computing is. The two complement each other.
- FearlessNebula 4y agoWhich order would you read them in? I assume NAND to Tetris is more interactive exercises?
- AndrewDucker 4y agoIt is. I'd tend to start with Code, but it would work either way
- coletonodonnell 4y agoI got the nand2tetris book and such and am about to start. Why would you recommend Code first over nand2tetris in your opinion?
- AndrewDucker 4y agoReally really don't worry about it. One is not a precondition for the other. "Code" is fascinating for talking about the history and the "Why", while N2T is excellent for giving you the hands-on practice at building one yourself.
- jackosio 4y agoI did the nand2tetris on Coursea, it's what started my passion for software, I was just tinkering and hacking before that, did that course and knew without a doubt it's what I want I want to dedicate myself to.
- wildmanx 4y agoSometimes I'm wondering whether this is the future, or whether we (as an industry teaching the next generation) are taking shortcuts that will hurt us in the long run. Honest question. I don't have the answer or am insinuating anything. What do I mean? Well, I also acquired all that knowledge, but through a formal university CS degree. Before starting my degree, I was also "just" tinkering and hacking. I had been "programming" for like a decade before that, different languages, solving some problems that I found interesting or practically useful. During my degree though, I got all the details. I had full courses on hardware (transistors and upwards, all the way to CPU architecture), on mathematical logic, on compilers, on programming language paradigms, on algorithms, on complexity theory, on formal methods, in-depth on C++, Java, Prolog, computer networks, databases, cryptography, real-time systems, statistics, and a few more. This also allows me to in-depth describe a "nand to tetris" process, but obviously my education has been much broader than that. Was it necessary to take that 6-year degree? Would that have been equally well covered by a bunch of Coursera online classes and then a few years of work experience? I really don't know. I have a small sample set of colleagues who are self-taught and though ambitious are sometimes lacking broader perspective and in-depth understanding of CS foundations (that includes my boss), and of colleagues who went through a similar degree and do have a similar perspective as me, some of them not really remembering what was taught (or not caring), so those samples go both ways. I don't really know anybody without a formal degree who has the full fundamentals groked though. That would let me to conclude that the degree is a good thing, but frankly my sample is too small to tell.
- personalidea 4y agoAs a self taught dev, I can confirm that observation. I did not spend six years of my life studying all those details that, though not crucial to my day job building a JS Frontend, might sometimes help with the big picture decisions. And I am fully aware of all the things I don’t know. Would I like to study those details? You bet. But I came to that realization in my late thirties, after having changed careers twice, kids, marriage, the whole nine yards. I have responsibilities and am lacking the time and free headspace to sit down and study. So a course on coursera or Udemy or whatever it is. And little by little I am patching my CS knowledge. Will it ever be as complete as that of someone who started programming in their teens and went straight for the degree? Definitely not. So I agree, if you have the luck and the opportunity to be in the situation to have a chance for a degree and take it, it’s a good thing. At the same time, I think that it is a good thing that software development/ working with computers in some shape or form is open to people from many backgrounds, similar to the creative fields, because kn the end it is important that you can do your job, not necessarily how you acquired those skills. Because it enriches the industry. Bringing all kinds of life experiences to the table is a good thing. It is a team sport after all. And T-shaped isn’t limited to software skills. E.g. I might not have studied CS, but having taught adults in foreign languages for years gives me presentational and pedagogical skills that help me explain the things I do know to our junior devs, because I know how learning processes work. So I would encourage a more optimistic view on the situation. Not asking what are your colleagues lacking, but asking what else do they know? What did they do, while you were studying CS.
- cebert 4y agoI am hoping someone here can recall the name of the book that got me interested in computers and Computer Science. It was a Microsoft Press book that taught fundamentals of computing. The book started with discussing relay switches, and progressed to how one could build computational units using them. This book was available at my local public library in the mid 90’s.
- milkey_mouse 4y agoThat’s almost certainly (the first edition of) the book in this post.
- comprev 4y agoDid it involve a story about kids communicating at night with flashlights? Yup, that's the first edition.
- cebert 4y agoYes, ok thanks that’s the one. I’ll have to buy the first edition. It was very impactful to me.
- abnry 4y agoI had a very similar experience. I read the book from the library as a kid. I originally thought it was to do with ciphers, as I was into codes then. It introduced me to the programming section of the library, and I expanded to the math section from there. A couple of STEM degrees later and here I am.
- cfeduke 4y agoOne of my favorite computer books of all time, along with Stephenson's "In the Beginning... Was the Command Line." Happy to see a second edition, bought a copy for my kids to read and also to support Petzold.
- tsuujin 4y agoFair warning to all: the watermark on the epub purchased from the publisher is pretty obnoxious. On Apple Books it floats over every page and in some cases covers actual text.
- greymalik 4y agoCould you post a screenshot? I’m deciding between the physical and digital versions and have never seen a watermark in an e-book before.
- tsuujin 4y agoSure thing: https://imgur.com/a/4CTsLSD https://imgur.com/a/4CTsLSD I’m sure this is software related, and I’m on the iPadOS 16 beta, so it may be less of an issue for others. On my phone it folds into the header and truncates, but on the iPad it is super obnoxious.
- greymalik 4y agoMan, is that obnoxious. Yet another example of a DRM effort that will probably inspire more piracy.
- tsuujin 4y agoI would honestly just rather have the drm than that watermark. Dark pattern success?
- shpx 4y agoI'll buy an ebook but read a copy from LibGen because that version doesn't have my email address as the first sentence of every page. It's hard to read books instead of doing something more entertaining, this minor annoyance doesn't help.
- deleted 4y ago[deleted]
- 4y ago
- dchuk 4y agoI woke up this morning to an email from Amazon asking me to confirm if I still wanted this book because it's been delayed in shipping. Weird I got this the day it was officially released considering I preordered it beginning of June...
- netr0ute 4y agoIt's hard for me to afford big books like these. Is there an alternative option?
- Jtsummers 4y agoIf your employer or school offers the O'Reilly Library (or is willing to pay for it as part of your training budget), it's located there. Which is where I've started reading it while I wait for my preorder to arrive.
- giaour 4y agoYou can request that your local library purchase a copy, then check it out.
- jjice 4y agoLooks like you can get the first edition for ~$20 on Ebay and ThriftBooks. Not sure if that's still out of your price range, but it's an option if it is. Books are a lot like cars in terms of deprecation in my experience. Not always, but you can usually get a nice big discount buying used. Not as much with software books, but still a decent discount.
- goldtownjac 4y agob-ok.cc has the .epub available for free (but of course if you have the money you should support Petzold)
- Jach 4y agoWait for someone to give it to you for some holiday? If you're fine with a digital option, Archive.org often has scans of books you can either download locally or temporarily "check out" to read on their site like a library (they back it with a physical copy). Seems like they have a scanned version of the first edition. I also think everyone should know about Sci-Hub/LibGen/MagzDB whether they use those sites or not; most everyone on the internet is seconds away from a resurrected Library of Alexandria and can access tons of scientific papers, books (and textbooks), and magazines, and this is a great thing. They don't have everything, but still there's tons. Looks like the epub for this version is already up.
- friedman23 4y agoThe first edition of this book has given me such a leg up in my computer science education and software engineering career.
- password4321 4y agoTechnically a dupe of this discussion: “Code” 2nd Edition https://news.ycombinator.com/item?id=31696901 https://news.ycombinator.com/item?id=31696901 (June, with over 1k points and 170 comments) per https://news.ycombinator.com/item?id=23071428 https://news.ycombinator.com/item?id=23071428: > What decides whether a follow-up counts as same-ish? Whether or not it contains significant new information (SNI), meaning whether or not there is enough new information to support an interestingly different discussion.
- jgwil2 4y agoIt's not a dupe: the release date was originally August 19, it has been changed to today.
- blowski 4y agoThe new post says it's now on general release, which seems pretty significant to me for such a good book.
- Jtsummers 4y agoPrior post was the announcement of the upcoming release, this is the announcement of the release. So not quite a dupe, and probably worth noting now that it is actually available (and available earlier than anticipated).
- password4321 4y agoI mean this is pretty specifically what dang explained is counted a dupe. > Because those things don't change as a particular release goes through its life-cycle of status updates, status updates don't count as SNI.
- Jtsummers 4y agoWell, a major difference here is that 2 months ago this edition was not available. Today it is and people can go online and purchase it and read it (I'm already through chapter 3 of it). Without this post, I, for one, would not have known that I could go online now to read it and would have been waiting for my preorder. And since it's a rainy Sunday this is a great time for me to get some reading in since yard work is out.
- philliphaydon 4y agoYay. Hope I get my copy soon. Assuming China doesn’t block it.
- _hao 4y agoIn my opinion this book is absolutely essential for anyone even remotely interested in computers! Charles Petzold is a true master!
- localhost 4y agoI'm going to be interviewing Charles next week for my podcast. Are there questions that you'd like me to ask him?
- ripley12 4y agoIt's not especially related to Code, but Charles is one of the all-time greats in Windows programming. I'd love to hear his thoughts on the current state of Windows: what's going well, what should be done differently.
- localhost 4y agoSadly, that's an area that he doesn't want to talk about. Not really sure why, but it makes me wonder what the story behind that stance is, and if I can get him to talk about it.
- ripley12 4y agoAh, that's unfortunate. My (wild, speculative) guess is that he's left that part of his career behind, after he was burned by the Windows team dropping the ball on native development multiple times.
- muststopmyths 4y agoAfter the winrt shitshow, he had given up windows and started on xamarin IIRC. Don’t know if wrote or is writing any books for that though.
- codebolt 4y agoYes, his book Programming Windows was what took me from hopeless newbie to half decent self taught dev while I was still in my teens. Taught me loads that I still find use for to this day in my career (which involves a lot of Windows development). I wonder if he gets nostalgic for that era of programming, and what stack he would choose if he was writing a Windows app today.
- 4y ago
- tux1968 4y agoThere is a companion website for the book, that is still a work in progress: https://codehiddenlanguage.com/ https://codehiddenlanguage.com/
- sheikheddy 4y agoThose animated interactive explanations remind me of http://explorabl.es/ http://explorabl.es/. I'm really interested in creating some on my own, where can I find source code for guides like https://github.com/ncase/trust https://github.com/ncase/trust?
- Scarbutt 4y agoI recommended someone “ Computer Systems: A Programmer's Perspective” because that’s what I read and found very good, how does Code compares?
- Jtsummers 4y agoCode is more of a pop-sci book. It's in-depth, but suitable for a motivated layperson. It covers a bit of information theoretic content on code (encoding) and the physical layer of digital logic, in particular. CS:APP is a programming textbook complete with programming exercises. They aren't directly comparable.
- wiihack 4y agoI just pre-ordered a copy. The first edition was on my reading list for some time now, but there was always something else to read. Now seems like a good opportunity to change that :)
- amself 4y agoand it’s already on libgen ;)
- FearlessNebula 4y agoAny recommendations for a book like “Code” but for computer networking? I want a broad introduction to how networking works.
- ape4 4y agoIf it exists it would be called "Node"
- soneil 4y agoWell that's the hard part sorted, now someone just needs to write it!
- TedShiller 4y agoThe classic one would be: Unix Network Programming by W. Richard Stevens
- fanf2 4y agoAnd TCP/IP Illustrated by the same author.
- resist_futility 4y agoComputer Networking 1292405465
- jonsen 4y agohttps://www.amazon.com/Computer-Networking-Global-James-Kurose/dp/1292405465 https://www.amazon.com/Computer-Networking-Global-James-Kuro...
- matsemann 4y agoThis one is great ("A top down approach"). It takes all levels of the network, packages/bytes, signals etc. Very interesting read.
- FearlessNebula 4y ago
- userbinator 4y agoI already have the first. Are there any significant differences between the two?
- Jtsummers 4y agoFrom the preface: > Those problems would probably have been easy to fix, but there existed another aspect of the first edition that continued to bother me. I wanted to show the workings of an actual CPU—the central processing unit that forms the brain, heart, and soul of a computer—but the first edition didn’t quite make it. I felt that I had gotten close to this crucial breakthrough but then I had given up. Readers didn’t seem to complain, but to me it was a glaring flaw. > That deficiency has been corrected in this second edition. That’s why it’s some 70 pages longer. Yes, it’s a longer journey, but if you come along with me through the pages of this second edition, we shall dive much deeper into the internals of the CPU. Whether this will be a more pleasurable experience for you or not, I do not know. If you feel like you’re going to drown, please come up for air. But if you make it through Chapter 24, you should feel quite proud, and you’ll be pleased to know that the remainder of the book is a breeze. So yes, some significant difference there, but maybe not worth a repurchase unless you just want it for your library or specifically want to read his take on that material.
- Julesman 4y agoBought. HN for the win.
- NSMutableSet 4y agoWhat is going on with Amazon's listing for the preorder? Seems like it's been hijacked by a vendor with terrible ratings offering the unreleased book at a high markup, with no way to preorder from Amazon at the correct price.
- fabiensanglard 4y agoSame issue with my preorder on Amazon. Placed on July 2 but now it states that the item has been delayed. I am being asked to approve of it?!
- justin66 4y agoI received the same thing. I cancelled it and ordered on the Microsoft Press store, where there's currently a discount that makes the book cheaper than Amazon. Somewhat unusual, that.
- localhost 4y agoI preordered directly from the publisher a couple of months ago and it arrived this week. Looks like you still can order from them today: https://www.microsoftpressstore.com/store/code-the-hidden-language-of-computer-hardware-and-software-9780137909100 https://www.microsoftpressstore.com/store/code-the-hidden-la...
- blinkingled 4y agoI pre-ordered using MS Press as well - you get the ebooks/PDF for free (instant download while you wait for the dead tree version to arrive) when you order the hard copy and ebook bundle.
- bena 4y agoSame. Although I nearly thought I was scammed when I saw the charge on my credit card because I had completely forgotten about it. That and the charge comes from AWL*PEARSON. But then I got an email telling me it shipped, I put 2 and 2 together, then the book arrived a whole day earlier than estimated.
- gonehome 4y agoI preordered this when it first came up months ago and it arrived a couple of days ago - fun to know I got a copy before Charles did :). The first edition was really great. Excited to see the updates.
- hgdfgdfghjhgf 4y agoAre there any forums entirely dedicated to this book or at least 1st ed of this book? Where users could answer each other's technical questions, ask them, get help from other users or smth? If there are none, it would be cool to create something like it. I believe that the information contained in this book is almost unparalleled, the author has done a tremendous job.
- llaolleh 4y ago+1. There should be a forum for this book.
- tambourine_man 4y agoDoes anyone know what’s new in this edition? I’m much less of a read than I wanted to, but this was a book I read from cover to cover almost nonstop on a xmas/new year holiday. Remarkably accessible and dense.
- goodcanadian 4y agoThere's not much detail, here, but it gives the gist: https://www.charlespetzold.com/blog/2022/06/Announcing-Code-2nd-Edition.html https://www.charlespetzold.com/blog/2022/06/Announcing-Code-...
- tambourine_man 4y agoThanks: “I’ll discuss the differences between the two editions in detail in a future blog entry. The short explanation is that I go much deeper into the workings of a CPU using the Intel 8080 as a simple example” I’ll buy for the 70 pages or so on the 8080, for sure.
- hahamrfunnyguy 4y agoI enrolled in a computer graphics sequence in my last year of college. It was a graduate level course and didn't meet the minimum requirements. I talked to the professor and he said I could try the course and gave me some topics to brush up on. One topic was Windows programming. I got Petzold's Programing Windows book and nearly read it cover to cover on my break, going page by page and running and reviewing the sample programs provided. I learned a lot about Windows programming and really enjoyed the read. Topics like this can be written in a dull way, but Petzold managed to present it in a way that was enjoyable to read and easy to understand. I think that says a lot about the quality of the writing because some Windows programming details are pretty arcane!
- tzs 4y ago> One topic was Windows programming. I got Petzold's Programing Windows book and nearly read it cover to cover on my break, going page by page and running and reviewing the sample programs provided. I learned a lot about Windows programming and really enjoyed the read. I stopped writing Windows programs when Petzold stopped doing new editions of "Programming Windows". I'm not actually sure whether or not what was covered in his last one, Windows 8 using C# and XAML, still works on Windows 10 and 11, or if it does whether or not that is all you need.
- hahamrfunnyguy 4y agoIt makes sense why he would write a book about C#/XAML because these days, it's probably the tool that most developers are going to be using. Back with the 5th edition came out, writing in C or C++ was really the only option for many kinds of apps. A lot of the fundamentals covered in 5th edition is still relevant today, but it's probably easier just to look it up online.
- csours 4y agoJust got my physical copy delivered! Ask me anything. I haven't read it, and I only skimmed the first edition.
- aldto 4y agoIf someone buys the Kindle version, can you let us know how the formatting looks with all of its diagrams and code? To get the PDF version I tried buying the e-book collection from InformIT, but Pearson (that runs the InformIT and Microsoft stores) no longer takes orders from people using a "@fastmail.com" e-mail.
- kryptiskt 4y agoI bought the Kindle version, it looks good to me, the diagrams and tables are big and clear.
- jordanmorgan10 4y agoThe first book was incredible. I’ve been a programmer for a long time - and early in my career is hit me: I have no idea how this really works! How does what I type and program make a computer do a thing? It was an incredible read and I can’t wait for this one.
- what-imright 4y agoYou know it’s funny how you can buy the previous edition of most university textbooks for $5 on eBay but the latest edition often with an annoying introduction costs you a cool Grant. I built myself a huge library of about 70 textbooks sitting in my closet, most of them totally unused. Often I’ll search for the most expensive book on a topic on Amazon and go get it on eBay w free shipping for five bucks
- BeetleB 4y agoIf anyone wants to make money inefficiently: Sell prior editions of textbooks using Amazon FBA. Surprisingly a lot of Prime members buy them at decent prices - - even in some cases two editions prior. For a few years every time my library had a book sale, I'd find plenty of them for about $4 each. The hope was to sell them for $20 or more. Figuring out which ones would sell was a bit of an art, though.
- kapildev 4y agoDoes it make sense to read this book if I have taken the whole Bachelors course in computer science? I mean does it offer anything new if you gave read about transistors, logic gates, microprocessors and all that stuff? Who is it geared for?
- kevstev 4y agoI found it very engaging and entertaining and it really tied together how we get from the very basic building blocks to a computer that can do something useful. As to whether it will be actually educational, it sounds like maybe it won't be for you, but it might be a nice refresher depending on when you were last in school. Many CS programs just barely touch on the lower level stuff so this is widely relevant to many in the industry. Its also an easy enough read that even if you have no background, you can follow along and get an understanding of how a computer works.
- deleted 4y ago[deleted]
- nsajko 4y agoSkip it, it's aimed at laypeople.
- gbil 4y agothat name stroke a few chords for me as his "programming windows fifth edition" was what I used to create essentially an oscilloscope in a windows app getting the data from a ISA data acquisition card with analog and digital inputs, 20something years ago...