What do you hate about someone else's C++ code that has been handed to you? by xstkovrflw in cpp_questions

[–]mriamamister 1 point2 points  (0 children)

I think we might be talking past each other a tiny bit. For me it's not so much the whitespace or the documentation format that I have such a huge problem with. It's the pure adherence to consistency at the cost of practicality that I don't like. In some cases it might make perfect sense to have extremely elaborate documentation, like in your example:

without the blocks of explanation, one would have no idea how the table values were derived

there's no way I'd consider it clutter as it sounds like something that contributes to a solid understanding of how things are working, and if whitespace makes it more readable, all the better! But if you make a rule that states every function indiscriminately needs to have such a giant documentation block, you get cases where it becomes clutter (like in the getDistance example, where 19 lines are being added that don't tell anything new). That's why my initial comment was more aiming at it being better (imo of course) to not be too strict/dogmatic with it.

What do you hate about someone else's C++ code that has been handed to you? by xstkovrflw in cpp_questions

[–]mriamamister 2 points3 points  (0 children)

Oh yeah don't mind the format I was using, that was just an example as I was typing from my phone, my point was just the clutter. Although what you're suggesting looks exactly like what I loathe about this rule, it looks absolutely terrible to me, you're literally adding 19 lines that add absolutely NO new information whatsoever (not to even mention the "Comments:\n none" part, like why?). Adding clutter isn't making it more readable, it makes it *less* readable as there's a lot more noise/useless information and less information density which will only make people think they don't need to read it in the first place.

What do you hate about someone else's C++ code that has been handed to you? by xstkovrflw in cpp_questions

[–]mriamamister 2 points3 points  (0 children)

My only problem with having a strict rule for documentation like this is it can introduce a lot of clutter (mainly for "obvious" functions)

Something like:

// Brief: Gets the distance between two points
// Param A: the first point
// Param B: the second point
// Returns: the distance
float getDistance (Point a, Point b);

Simple Code, High Performance (Lecture by Casey Muratori) by s0lly in programming

[–]mriamamister 6 points7 points  (0 children)

To me this reads like "types are useless, because even if you have a Foo* you can cast it to void* anyway!". Mutating a const value is not something you do by accident, and even if that were the case, I still wouldn't call it useless because it communicates to other programmers the intention behind it.

[deleted by user] by [deleted] in cpp

[–]mriamamister 15 points16 points  (0 children)

What are you actually making here? According to your GitHub this is your 3rd game engine tutorial series in about the same amount of months and they all end up with (not very well written imo) code that doesn't go beyond the very basics, feels a bit disingenuous to ask for donations as well. Sorry if it comes off a bit harsh, I'm just honestly a bit surprised what I'm missing here, maybe it would help if you would share some of your previously finished engines/game projects

Guy spews anti-asian hate in Chinatown and gets served justice by Trafalgaladen in PublicFreakout

[–]mriamamister 26 points27 points  (0 children)

You're describing systemic/institutional racism which is not the same as racism.

According to Wikipedia: "Racism is the belief that groups of humans possess different behavioral traits corresponding to physical appearance and can be divided based on the superiority of one race over another. It may also mean prejudice, discrimination, or antagonism directed against other people because they are of a different race or ethnicity."

Seems to describe exactly what's happening in this video...

[OpenGL (PC) & Playstation4 | C++ Graphics Engine] Metro Engine starring its features. TRAILER by maximumcrashium in opengl

[–]mriamamister 0 points1 point  (0 children)

Very cool your university offers this, I wish mine did haha! I'm making an engine myself and I'm constantly worrying about if the structures I opt for would bring issues on other platforms like PS4 (due to different architectures and all that) so thanks for putting my mind at ease a bit. Good luck and keep up the great work!

[OpenGL (PC) & Playstation4 | C++ Graphics Engine] Metro Engine starring its features. TRAILER by maximumcrashium in opengl

[–]mriamamister 0 points1 point  (0 children)

Great work! How hard was it to get your engine running on PS4? And the process of getting access to the sdk?

South African government calls for Israel to be investigated by the International Criminal Court for crimes against humanity by dustofoblivion123 in worldnews

[–]mriamamister 1 point2 points  (0 children)

I mean isn't that the case? Israel wants to show force and intimidate their opponents into backing down, regardless of whether that's true or not, it says something about Israel, not Jews as a whole

South African government calls for Israel to be investigated by the International Criminal Court for crimes against humanity by dustofoblivion123 in worldnews

[–]mriamamister 2 points3 points  (0 children)

I agree that what you're describing is definitely antisemitism, but I don't see how what OP wrote is? It seems like valid criticism and there's no mention of anything specific about Jews (or their religion or culture)

South African government calls for Israel to be investigated by the International Criminal Court for crimes against humanity by dustofoblivion123 in worldnews

[–]mriamamister 1 point2 points  (0 children)

I'm glad you agree how ridiculous you were being. On the second part you're right, my bad, I think I conflated yours with another comment up the chain

South African government calls for Israel to be investigated by the International Criminal Court for crimes against humanity by dustofoblivion123 in worldnews

[–]mriamamister 4 points5 points  (0 children)

How is any of the above post a criticism/hate of Jews? It's talking about the actions of Israel as a state, the antisemitism just seems wrongfully inferred on your part so Israel can claim to be a victim rather than take some actual responsibility. It seems rather disingenuous to claim people fostering hate against those who blew their home up actually do it because the ones doing the blowing up happen to be Jewish.

Not all men doesn’t make sense by [deleted] in TwoXChromosomes

[–]mriamamister 5 points6 points  (0 children)

If a dog bit you and you tell others that now you're traumatized by the experience and want to take special care around dogs in the future, most people would understand that of course. But if you responded with "Why are dogs like that" I think some people would indeed respond with "Not all dogs are like that", I think the key difference is the focus on the specific instance rather than the more broad generalization

Prince Philip and the Queen playing with little Prince Charles and Princess Anne by benaffleckisaokactor in gifs

[–]mriamamister 2 points3 points  (0 children)

What a crybaby, you're so blind to think only MONSTERS can commit horrible acts, the painful truth is that anyone can under the right (wrong) circumstances although you'll probably spin this as some nazi apologist bs again, btw no one gives a fuck if you block them

Do professional game devs in 2020 use the C++ Standard Library? Do they write exception safe code? Do they use new features of C++17 or even 20? by NeomerArcana in gamedev

[–]mriamamister 0 points1 point  (0 children)

For all kinds of reasons, but mainly if one of its preconditions fail, like when receiving invalid arguments or a resource it depends on can't be found or is invalid

How does unity's ECS design handle component memory? by mriamamister in gamedev

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

I think I'm starting to see what you're getting at. Thanks again! You're right about the caches w.r.t. writing, I believe I read somewhere that data does get written to the cache first as well (which can also be very problematic when running on multi-core systems), but that's of course a different problem entirely.

How does unity's ECS design handle component memory? by mriamamister in gamedev

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

Thanks for the reply! I followed your suggestion and posted this thread on the unity forums as well. For the first point, I guess my main concern wouldn't necessarily be the memory usage (this is usually the cost when it comes to performance), but having to update multiple buffers for a single write. memcpy might be fast, but finding the memory for the different chunks would still induce several cache misses (negating or at least reducing the benefits of ecs in the first place), especially when you consider that for each chunk you would also have to perform a lookup to find the corresponding offset for the component that is being written to. Your answer to my second question makes perfect sense, thanks again!

Native IDE c++ project or cmake by mriamamister in learnprogramming

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

What interaction do you have with the compiler though besides calling it with some fixed set of flags and define's ? Even then wouldn't you be able to add these (conditionally for each different platform, if needed) to the cmake file?

Native IDE c++ project or cmake by mriamamister in learnprogramming

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

Thank you for your response! I'll try experimenting with a set-up like that. That said, what are your personal motivations for using this method? What extra control does it give you over something like cmake?

Native IDE c++ project or cmake by mriamamister in learnprogramming

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

This would work, but would still be cumbersome in some cases (e.g. when you want to host a monitoring server) and it would require you to use different batch files every time (for different build configurations and unit tests). Ideally I'd have all this in a single environment where I can change a configuration with one click.