TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Principles of Imperative Computation

50 pointsby ggr2342almost 2 years ago

6 comments

sgeisenhalmost 2 years ago
&quot;Principles of Imperative Programming&quot; is a misnomer.<p>The course is really about developing techniques for reasoning about low-level software. You build up abstractions in C by leveraging contracts and writing proofs of correctness based on those contracts.<p>Explore the &quot;Learning Objectives&quot; section to read about what the course really entails: <a href="https:&#x2F;&#x2F;www.cs.cmu.edu&#x2F;~15122&#x2F;about.shtml#LO" rel="nofollow noreferrer">https:&#x2F;&#x2F;www.cs.cmu.edu&#x2F;~15122&#x2F;about.shtml#LO</a><p>This was the first computer science course that I took at CMU and it was absolutely mind blowing for me. I had previously taken AP CS and had played around with making games in flash and writing little programs for my graphing calculator. But this course taught me how to reason about my programs (and why that might be valuable, to begin with).
评论 #36470554 未加载
评论 #36470249 未加载
kweingaralmost 2 years ago
This is a bit of a tangent, but I read the prerequisites for this course and felt the same annoyance that I did when I was in college.<p>I didn’t major in CS, but I wanted to take some CS classes. Several times I had to go back and forth with the course instructor and the director of undergraduate studies in the department, trying to convince them to let me take the class, or at least audit it or get access to the course materials if it was filling up.<p>I was mostly successful, but there were a couple times where I was told I simply could not take the class because I didn’t take the prerequisite. As a lifelong computer nerd and capable programmer, I could have sat the exam for the prerequisite classes without preparation and passed, but they did not allow this.<p>If there are open spots in the classes after all the CS majors signed up for it, then why not just let anyone take it if they’re up for the challenge? You can warn them about the prerequisite knowledge, so if they fail it’s completely on them.
评论 #36469686 未加载
评论 #36470070 未加载
评论 #36470026 未加载
评论 #36470288 未加载
评论 #36469951 未加载
sdkgamesalmost 2 years ago
Is this about Design by contract? [0] But why do they force students to use an imperative language?<p>[0] <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Design_by_contract" rel="nofollow noreferrer">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;Design_by_contract</a>
评论 #36479686 未加载
tempodoxalmost 2 years ago
It&#x27;s only about the course, not about principles of imperative programming.
评论 #36468944 未加载
wheelerof4tealmost 2 years ago
Step 1: Go from the top.<p>Step 2: See a function.<p>Step 3: Ctl+Click on it.<p>Step 4: Read the code.<p>Step 5: Go to step 1.
评论 #36469361 未加载
noobdev9000almost 2 years ago
It&#x27;s not really complex enough to require a full university course, is it now.
评论 #36469257 未加载
评论 #36469604 未加载