|
|
# ? Jun 2, 2023 15:43 |
|
|
# ? May 15, 2024 03:31 |
|
greg my brother i am no longer going to review any code for you
|
# ? Jun 2, 2023 15:44 |
|
good for them
|
# ? Jun 2, 2023 15:49 |
|
we talking pre or post c++11 here?
|
# ? Jun 2, 2023 16:03 |
|
Deep Dish Fuckfest posted:we talking pre or post c++11 here? post, but regardless its going to make code so much harder to read lol
|
# ? Jun 2, 2023 16:11 |
|
if that's anywhere near the hardest thing to figure out with whatever c++ codebase you're working with then consider yourself lucky
|
# ? Jun 2, 2023 16:14 |
|
auto is good because it lets me pretend c++ is a better language like python
|
# ? Jun 2, 2023 16:21 |
|
you auto use a better language
|
# ? Jun 2, 2023 16:27 |
|
when I worked at the fruitstand, my team’s style guide mandated ‘auto’ for all declarations except ‘int’; using it for ‘bool’ was optional
|
# ? Jun 2, 2023 16:33 |
|
Deep Dish Fuckfest posted:if that's anywhere near the hardest thing to figure out with whatever c++ codebase you're working with then consider yourself lucky oh there is tons of problems, just was riffing since this is going to make code even more unreadable lol
|
# ? Jun 2, 2023 16:40 |
|
Captain Foo posted:you auto use a better language we have a much better devleoped and documented framework in java but there is exactly 1 team in europe somewhere that refuses to move and we still have to support it lol
|
# ? Jun 2, 2023 16:44 |
|
Why on earth would you not use implicit type declarations if your language supports them? At least in C# it makes code a lot more readable.
|
# ? Jun 2, 2023 16:50 |
|
|
# ? Jun 2, 2023 16:58 |
|
akadajet posted:Why on earth would you not use implicit type declarations if your language supports them? At least in C# it makes code a lot more readable. in general I agree, but the downside of type inference is that it puts a burden on compiler error messages to succinctly tell developers why and where inference has failed, and, well, C++ error reporting etc etc
|
# ? Jun 2, 2023 17:44 |
|
Captain Foo posted:you auto use a better language
|
# ? Jun 2, 2023 17:45 |
|
I find explicit type declarations more clear a lot of the time but really it depends on what the thing is doing imo.
|
# ? Jun 2, 2023 18:10 |
|
does auto make types like in js? coz I love having my code feel like it has all the stability of a tomato plant without any sticks holding it up
|
# ? Jun 2, 2023 19:17 |
|
AnimeIsTrash posted:we have a much better devleoped and documented framework in java but there is exactly 1 team in europe somewhere that refuses to move and we still have to support it lol they're smarter than you apparently
|
# ? Jun 2, 2023 19:29 |
|
the maojrity of people on this planet are smartter than me OP
|
# ? Jun 2, 2023 19:57 |
|
i dont belive that
|
# ? Jun 2, 2023 20:00 |
|
echinopsis posted:does auto make types like in js? coz I love having my no. it just means the compiler infers the type based on context. javascript figures out types and poo poo at runtime
|
# ? Jun 2, 2023 20:01 |
|
this is what happens when you have a generation of programmers raised on javascript and p-lang toy bullshit
|
# ? Jun 2, 2023 20:09 |
|
echinopsis posted:does auto make types like in js? coz I love having my 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 we are, of course, talking about auto when used as placeholder for a local variable type here, because in true c++ fashion every keyword needs to have as many different meaning as possible in different context (though thankfully all of them still require the type to be deducible at compile time). we're not talking about auto used as, say, a function parameter type as is now allowed in c++20. possibly with concepts acting as constraints. or as part of decltype(auto) and its delightfully obvious meaning. or its effect of transforming a normal god-fearing r-value reference into a universal reference of loose morals when replacing a concrete type in a variable definition. or the type of firearm best suited to ending my suffering
|
# ? Jun 2, 2023 20:13 |
|
auto was also the bus driver in the Simpsons
|
# ? Jun 2, 2023 20:33 |
|
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 post is a fuckfest
|
# ? Jun 2, 2023 21:19 |
|
Sweevo posted:this is what happens when you have a generation of programmers raised on javascript and p-lang toy bullshit
|
# ? Jun 2, 2023 21:33 |
|
auto is just telling the reader to gently caress off because you don’t care if they understand the context
|
# ? Jun 2, 2023 21:34 |
|
declaring my variables like “auto fellatio = 0;”
|
# ? Jun 2, 2023 21:36 |
|
echinopsis posted:this post is a fuckfest wish that were true for my actual life
|
# ? Jun 2, 2023 21:36 |
|
auto's not a big deal IMO... whenever you create a variable you're always writing it out likecode:
|
# ? Jun 2, 2023 21:59 |
|
sounds like a good way to reduce cognitive load imo
|
# ? Jun 2, 2023 22:32 |
|
echinopsis posted:sounds like a good way to reduce cognitive load imo yeah, especially when your libraries are built on the house of cards that is c++ templates.
|
# ? Jun 2, 2023 22:42 |
|
just mouse over the auto
|
# ? Jun 2, 2023 22:59 |
|
Glorgnole posted:auto's not a big deal IMO... whenever you create a variable you're always writing it out like the main reason to use auto is because code:
|
# ? Jun 3, 2023 01:11 |
|
people bitch about java being too wordy but goddamn
|
# ? Jun 3, 2023 01:31 |
|
rotor posted:people bitch about java being too wordy but goddamn it's nested templates and namespaces all the way down
|
# ? Jun 3, 2023 01:35 |
|
i refuse to learn about anything after c++98
|
# ? Jun 3, 2023 03:52 |
|
akadajet posted:yeah, especially when your libraries are built on the house of cards that is c++ templates. it's not a house of cards! it's a conceptual blueprint that contains latent house-like structures which can potentially be built from cards! or from reinforced concrete or from drywall
|
# ? Jun 3, 2023 04:22 |
|
I looked at the Boost Graph Library once and it was like staring into the sun
|
# ? Jun 3, 2023 04:27 |
|
|
# ? May 15, 2024 03:31 |
|
i was like "the loving thing is all header files, where is the code??"
|
# ? Jun 3, 2023 04:27 |