-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rename "post" (noun) to "blog post" #1648
Comments
@das-g I have an alternative suggestion. Use namespace. It's very straight forward if you want to make multiple apps. Simply add For example:
with this, we can use the following:
Of course, this needs an explanation about the namespace concept in a layman's term. What do you think about it? I agree to rename the class with |
I like that idea. 👍 It's quite in line with the Zen of Python (PEP 20), whose 19th aphorism proclaims:
|
@das-g I am pushing commits for namespace change as well in different PR: master...jwaladiamonds:namespace |
Seems resolved in PR #1691 |
#1691 was closed by its author without being merged. Re-opening thus. |
As noted in #1642 (comment) and #1642 (comment), there's three things that can be easily mistaken for oneanother:
POST
Mixing up the latter two isn't really an issue, as they refer to the same concept anyway, only on different levels of abstraction. Mixing up the first with any of the others two can lead to profound confusion though, as the object referred to by the noun is the result of the actions referred to by the verbs.
To avoid this ambiguity, especially in code where one cannot rely on sentence structure to keep these words and concepts apart, let's base all variable names referring to the first (the noun) on "blog post" rather than just "post".
This means:
Post
toBlogPost
.Post
frompost
toblog_post
Post
fromposts
toblog_posts
name
"s (not the URLs path patterns themselves):post_list
→blogpost_list
post_detail
→blogpost_detail
post_new
→new_blogpost
post_edit
→edit_blogpost
The text was updated successfully, but these errors were encountered: