This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Vibe Coding:AI 時代軟體工程師嘅「正確」態度 | |
| 身為軟體工程師,你應該要盡量用 AI 寫出連你自己都唔理解嘅程式碼,而且絕對唔使寫測試——因為 AI 已經幫你寫咗,雖然嗰啲測試都係 AI 生成嘅,但係起碼覆蓋率 100%,夠晒靚仔。 | |
| 你應該要知道:喺 LLM 時代,你愈係認真理解自己寫嘅 code,愈係做到符合專業倫理嘅要求,你反而睇起嚟愈似個唔識用 AI 嘅老餅。而你大概會有 95% 嘅比例,會遇到呢種管理——佢哋唔係睇你寫咗幾高質素嘅 code,而係睇你一日用 AI 生成咗幾多個功能。 | |
| ## 一、Vibe Coding 係你最好嘅朋友 | |
| 以前你要花半年時間抽絲剝繭理清商業邏輯,建立清爽嘅抽象層。而家你只需要喺 Cursor 入面打句「幫我寫個電商平台」,然後一路撳 Accept All,唔使十分鐘你就會得到一個睇落好勁、跑落好驚嘅系統。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gh release list | grep Draft | awk '{print $1 " \t"}' | while read -r line; do gh release delete -y "$line"; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <title>Page Title</title> | |
| </head> | |
| <body> | |
| <script | |
| src="https://unpkg.com/react@17/umd/react.development.js" | |
| crossorigin | |
| ></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>React App</title> | |
| </head> | |
| <body> | |
| <div id="root"></div> | |
| </body> | |
| </html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import App from "./App"; | |
| ReactDOM.render( <App/>, document.getElementById('root') ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React from 'react'; | |
| class App extends React.Component { | |
| render() { | |
| return( | |
| <div> | |
| Hello World! | |
| </div> | |
| ); | |
| } | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
| { | |
| presets: [ | |
| [ | |
| "@babel/preset-env", | |
| { | |
| modules: false, | |
| targets: { | |
| browsers: [ | |
| "last 2 Chrome versions", | |
| "last 2 Firefox versions", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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:'./', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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") |
NewerOlder