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

I like underscores for all magic methods.

And I think you're right about __init__ - constructors are not magic.

But in fact, I like "word" __init__ even more outside of python.

I use it to name directories for all new, incoming, uncategorized stuff.

For example: I have "music" with subdirectories named by artist, and I have __init__ where I put all artists I found recently. Same for "books", "docs", "work", etc.

I like it because "__init__" is always on top. Compare it with "new", "incoming", "now", "unclassified".



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

Search: