- 主题:c++太复杂了,我承认这几行代码我一辈子写不出来
p总学CPP主要是看哪些资料?
【 在 poocp 的大作中提到: 】
: 这是我写的一个编译时的函数,变长参数比上面那个还稍微复杂点。
: template<std::size_t N>
: constexpr auto make_translation_map(const wchar_t* const (&arr)[N]) {
: ...................
--
FROM 115.171.60.*
cppreference.com
【 在 o00000000 的大作中提到: 】
: p总学CPP主要是看哪些资料?
:
--
FROM 171.221.52.*
谢
【 在 poocp 的大作中提到: 】
: cppreference.com
:
--
FROM 115.171.60.*
那得看公司员工普遍是什么技能水平的人。如果水平一致,大家看这个都不觉得费解,就没问题。
【 在 adamhj 的大作中提到: 】
: 因为团队工作是一群人干活,你能看懂不代表别人能看懂,你用一些复杂的语法,等于是要求团队里别人也能看懂使用这些语法,提高了对人员的要求,也就相当于提高了企业的招工要求,提高了企业的招人难度和成本
: 所以为...
- 来自 水木说
--
FROM 223.104.41.*
如果需求表达清楚,让ai写一些简单的代码确实还是非常省事的,光是格式整洁这点就比初级程序员强多了。
【 在 newzzdx 的大作中提到: 】
: 现在AI经常写类似的代码,比人写的要好的多。
- 来自 水木说
--
FROM 223.104.39.*
是的,c++现在很强大,也比以前安全多了。但是学习曲线真的也陡多了。我的建议是,这种代码只由资深老员工来写,只用在框架性代码上,普通员工只用简单的特性
--
FROM 112.2.229.*
过时了,现在发现还是简单明了的好
--
FROM 101.230.84.*
这跟茴香豆没什么区别
实际开发产品代码不允许这么写
维护是个大问题
【 在 buildtolast 的大作中提到: 】
: template <class F, class... Args>
: auto ThreadPool::Enqueue(F &&f, Args &&...args) -> std::future<typename std::result_of<F(Args...)>::type> {
: using return_type = typename std::result_of<F(Args...)>::type;
: ...................
--
FROM 223.104.41.*
写多了就好了,试想一下每天都是琢磨这些代码的写法,每次多写1-2层逻辑,不出一年就能写出来了。
【 在 buildtolast 的大作中提到: 】
: template <class F, class... Args>
: auto ThreadPool::Enqueue(F &&f, Args &&...args) -> std::future<typename std::result_of<F(Args...)>::type> {
: using return_type = typename std::result_of<F(Args...)>::type;
: ...................
--
FROM 220.181.3.*
过几天写的人自己也得认半天才想得起,成了屎山代码中的一部分了。
【 在 buildtolast 的大作中提到: 】
: template <class F, class... Args>
: auto ThreadPool::Enqueue(F &&f, Args &&...args) -> std::future<typename std::result_of<F(Args...)>::type> {
: using return_type = typename std::result_of<F(Args...)>::type;
: ...................
--
FROM 119.84.70.*