查看: 3903| 回复: 8
收起左侧

网上抄代码什么原则?

Neowiseq | 显示全部楼层
本楼:   👍  1
100%
0%
0   👎
全局:   2763
81%
19%
636

注册一亩三分地论坛,查看更多干货!

您需要 登录 才可以下载或查看附件。没有帐号?注册账号

x

程序员遇到问题都会在网上搜索答案吧?
好用的代码段引用什么原则啊?多少行为界,还是一行都不能用?
会不会有人埋点小标记,以后找机会打官司索要报酬?

上一篇:让ChatGPT o1 静下心来慢慢想
下一篇:自我传播代码
ericLaw 2025-1-3 04:59:28 来自APP | 显示全部楼层
😂 7
💯 1
本楼:   👍  13
100%
0%
0   👎
全局:   2390
97%
3%
71
不是,为什么会有人知道你用了别人的代码?你把公司的代码开源了?
回复

使用道具 举报

本楼:   👍  5
100%
0%
0   👎
全局:   113
96%
4%
5
开源代码对是程序员对付资本主义生产资料私有制的武器,你难道希望为公司贡献的代码在离职后全归属公司吗
回复

使用道具 举报

jhstjh 2025-1-3 13:17:26 | 显示全部楼层
本楼:   👍  1
100%
0%
0   👎
全局:   3054
98%
2%
52
看代码许可啊,像MIT, BSD, Apache这种permissive的license限制比较少,一般注明就可以了。Protective的比如说GPL的话就要很小心了(也是可以绕过的比如用clean room design)。公司一般有audit team的吧,用开源代码之前肯定要批准过的。AI生成的代码就比较灰色地带。
回复

使用道具 举报

ai_xiaohai 2025-1-3 11:24:38 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   536
97%
3%
15
感觉这其实是个挺复杂的问题

遵照公司规章制度,避免个人liability是 最简单的答案
回复

使用道具 举报

本楼:   👍  1
100%
0%
0   👎
全局:   44
100%
0%
0
代码为什么不能抄?公开出来不就是为了互相学习?

评分

参与人数 1大米 +1 收起 理由
woodooman + 1 给你点个赞!

查看全部评分

回复

使用道具 举报

本楼:   👍  0
0%
0%
0   👎
全局:   8
100%
0%
0
很复杂的问题,而且看新闻说 就算都是自己写的代码也会有人来碰瓷。。。
一般特别多代码要用的话要看授权范围和注明出处,几行代码就自己重写一下吧。。
回复

使用道具 举报

plich 2025-1-4 01:35:46 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   3317
96%
4%
153
抄stack overflow什么的不算抄,那就是你写的。
抄别人repo的话,每个repo上面都会有说自己的license有什么要求。自己去读、或者让gpt帮你读、或者问公司legal。
比如下面这段就是pytorch的license的要求(link)
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright
   notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright
   notice, this list of conditions and the following disclaimer in the
   documentation and/or other materials provided with the distribution.

3. Neither the names of Facebook, Deepmind Technologies, NYU, NEC Laboratories America
   and IDIAP Research Institute nor the names of its contributors may be
   used to endorse or promote products derived from this software without
   specific prior written permission.
回复

使用道具 举报

kktv 2025-1-4 21:01:23 | 显示全部楼层
本楼:   👍  0
0%
0%
0   👎
全局:   1
100%
0%
0
以大部分项目最终的影响力,90%是违规使用的开源代码也不会有人找来
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
隐私提醒:
  • ☑ 禁止发布广告,拉群,贴个人联系方式:找人请去🔗同学同事飞友,拉群请去🔗拉群结伴,广告请去🔗跳蚤市场,和 🔗租房广告|找室友
  • ☑ 论坛内容在发帖 30 分钟内可以编辑,过后则不能删帖。为防止被骚扰甚至人肉,不要公开留微信等联系方式,如有需求请以论坛私信方式发送。
  • ☑ 干货版块可免费使用 🔗超级匿名:面经(美国面经、中国面经、数科面经、PM面经),抖包袱(美国、中国)和录取汇报、定位选校版
  • ☑ 查阅全站 🔗各种匿名方法

本版积分规则

Advertisement
>
快速回复 返回顶部 返回列表