-
General: Fibonacci sequence using a loop versus a recursive function
I recently had a phone interview and one of the technical questions they asked me is how to implement a Fibonacci sequence in code. I started doing it in a loop but it got complicated so I changed to a recursive function. Unfortunately, I got stuck with the recursive function and never actually finished it. So after the phone interview I fire... Read More
-
.NET 2.0: Notes on Foundation Part 5 (C#)
Sequential Lists If you need a collection that stores data in a sequential basis, you can use a Queue which is a first-in, first-out (FIFO) or Stack which is a last-in, first-out (LIFO). Queue’s most important properties and methods are: Count, Dequeue(), Enqueue(), and Peek(). Stack’s most important properties and methods are: Count, Pop(), ... Read More
-
.NET 3.5: WPF, WCF, WWF, ASP.NET 3.5, ADO.NET 3.5
Now that .NET 3.5 is already out and I still have to get my certification on that .NET 2.0 Framework – Application Development Foundation, I decided to start ahead on learning these new technologies and not get left behind. The .NET Framework foundation is still important so I will still be continuing on that one except that I will start writi... Read More
-
.NET 2.0: Notes on Foundation Part 4 (C#)
Collections Under System.Collections namespace are the following collections: ArrayList, SortedList, Queue, Stack, Hashtable, BitArray, StringCollection, StringDictionary, ListDictionary, HybridDictionary, and NameValueCollection. ArrayList ArrayList is the most basic of all collections. It is a simple resizeable, index-based collections of ... Read More
-
Design Patterns: Mediator, Adapter, Proxy, and Observer Patterns
Mediator Pattern This pattern mediates between objects. If you have several objects that need to interact with each other and you find yourself having common attributes and behaviors on each of your objects, you can use the mediator pattern. You create a mediator object that encapsulates these common attributes and behaviors and if you need t... Read More