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

Pseudo-Constants

Icon 4 Comments
Pseudo-Constants

Sometime you need a Constant that is calculated at run-time.

So how would you do it?

Spoiler
- - - - -

Iterators used unconventionally.

Icon Leave Comment
Iterators used unconventionally.


I was thinking could the LINQ approach, be applied to getting inputs from the user?

In VB11 (vs2012) iterators where added to the VB.Net, so lets utilize them.

...
- - - - -

Concept: Recursive Yield on to a Common Channel.

Icon 3 Comments
Concept: Recursive Yield on to a Common Channel.

Public Class Node(Of T) Public ReadOnly Value As T Public Property Left As Node(Of T) Public Property Righ As Node(Of T)



Let's implement a simple iterator the return all of the values of all the nodes.

...
- - - - -

Visual Studio Item Template: Custom Exception.

Icon 1 Comments
Visual Studio Item Template: Custom Exception

I've created a Visual Studio Item Template to make the writing of custom exceptions, simpler. Just a simple as a add new Item.

Add New Item Dialog


Result
...
- - - - -

Fibonacci Sequence using LINQ

Icon 2 Comments
Just a quick blog post demonstrate a way generating the Fibonacci Sequence with LINQ.
...
* * * - -

In-line Assignment Operator

Icon Leave Comment
In-line Assignment Operator

I admit that I'm not a fan of in-line assignment, as the symbol for the operator closely resembles the comparison operator for equality.
Which to me is easily confusing.

Since vb.net does allow assignment mid expression, due to symbol =...
- - - - -

Bottles Of Beer (VB11 Stylee)

Icon 2 Comments
Bottles Of Beer (VB11 Stylee)

Just been messing around with VB11 and did an implements of the Bottles Of Beer Song

...
- - - - -

Invoking Evil Code via the Portal To Hell method _()

Icon Leave Comment
Invoking Evil Code via the Portal To Hell method _()

...
- - - - -

English-ising Code

Icon 5 Comments
English-ising Code

OK you don't need to be illiterate to see that VB.net is a Programming Language, that isn't shy about it verbosity of word. So I thought let's go crazy and see how close to Written English I can make it.

So I started with simple task. English-ify the follow.
...
- - - - -

C# Without the Noise

Icon 1 Comments
C# Without the Noise

I've been toying around with the idea on removing (what I perceive) as clutter and noise from C#.
Happened looking at the Money Type for the CLR project and thought it would be good example to see what affect it had.

Original
...

  • (13 Pages)
  • +
  • 1
  • 2
  • 3
  • 4
  • 5
  • Last »

Search My Blog

Recent Entries

Recent Comments