David Sugar · @gnutelephony
395 followers · 311 posts · Server floss.social

Bordeaux, like Bayonne, does heavily use c++ inheritance and virtuals. Coventry, on the other hand, only uses class inheritance in one place now, and never uses virtuals at all. It does make extensive use of stl containers, shared poihnters, destruct automation, and raii. While objects are essential (structs with member functions), does one need full classes at all in Coventry, let alone with rigorously defined accessors and getters? Probably not...

#Cpp

Last updated 1 year ago

Am I? · @ami
145 followers · 1838 posts · Server floss.social

Reading the freestanding for inout expected and span proposal and I got to thinking.

The proposal declares shared_ptr, but leaves it undefined in order to be able to exclude it. But last I tried I was not allowed to make a module with a declared, but not defined class.

Am I mistaken or would this make an std.freestanding module impossible?

open-std.org/jtc1/sc22/wg21/do

#Cpp #modules #standardisation

Last updated 1 year ago

Am I? · @ami
145 followers · 1823 posts · Server floss.social

First weekend of the month, a cup of coffee and a little light reading:

open-std.org/jtc1/sc22/wg21/do

#Cpp #standardisation #nerdlife

Last updated 1 year ago

Am I? · @ami
145 followers · 1823 posts · Server floss.social

@meetingcpp
This really should be bigger than the vcpkg integration. However I rarely use without having my development tools in a docker container since they made it so _easy_. Will this run with the install inside the container?

#clion #conan #conanio #jetbrains #Cpp

Last updated 1 year ago

shemeshg · @shemeshg
0 followers · 40 posts · Server floss.social

identify change of theme on mac and windows is easy
```
SystemPalette {
id: systemPalette
colorGroup: SystemPalette.Active
onButtonTextChanged: {
// Fix theme bugs manually
}
}
```
Is there equivalent thing for Qt Widgets?

#Cpp #qml #qt

Last updated 1 year ago

David Sugar · @gnutelephony
360 followers · 12 posts · Server floss.social

One thing I have recently done is introduce some concepts into , particularly the idea that sync locks are also accessors for otherwise privatized data containers. This assures the only way to access or manipulate data requires an actively acquired a lock, as well as having a lock/pointer release when falling out of scope. Mechanically it feels cleaner in c++, too.

#Rust #Cpp

Last updated 1 year ago

shemeshg · @shemeshg
0 followers · 31 posts · Server floss.social

Should be more strict by default? I wonder because (3) enforces declaring global properties, avoiding direct modification of parent properties, and using emit to trigger child actions, etc…?

#qt #qml #vue #Cpp

Last updated 1 year ago

shemeshg · @shemeshg
0 followers · 31 posts · Server floss.social

@meetingcpp

I encountered a problem with vscode not respecting the breakpoints in the files generated by the cpp2 tool. However, this seems to be a vscode issue, not a cpp2 issue, as reported here: [github.com/modern-cmake/cppfro]. I couldn’t find a solution, so maybe someone else has an idea how to fix it.

By the way, I agree that cppfront with cmake is an excellent way to start using modules and modern C++20 features.

(for experimental use only)

#Cpp #cppfront #cppfront2 #cmake

Last updated 1 year ago

Am I? · @ami
142 followers · 1693 posts · Server floss.social

C++: Modules removed the last reason to use the preprocessor!
Me: Cool! How?
C++: By using a preprocessor!
Me: 🤦


sources: youtube.com/watch?v=_LGR0U5Opd

#Cpp #cppmodules #modules

Last updated 1 year ago

Am I? · @ami
142 followers · 1693 posts · Server floss.social

My :
CMake is the perfect build system for C++, It is modern, easy and can be very powerful if you know how to use it properly.
But people keep using it like they did in the dark ages and the teaching materials are mostly outdated so the reputation is terrible.
@rnd

#cmake #hottake #Cpp

Last updated 1 year ago

shemeshg · @shemeshg
0 followers · 25 posts · Server floss.social

@soundwarrior20

I am curious to know how you would make VCVRack more accessible for visually impaired

Have you written a UX guideline/document/RFP for how to make generative music more accessible in this way?

If this is a call for participation for educational purposes, perhaps bela.io/ is the way to go.

I have already made bela.io c++ tutorial examples available for desktop github.com/shemeshg/LearningRt

#vcvrack #bela #belaio #qt #Cpp

Last updated 1 year ago

Bart Louwers · @bart
53 followers · 206 posts · Server floss.social

"A few months ago, the programming C++ language claimed position 3 of the TIOBE index (at the expense of Java). But C++ has not finished its rise. C seems to be its next victim." 🔥

#Cpp #C #programminglanguages

Last updated 1 year ago

SoftwareHub · @SoftwareHub
22 followers · 13 posts · Server floss.social
Peter Weispfenning · @PWeispfenning
80 followers · 34 posts · Server union.place

CC MLPD letter of condolence to
bit.ly/3UTKPtn
Protest against the murder of the "They fought all their lives for freedom, peace and socialism."
The MLPD will keep their memory in honor
Revolutionaries are not terrorists! Don't give anti-communism a chance

#Cpp #tiamzons

Last updated 1 year ago

Am I? · @ami
125 followers · 1089 posts · Server floss.social

@meetingcpp
Digit separators are my absolute favorite feature.
There are a lot of reasons to use 11+ but having written and coming back to not being able to see what number we're talking about (especially if you have a smidgen of ) just feels like such a regression!

#moderncpp #Cpp #vhdl #dyscalculia

Last updated 1 year ago

Am I? · @ami
125 followers · 1075 posts · Server floss.social

@philsquared Just listened to your little rant on for#CPPCast.
Just checked my and it seems I'm using cppcast.com/feed.rss as my link, is this the safe route to go?

I believe I used AntennaPod's search feature to find it.

I wouldn't want to miss a new episode of content.

#RSS #AntennaPod #Cpp

Last updated 1 year ago

Qt Project · @qt
385 followers · 3 posts · Server floss.social

A new week is starting, and we are really curious to know what are you planning to develop with Qt this week? 🤔

#Python #qml #Cpp #qt #qtproject

Last updated 1 year ago

Am I? · @ami
118 followers · 888 posts · Server floss.social

@kdab
Followed! and welcome. Remember that you have to use the hashtag to get what you are after (No I don't know what hashtag you would use for the C preprocessor 🤪 )

#Cpp

Last updated 2 years ago

Am I? · @ami
118 followers · 799 posts · Server floss.social

@markgalassi
Be consistent with the rest of your code base.
Because the standard library uses snake_case and because underscores can lead to undefined behaviour my style guide is:
You _never_ use the underscore, it is not your character to use. This goes especially for pre- and postfix.

This differentiates my code from the standard library.

doesn't have one way of doing it, so the only real answer is: be consistent with yourself.

also, namespaces help you in the case you mentioned.

#Cpp

Last updated 2 years ago

Mark Galassi · @markgalassi
59 followers · 47 posts · Server floss.social

dear C++ programmers, I cannot find a standard convention for this: a struct/class method that represents the class as a string. ToString() ? or to_string() ? or toString() ? I was leaning toward to_string(), but there is a bit of conflict with std::to_string().
-- any opinions?

#Cpp

Last updated 2 years ago