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

Template Functions?

Icon Leave Comment
Template Functions?

Currently
Generating code via Roslyn (const)
...
- - - - -

Overridable Default Values For Null?

Icon 2 Comments
Overridable Default Values For Null? (Title is a link for more details)

Suppose we had the ability to express nonnull reference types in .net T!.
So there should be a way to express a default value, when null...
- - - - -

I coaxed Roslyn to validate a String.Format at pre-compile time.

Icon 1 Comments
As you probably know I be messing around with Roslyn, to create code diagnostics.

So here's a preview of my latest one.


Note: That is it currently reports the first error in the String.Format.
- - - - -

Improving the Code Smell.

Icon Leave Comment
Improving the Code Smell.

Fixed: Now it respects and preserves any trailing comments after the code, controlled by the If Statement.
Fixed: Correctly detects the number of lines of code inside the block.

Diagnostic Analyzer
...
- - - - -

Wrote my first Roslyn Diagnostic and Code Fix today.

Icon 4 Comments
Wrote my first Roslyn Diagnostic and Code Fix today.

The idea of it is diagnose to one of the code "smells" from vb6 style of coding in a vb.net program.

If ... Then ... End If

If cond Then statementEnd If

which can be simplified to a single line if statement.
If cond Then statement




...
- - - - -

Playing with VBnext (Roslyn) features.

Icon Leave Comment
Playing with VBnext (Roslyn) features.

Select Case Type Of

This make the already powerful Select Case statement, even more powerful.

Now you can us like in more of match exp with expression of Nemerle and F#.

...
- - - - -

False Assumption:- "Comparision" Operators return Booleans

Icon 1 Comments
False Assumption:- "Comparision" Operators return Booleans

It is a popular assumption that "Comparision" Operators = < <= >= > <> will return a Boolean.

This assumption is false....
- - - - -

The Woe Of Dev

Icon Leave Comment
The Woe Of Dev

You see the light at the end of the tunnel, the project is almost done.
So you precede to ahead towards the lights only to walk into a brick wall, upon which someone has attach an Acme portable hole.

Tested each section independently;- they work, combine them;- They work.
Soon a you run the program and in conjunction with...

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