CSC148H1 Lecture Notes - Lecture 1: Docstring, Pycharm, Type System
katrinasavvy and 38715 others unlocked
1
CSC148H1 Full Course Notes
Verified Note
1 document
Document Summary
Often when beginners are tasked with writing a program to solve a problem, they jump immediately to writing code. Doesn"t matter whether the code is correct or not, or even if they fully understand the problem: somehow the allure of filling up the screen with text is too tempting. In csc108, we teach the function design recipe as a principled way of approaching problem-solving in python. It delays writing any code at all until a complete docstring has been written. Get into the habit of following the design recipe, and your teammates and even your future self will thank you later! Please note that starting in fall 2017, both csc108 and csc148 are using a new type contract syntax; Pycharm can use this to do some basic type-checking for us as we write our code. Please take a few minutes to read through this guide describing the new syntax.