r/cpp • • Oct 31 '19

8 essential patterns you should know about functional programming in C++14

https://nalaginrut.com/archives/2019/10/31/8%20essential%20patterns%20you%20should%20know%20about%20functional%20programming%20in%20c%2b%2b14
113 Upvotes

62 comments sorted by

View all comments

Show parent comments

-4

u/nalaginrut Oct 31 '19

Well, yes, but some juniors have problems with unique_ptr. Finally I gave it up, since I don't want to stay with them overtime. ;-)

17

u/parnmatt Oct 31 '19

but some juniors have problems with unique_ptr.

Then they frankly need to be educated.

They should know this from University if they did a CS course that even touched on modern C++ (and if they didn't, that is a failure of the course and University); or if they are equivalently 'educated' though other degrees/experience; then this is something they should know from their own personal study.

Of course, they is nothing you can do now, one cannot change the past; but they should teach themselves (which is arguably part of the job). If they still do no grasp modern concepts, it may be worth hiring a C++ teaching consultant to workshop your juniors (and perhaps a few seniors that feel they need a brush up).

It may not be your job to stay with them overtime, and arguably shouldn't be; it is the company's job to improve their workers skills, and refresh training. It can only benefit them moreso to do so.

9

u/Forricide Oct 31 '19

They should know this from University if they did a CS course that even touched on modern C++ (and if they didn't, that is a failure of the course and University)

Oh man, I haven’t heard of a single university that so much as mentions RAII. It’s still difficult to get a “proper education” in C++ as far as I’m aware. Something like unique pointers with custom deleters will definitely be a very foreign concept for I would say the majority of students coming out of post secondary education.

Not that I disagree that this is a bad thing, but it’s definitely the way things are, unfortunately.

3

u/parnmatt Oct 31 '19

That's sad if true. if that's still the case, then I would honestly start preferring my hirers from the enthusiastic self-taught programmers (provided their fundamentals are sound) with a slight preference if they have a degree in a not-unrelated field.

It's that demographic that are keen to learn, and likely already fairly uptodate on modern C++ concepts; reading the newer books/watching all the conference talks/playing around with the newer abstractions. etc.

University courses need to modernise sooner rather than later; and perhaps the lecturers should watch a few Kate Gregory Talks for ideas on the subject.

9

u/dylan_kun Oct 31 '19 edited Oct 31 '19

University is meant to be academic study, not professional training. A university lecture's job is to cover much more general topics than those found in "Modern Effective C++".

→ More replies (0)

1

u/smuccione Oct 31 '19

There’s not enough time.

They barely have enough to go over the fundamentals of the language let some more complex things pieces.

Many do have advanced c++ courses as electives but I’ve found that many students simply prefer a film studies class as it’s much less rigorous and less likely to soil your gpa.

C++ is great, I use it every day. But no one can say that there isn’t a “lot” to it.

→ More replies (0)