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

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...
- - - - -

Some Days Programming Makes Me Feel Stupid The Other Days VS Tells Me, "To F**K O** I'm Busy!"

Icon 2 Comments
Some Days Programming Makes Me Feel Stupid The Other Days VS Tells Me, "To F**K O** I'm Busy!"

Even though I've been programming for over a couple of decades, there still are days when I do stupid mistakes.
  • Forget the .Count on a collection is one more than the index position of the last item.
  • ...
- - - - -

BrainF*ck Number Challenge.

Icon 4 Comments
BrainF*ck Number Challenge.

This stems from ishkabible who brought up an interesting challenge and an extremely difficult one at.
(We're talking about the grey-beards stroking their beards hard!)
Computer Science Thread:- Minimal Exp...

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

Search My Blog

Recent Entries

Recent Comments