📣 黑五网一特惠|VIP一年通行证5折,蓝莓、Offer多多同步特惠
楼主: 匿名
跳转到指定楼层
上一主题 下一主题
收起左侧

[自我提升] 人生苦短,有必要死磕C++吗

 
🔗
tobebeyond 2023-7-22 05:40:32 | 只看该作者
全局:
匿名用户 发表于 2023-7-22 00:32
要看你的人生和职业规划。我是java选手现在在狗写c++。写了四年,都是照着cs代码库里面,结合一些文档,根 ...
. Χ
知道原理并不耽误职业规划。。。
回复

使用道具 举报

🔗
tobebeyond 2023-7-22 05:40:51 | 只看该作者
全局:
idealmaster 发表于 2023-7-22 03:20
. 1point3acres花点时间看看书,推荐effective modern c++,狗家都有订阅oreilly,上面就能看

oreilly现在好像没有了。。。
回复

使用道具 举报

🔗
tobebeyond 2023-7-22 05:42:47 | 只看该作者
全局:
parkhunter 发表于 2023-7-22 00:41
据说,写满一万小时就掌握了

如果都是写同样的application code,写一万年也不会掌握
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-ADW3A  | 添加认证 | 2023-7-22 05:47:38
匿名用户 发表于 2023-7-21 13:34
个人其实觉得过度的meta programming是一种糟粕,基本的template够用了。这玩意虽然是图灵完备的,但没人 ...

这还真不是,很多对performance有要求的公司都要用crtp的,本质就是一种meta programming。meta programming追求的是更多compile time的时间空间换取runtime的时间。template是为了generic。
回复

使用道具 举报

🔗
未来来来 2023-7-22 06:07:17 | 只看该作者
全局:
你这么问,其实心里已经有答案了...
回复

使用道具 举报

全局:
码农找工作 发表于 2023-07-21 14:09:09
具体喷的什么,好奇?
From: Linus Torvalds <torvalds <at> linux-foundation.org>
Subject: Re: [RFC] Convert builin-mailinfo.c to use The Better String Library.. 1point3acres
Newsgroups: gmane.comp.version-control.git
Date: 2007-09-06 17:50:28 GMT (2 years, 14 weeks, 16 hours and 36 minutes ago)

On Wed, 5 Sep 2007, Dmitry Kakurin wrote:.1point3acres
>
> When I first looked at Git source code two things struck me as odd:
> 1. Pure C as opposed to C++. No idea why. Please don't talk about portability,
> it's BS.

*YOU* are full of bullshit.

C++ is a horrible language. It's made more horrible by the fact that a lot
of substandard programmers use it, to the point where it's much much
easier to generate total and utter crap with it. Quite frankly, even if
the choice of C were to do *nothing* but keep the C++ programmers out,
that in itself would be a huge reason to use C.

In other words: the choice of C is the only sane choice. I know Miles
Bader jokingly said "to piss you off", but it's actually true. I've come . 1point3acres
to the conclusion that any programmer that would prefer the project to be . 1point 3 acres
in C++ over C is likely a programmer that I really *would* prefer to piss
off, so that he doesn't come and screw up any project I'm involved with.

C++ leads to really really bad design choices. You invariably start using . 1point 3 acres
the "nice" library features of the language like STL and Boost and other
total and utter crap, that may "help" you program, but causes:
. 1point3acres
- infinite amounts of pain when they don't work (and anybody who tells me
   that STL and especially Boost are stable and portable is just so full
   of BS that it's not even funny)

- inefficient abstracted programming models where two years down the road
   you notice that some abstraction wasn't very efficient, but now all . 1point 3acres
   your code depends on all the nice object models around it, and you
   cannot fix it without rewriting your app.
. Χ
In other words, the only way to do good, efficient, and system-level and
portable C++ ends up to limit yourself to all the things that are . Waral dи,
basically available in C. And limiting your project to C means that people
don't screw that up, and also means that you get a lot of programmers that
do actually understand low-level issues and don't screw things up with any
idiotic "object model" crap. ..

So I'm sorry, but for something like git, where efficiency was a primary
objective, the "advantages" of C++ is just a huge mistake. The fact that
we also piss off people who cannot see that is just a big additional
-baidu 1point3acresadvantage.

If you want a VCS that is written in C++, go play with Monotone. Really.
They use a "real database". They use "nice object-oriented libraries".
They use "nice C++ abstractions". And quite frankly, as a result of all . ----
these design decisions that sound so appealing to some CS people, the end . Waral dи,
result is a horrible and unmaintainable mess.. 1point 3 acres

But I'm sure you'd like it more than git.

. .и
补充内容 (2023-07-22 06:17 +08:00):. 1point3acres
年代有些久远,但是个人感觉论点依然成立

评分

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

查看全部评分

回复

使用道具 举报

全局:
cxiao1 发表于 2023-07-21 12:30:21.
我们公司有大量的Scala代码,你也可以三周上手吗?
我觉得一个人如果之前java+一门lisp dialect熟练三个周也不是不可能,c++我真的不信
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-ZZB7H  | 添加认证 | 2023-7-24 01:08:29
tobebeyond 发表于 2023-7-21 14:40
知道原理并不耽误职业规划。。。

人的时间精力有限
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-SMQS2  | 添加认证 | 2023-7-24 01:25:26 来自APP
辛往艾 发表于 2023-07-21 15:16:28
From: Linus Torvalds <torvalds <at> linux-foundation.org>
Subject: Re:  Convert builin-mailinfo.c to
你在一个Java程序员论坛发这些是不是搞错了什么。。

评分

参与人数 1大米 +1 收起 理由
nevsanev + 1 赞一个

查看全部评分

回复

使用道具 举报

🔗
tobebeyond 2023-7-25 06:21:28 | 只看该作者
全局:

循序渐进学c++并不会耗费那么多时间。。。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册账号
职场达人
  • ↑ 本版用于讨论职场各种干货话题,闲聊请去🔗聊聊或者🔗匿名版
  • ❌ 本版严禁水贴,引战,发布广告,拉群,贴个人联系方式,扣分无警告
  • ☑ 求职、面经等去 🔗北美求职和 🔗回国求职大区,刷题和学习请去 🔗终身学习大区
  • ☑ 请去专版发布 🔗内推, 🔗招聘信息,和讨论 🔗创业内容
  • ☑ PIP / DevList/ Need Support 等话题也已开设 🔗专版

本版积分规则

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