Wednesday, January 27, 2016

class Slog:

Welcome to my series of courSe bLOGs about CSC148 (Introduction to Programming). Today, in my first SLOG, I want to discuss my encounter with PyCharm and how it helped me solve problems in the beginning of my course.

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

However, in CSC148, I should use a different way, which requires me to restate the names of the parameters and their types after the description of the function:

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