Category Archives: Main

On-topic posts

Questions on .NET I don’t expect answers to

21-Jan-08

Why FindAll() is not in IList? IDictionary or at least Dictionary? Are you pushing me to code for implementation? Why WeakReference, but no WeakDictionary (get a nice one from Nick Guerrera)? WeakList? More? Why ReadonlyCollection<T>, but no ReadonlyDictionary<K, V>? (I can live with this one) Why Array.Length, but anyCollection.Count (thank Nick Guerrera again)? …more to [...]

gdi bug in System.Drawing.Drawing2D?

21-Jan-08

Am I the only one who ran into .NET (or GDI?) bug with Pen (or Matrix) .ScaleTransform()? When I scale a pen to certain width, and it has an anchor, anchor draws at inverse scale. I might be missing something, but here’s my test. Pen scales proportionally to form width, for simplicity. Here’s how it [...]

Software project (pathologo) anatomy

26-Oct-07

Building a demo for P-Explorer, I got a metaphor, If software project’s: architecture – is a skeleton; code is meat; then it’s blood is work items: new requirements, bugs, change requests. If you have no skeleton, you’ll most likely to get a slug… or a damn efficient octopus. Watch out not to get leukaemia – [...]

Categorization in Requirements management

02-Oct-07

It turned out that a very productive idea — to use domain data scheme (sample) as a basic of requirements categorization — is already used. Moreover, idea is standardized in ISO-13250: Topic Maps. Wow. Though, some other, non-domain topics will appear: like nonfunctional requirements, GUI details, project specifics. But still I believe topic map is [...]

Explicit interface implementation visibility in C#

10-Sep-07

It was pretty strange for me to get a “CS0103: The name ‘AppliesToNode’ does not exist in the current context” from C# compiler for a code: class Copyrighted : IBackend { bool IBackend.AppliesToNode(string Uri) { return something; } … if (!this.AppliesToNode(Uri)) { …} while (this as IBackend).AppliesToNode(PexUri) compiles. On one hand, it’s pretty strange: Copyrighted [...]

MVC

02-Sep-07

Got a web reference to an article “Applied MVC Patterns. A pattern language” by Sergey Alpaev. Model-View-Controller is one of the most complex and pribably the most misinterpreted patterns among GoF’s. The article is a perfect classification, I recommend it as a must read for everyone who is confused about what is Controller for, and [...]

Closures in mainstream languages

29-Aug-07

C# has closures, you know? A sample of how to use one.

Coding convention Geek-code

20-Aug-07

Discussing Java vs C# coding conventions, I got an idea: Geek code for a coding conventions. Like: —–BEGIN GEEK CODE-CODE BLOCK—– GP:java,c,cpp,haskell Off:2S P:N Name:Camel Flex:2 ——END GEEK CODE-CODE BLOCK—— which means: GP:java,c,cpp,haskell – geek of programming languages (listed); Off:2S – prefer 2-space offsets; P:N – place parentheses on new line (opposed to S – [...]

Broken HTML parsing in Java

16-Aug-07

Given: HTML code, non-valid and non-well-formed. Make it a well-formed XHTML, in Java. We considered JTidy, but it’s source looked too messy and hacky. I looked for a parser that could correct XML – not in sense of schema, but correct any mistakes, and pass out a well-formed XML and error list. I was able [...]