Hacker News new | past | comments | ask | show | jobs | submit | gedazz's comments login

What does CoC stand for?


Still can't believe that this abbreviation is actually in use without any objections while there are talks about needing to rename the Coq language.


I imagine that most people saying "CoC" out loud are not saying "cock", instead either "Code of conduct", or "cee oh cee".


I also imagine the same people pronounce the other word "cee oh cee kay".

I myself pronounce it so it rhymes with and sounds identically to "cock", for several reasons.


CoC = "Code of Conduct"

I haven't followed Python dev, so can't comment about how the CoC is being used in practice.


> I haven't followed Python dev, so can't comment about how the CoC is being used in practice.

In tough situations, CoC powers are inversely proportional to the height of your position on the totem pole.


I have never encountered this issue in Django. Perhaps your post lacks some context. Is `friends` a custom method/property? Asking because I'm used to seeing attributes like `friends_set`.

The only scenario I see where your example would need `prefetch_related` is if your snippet looked something like this:

    {% for user in all_users %}
        <ul>
        {% for friend in user.friends.all %}
        <li>{{ friend.name }}</li>
        {% endfor %}
        </ul>
    {% endfor %}
To avoid the classic N+1 query problem, all_users must be loaded like so:

    User.objects.all().prefetch_related("friends")
If you're writing verbose expressions such as this in Django:

    User.objects.filter(pk=<pk>).prefetch_related("friends").first()
You must be doing something wrong.


Based on context, GP's example is a ManyToMany field. "friend_set" is what you'd get on a reverse ForeignKey or reverse ManyToMany by default, but can be changed with the "related_name" kwarg.

Either way you're right, GP's example as given doesn't have the 1+N problem (it's 1+1 at worst, a single query for user and a second single query for all friends), there's definitely missing context if they are seeing it.


Besides pushing articles I want to read later to Pocket I tend to use the principle "if I cannot remember the name/address of the website, I do not need to bookmark or visit it". Browsers nowadays are excellent at autocompletion which kind of supersedes bookmarks.


Your browsing history usually expires after some time (in Firefox anyway, haven't checked other browsers but they'll likely do something similar). If you want to keep something long-term, better bookmark it. You can just bookmark pages as a hint to tell the browser not to expire them, and then still access them through the address bar, without spending time on organizing your bookmarks.


I usually just download an offline copy of the page if I want to keep it long-term. (I'm talking about text data like guides or articles of course)

Browsing my youtube playlist library I can see that bookmarking is not enough if the link dies after a couple years.


There are more on their Youtube channel https://www.youtube.com/channel/UCFDHJGm0IxH9uwcIHfR72yg/vid...


Is it just me, or did the videos disappear?


Probably disabled video listing on their YouTube profile page. They want you go to their website to watch the videos rather than on YouTube.


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

Search: