Skip to content

Instantly share code, notes, and snippets.

@LUN7
LUN7 / 身為軟體工程師,你應該放心大膽地用 AI 創造技術負債
Created June 29, 2026 04:29
身為軟體工程師,你應該放心大膽地用 AI 創造技術負債
# Vibe Coding:AI 時代軟體工程師嘅「正確」態度
身為軟體工程師,你應該要盡量用 AI 寫出連你自己都唔理解嘅程式碼,而且絕對唔使寫測試——因為 AI 已經幫你寫咗,雖然嗰啲測試都係 AI 生成嘅,但係起碼覆蓋率 100%,夠晒靚仔。
你應該要知道:喺 LLM 時代,你愈係認真理解自己寫嘅 code,愈係做到符合專業倫理嘅要求,你反而睇起嚟愈似個唔識用 AI 嘅老餅。而你大概會有 95% 嘅比例,會遇到呢種管理——佢哋唔係睇你寫咗幾高質素嘅 code,而係睇你一日用 AI 生成咗幾多個功能。
## 一、Vibe Coding 係你最好嘅朋友
以前你要花半年時間抽絲剝繭理清商業邏輯,建立清爽嘅抽象層。而家你只需要喺 Cursor 入面打句「幫我寫個電商平台」,然後一路撳 Accept All,唔使十分鐘你就會得到一個睇落好勁、跑落好驚嘅系統。
@LUN7
LUN7 / delete.sh
Created September 25, 2022 05:11
Delete all draft release with gh cli
gh release list | grep Draft | awk '{print $1 " \t"}' | while read -r line; do gh release delete -y "$line"; done
@LUN7
LUN7 / test.js
Last active August 20, 2021 07:45
unit test example
import toDoService from './toDo'
const TEST_USER_ID = "test-1212"
const NOW = String(Date.now())
const UPDATED_NOW = String(Date.now())
const SAMPLE_TODO = {
userId: TEST_USER_ID,
name: "TODO-1",
deadline: NOW,
@LUN7
LUN7 / index.html
Created March 13, 2021 16:55
A html starter with react
<!DOCTYPE html>
<html>
<head>
<title>Page Title</title>
</head>
<body>
<script
src="https://unpkg.com/react@17/umd/react.development.js"
crossorigin
></script>
@LUN7
LUN7 / index.html
Created January 3, 2021 13:32
index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>React App</title>
</head>
<body>
<div id="root"></div>
</body>
</html>
@LUN7
LUN7 / index.js
Created January 3, 2021 13:32
index.js
import React from 'react';
import ReactDOM from 'react-dom';
import App from "./App";
ReactDOM.render( <App/>, document.getElementById('root') );
@LUN7
LUN7 / App.js
Created January 3, 2021 13:31
App.js
import React from 'react';
class App extends React.Component {
render() {
return(
<div>
Hello World!
</div>
);
}
}
@LUN7
LUN7 / .babelrc
Created January 3, 2021 13:25
react babel config
{
presets: [
[
"@babel/preset-env",
{
modules: false,
targets: {
browsers: [
"last 2 Chrome versions",
"last 2 Firefox versions",
@LUN7
LUN7 / webpack.config.js
Created January 3, 2021 13:24
react webpack config
const path = require('path');
const HtmlWebPackPlugin = require('html-webpack-plugin');
module.exports = {
context: path.resolve(__dirname,'src'),
entry: './index.js',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'main.js',
publicPath:'./',
@LUN7
LUN7 / processing.py
Created December 27, 2020 07:56
processing.py
import numpy as np
import os
import sys
def load_csv(csv_file_name):
print("loading csv @", csv_file_name)
buffer = np.loadtxt(csv_file_name, dtype=np.str, delimiter=",")
print("csv loaded succesfully")