30/09/2018, 21:38

Stop Teaching C - Kinh nghiệm của Kate Gregory về việc dạy và học C++

Bài hay dành cho những bạn dạy C++ hoặc bắt đầu học C++
Nội dung thảo luận về 2 câu hỏi thường gặp:

  1. Chưa biết C và C++, muốn học C++ thì có nên học C trước khi học C++ hay không?
  2. Phần nào của C++ nên ưu tiên học trước để việc học ngôn ngữ này trở nên dễ dàng?

To this day most people who set out to help others learn C++ start with “introduction to C” material. I think this actively contributes to bad C++ code in the world. For the past few years I’ve been teaching C++ (and making suggestions to folks who intend to teach themselves) in an entirely different way. No char* strings, no strlen, strcmp, strcpy, no printf, and no [] arrays. Pointers introduced very late. References before pointers, and polymorphism with references rather than with pointers. Smart pointers as the default pointer with raw pointers (whether from new or &) reserved for times they’re needed. Drawing on the Standard Library sooner rather than later, and writing modern C++ from lesson 1.

Link file PowerPoint: Stop Teaching C - Kate Gregory - CppCon 2015

loi viết 23:44 ngày 30/09/2018

Bạn nên tóm tắt vài lời chứ

Trần Ngọc Khoa viết 23:38 ngày 30/09/2018

Hình như là không nên lẫn lộn giữa C và C++

Bài liên quan
0