课程概况
本课是一个由3部分组成的系列课程的C部分。参与者应首先完成A和B。Part C “dives right in” and refers often to material from Part A and Part B.
本课程介绍了编程语言的基本概念,重点介绍了函数式编程。本课程使用语言ML,Racket和Ruby作为教授概念的工具,但真正的目的是充分教授任何语言如何“融合在一起”,使您能够在任何语言中更有效地编程 – 并学习新的语言。
本课程既不是特别理论也不仅仅是编程细节 – 它将为您提供一个框架,用于理解如何有效地使用语言结构以及如何设计正确和优雅的程序。通过使用不同的语言,您将学习比一种语言的特定语法更深入的思考。强调函数式编程对于学习如何编写健壮,可重用,可组合和优雅的程序至关重要。实际上,现代语言中许多最重要的思想都源于函数式编程。准备好学习一种新颖而美观的方式来查看软件以及如何有趣地构建软件。
本课程假定您具有一些编程经验,如A部分第一个模块中有更详细的描述.B部分假设成功完成了A部分。
该课程分为三个Coursera课程:A部分,B部分和C部分。如A部分第一个模块中更详细的解释,整个课程是大量具有挑战性的材料,因此三部分格式提供两个中间里程碑和继续前暂停的机会。这三个部分旨在按顺序完成,并设置为激励您继续直到C部分的结尾。
A部分的第1周有一个更详细的课程所有三个部分的主题列表,但预计大多数课程参与者不会(还是!)知道所有这些主题的含义。
课程大纲
WEEK 1
Introduction, Course-Wide Information, and Software Installation (Start Here)
Welcome! Start here! Learn about this course and how it's organized.
Section 8 and Homework 6 (First Module with Ruby)
Let's get started programming with Ruby, including learning about Ruby's variant of (almost) function closures and the "inheritance and overriding" that is the essence of object-oriented programming. The welcome message has a few additional comments about "what makes Ruby different" and how to approach the (rather different) homework assignment, so let's get started...
WEEK 2
Section 9 and Homework 7 (Second Module With Ruby)
Welcome to the second week of Part C where we will focus on how functional programming and object-oriented programming encourage such "exactly opposite" decompositions of problems that they are "more alike than you might realize". This is a key opportunity to synthesize much of what we have learned so far. As the welcome message discusses in more detail, we will go a bit beyond this to touch on some related advanced topics and then dive into the last -- and challenging -- programming assignment, which involves porting an interpreter from ML to Ruby.
WEEK 3
Section 10, Final Exam, and Course Wrap-Up
We have reached the last module of Programming Languages! We first study subtyping, how it relates to static types for object-oriented programming, and how it relates to generics. There is no assignment or quiz devoted only to this last "new material", but there is a "final exam" covering Part B and Part C of the course. Enjoy studying for the exam, and don't miss the final "wrap-up" lesson when you're all done!
面向人群
The course assumes students are familiar with programming covered by most introductory courses, but it is explicitly designed not to be a particularly advanced course. Students should be comfortable with variables, conditionals, arrays, linked lists, stacks, and recursion (though recursion will be reviewed and expanded upon), and the difference between an interface and an implementation. Students should be eager to write programs in languages new to them. Part C of the course analyzes basic object-oriented concepts and contrast them with those of other languages, so familiarity with Java or a closely related language (e.g., C#) might be helpful for Part C, but it is not necessary for the assignments. This course is based on a course designed for second- and third-year undergraduates: not a first computer science course, but not an advanced course either. So it certainly will not cover everything in the beautiful world of programming languages, but it is a solid introduction. It is designed to be eye-opening and fascinating both for learners seeking a "third or fourth programming course" and for learners with more experience who are looking for a clear and precise foundation in programming languages. The assignments in the course are designed to be challenging, but with everything you need in the course content. An introductory video and another reading discuss assumed background in some more detail in Week 1 of Part A of the course.