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

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

 
🔗
匿名用户-NGXPU  | 添加认证 | 2023-7-21 15:42:50 |倒序浏览

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

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

x

Python转码选手,现在在狗家用C++写app,写了两年了也写不明白,sigh。


现在写的code基本能用,但是遇到稍微高级一点的用法就懵逼了,经常需要打log才知道发生了什么。。


组里也就是写写业务逻辑,感觉得不到训练,有什么好的练手途径么。。。
.--

上一篇:META MLE 是不是所有公司里最卷的
下一篇:为何说了有140 recruiter还要问I797到期时间
全局:
现代的枇杷 发表于 2023-07-21 07:56:04. 1point 3acres
啥公司啊,语言是障碍吗?上手一门语言我三个星期绰绰有余
你认真读完头十个字都没这个问题
回复

使用道具 举报

地里匿名用户
推荐
匿名用户-ZZB7H  | 添加认证 | 2023-7-22 00:32:37
要看你的人生和职业规划。我是java选手现在在狗写c++。写了四年,都是照着cs代码库里面,结合一些文档,根本不去管原理。我的规划避免死磕语言,多提高架构和communication,leadership这些能力,今后跳槽
回复

使用道具 举报

全局:
码农找工作 发表于 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.
Newsgroups: gmane.comp.version-control.git
Date: 2007-09-06 17:50:28 GMT (2 years, 14 weeks, 16 hours and 36 minutes ago). Waral dи,

On Wed, 5 Sep 2007, Dmitry Kakurin wrote:
>
> When I first looked at Git source code two things struck me as odd:. 1point 3 acres
> 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
to the conclusion that any programmer that would prefer the project to be . 1point3acres
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
the "nice" library features of the language like STL and Boost and other
total and utter crap, that may "help" you program, but causes:

- 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
   your code depends on all the nice object models around it, and you . Waral dи,
   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
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..1point3acres

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
advantage.

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
result is a horrible and unmaintainable mess.
. 1point3acres
But I'm sure you'd like it more than git.


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

评分

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

查看全部评分

回复

使用道具 举报

地里匿名用户
🔗
匿名用户-9EBGR  | 添加认证 | 2023-7-21 20:13:55 来自APP
文不对题. From 1point 3acres bbs
. 1point 3acres
只写业务逻辑的话, 也用不到元编程这种。 只能建议去找开源项目练手了
回复

使用道具 举报

地里匿名用户
🔗
匿名用户-KU9JZ  | 添加认证 | 2023-7-21 20:31:12
想练手目前只想到去做开源重复造轮子,,聚焦做公司给你那点手头屁大业务学到的东西很少
回复

使用道具 举报

🔗
zhouxf53 2023-7-22 00:39:36 | 只看该作者
全局:
匿名用户 发表于 2023-7-21 09:32
要看你的人生和职业规划。我是java选手现在在狗写c++。写了四年,都是照着cs代码库里面,结合一些文档,根 ...

说得真好!
回复

使用道具 举报

🔗
parkhunter 2023-7-22 00:41:11 | 只看该作者
全局:
据说,写满一万小时就掌握了
回复

使用道具 举报

全局:
本帖最后由 idealmaster 于 2023-7-21 12:25 编辑

花点时间看看书,推荐effective modern c++,狗家都有订阅oreilly,上面就能看
回复

使用道具 举报

🔗
cxiao1 2023-7-22 03:30:21 | 只看该作者
全局:
现代的枇杷 发表于 2023-7-21 10:56
啥公司啊,语言是障碍吗?上手一门语言我三个星期绰绰有余

我们公司有大量的Scala代码,你也可以三周上手吗?
回复

使用道具 举报

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

本版积分规则

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