Click here to Skip to main content
15,900,258 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Hi there :) Please help me Pin
Vimalsoft(Pty) Ltd17-Nov-08 19:55
professionalVimalsoft(Pty) Ltd17-Nov-08 19:55 
QuestionData structure design Pin
hpjchobbes3-Nov-08 5:57
hpjchobbes3-Nov-08 5:57 
AnswerRe: Data structure design Pin
Ray Cassick3-Nov-08 6:13
Ray Cassick3-Nov-08 6:13 
GeneralRe: Data structure design Pin
hpjchobbes3-Nov-08 6:51
hpjchobbes3-Nov-08 6:51 
GeneralRe: Data structure design Pin
Ray Cassick3-Nov-08 7:04
Ray Cassick3-Nov-08 7:04 
AnswerRe: Data structure design Pin
Mark Churchill3-Nov-08 13:56
Mark Churchill3-Nov-08 13:56 
GeneralRe: Data structure design Pin
hpjchobbes4-Nov-08 16:55
hpjchobbes4-Nov-08 16:55 
GeneralRe: Data structure design Pin
Mark Churchill4-Nov-08 17:19
Mark Churchill4-Nov-08 17:19 
Yeah theres a bit of history there. List< T> is a generic list, which means when you use say List< Foo> you have effectively created a brand new type out of thin air, a List of Foos. Before framework 2, generics didn't exist in the runtime, and ArrayList was a provided and the commonly used IList implementation.

Both are implemented the same under the hood, they both wrap an array which they resize as necessary. For new development you may as well use List< object> over ArrayList, they are functionally identical, but using List< object> makes it very clear that you know the generic class exists - and thus the list is actually full of random crap.

I guess the generic list would remove any unboxing that happens, I had never really looked at it that way (it would definitely help with the semantics of having to do foo = (long)(int)objectWhichIsReallyABoxedInt).

As you learn programming you will hear a lot of people talking (mostly crap) about optimisation. Generally speaking you should look out for the big-O order of things, and obvious problems like doing a bunch of high-latency things in serial. Most things like "avoiding boxing", "avoiding reflection" make little difference to a real world application. In fact I've seen a great many "tips for faster code" that results in identical IL (and thats before JIT optimisation). I use reflection extensively in Entanglar (even in the renderer I'm working on), and the performance of that is more than acceptable.


AnswerRe: Data structure design Pin
Arash Partow4-Nov-08 23:04
Arash Partow4-Nov-08 23:04 
AnswerRe: Data structure design Pin
CodingYoshi15-Nov-08 8:21
CodingYoshi15-Nov-08 8:21 
QuestionBest Practices for Code Organization Pin
minus_one30-Oct-08 21:37
minus_one30-Oct-08 21:37 
AnswerRe: Best Practices for Code Organization Pin
Urs Enzler2-Nov-08 0:20
Urs Enzler2-Nov-08 0:20 
AnswerRe: Best Practices for Code Organization Pin
Eddy Vluggen2-Nov-08 22:52
professionalEddy Vluggen2-Nov-08 22:52 
QuestionMultiple database support Pin
Atul Kharecha30-Oct-08 0:40
Atul Kharecha30-Oct-08 0:40 
AnswerRe: Multiple database support Pin
Giorgi Dalakishvili30-Oct-08 1:16
mentorGiorgi Dalakishvili30-Oct-08 1:16 
AnswerRe: Multiple database support Pin
Urs Enzler2-Nov-08 0:22
Urs Enzler2-Nov-08 0:22 
AnswerRe: Multiple database support Pin
Giorgi Dalakishvili3-Nov-08 8:06
mentorGiorgi Dalakishvili3-Nov-08 8:06 
RantRe: Multiple database support Pin
Jessn9-Dec-08 10:38
Jessn9-Dec-08 10:38 
AnswerRe: Multiple database support... example [modified] Pin
Jessn9-Dec-08 10:40
Jessn9-Dec-08 10:40 
GeneralReplicating Business Rules on a Web Client Pin
Brady Kelly28-Oct-08 0:00
Brady Kelly28-Oct-08 0:00 
GeneralRe: Replicating Business Rules on a Web Client Pin
Ray Cassick4-Nov-08 10:51
Ray Cassick4-Nov-08 10:51 
GeneralRe: Replicating Business Rules on a Web Client Pin
Mark Churchill4-Nov-08 12:25
Mark Churchill4-Nov-08 12:25 
QuestionPatterns Pin
CodingYoshi23-Oct-08 3:57
CodingYoshi23-Oct-08 3:57 
AnswerRe: Patterns Pin
Leslie Sanford23-Oct-08 11:52
Leslie Sanford23-Oct-08 11:52 
AnswerRe: Patterns Pin
Mark Churchill23-Oct-08 13:36
Mark Churchill23-Oct-08 13:36 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.