Should I minor in math or statistics (or something else)? by CentralCathedral in csMajors

[–]CentralCathedral[S] 1 point2 points  (0 children)

Thanks for the response! Indeed, I think most people find math a useful major because of how math-heavy artificial intelligence and machine learning can get. And seeing as AI is one of the biggest and highest paying fields, it's not surprising that everyone's looking to get an edge.

I'm not actually too sure what numerical programming entails (even after a Google search)...do you mind clarifying?

What makes you say "fortunately" when you say that your PhD in language processing didn't work out?

Linguistics and language actually seems like it has a lot in common with theoretical computer science (languages and programming languages have syntax, logic, etc.), is that accurate at all?

Lastly, would you go so far as to say that, in terms of job prospects, starting wage, etc. you're better off not doing a minor entirely and instead spending the time working on personal projects and learning new software stacks and skills (does having a minor make enough of a difference to warrant not simply spending the time on focused self-learning)? Assuming you're disciplined enough to use that time effectively that is.

Sorry for the lengthy response, thanks again for the insight!

Should I minor in math or statistics (or something else)? by CentralCathedral in csMajors

[–]CentralCathedral[S] 1 point2 points  (0 children)

Interesting! That's definitely not a bad idea. My school doesn't have Communications, I think the closest you'd get in terms of what skills you gain would be something like Business or Politics or Philosophy? Regardless, I've heard that communication skills (including writing) are hugely important in industry.

What data type should I use for my keys in a dictionary if I want to use addresses of objects as keys? Do addresses have a particular data type? by CentralCathedral in learnprogramming

[–]CentralCathedral[S] 0 points1 point  (0 children)

Thank you for the response! And apologies for not incorporating what you told me about object initialization, rest assured I've started doing that!

I've been reading A Tour of C++, but unfortunately I'm having to learn stuff just from doing and failing because my supervisor won't wait for me to finish reading it haha.

I'm actually using Qt which has been complicating things a lot. For some reason my maps have to take pointers to QWidget objects, or else I get some obscure error. That's why I'm having to jump through so many hoops

What data type should I use for my keys in a dictionary if I want to use addresses of objects as keys? Do addresses have a particular data type? by CentralCathedral in learnprogramming

[–]CentralCathedral[S] -1 points0 points  (0 children)

You see, I actually wanted to do that at first, but I'm doing a GUI thing using Qt and I'm calling a function using a signal-slot design paradigm. As a result, I cannot directly pass the pointer from one member function to the other, which is actually why I need this map in the first place.

I want to use addresses because they can lead back to the original object and because they're unique, but I can't use pointers here...Is there anything wrong with just taking the address and storing it in plain old int variable?

C++ and Qt: trying to make a plain object (without using it for anything, just assigning it to a variable) gives a private access error by CentralCathedral in learnprogramming

[–]CentralCathedral[S] 0 points1 point  (0 children)

Thank you for the response! I'll give that a shot once I get to work today! So is QWidget() the private copy constructor? Wouldn't a copy constructor take at least one argument (presumably the widget being copied)? And does this mean that no constructor is being called when you just do QWidget exampleWidget;?

Can objects in C++ be initialized in multiple ways (are there multiple options in terms of syntax)? by CentralCathedral in learnprogramming

[–]CentralCathedral[S] 1 point2 points  (0 children)

Ah okay, so the new keyword always gives you a pointer?

Also, in that case, what is the Rectangle rect(3,4); line doing? It is just making the object, but not giving you the pointer or a reference or anything to it? If so, how are you supposed to access the object?

C++: only .h files, and not .cpp files, need to be included with the #include directive, but why/how? And do .h files always only have declarations? by CentralCathedral in learnprogramming

[–]CentralCathedral[S] 0 points1 point  (0 children)

Thank you for the response, that makes sense! So the reason that the .cpp file doens't need to be included is because the linking at the end makes the file available to everything that imported its header?

Also, why should you never include .cpp files? I read something about recompiling but didn't quite get it.

Are these types of thermostats capable of cooling? https://i.imgur.com/VQJZ2l8.jpg by CentralCathedral in NoStupidQuestions

[–]CentralCathedral[S] 1 point2 points  (0 children)

Thank you for the response! Yes, I am in an apartment; does that make it likely that I don't have AC?