Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!

1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


Member Since 05 Jul 2013
Offline Last Active Apr 23 2015 08:59 AM

Posts I've Made

In Topic: How to pass DeviceContext to other classes?

08 April 2015 - 12:51 AM

Pass a pointer to the device in the Texture constructor and/or the "create" function (depending on your design). This makes the dependency on the device clear and explicit.


I know this is kind of lazy, but would you please show me how I would do this?

In Topic: What is the ideal solution for a repository in my case?

08 January 2015 - 07:36 AM

Words = new HashSet<string>(File.ReadLines("words.txt"), StringComparer.OrdinalIgnoreCase);

// later (do not load the file once per word lookup, obviously)

var wordIsValid = Words.Contains("whatever");
Ship it.



This also sounds plausible!

In Topic: What is the ideal solution for a repository in my case?

08 January 2015 - 12:31 AM

I don't understand... do you need more functionality than just looking up words to see if they exist? If not, why are you looking for a more complex solution?



Here's the C# code to read a text file of words into a HashSet. Lookup performance is constant time. It will be extremely fast.

            HashSet<string> wordList = new HashSet<string>();
            using (StreamReader wordlistFile = new StreamReader("wordlist.txt"))
                string line;
                while ((line = wordlistFile.ReadLine()) != null)

Here's a word list:





Thanks a lot I think I will go with your approach, sounds reasonable!

In Topic: What is the ideal solution for a repository in my case?

07 January 2015 - 02:36 AM

What about SQLite? Would that save me the internet connection part and increase the lookup performance?

In Topic: Please give me some advice for future plans.

09 September 2014 - 03:47 AM

Ok guys thank you very much for your replies!


@ Tom Sloper: I think you got me wrong. But this is my fault. I didn't make it clear enough. I did not assume that programmers are dying out and that is the reason I do not get a job. It should have been another point/question in my post. I am pretty aware of what I am capable of.


One point I find very interesting, the Portfolio. What do you guys think what is it about such a portfolio that could convince a AAA (or not) developer to hire a person? Note here I am only talking about the portfolio not the social skills. Let's say I want to apply for a 3D-programmer job. Things I can think of:


  1. Clean code/coding technique.
  2. Visible understanding of basic concepts in 3D programming.
  3. A good code documentation.
  4. Something like project plan?
  5. Maybe how you create and implement concepts?


What else should I be aware of when creating such a portfolio? Would you completely agree with this article or is he/she missing something?