derek hatchard

aggregating from ardentdev.com and derekhat.com

January 2006 - Posts

What does every Visual Basic developer need to know?
Posted at The Ardent Dev Blog by derek hatchard (Go directly to post):

What are the .NET Framework and Visual Basic .NET features that every VB developer should know?  I suggest the following as a starting list (in no particular order):

  1. Object-oriented features:  classes, objects, constructors, inheritance, interfaces, polymorphism, methods, overloading
  2. Shared (static) Classes and Methods
  3. Converting data types and casting objects
  4. Manipulating strings and using StringBuilder
  5. Basic File I/O (open, read, write)
  6. ADO.NET:  DataSet, *DataAdapter, *Command, and *DataReader classes
  7. Basic XML processing (opening a file/stream and finding an element)
  8. Exception handling / Try-Catch blocks
  9. Difference between late binding and early binding (and the existence of Option Strict On)
  10. Assemblies, referencing DLLs, and importing namespaces
  11. Basic collections (lists, dictionaries, arrays)
  12. Security fundamentals (CAS, authentication vs. authorization, validating input)
  13. Basics of threading
  14. Basics of garbage collection
  15. Spitting out data and getting data back (varies with type of application of course)

Comment away!  Please don't just say C# (or Ruby)...  I'm not looking for yet another VB vs. C# debate.

Go to post
Riley the Blog Helper
Posted at The Ardent Dev Blog by derek hatchard (Go directly to post):

Last month I was looking for a tool to automatically announce posts on www.ardentdev.com and www.2signals.com at my weblogs.asp.net blog.  After a modest amount of searching I gave up on finding a tool that did exactly what I wanted.  Tonight I just threw together something simple.  It uses the .Text Simple Blog Service and the RSS.NET Class Library (with a few minor tweaks).  I point the tool at an RSS feed and select the posts I want to announce.  There is a little preview of the announcement HTML and an easy-to-acquire Announce button.  It's pretty simple at this point (a mere 80 lines of VB code including whitespace).

I'll gladly share the code if anyone cares.

Go to post
Brain Teaser: What Does This JavaScript Do?
Posted at The Ardent Dev Blog by derek hatchard (Go directly to post):

JavaScript is one of those technologies that you can use for years knowing only very little about it.  Do you know what the following <script> block will do?  Post your guess as a comment before you test it out!

<script>

(function()
{
  function A() { document.write(A) }

  A();
})()

</script>

Go to post
More Posts