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

FizzBuzz in Single Line Of Code

Icon 16 Comments
FizzBuzz in Single Line Of Code

...
* * * * *

6000+ Kudos

Icon 6 Comments
6000+ Kudos

Recently I broke through the 6000 Kudos barrier.
So I wrote small program to screen-scrap the contributions page so I could do a breakdown of all my contributions by language section.

Still not quite got the full A-Z in both snippets and tutorials.
...
- - - - -

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 _()

...

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