Blog Stats
  • Posts - 298
  • Articles - 0
  • Comments - 3329
  • Trackbacks - 0

 

March 2005 Blog Posts

IsEmailAddress

Short, sweet, and to the point.     Protected Function IsEmailAddress(ByVal Address As String) As Boolean        Return System.Text.RegularExpressions.Regex.IsMatch(Address, "^(([A-Za-z0-9]+_+)|([A-Za-z0-9]+\-+)|([A-Za-z0-9]+\.+)|([A-Za-z0-9]+\++))*[A-Za-z0-9]+@((\w+\-+)|(\w+\.))*\w{1,63}\.[a-zA-Z]{2,6}$")    End Function

Telerik Treeview Control

As I had previously posted, the company I'm working for right now has purchased 5 subscriptions to the Telerik Control Suite.  I've had some queries from interested developers asking how I like the controls so far and the answer is that I like them a lot! Today I'm going to show a brief example of how we are using the treeview control to handle email contacts.  We have an internal only custom mail system that allows users to keep track of contacts and organize them into folders.  Being that folders and contacts are have hierarchical relationships this is the perfect use...

Fixing the software development industry

Darrell has posted his opinion on how to address some of the problems in the software industry today and if there is one thing I truly enjoy, it's being able to give my opinion!  I think that Darrell has nailed part of the problem, that salaries and value in general do not match up well for developers anywhere. To find a complete solution though we must understand why this is.  Surely there is "deadwood" as Darrell calls it in most organizations.  Obviously if the goal is to match value to salary the first thing that needs to be done is that...

Pricing Easy Assets .NET

I've reached a mini-milestone with the local install, source included version of Easy Assets .NET and now I have started thinking ahead to how I should price this software.  Pricing is perhaps the most difficult thing for an ISV to do.  On one hand you want to be fair and not overcharge for your product, on the other hand you do not want to price too low and lose a bunch of money either. I've read articles by Eric Sink, and for the most part I find his advice useful and thought provoking.  For those of you who have not read...

Telerik Control Suite

The company I am working for has purchased 5 subscription licenses for the Telerik control suite on my recommendation. I'm pleased to give an initial impression that the controls are stable, easy to work with, and cross browser compatible.  I'm quite impressed with their controls and would recommend them. If all you coders out there in blog reader land would like me to do a series on the controls with code examples I'd be happy to provide it, but I want it to be requested since they are 3rd party controls and the series probably wouldn't be of interest to many of...

Enterprise Library Registry Error (installservices.bat)

So, I've recently finished Beta 1 of the local install of Easy Assets .NET and I started passing it to some of the beta testers (thanks to those companies that graciously accepted to test it).  So far a few people have been into my code and I've received many compliments on how clean and nice the database and code is.  I'm glad that my refactoring seems to have paid big dividends. Suddenly, mysteriously, I got two reports from beta testers that the application wasn't working as per my install instructions and was giving a mysterious registry error in the enterprise library.  How could...

Politics and Role Based Security

I spent my afternoon yesterday justifying a role based security system for the application I'm heading up.  Why would I have to do such a thing?  Well, I had an encounter with one of the most fearsome beasts of the business world.  That beast is called: The DBA who thinks they are a programmer Now, let me say that I have nothing against the typical DBA.  In fact, I find the involvement of a professional DBA on a project to be a great help when it comes to normalization exercises, complex stored procedures, and triggers.  Being that I've worn both the DBA...

Gah! Labels

Labels... labels everywhere!  Labels where there is no reason to have labels! I seem to have developed a nasty habit over a year ago when I was building the first pilot of Easy Assets .NET where I made liberal use of the asp .net label control for all field labels and headings. What a waste!

Have people lost their minds?

There must be some kind of lunar activity drawing all the freaks out.  I have read some ridiculous FUD today.   Let's recap shall we? From slashdot Apparently if you don't have your firewall turned on you're vulnerable to an attack.  Alright, granted the exploit is an old method that hasn't been fixed, shame on you Microsoft, but come on people, is it really "news" that if you don't have your firewall up on your server that you're vulnerable?  Not having a firewall on is the equivalent of keeping your house keys under your doormat. Richard Who? So here's a guy who no longer wants...

Disecting Markl

Now I've gone and done it.  I'm going to weigh in on Mark Lucovsky, the distinguised engineer who left Microsoft for Google recently.  Let me start by saying that this isn't an attempt to start a flame war.  I'm just going to put out some thoughts on what I read on his blog.  I wish him the best in his career path, we all have our opinions so without futher ado here's mine. First, I want to address the statement that the ".NET Framework isn't widely deployed".  Ok, I can roll with the idea that the .NET framework isn't widely deployed...

Telerik Control Suite: Feedback Requested

Heard their ad on DNR.  Has anyone used their control suite?  Do you like it?  I was playing with some of their demos and they seemed pretty sharp and the code behind looked pretty manageable to work with. http://www.telerik.com/

Custom Queries in Easy Assets .NET part II

I received a lot of feedback from yesterday's post and some people were a bit concerned by my sample code since the querystring being built only accepted matches on = or LIKE.  "How do we do a NOT?  What about aggregates".  That, my friends, is where today's lesson picks up. Easy Assets .NET in its default source install exposes queries on = and LIKE because they are the most common and as far as the functionality of the program out of the box is concerned, the only type of query used.  Now, when it comes to reporting and extensions I know...

Custom Queries in Easy Assets .NET

Here's an example of what I love about the Domain Manager pattern I've developed in Easy Assets .NET as far as making things easily extendable for you developers out there. Let's say that we have a table of Employees.  The table has the following fields: EmployeeID, FirstName, LastName, DepartmentID, and JobDescriptionID.  My domain manager object exposes two functions for getting lists of data from the database: GetList() and GetSummaryList(). GetList() returns a strongly typed collection of Employee Objects GetSummaryList() returns a datatable Each of these functions is exposed in the DAO class and takes a parameter of type EmployeeQuery.  EmployeeQuery exposes an employee object to...

Refactoring Easy Assets .NET - Part 2 of ?

I received a comment from my previous post from Joey asking the following: "In light of the recent Frans vs. Peter debates on SProcs vs. PQs (parameterized queries), I'm curious which route you took with Easy Assets?  In your quote 'modify the sql to suit your needs' in #4 above, it sounds like you may have went the PQ route.  So which route did you take, if you don't mind sharing?" The answer is: I use both.  Here's the pattern why: Stored Procedures My insert, update, and delete are all stored procedures.  This is partly because of the ease of generating them via codesmith...

Refactoring Easy Assets .NET - Part 1 of ?

Since I'm diving heads first into refactoring Easy Assets .NET I figured I'd post some messages on what exactly I'm doing, my thought processes behind it, and how I think the application and especially the users will benefit. Note that I highlight the users.  I believe that the amount of work it takes to refactor a project to the extent I am is not an undertaking to be taken lightly.  The code I am using for the hosted version is ok mind you, but it is now over a year old, I've come a long way, and I've just learned better...

Codesmith rocks!

If you haven't already purchased a copy of codesmith, please do so, I'll wait... This is by far the best bang for my buck I've ever gotten out of a non microsoft tool.  Case in point: I've been making tweaks to the database schema for Easy Assets .NET adding fields to various tables and changing some data types.  In the old days I'd have to go through all my basic stored procedures and tweak them as well. Not so!  Thanks to CodeSmith and the tweaks I made to the AllStoredProcedures.cst and StoredProcedures.cst templates I was able to regenerate all 80 of my...

 

 

Copyright © Eric Wise