|
Ciaphas posted:i refuse to learn about anything after c++98 last time I touched c++ it was with visual c++ 6
|
# ? Jun 3, 2023 05:09 |
|
|
# ? May 16, 2024 17:42 |
|
rotor posted:people bitch about java being too wordy but goddamn this example was very short. I felt bad that I was not able to come up with the kind of horrors that emerge from just regular C++
|
# ? Jun 3, 2023 05:17 |
|
i use unreal blueprints which is basically just c++ and so can I just be real here for a second and say that c++ is easy as gently caress
|
# ? Jun 3, 2023 05:17 |
|
Sweevo posted:this is what happens when you have a generation of programmers raised on javascript and p-lang toy bullshit the macho programmer has logged on
|
# ? Jun 3, 2023 08:59 |
|
yeah, i too prefer unique_ptr< ComcreteFactoryAbstractRuleProviderStrategyImplContainer > thing = make_unique< ComcreteFactoryAbstractRuleProviderStrategyImplContainer >(); Over auto thing = make_unique< ComcreteFactoryAbstractRuleProviderStrategyImplContainer >(); Verbosity and repetitions make the code so much clearer
|
# ? Jun 3, 2023 10:13 |
|
typical review from guy who dislikes auto: auto& thing = Blah::GetInstance().GetThing(); thing.Wank(); "Argh don't use auto we dont know what the type of thing is!!!" Blah::GetInstance().GetThing().Wank(); "Ok "
|
# ? Jun 3, 2023 10:26 |
|
Zlodo posted:typical review from guy who dislikes auto: but what sort of wank is it and what if you were expecting a wank but we’re given a tug
|
# ? Jun 3, 2023 10:38 |
|
Zlodo posted:typical review from guy who dislikes auto:
|
# ? Jun 3, 2023 15:50 |
|
Zlodo posted:yeah, i too prefer Zlodo posted:typical review from guy who dislikes auto: let it out OP
|
# ? Jun 3, 2023 20:07 |
|
AnimeIsTrash posted:let it out OP I bet you also like hard tabs
|
# ? Jun 3, 2023 20:20 |
|
auto is great if you don't want implicit conversions, which c++ allows way too much of but ultimately the solution is: Captain Foo posted:you auto use a better language
|
# ? Jun 3, 2023 21:21 |
|
Do you also complain when people write std::string instead of std::basic_string<char, std::char_traits<char>, std::allocator<char>>?
|
# ? Jun 4, 2023 08:01 |
|
Xarn posted:Do you also complain when people write std::string instead of std::basic_string<char, std::char_traits<char>, std::allocator<char>>? yep
|
# ? Jun 4, 2023 10:34 |
|
Xarn posted:Do you also complain when people write std::string instead of std::basic_string<char, std::char_traits<char>, std::allocator<char>>? usually I let it slide
|
# ? Jun 4, 2023 22:45 |
|
i just find some global variable with the type i need and use decltype() to create a new one with the same type
|
# ? Jun 5, 2023 01:16 |
|
Xarn posted:Do you also complain when people write std::string instead of std::basic_string<char, std::char_traits<char>, std::allocator<char>>? and people say javascript is bad
|
# ? Jun 5, 2023 01:35 |
|
It is
|
# ? Jun 5, 2023 08:35 |
|
can we please not have this discussion again? all programming languages are bad because computers are bad and so is anything computer adjacent, computer touchers most of all
|
# ? Jun 5, 2023 15:24 |
|
Deep Dish Fuckfest posted:can we please not have this discussion again? all programming languages are bad because computers are bad and so is anything computer adjacent, computer touchers most of all what about code red mtn dew? is that bad and or computer adjacemnt
|
# ? Jun 5, 2023 16:00 |
|
rotor posted:i was like "the loving thing is all header files, where is the code??" C++: the loving thing is all header files, where is the code??
|
# ? Jun 5, 2023 19:02 |
|
it's header files all the way down, my friend this is why c++ compile times are poo poo and why g++ eats ram like it's adderall
|
# ? Jun 5, 2023 19:24 |
|
whyyyy did i use std::pair instead of making a god damned struct with a constructor so the compiler would error or at least warn on this poo poo
|
# ? Jun 5, 2023 21:19 |
|
i hate c++ now, as well as myself
|
# ? Jun 5, 2023 21:20 |
|
i won’t lie, I do NOT understand any of that bullshitcode:
|
# ? Jun 5, 2023 21:26 |
|
Ciaphas posted:i hate c++ now, as well as myself this is the way
|
# ? Jun 5, 2023 21:26 |
|
10 print "PENUS "; 20 goto 10
|
# ? Jun 5, 2023 21:33 |
|
echinopsis posted:i won’t lie, I do NOT understand any of that bullshit
|
# ? Jun 5, 2023 21:37 |
|
Ciaphas posted:whyyyy did i use std::pair instead of making a god damned struct with a constructor so the compiler would error or at least warn on this poo poo move! Look up, devid devid nooooo
|
# ? Jun 5, 2023 22:16 |
|
Sweevo posted:10 print "PENUS ";
|
# ? Jun 6, 2023 00:18 |
|
Ciaphas posted:whyyyy did i use std::pair instead of making a god damned struct with a constructor so the compiler would error or at least warn on this poo poo right click refactor easy peasy
|
# ? Jun 6, 2023 10:51 |
|
Deep Dish Fuckfest posted:no it doesn't and thank loving god for it. the compiler has to be able to figure out the type at compile time for it to work This guy c++es
|
# ? Jun 6, 2023 14:33 |
|
Ciaphas posted:whyyyy did i use std::pair instead of making a god damned struct with a constructor so the compiler would error or at least warn on this poo poo yeah c++’s love of default initialization is a huge design mistake. it gets overlooked when people talk about default init because u.b. is an even more glaring problem but that’s fixable whereas the language not forcing you to use meaningful values is not a simplified version of this (just with a local variable) was in my c++now talk a few weeks ago. i’ll steal this aggregate thing though for the next time i need to talk about it
|
# ? Jun 6, 2023 18:39 |
|
Twerk from Home posted:This guy c++es no i'm just dangerously unhinged as evidenced by the fact that c++ is my favorite language
|
# ? Jun 6, 2023 19:05 |
|
hell, same i'm at least glad that my faux pas can be put to good use
|
# ? Jun 6, 2023 19:10 |
|
Deep Dish Fuckfest posted:no i'm just dangerously unhinged as evidenced by the fact that c++ is my favorite language i dont get to do it that often but i really like coding in c++ too
|
# ? Jun 6, 2023 19:22 |
|
fart simpson posted:what about code red mtn dew? is that bad and or computer adjacemnt All code is bad
|
# ? Jun 6, 2023 19:24 |
|
|
# ? May 16, 2024 17:42 |
|
some time ago i memorised that type deduction guide for using visitors over variants. auto is cool!!
|
# ? Jun 6, 2023 20:12 |