Jump to content

  • Log In with Google      Sign In   
  • Create Account


Member Since 09 Jun 2000
Offline Last Active Yesterday, 03:49 PM

Posts I've Made

In Topic: C++ : Extend class in dll

18 October 2016 - 01:16 PM

Does this have to be C++?

I only ask because C++ does not have an ABI and inheriting across dlls can be a pain in the arse.

For something like this, C# would be much less painful.

In Topic: Is the Asgardia project viable?

18 October 2016 - 01:13 PM

I'm 30. One of my side projects in life currently is looking around for a suitable wood lot to begin a hardwood timber plantation to produce heavy timbers that currently are extremely rare and very hard to get for woodworkers. If I plant 2000-4000 trees of mixed hardwood in the next 5 years, then most of them will be ready for harvest and use at their intended size sometime around when I would be turning 200, if not 300... In my life time the only usable wood I'll see from the project will be trimmings and thinning cuts that most likely would only be suitable for firewood. It will cost me thousands of dollars, and many weekends of my lifetime to buy, prep, and manage the property, and there is no way I'm seeing a beautiful 16 inch wide oak plank out of it, but if I don't make an effort to ensure a plot of land is managed for production of beautiful North American hardwood in my region, then who exactly is going to? The Irving Family (Largest lumber producer in the region) sure doesn't seem interested in producing hardwood, as they are too busy planting fast growing softwoods that will be market usable for 2x4 stud frame in the next 30-50 years, if that.


I just want to say that that is a fantastic project and kudos to you.

The world doesn't end when we die. Many of us on this planet feel that it would be a lot better of a place in general if more of us remembered this fact.

Amen, brother.

In Topic: An alternative to "namespaces"

16 October 2016 - 03:56 PM

Honestly, it depends on how widely your code will be used. 


If it's a small project with one developer, you can get away with minimal (or even no) namespaces.


At the other end of the scale, I've worked in scenarios where everything was in a Company::Product::Project::Domain namespace (e.g. SuperSoft::AwesomeGame::Engine::Renderer). This was because code was often shared between products and teams.


Elaborating on what @Hodgman said, only use generic names for generic concepts. If you have a Node class, then I'd expect that to work as a Node in a DOM, in a linked list, in a SceneTree.... whatever. If it's not that generic, then be more specific with the name.


On the flip side, lack of namespaces can result in Smurf Naming

In Topic: Is the Asgardia project viable?

16 October 2016 - 03:43 PM

Technically, I have no doubt that such a project would be feasible with enough investment in R&D.


20 years ago, having a device that could access the internet in your pocket wasn't possible.

50 years ago, putting a man on the moon wasn't possible.

70 years ago, supersonic flight wasn't possible.

Just over 100 years ago, heavier than air flight wasn't possible.


All these things weren't possible.... right up until we actually did them.


This isn't creating FTL. Sure, there are problems to solve, but there are real engineering solutions; we don't need to figure out a way to violate any fundamental physical laws.

In Topic: Best way to be a game developer?

09 October 2016 - 01:24 PM

Some sage advice:


"...on how to be a professional boxer. A good diet is essential, of course, as is a daily regime of exercise. Pay attention to your footwork, it will often get you into trouble. Go down to the gym every day – every day of your life that finds you waking up capable of standing. Take every opportunity to watch a good professional fight. In fact watch as many bouts as you can, because you can even learn something from the fighters who get it wrong. Don’t listen to what they say, watch what they do. And don’t forget the diet and the exercise and the roadwork.
Got it? Well, becoming a writer game developer is basically exactly the same thing, except that it isn’t about boxing."
---Terry Pratchett
I love this quote because I feel like you can apply it to almost any vocation :)