Hacker Timesnew | past | comments | ask | show | jobs | submitlogin

His argument was: if the only two things your class does are take in a string when constructed and return it on demand, you don't need the class.


Exactly... in this case, the functionality of Artist() is a subset of the functionality of str(). In Python, you would just name the variable "artist", assign a string to it, and be done with it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: