跳转到内容
View in the app

A better way to browse. Learn more.

彼岸论坛

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
欢迎抵达彼岸 彼岸花开 此处谁在 -彼岸论坛

[程序员] 写 RUST 写的好爽

发表于

感觉 rust 配合 ai 写代码超级爽 效率超高的:


我使用 RUST 搭配 Codeium 和 ChatGPT 写代码的技巧

感觉 codeium 搞歧视 rust 提示很全,golang 的提示就相比少了很多

开发步骤:

  1. 确定功能和方法: 首先,先想好你需要实现的功能。然后,根据功能列出需要的方法以及每个方法的用途。

  2. 定义输入输出: 接着,明确每个方法的输入参数和返回值。如果涉及到结构体等复杂数据类型,直接将这些结构体交给 ChatGPT 来生成代码。

  3. 无需过多思考细节: 在这个过程中,你几乎不需要过多思考代码细节。只要考虑好功能模块、数据来源以及数据加工的逻辑,剩下的就可以交给 Codeium 和 ChatGPT 来完成。

示例代码:

fn example_function() {
    // 定义好方法名、功能、输入参数、返回值等,如果涉及数据库操作告诉他怎么取数据 orm 是什么 然后直接扔给 chatgpt
}

Featured Replies

No posts to show

创建帐户或登录来提出意见

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.