The Wiert Corner – irregular stream of stuff

Jeroen W. Pluimers on .NET, C#, Delphi, databases, and personal interests

  • My work

  • My badges

  • Twitter Updates

  • My Flickr Stream

    20140508-Delphi-2007--Project-Options--Cannot-Edit-Application-Title-HelpFile-Icon-Theming

    20140430-Fiddler-Filter-Actions-Button-Run-Filterset-now

    20140424-Windows-7-free-disk-space

    More Photos
  • Pages

  • All categories

  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 1,497 other followers

Archive for the ‘.NET’ Category

As of Visual Studio 2012, the option “Find Shelveset” is hard to find – via: Stack Overflow

Posted by jpluimers on 2015/07/28

Shelving work into a shelveset is easy in Visual Studio. Until Visual Studio 2010 it was easy to find the shelveset.

As of Visual Studio 2012 this is much more difficult. To get the shelveset back in Visual Studio 2012 and up:

  1. Go to the “Team Explorer” pane
  2. Click the “Home” icon
  3. Choose “Pending Changes”
  4. Click the topmost “Actions” item
  5. In the pop-up menu, click “Find Shelvesets”
  6. Type a search phrase

–jeroen

via: Can anybody find the TFS “Unshelve” option in Visual Studio 2012? – Stack Overflow.

Posted in .NET, Development, Software Development, Visual Studio 11, Visual Studio 2010, Visual Studio 2013, Visual Studio 2014, Visual Studio and tools | Leave a Comment »

Example of xsd2code only handling xsd annotations for attributes, not for elements, types and other places where they can be used in an XSD.

Posted by jpluimers on 2015/07/22

See the gist below:

Example of xsd2code only handling xsd annotations for attributes, not for elements, types and other places where they can be used in an XSD.

Steps to reproduce:

  1. Install xsd2code and Visual Studio.
  2. Put all these files in one directory.
  3. Run `generate-C#-from-XSD-annotations.bat`.
  4. Diff `annotations.xsd.exe.cs` and `annotations.xsd2code.exe.cs`.
  5. Observe only 1 spot in `annotations.xsd2code.exe.cs` has the annotations converted to C# comments.

Gist: Example of xsd2code only handling xsd annotations for attributes, not for elements, types and other places where they can be used in an XSD. Steps to reproduce.

Report: xsd2Code community edition .net class generator from XSD schema – View Issue #17483: annotations are only emitted to C# when they are for XSD attributes, not for elements, types etc..

–jeroen

Posted in .NET, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development, XML, XML/XSD, XSD | Leave a Comment »

Boolean parameters usualy are a sign of weakness (via: Avoiding Booleans)

Posted by jpluimers on 2015/07/16

During a recent code review, I bumped into a couple of C# constructors having boolean parameters, leading to the dreaded magic booleans code smell.

This reminded me of the infamous Avoiding Booleans post on Coding Horror, which now is almost 10 years old.

To celebrate, I will coin the Dutch phrase when marking these in a review:

Boolean parameters en literals zijn vrijwel altijd een zwaktebod. Een teken dat beter nagedacht moet worden over het doel van de code.

The Dutch word zwaktebod is used when bidding Bridge using the Acol system. It is the equivalent of a “weak takeout” response to a bid of 1 NT (notrump or no trump, in other languages sometimes sans atout).

The English translation is just about this:

Boolean parameters and literals virtually always are a sign of weakness. It indicates you need to give more thought to the goal of the code.

–jeroen

Posted in .NET, .NET 1.x, .NET 2.0, .NET 3.0, .NET 3.5, .NET 4.0, .NET 4.5, C#, C# 1.0, C# 2.0, C# 3.0, C# 4.0, C# 5.0, C# 6 (Roslyn), Development, Software Development | Leave a Comment »

Jon Skeet’s speech “Back to basics” is really a good watch – via Jørn Einar Angeltveit G+

Posted by jpluimers on 2015/07/15

Thanks Jørn Einar Angeltveit for sharing this a while ago:

A session by Jon Skeet and Tony the Pony (which has strong teeth) presented during the Polish DevDay 2013 in Kraków, Poland.

+Jon Skeet’s speech “Back to basics” is really a good watch.

In a funny way, he explains why the simplest fundamentals of computer software text, dates and numbers can cause some real headace for the programmer…

In case you didn’t know: Jon Skeet is “Chuck Norris” on stackoverflow.com:

The subtitle is “the mess we’ve made of our fundamental data types”.

Some of the topics covered:

  • people
  • numbers and storage formats
  • strings and encodings
  • dates, times and time zones
  • scope things narrowly (YAGNI) in a conscious way, and understand beyond what you implement

He for instance shows that the fundamentals are both very much unknown by many among us, and less universal than we think.

–jeroen

via +Jon Skeet’s speech “Back to basics” is really a good watch. In a funny way,….

Read the rest of this entry »

Posted in .NET, C#, Delphi, Development, Encoding, i18n internatiolanization and L10 Localization, Java, Java Platform, Pascal, Scripting, Software Development, Unicode | 2 Comments »

Chuck Jazdzewski on Twitter: “Doing some historical posts to resurrect my blog. http://t.co/kSXy3ARUhR”

Posted by jpluimers on 2015/07/08

Interesting. Not only about Delphi history, as Chuck has done so much more nice things.

Chuck Jazdzewski on Twitter: “Doing some historical posts to resurrect my blog. http://t.co/kSXy3ARUhR”.

His blog: removingalldoubt.com

–jeroen

Posted in .NET, C#, Delphi, Development, Software Development | 2 Comments »

 
Follow

Get every new post delivered to your Inbox.

Join 1,497 other followers

%d bloggers like this: