·

10.27 弦圈问题分析以及改进计划

Published at 2024-10-27 22:09:26Viewed 9 times
Common article
Please reprint with source link

最近有不少对弦圈感兴趣的爱好者,在弦圈注册了账号,也有人参与了互动。对此,我在这感谢各位的支持和认可!😃

不过经过这段时间,用户注册后的表现,也透露出目前弦圈存在的很多问题。

首当其冲的就是首页,默认显示最新内容,用时间顺序排序,意味着大家在首页往往无法看到有趣的内容,也可能找不到他想看的内容。这也导致弦圈中优秀的内容被埋没。

因此,针对这个问题,我自己设计了一个简单的热度算法来计算“热度”,然后通过“热度”来排序首页的热门内容。旧的热门内容就是单纯的通过阅读量排序,没有热度随着时间衰减的现象,这也意味着新内容往往容易被旧内容排挤掉。有了更好的热度算法,我就可以将打开首页默认显示最新内容,改为默认显示热门内容了😇。

接着就是中英文混合的问题,这个首页已经解决了,首页看到的内容都会把其他语言的给过滤掉。但是圈子内的话,我没有强行设置只有一种语言,因为不太想一些优秀的英文内容被埋没。我有点想参考推特的做法:热门内容推荐的大多数都是一种语言(如中文),只有一两个是其他语言(如英文)。或者说还有一种方案:热门内容全是同一种语言,再增加一个选项”全部“,即查看圈子全部内容。

至于数学圈首页,那些数学分支的按钮全是英文,我计划之后设置国际化,即中文用户显示中文,英文用户显示英文。

以上是我目前认为最大的问题,还有一些别的小问题,之后也会陆续跟进。

如果你有任何不满的地方,也欢迎来评论区评论,或者到问题反馈反馈你的问题。

Comments

There is no comment, let's add the first one.

弦圈热门内容

Django change an existing field to foreign key

I have a Django model that used to look like this:class Car(models.Model): manufacturer_id = models.IntegerField()There is another model called Manufacturer that the id field refers to. However, I realized that it would be useful to use Django's built-in foreign key functionality, so I changed the model to this:class Car(models.Model): manufacturer = models.ForeignKey(Manufacturer)This change appears to work fine immediately, queries work without errors, but when I try to run migrations, Django outputs the following:- Remove field manufacturer_id from car - Add field manufacturer to carDoing this migration would clear all the existing relationships in the database, so I don't want to do that. I don't really want any migrations at all, since queries like Car.objects.get(manufacturer__name="Toyota") work fine. I would like a proper database foreign key constraint, but it's not a high priority.So my question is this: Is there a way to make a migration or something else that allows me to convert an existing field to a foreign key? I cannot use --fake since I need to reliably work across dev, prod, and my coworkers' computers.内容来源于 Stack Overflow, 遵循 CCBY-SA 4.0 许可协议进行翻译与使用。原文链接:Django change an existing field to foreign key

[antd: Message] You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.

I'm getting this error when using MessageWarning: [antd: Message] You are calling notice in render which will break in React 18 concurrent mode. Please trigger in effect instead.Here is my code:import { message } from 'antd'; export default function Page() { const [messageApi, contextHolder] = message.useMessage(); const res = await fetch("/api/...", { method: "POST", }); if (!res.ok) { messageApi.error("Error! Fail to login!"); } return ( <Home> ... </Home> ) }

Get connected with us on social networks! Twitter

©2024 Guangzhou Sinephony Technology Co., Ltd All Rights Reserved