May 2004 - Posts
Having had my own struggles with DateTime parsing, I completely concur with the comments from my peers as they replied to Brad Abrams and the BCL team on the past, present, and future of DateTime processing in the .NET Framework.
The current situation is painful, and unfortunately the future plans for DateTime fail the test for good API design. This sounds much more like designing for “The Pit of Failure“ than “The Pit of Success“ [quote from Rico Mariani via Brad's earlier post]. API's should be designed so that “developers just fall into doing the right thing”.
I think the best way to assure that the problems are rectified is to create a new DateTime struct or fix the current one (and break backwards compatibility). Obviously the latter option is much less desireable.
The current plan for VisualStudio.NET 2005 “Whidbey“ is a poor compromise. One that will only result in every developer creating a set of DateTime helper classes just to remove the pain from correct DateTime manipulation. Anytime that happens, I consider it a failure of the BCL Team....perhaps harsh, but nonetheless I believe it is true.
Do we really need to start work on a “DateTime Application Block“?
After receiving a few emails requesting a rules-summary, I made some changes this weekend. Version 1.09 of the C# Coding Standards document is now available for download.
I like the simplifying nature of the new “Quick Summary” section, but would like to make the document more concise and useable so it doesnt need such redundancy.
As always, feedback is welcome...
I just published the latest version (v1.08) of my C# Coding Standards.
The previous version got out of control once I added the .NET Framework Guidelines section. Although it contained useful information, this section went well beyond my intended scope. In the end, I decided to split this information into another document to be released later. The latest document now states a more limited scope which is much more focused on C# Language usage.
- Add more code examples.
- Expand upon Code Commenting to include per-file comments.
- Break-up the Language Usage section into more digestable sections.
- Expand Object Model Design section or consider removal.
- Identify rules to include in custom FxCop Rules library.
- Re-evaluate fonts, styles, and overall readability.
Please post your feedback here...
Note: not all .TEXT templates have the same ID tags, or Html structure, so these statements may need to be modified.
Add background image to top via CSS:
height : 100px; /* adjust height to fit image */
background-image : url(“http://myisp/mylogo.gif“); /* url to your logo or image */
background-repeat: no-repeat; /* displays it as a non-repeating image */
Remove the “Contact” link via CSS:
position : absolute;
left : -200px; /* assumes link is on the left side */
document.body.all["leftmenu"].all.innerText = "Weblog Info";
To implement these changes go to .TEXT Admin -> Options -> Configure
Obviously, any hacking can be dangerous to the health of your blog. You have been warned!
Symantec Antivirus deleted a zip file containing a .NET assembly today during my weekly scan. It identified it as a “MSIL.Gastropod“ virus. For now, I will omit the name of the file, since I feel that it comes from a reputable source.
Does anyone have the 411 on this “MSIL.Gastropod“ virus?
Google is no help in this case... :(
After spending some time updating the UI for this blog, I have renewed my love for Cascading Syle Sheets(CSS).
I havent done much ASP.NET in a while, so my DHTML and CSS skills have waned over the past two years. Since this .TEXT weblog engine doesnt support uploadable skins, I decided to use the very powerful features offered by custom CSS. The result is what you see on this blog.
None of this is rocket science, but I have to admit I enjoyed activating those dormant brain cells floating around in my grey matter.
Having fought and lost many battles to design good looking Windows applications, I look forward to the future of Longhorn when we will have similar capeabilities for WinForms.
For you .TEXT users, this layout uses the “Hover” template along with a good amount of custom CSS. The CSS is inserted by adding styles to the “Custom CSS Selectors“ box from the “Configure” option on the “Options” tab of the admin site.
Admin -> Options -> Configure -> Custom CSS Selectors
I recently started documenting my own C# Coding Standards and best practices. The current document is very much a work-in-progress, but I am making it freely available for download. Please reply with any comments, questions, or feedback on this blog entry.
Click Here, to download the PDF.
[ Updated to v1.13a]
Why yet another coding standard document?
There have been numerous attempts at document C# Coding Standards since the language was released, but I usually have disagreements with many of the guidelines and rules they contain. This is my attempt to start from scratch and write a new standards document that represents my preferred style. I'm sure that many of you will have just as many disagreements, but I am looking forward to the debate.
This morning, I began having hallucinatory flashbacks, started regurgitating PET Basic code, and felt obsessive cravings for my old Commodore 64, 13" TV, 1541 Drive, and 300baud modem! Don't even get me started on my old Vic 20 & Tape drive.... ;)
All because of this one little link sent from a friend....
For those of you who know what I'm talking about, enjoy the link!