Subscribe to The Madman Scribblings        RSS Feed
- - - - -

More Natural Looking Recursive Functions

Icon 1 Comments
In all of the mathematical textbooks (I've seen) the following two functions are defined like this;-

Fibonacci Sequence

f(n) = f(n-1) + f(n-2)

Where f(0) = 1, f(1) = 1


f(n) = n * f(n-1)

Where f(0) = 1...
- - - - -

Listboxes with alternate lines background colors.

Icon Leave Comment
In the C# Programmers Topics PsychoCoder started this thread and it reminded be of my attempt to achieve this effect a few months back.

Here's what I came up with.
- - - - -

Damn Statistics

Icon Leave Comment
Since it is possible the get the average of IEnumerable(Of Double) by using .Average, it thought lets extend it provide the other statistical functions.
To help me out I do use some of custom helper extension methods to extend IEnumerable(Of T), which then makes them accessible on all IEnumerables.
The general helper extension methods....
- - - - -

LINQ Codes: GetNamedControl

Icon Leave Comment
Finds the named control recursively searching the child controls. (If there isn't one return nothing.
- - - - -

Periodic Table (2 Class 1 XML File+Loads of Exts.)

Icon Leave Comment
In this topic the user is wanting to replicate the periodic table with class, and I though I'll have a go at it.

They are after code the that looks like this.

I decided to store the data on the atomic elements in xml file, so it is easy update.

Class: AtomicElement
- - - - -

Trying to implement a valid StringOf<T> .

Icon Leave Comment
The following April Fool Joke by Scott Hanselman as been bugging be for ages;- StringOr<T>
So I been attempting to bring it in to realisation a valid implementation of it.

First a attempt: StringOf(Of T) Code Snippet
It has it problems. Like you to hard code each

Second attempt:
- - - - -

VB.NET Coolness is LINQ + XML Literals

Icon Leave Comment
Using the w3schools xml example: XML CD catalog

Task: From this catelogue I want you group the cds by date descending and display the titles, artist and price.
- - - - - 1-Liners

Icon Leave Comment
Christmas Diner time is nearly here and you're sick of hearing those terrible cracker jokes. I bring to you the beginnings of collection code samples that only contain a single line of code.
Note: These require .net>=3.5
* * * * *

Textboxes and Numbers (Are these Numbers?)

Icon 1 Comments
What does the two textboxes contain?
Image reduced in size

a. they contain the numbers 123 and 456 respectively.
b. they contain strings that can be interpreted as the numbers 123 and 456.

If you answered a...
- - - - -

Combinations and Generics

Icon Leave Comment
In This Thread the OP is trying to find the words that can be made from the digit key that letter appears on.
Like from a mobile phone keypad
0 ->1 ->2 -> ABC3 -> DEF4 -> GHI5 -> JKL6 -> MNO7 -> PQRS8 -> TUV9 -> WXYZ

So if the code was 27753 the possible letter would be

  • (14 Pages)
  • +
  • « First
  • 9
  • 10
  • 11
  • 12
  • 13
  • Last »