Search found 190 matches

by cyboryxmen
December 10th, 2016, 5:00 pm
Forum: Everything
Topic: The friend keyword is kinda useless
Replies: 8
Views: 977

Re: The friend keyword is kinda useless

Essentially, class hierarchies help to define composition. Much in the same way inheritance defines is-a relationships, class hierarchies define has-a relationships(as opposed to uses-a relationships for aggregation).
by cyboryxmen
December 10th, 2016, 4:30 pm
Forum: Everything
Topic: The friend keyword is kinda useless
Replies: 8
Views: 977

Re: The friend keyword is kinda useless

Thanks. I pretty much came up with this programming paradigm in response to the problems I face when I first coded my own graphics class. Graphics ended up defining literally everything related to graphics from the screen to the meshes and textures themselves. I just use an index to represent the in...
by cyboryxmen
December 10th, 2016, 4:18 am
Forum: Everything
Topic: The friend keyword is kinda useless
Replies: 8
Views: 977

The friend keyword is kinda useless

I am using class hierarchies more as I try to code up systems. They really are a good way to represent a system of classes where a class(system) will be made up of multiple subclasses(components). Since you can pretty much make classes within classes endlessly, you can make really complex systems of...
by cyboryxmen
November 19th, 2016, 12:25 pm
Forum: Everything
Topic: C++ Winsock Networking Tutorials [04-24-2017]
Replies: 105
Views: 22191

Re: C++ Winsock Networking Tutorials [11-16-2016]

I'm pretty sure what people meant by that is that Linux is just better for servers than Windows. There are really multiple reasons for why people choose Linux over Windows for their servers most of which relate to security but you can look that up yourself. In any case, you really should learn to us...
by cyboryxmen
November 1st, 2016, 2:14 pm
Forum: Everything
Topic: Circular dependency
Replies: 11
Views: 1146

Re: Circular dependency

Moments like these only make me want the Module feature to come to C++ sooner. Get on it ISO C++ Committee(still love what you're doing with c++ 17. The Concepts feature would really help to get people to try out metaprogramming more)!
by cyboryxmen
August 18th, 2016, 4:14 pm
Forum: Everything
Topic: Struct vs Class: In memory
Replies: 7
Views: 769

Re: Struct vs Class: In memory

The size of a type with inheritance thing was something I was aware of when I found a bug in my shader code. The fact is that the v-table pointer is actually part of the type itself and is the hidden member in all types that inherit from polymorphic types and you'll have one for each polymorphic typ...
by cyboryxmen
August 9th, 2016, 8:22 pm
Forum: Everything
Topic: Criticism on improved Room class.
Replies: 1
Views: 559

Criticism on improved Room class.

I have learned a lot these past few months. I have discovered new semantics and techniques that will allow somewhat more optimised code but importantly makes it safer, easier to read and convenient to use. Looking back, I realise how monstrous the Room class is in terms of safety, readability and co...
by cyboryxmen
July 10th, 2016, 10:55 pm
Forum: Everything
Topic: reboot???
Replies: 7
Views: 1055

Re: reboot???

spetsnaz1986 wrote: 2) are each of the tutorials going to be several hours long? (last time that kind of prevented me from watching those vids, just didnt have time)
x2 speed playback. You're welcome.
by cyboryxmen
June 28th, 2016, 5:06 am
Forum: Everything
Topic: Feedback on Framework 2016 - Draft
Replies: 24
Views: 2780

Re: Feedback on Framework 2016 - Draft

Looking at the way you implement constexpr, I actually managed to figure out a more efficient method of creating consts without the use of a static variable. namespace Colors { template<unsigned char r, unsigned char g, unsigned char b> struct MakeRGB { static constexpr Color Value() { return (r << ...