rgfirefly24's Profile User Rating: -----

Reputation: 380 Architect
Group:
Author w/DIC++
Active Posts:
1,891 (0.7 per day)
Joined:
07-April 08
Profile Views:
29,395
Last Active:
User is offline Today, 01:21 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
XBox
Your Car:
Chevrolet
Dream Kudos:
150

Latest Visitors

Icon   rgfirefly24 has not set their status

Posts I've Made

  1. In Topic: Video Games Currently Working On

    Posted 31 Aug 2015

    View Postmodi123_1, on 31 August 2015 - 09:09 AM, said:

    FYI - playing the shit out of Prison Architect. She ain't a pretty looking prison.. a bit lopside on the left, mashed in on the right, but the level of threats/violence/etc has bottomed out at the lowest for some many days now and prisoners are getting paroled (some with even reform options to reduce recidivism!) at a good clip. Now to increase the tombs and take on more hardened criminals. Maybe make a 'super max' quad.


    Have you turned on gangs. Definitely adds a new level of awesome to the game. I've been working on getting a SuperMax/Death row prison going. I can get up to 500 prisoners, but have yet to get any death row inmates.. I'm super sad that I haven't gotten to kill anyone yet.
  2. In Topic: Check the values in two rows from two tables on one row

    Posted 31 Aug 2015

    We can't help you if we don't know what code your trying to run. Post your updated query as well as the exact error message you are seeing.

    Also, are you working on Microsoft Sql Server, or Access?
  3. In Topic: Question about coding unused getters/setters for homework

    Posted 31 Aug 2015

    I don't do it for everything in the class, I do it on a case by case basis. I evaluate the variable and ask myself if this should ever be accessed from outside the class and How. There are times where I want to allow outside entities to look at a variable, but not set it. In that case I would do a public get, private set. If it's something where I don't want anything outside the class to know about it, i will set it private and not make it a property at all. Other times I'll set it as a standard property with public get/set. There are times where I do not know who is going to be consuming the object I'm creating, so I look at the volatility of the variable in question. If it's something where changing it's value could cause a lot of issue, I will set it's setter to private and give controlled access (Most of the time in a constructor).

    Let me give you an example. I recently created a class that had a cache in it. (The cache was a List<Object>). I wanted the only thing that could add to or set the List to be internal to my Cache class because if a consuming object overwrote the Cache it would cause a loss of data which is bad. So I set the property like so: public Cache ObjectCache { get; private set;}
  4. In Topic: is it good practice define cluster index on letter columns?

    Posted 31 Aug 2015

    From what I've been recently told by the DBA gods at work, you should have your clustered index on an ID column because when inserting new data it will know exactly where to stick the new data instead of having to search each page file, insert it where it belongs then re-order the page files. I would set a UNIQUE Non-clustered Index on any other columns, in your case Name that you want to use in your WHERE clause.
  5. In Topic: Array's, Why So Confusing?

    Posted 31 Aug 2015

    View Postdynamiteandy, on 31 August 2015 - 12:36 AM, said:

    But because you are wanting them blank you will have to set these values before your loop.

    uint[] valueArray = new uint[9];
                valueArray[1] = 10;
                valueArray[2] = 12;
                valueArray[3] = 14;
                valueArray[4] = 16;
                valueArray[5] = 18;
                valueArray[6] = 19;
                valueArray[7] = 21;
    


    This is misleading. uint is a value type and can not be null, therefor it is defaulted to 0. So it will never be null/"Blank". If you want it to be null or "Blank" then you have to specify that it is a Nullable type by adding the ? to it. uint?[] valueArray = new uint?[9] You would need to be careful with that though because the line x += valueArray[i] would break because you can't add NULL.

My Information

Member Title:
D.I.C Lover
Age:
32 years old
Birthday:
February 21, 1983
Gender:
Years Programming:
8
Programming Languages:
C#, VB.NET, Javascript, VBScript

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    AnalyticLunatic Icon

    06 Feb 2014 - 10:46
    Hey, congrats on the review/raise! Been offline a few days and just now reading through the threads. I've got a 90 day evaluation later this afternoon myself.
Page 1 of 1