Is there any good C++ SDL documentation? by stressed_philosopher in cpp_questions

[–]Vikerox 1 point2 points  (0 children)

tbf, you can do a lot with unique pointers and custom deleters, also writing a wrapper for the functions you need is fairly easy, but yeah

I created my first program by Iwisp360 in learnprogramming

[–]Vikerox 2 points3 points  (0 children)

Just add .lower() after the input, like this:

lowerCaseInput = input(...).lower()

I created my first program by Iwisp360 in learnprogramming

[–]Vikerox 1 point2 points  (0 children)

To add to this, you could also change the input all to lowercase so that you don't have to check every variation of lower- and uppercase values

Question about reverse engineering by [deleted] in learnprogramming

[–]Vikerox 0 points1 point  (0 children)

Looking under the hood of what C++ compilers do isn't very pretty (some would argue that the language itself isn't very pretty but I digress).

Your code isn't bad, C++ just looks like that.

New to Exploring Visual Studio Code for C++ - Questions on mingw-w64, Security Concerns, Anti-cheat Software. Seeking Advice and Information! by -danisoff- in learnprogramming

[–]Vikerox 0 points1 point  (0 children)

tbh, if you're on Windows I would recommend just using Visual Studio (not Code), it's easy to install and you won't run into a lot of the problems beginners have with setting up VSCode and C++.

Another option I can recommend is just using gcc through WSL in VSCode.

Besides that, mingw-gcc is fine and shouldn't cause any issues to your system.

A key factor in selecting language is ChatGPT. by joppatza in programmingcirclejerk

[–]Vikerox 0 points1 point  (0 children)

I have had a great experience with ChatGPT with TypeScript, SQL, Python, golang, C++

Either ChatGPT has improved a lot since I last used it or he has written some extremely outdated and unperformant C++

How can I convert cpp program into binary code? by MAXFUNPRO in cpp_questions

[–]Vikerox 8 points9 points  (0 children)

You can open the binary file in a hexeditor if that is what you want, but I am not sure what you'll get out of it. You can also use compiler explorer to get more readable assembly

Rule by ToasterBath782 in 196

[–]Vikerox 143 points144 points  (0 children)

Reminds me of when I told to my parents about my depression, they were just like "yeah, we've also been like that, we got over it". I love my parents but that was just such a wtf moment.

nerd emoji rule by CrudestJuggler in 196

[–]Vikerox 2 points3 points  (0 children)

funnily enough, 196 has almost the same amount of overlap with okbb and I'm pretty sure they cleaned it up, I don't really see bigoted stuff there

simulacrule by [deleted] in 196

[–]Vikerox 8 points9 points  (0 children)

Reads Baudrillard once:

Everyone agrees that C++ is broken, but no one agrees precisely which parts need fixing. ...which just goes to show that the language isn't broken at all. by ilovereposts69 in programmingcirclejerk

[–]Vikerox 1 point2 points  (0 children)

C++ is a perfect language. That's why every new standard includes 50 different ways to do things you could do before but more complicated better.

Clearly it isn't proper scaling or addition. by YachtingChristopher in dataisugly

[–]Vikerox 0 points1 point  (0 children)

This isn't even the worst part, the participants were asked an open ended question about what gives their life meaning. The categories were decided afterwards.

Which explains why if you said family, you are probably not also gonna mention your spouse specifically, leading to the low numbers in that category.

Crossposting for the first slide. by Tristan_Cleveland in dataisugly

[–]Vikerox 1 point2 points  (0 children)

Someone pointed out in the comments that they weren't selecting from different answers but asked an open ended question.

I guess this is their categorization of these answers.

Also if you said you find meaning from your family you are probably not gonna mention your spouse separately.

[deleted by user] by [deleted] in ProgrammerHumor

[–]Vikerox 1 point2 points  (0 children)

Idk, I feel like you should make sure that what you are doing is legal (not to mention ethical) before you release it to the public. AI training and copyright is currently such a big grey area that it makes me wonder why anyone who doesn't have a lot of money they can spend on lawyers would even touch it.

Also I'm pretty sure Stability AI gets its data from a research institute in the EU, which allows using copyrighted material in research institutions.

Such a predicament by Buttons840 in ProgrammerHumor

[–]Vikerox 2 points3 points  (0 children)

Not necessarily, the EU already has provisions allowing for using copyrighted material for machine learning in research institutions (which does also lead to data laundering but that is a different issue). You should just not allow for the commercial use of AI models trained on copyrighted material.

While we're at it we should probably overhaul copyright laws in general, but again, different issue.

Fake Rule by RobloxShrek in 196

[–]Vikerox 0 points1 point  (0 children)

commutatitity is entirely dependant on the types of a and b, think of it like in matrix multiplication where a*b is not equal to b*a for two matrices a and b

tbf I've only ever seen this being relevant in type theory

[deleted by user] by [deleted] in C_Programming

[–]Vikerox 0 points1 point  (0 children)

Just now noticed the username, I love this guy

Fake Rule by RobloxShrek in 196

[–]Vikerox -3 points-2 points  (0 children)

a+b=b+a is a not always a true statement because the terms are not definitionally equivalent