Thread 105681708 - /g/ [Archived: 904 hours ago]

Anonymous
6/23/2025, 6:25:15 PM No.105681708
nigger
nigger
md5: 4c3a47bb8c11921d14149a55f51a61ba๐Ÿ”
you WILL use the newly added compile-time reflection coming with C++26, right anon???
Replies: >>105681855 >>105682137 >>105682156 >>105683572 >>105683583
Anonymous
6/23/2025, 6:41:44 PM No.105681855
>>105681708 (OP)
I bet its over engineered whilst being minimally useful.
Replies: >>105682137
Anonymous
6/23/2025, 7:19:37 PM No.105682137
1733851186785449
1733851186785449
md5: 0d90be387845288ce744946eb2f0c544๐Ÿ”
>>105681708 (OP)
>>105681855
Beef > C++ > C# > ... > Python
Replies: >>105682153
Anonymous
6/23/2025, 7:21:31 PM No.105682153
>>105682137
Go to bed, Christian
Anonymous
6/23/2025, 7:21:46 PM No.105682156
>>105681708 (OP)
Finnster programs?
Anonymous
6/23/2025, 10:11:29 PM No.105683572
435432432
435432432
md5: 3407c92381e131949b79fcc981aad57d๐Ÿ”
>>105681708 (OP)
wait what? even though C++ is the biggest bloated fucking language on this planet it can't do this:?
Replies: >>105683720
Anonymous
6/23/2025, 10:12:50 PM No.105683583
>>105681708 (OP)
Didn't know Ghandi was a programmer.
Anonymous
6/23/2025, 10:32:20 PM No.105683720
>>105683572
Name one use case for this, protip: you can't.
Replies: >>105683809
Anonymous
6/23/2025, 10:43:36 PM No.105683809
3243254432
3243254432
md5: e19db64c172f2e85327bfc7525efdd9a๐Ÿ”
>>105683720
parsing json. the unity game engine also uses reflection to showcase your variables on the ui (pic related).
I also used it to create a tool that diffs our test databases when running tests to recognize unintentional changes to the database. it's extremely useful and powerful. the fact that you ask this proves you are either not an employed programmer or a junior with a major case of dunning-kruger.
Replies: >>105683944
Anonymous
6/23/2025, 11:01:22 PM No.105683944
>>105683809
>parsing json
oh shit we didn't have C++ json parsers until now???
>the unity game engine also uses reflection to showcase your variables on the ui (pic related).
oh shit we didn't have C++ debuggers until now???
Replies: >>105684255
Anonymous
6/23/2025, 11:41:57 PM No.105684255
>>105683944
you are a retard. in C++ parsing doesnโ€™t automatically map JSON keys to struct fields by name. Instead, you define how to map the JSON to your object by hand like this
void from_json(const json& j, MyType& obj) {
j.at("some_json_key").get_to(obj.member_variable);
}

which gets very repetitive after a while. this is grudgework that reflection can save you from.
in other languages with reflection you can just say:
var myobj = json.parse("file.json");


>the unity game engine also uses reflection to showcase your variables on the ui (pic related).

>oh shit we didn't have C++ debuggers until now???

what does showing objects dynamically on the UI have to do with debugging? you truly are a fucking retard.

you are the embodiment of dunning-kruger