ShowUsYour<Blog>
Irregular expressions regularly
-
Conversions - Boolean, Integer and Byte.
There are many parts of "language" that, while I don't really understand the underlying rules, I just accept them in my life. Here's some conversions between Boolean, Int and Byte which, while they work, I don't fully understand the rules governing them:
-
More language esoterica - falling through a switch statement
Not that I'm much of a comp-sci guy but, I do like my language esoterica... earlier I posted about repeating structures in C# and it got me thinking about other language features - many of which are shared between VB and C# such as short-circuit evaluation and such. One language feature which I thought was pretty cool that C# didn't implement was switch-case fall-through. I'll bet that was a tough one to leave out! Here's an example of using fall-through behaviour to convert a number of Days, Hours, Minutes, or Seconds toMilliseconds:
-
Going loopy over control statements
While reading through some Rotor source I was reminded of the wonderful C# syntax for looping constructs, some of which included:
-
VB Programming Language
When I got home tonight my new book had arrived - hoping to have much of it “parsed” before heading to Redmond early next month:
-
Rotor resources
Recently Justin Rogers got me enthusiastic about Rotor source code and today I see that Joel has uploaded a list of places where Rotor is discussed:
-
Wanna use goto? You could break STUFF!
Today while writing a javascript version of a parser I was trying to work out how to implement a
goto
statement so that I could break out of an outer loop from an inner loop. You can either break or continue a labelled statement. The following snippet breaks a labelled statement. -
Some helpful Generics guidelines
Krzysztof Cwalina is a BCL team member who has just started blog'ging. His first post is an update to the design guidelines for Generics - a really useful document.
-
String::Split - unexpected behaviour?
After a comment which was left by Justin Rogers on a recent post of mine I decided to do a bit more testing to confirm the behaviour of String::Split. The documentation has this to say about it:
-
Coding Techniques and Programming Practices
I lost track of the whereabouts of this document for a while: Coding Techniques and Programming Practices
-
More timing, different types of tests
Yesterday I blog'ged about some various string splitting times. One thing which amazed me was how slow the VB Split Function was: