techhub.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
A hub primarily for passionate technologists, but everyone is welcome

Administered by:

Server stats:

5.4K
active users

#cplusplus

69 posts36 participants0 posts today

Ok, I guess I'll do an #introduction on this account now:

I'm Eleanor, a software engineer working mostly in #cplusplus and #rust these days. My background is in math, physics, and scientific computing, but I'm currently moving into a new thing that's still programming in Rust and C++, but in a very different domain than what I'm used to (and for a lot more users).

When I'm not staring at text on a screen or managing other aspects of my life, I play the violin and the piano, and I read science fiction and fantasy books. These are few and far between these days since there's always a lot going on.

This account is intended to focus mostly on my computer-related escapades.

Continued thread

and improved smart pointer support.

We've deprecated outdated features to align with the C++ standard library and modernized our build infrastructure for compatibility with the latest compilers.

Huge thanks to our community contributors for making this possible! Share your feedback below! #CPlusPlus #GSL #OpenSource #Community

For more information check: devblogs.microsoft.com/cppblog.

C++ Team Blog · Announcing Guidelines Support Library v4.2.0 - C++ Team BlogVersion 4.2.0 of Microsoft's Guidelines Support Library brings performance improvements, safety features, modern compiler support.

I have run this exercise with multiple C++ developers from junior to senior. Its a simple task that can reveal strength/weakness in a devs understanding of what good C++ could look like.

Implement a reverse words function that works in-place on the string provided.
- Make it correct
- Make it performant
- Make it maintainable

Give it a go. I'll also post content warning hint(s) as replies.

godbolt.org/z/9faxG7K4b

godbolt.orgCompiler Explorer - C++ (x86-64 clang 17.0.1) void reverse_words(std::string &) noexcept { // Implement here } int main() { using namespace std::string_literals; auto str = "Can you reverse these words?"s; reverse_words(str); assert(str == "words? these reverse you Can"); }