Javascript
假设AI提升十倍效率,周五我们能放假吗?
文章以幽默讽刺的口吻回应了AI将带来生产力革命的论调。作者假设AI能实现十倍效率提升,那么原本需要一周的工作量在周一中午就能完成,因此建议每周只工作四天(周一到周四),周五作为“AI工人日”休息。作者想象董事会和高管也能一起享受假期,因为AI代理可以代劳工作。文末还调侃了马斯克生育率呼吁与实际育儿成本(加州每月6000美元托儿费)的矛盾。
mike精选的实用TypeScript模式集合
const routes ={ home:"/", about:"/about",} satisfies Record<string, string>;// 从值中推导类型,而不是重复它们,// 尽量不要使用enum(string性能更好)const roles =["admin","user","guest"]asconst; type Role =(typeof roles)[number];switch(state){case'admin':breakcase'user':breakdefault:{//never 妙用const exhaustive: never = state;return exhaustive;}} type UserPreview = Pick<User,"id"|"name">;//尽量不用范型getData(userSchema);//good getData<User>();//not good//开启严格编译{"strict":true,"noUncheckedIndexedAccess":true,"exactOptionalPropertyTypes":true}//强大的模版类型 type Route =`/api/${string}`;Matt Smith
夜雨聆风