4 ms·
C doesn't really tell you how computers work, a healthy dose of Hennessy's book and an accompanying lecture works much better than learning C. But C has immens
by Tomte 11y ago
C doesn't really tell you how computers work, a healthy dose of Hennessy's book and an accompanying lecture works much better than learning C.
But C has immense cultural value. Lots and lots of extant source code, important source code: Linux. The BSDs. PostgreSQL, SQLite, whatever.
C is the lingua franca. "Everybody" speaks at least a little C, so it can be used as pseudocode notation (without learning some specific, maybe even ad-hoc, pseudo language).
- mbrubeck 11y ago> C has immense cultural value. Lots and lots of extant source code, important source code Yes, exactly! In my opinion, C for a programmer or computer scientist is like Latin for a medieval scholar. You don’t need to speak it fluently, but it’s good to know enough to read other people’s works and understand how concepts are expressed. In practical terms, I think that almost any programmer can benefit from reading K&R and doing the exercises in it, even if they never go on to write “real” programs in C. The book is very short and readable, and finishing it is a much tinier task than learning the standard libraries and toolchain options and best practices and all the other stuff you need to be productive writing production-quality code.
- allbody 11y ago> a healthy dose of Hennessy's book Most any CS book seems to have been written in C, Java, C++ and lately, Python. Are there books on computer architecture, algorithms, compilers, whatever written in Scheme?
- Tomte 11y agoI have no idea what you're talking about. Are you interested in finding such a book? Do you try to refute any of my points? If so, which one?
- allbody 11y agoI am not refuting. I was actually asking if there are CS books written in Lisp. Almost any CS book I've seen relies on C, C++ or something along those lines. > Are you interested in finding such a book? Yes.
- Tomte 11y agoAh, okay. Off the top of my head, only Structure and Interpretation of Computer Programs. But that's... different. And Paradigms of Artificial Intelligence Programming.
- ratboy666 11y agoStart with "Structure and Interpretation of Computer Programs". Google it -- it's freely available on-line, along with a video lecture series. It's different, in that it doesn't teach Scheme (Lisp). It teaches computation (aka CS). Go from there.
- dragonwriter 11y ago> Most any CS book seems to have been written in C, Java, C++ and lately, Python. There are plenty of CS books where the code targets Scheme, another Lisp, or another functional language (e.g., ML or Haskell.)
- mbrubeck 11y agoUniversity textbooks with Scheme/Racket as a primary language for examples/exercises: - Structure and Intepretation of Computer Programs (SICP), used for decades in MIT’s introductory CS course: https://mitpress.mit.edu/sicp/ https://mitpress.mit.edu/sicp/ - Picturing Programs: http://picturingprograms.com/ http://picturingprograms.com/ - How To Design Programs: https://en.wikipedia.org/wiki/How_to_Design_Programs https://en.wikipedia.org/wiki/How_to_Design_Programs - Programming Languages: Application and Interpretation: http://cs.brown.edu/~sk/Publications/Books/ProgLangs/2007-04-26/ http://cs.brown.edu/~sk/Publications/Books/ProgLangs/2007-04...