Messages - Ruffnekk [ switch to compact view ]

Pages: prev1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 57next
76
Skrommel's Software / Re: Run
« on: February 28, 2007, 12:05 AM »
StartMenu2.png

Not possible :D

77
Developer's Corner / Re: Linked Lists versus Lists in .NET
« on: February 27, 2007, 01:16 PM »
Yes they were a rage in C for a while and there are of course advantages to using a linked list, like simulating a stack or queue, inserting and deleting items is faster. Also, it's easier to use a neighbouring object directly from another object in iterations. The downside is the overall performance and accessing items in the list. Arraylists are much faster in general and you can access the nth item quickly (myArray[n]). In a LinkedList you have iterate over all items to get to the nth one. And last but not least, sorting linked lists is difficult.

What I don't understand is that Microsoft decided to give us a LinkedList collection in the .NET Framework 2.0 (it's a doubly linked list, so each node points forward and backwards).

The only useful application for a linked list I can think of is something like a preview. For example, you are displaying information on the screen and the user can click buttons to go to the next or previous item. You could easily display information about the next and/or previous items using a linked list; this would be more cumbersome in a normal list I guess.

78
Developer's Corner / Re: grr SQL and C#
« on: February 27, 2007, 12:59 PM »
What the fritz_j said and also look up the Now(), Date_Time() and Sub_Date() functions in SQL. They can make it more easy for you I think.

Example:

SELECT *
FROM table
WHERE date_field <= Date_Format(Now(), "%Y-%m-%d")
AND date_field >= Date_Format(Sub_Date(Now(), INTERVAL 7 DAY), "%Y-%m-%d");

79
Developer's Corner / Re: Linked Lists versus Lists in .NET
« on: February 27, 2007, 12:51 PM »
Any scenario where an object in your list needs to be aware of a neighbouring object, either singly linked or doubly linked, which is practically never :) I have searched for an answer to this question before, because I was also wondering about it and more than once I stumbled upon pages stating that a linked list is probably the most useless list of all.

80
Skrommel's Software / Re: Run
« on: February 27, 2007, 12:42 AM »
The option is enabled... but my start menu looks different than the default (by domain policies) and I cannot change anything about it. Therefore I think that somehow it's disabled. I can drag and drop any other item though...

StartMenu.png

Pages: prev1 ... 11 12 13 14 15 [16] 17 18 19 20 21 ... 57next
Go to full version