Although both CSC148 and CSC108 are using the Python programming language, they actually followed different code styles. For example, in CSC108, when designing a function, I need to write types of parameters immediately after triple quotation marks:
def func(param):
""" (int) --> int
def func(a1, a2):
"""
Return a1 plus a2.
@param int a1 : a numer
@param int a2 : a numer
@rtype : int
It is hard for me to change a habit, but PyCharm, by pointing out some "weak warnings" or "typo", helped me figure out what the right way is when I type my codes. Moreover, PyCharm also suggests some efficient ways to rewrite my codes or clarify what I confounded. This behavior really shows me how a professional programmer thinks about codes and the way he did.
PyCharm acts like a teacher. With its help, I believe I could get used to the new style and become more professional!
No comments:
Post a Comment