WTF Next?

Dev ramblings from a master of nothing.

  Home  |   Contact  |   Syndication    |   Login
  136 Posts | 0 Stories | 109 Comments | 0 Trackbacks

News

INETA Community Speakers Program
GeeksWithBlogs.net: WTFNext's hosting!

View Stacy Vicknair's profile on LinkedIn

Twitter







Tag Cloud


Archives

Post Categories

Community Links

User Groups

VB.NET

There are 15 entries for the tag VB.NET
If you’re familiar with NetSqlAzMan or CanCan, you know that checking permissions based on a user’s activities is easier to manage and more flexible that working with the roles a user is in. Whatever method you take to add activity based authorization, if you are working in MVC you will run into the issue that AuthorizeAttribute only cares about Users and Roles. The good news is that you can inherit from AuthorizeAttribute and easily adapt it to account for activity-based authorization. If you didn’t ......

Authors deserve more credit than they get. Coming up with a simple example to illustrate a principle is harder than it looks. Good authors have to do this all the time. They provide the examples that become anecdotal when describing the concept to a friend or colleague, and most of us, myself included, never take the time to think about the process. That was until today when I needed an example of Dependency Inversion to help explain the concept to a classmate. I must have thought up 10 or so bad ......

Antonio Chagoury, VB MVP, has constructed a list of Twitter accounts for VB MVPs, VB Team members, and others who are influential in the VB.NET community on his personal blog, CTO v2.0. This list has many great people who are not only talented in VB, but also who have great talents in many aspects of the .NET framework. I’m listed as a VB MVP, but if you don’t want the full list you can still check me out at http://twitter.com/svickn. However, I’d recommend checking out the rest of these guys too, ......

Creating a plugin architecture in .NET can be achieved in a few steps using the .NET framework. All it takes is a little time, a common interface and reflection. In this blog we’re going to look at how to make a simple plugin that performs basic integer calculations. As a disclaimer, this method is not CLS compliant. If that is necessary for you, then stick around and I hope to have a new version that maintains compliance posted. The code in this blog is mostly illustrative, and the full code is ......

When we use string so often for its value-like behavior, it is easy to forget that the String class comes with its own constructors, and that there are some tasks you can achieve with the string constructor that you might have overlooked otherwise. Repeating characters One of the more useful overrides of the String constructor is the ability to easily repeat any character a number of times. Here’s a brief example: Dim horizontalRule As New String("-"c, 100) Console.WriteLine(horizonta... Subsections ......

I’ll tell you, I never imagined it would happen this quickly, but I was nominated for the first time this quarter and also received the MVP Award for my contributions online and offline to the VB.NET community. I’m very honored and very thankful to everyone involved in getting me mobilized within the community, including Zain Naboulsi, J Sawyer and PJ Forgione (who nominated me). Also, I’d like to give some thanks for other great individuals I’ve met through becoming active in a great community: ......

A fellow GWBlogger, Bill Tudor, recently blogged about the progression he would suggest for someone who is getting started or looking to further themselves as a developer. Some small changes I’d suggest is that when it comes to learning an object oriented language, VB.NET is viable object-oriented, managed runtime language. Sure, the syntax is a bit different, but VB.NET is a competitor too. Also, an alternative to Scheme and Haskell could be F#, still leveraging the .NET framework. However, all ......

For those of you looking to get started with design patterns but reluctant because of language barriers, I started a project on CodePlex for the Head First Design Patterns book. The original code examples are in Java, and they have been made available in C# and C++ as well, which are all available on the book’s online page, http://www.headfirstlabs.co... Currently the project is only Chapters 1-8, but pending the big game on Sunday I will be finished up sometime next week. This is one ......

This post is mostly inspired by a question I came across in the MSDN forums. Basically, say we had a set of data in a string that looked something like this and we just HAAAAAD to use regular expressions to get the info out (I’m insinuating maybe string.split would work better in this situation…) Dim dataToSearch As String = "-Cat-Dog-Meese-Chardonnay-" Well, the pattern is simple right? Just throw in a regex for "-[A-Za-z]+-" and we’re good to go. Dim reg As New Regex("-[A-Za-z]+-") For Each m As ......

As you may know, I do mostly WinForms development at my current position. Altogether, I do have an affinity for WinForms development over web development, mostly because simple websites were easy to make when I was young, but making a windows application was something I didn't do until much later on. Well, WindowsClient.net is a great Microsoft resource for those interested specifically in smart client applications, and the even better news is that the bulk of the videos for WinForms in particular ......

So, this post is probably more for my personal benefit than for anyone who may read, but I'm just going to highlight the good or bad of 2008 for my personal life and then visit my hopes for 2009. This year really marked the beginning of my involvement in the .NET community. I consider myself somewhere around a junior level developer, and by giving back to a community that has given so much to me, I know I have grown and learned more than had I just waited for knowledge to come to me. I got involved ......

Clint Edmonson over at http://www.notsotrivial.net put together a collection of language specific coding standards reference documentation. This is a great starting point for your organization or a good resource to evaluate your current standards. View the article and get the goods here: http://www.notsotrivial.net... Technorati Tags: coding standards,VB.NET,C#.NET ......

I'm currently studying for my first Microsoft certification exam, the 070-536, and during the process I came across this small quirk. Although most object arrays or collections in VB.NET start at 0, the Match.Groups collection starts at 1. This could potentially be a small frustration for those who don't use regex that often (especially with the added need to extract the information instead of just validating it). So, if you are extracting information using regex in the future, keep in mind your ......

So it may make sense to you how to fetch information from a DefaultView using RowFilter by binding the view, but what about when you just need to extract a value? After applying a RowFilter, the first inclination might be to use the DefaultView.Table.Rows to get information that is filtered. Well, that is ultimately wrong. The DefaultView.Table returns the table the view had originated from. The table you get does not have the RowFilter restrictions applied, and therefore returns the whole table. ......

As you may have noticed (perhaps on the Visual Studio Start Page), there’s a section of the MSDN reserved for the future of VB. The page is fairly bland at first glance, but there is a great reference to the new features of Visual Basic 10 available in the downloads that I dare say you should investigate. Of the upcoming news, some that stand out are multiline lambda expressions, “implicit line continuation” (AKA goodbye to the underscore, mostly), Auto-implemented properties (one line of code for ......