Caves Travel Diving Graphics Mizar Texts Cuisine Lemkov Contact Map RSS Polski
Trybiks' Dive Texts VB.NET YAC Software
  Back

List

Charsets

Charts

DBExpress

Delphi

HTML

Intraweb

PHP

Programming

Rhino Mocks

Software

Testing

VB.NET

VCL

WPF

VB.NET
  • CA1800:DoNoCastUnnecessarily
    CA1800:DoNoCastUnnecessarily - an FxCop warning that's easily fixed (at least most of the time).

  • The creator of this fault did not specify a Reason.
    "The creator of this fault did not specify a Reason." - the one exception we don't have to worry about.

  • Accessing private and protected members - PrivateObject and PrivateType
    Need access to private / protected members of an object when doing unit tests? Use PrivateObject and PrivateType.

  • Saving / restoring window placements in .NET
    It seems that saving window positions and sizes (including the application's main window location) should be easy enough. But even now, after so many years of Windows programming, people get it wrong. But we need to remember about changing screen resolutions, switching from multiple to single monitors, connecting to a projector, etc. Saving the current window's location just ain't gonna do the trick...

  • Checking Property Change Notifications
    Worried about type safety of property change notifications (INotifyPropertyChanged) in your VB.NET apps? Six lines of code will help in making sure that those are, actually, defined correctly.

  • Rhino Mocks's AssertWasCalled in VB.NET
    Using a big new library in any project can be quite daunting. But, IMO, the best way to learn one is to just start using it. And then, after a while, the more advanced functions will become apparent. But where to start?

    In this text you'll find a gentle introduction to Rhino Mocks that shows the simplest scenario where the library can be used - creating object stubs to facilitate testing.

  • First steps with Rhino Mocks (in VB.NET)
    Using a big new library in any project can be quite daunting. But, IMO, the best way to learn one is to just start using it. And then, after a while, the more advanced functions will become apparent. But where to start?

    In this text you'll find a gentle introduction to Rhino Mocks that shows the simplest scenario where the library can be used - creating object stubs to facilitate testing.

  • Meaningful identifiers
    Meaningful identifiers in code - that's the standard mantra you hear for tech leads, no? But what does this actually mean? Here's a real world example where changing just the names of a couple of identifiers makes the code much more readable, and makes comments wholly unnecessary.

  • Public fields vs. properties
    Why define properties that directly access private fields? Does that really make our code better?
Top