<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Bunian on Emad Alashi</title>
    <link>https://emadashi.com/tags/bunian/</link>
    <description>Recent content in Bunian on Emad Alashi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 06 Feb 2009 22:39:22 +0000</lastBuildDate>
    <atom:link href="https://emadashi.com/tags/bunian/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Beware of Static Constructors</title>
      <link>https://emadashi.com/2009/02/be-ware-of-static-constructors/</link>
      <pubDate>Fri, 06 Feb 2009 22:39:22 +0000</pubDate>
      <guid>https://emadashi.com/2009/02/be-ware-of-static-constructors/</guid>
      <description>&lt;p&gt;In &lt;a href=&#34;http://www.codeplex.com/bunian&#34;&gt;Bunian&lt;/a&gt; we needed to use a static constructor for some reason, it was all going good; we tested the code and it ran smoothly…excellent (&lt;a href=&#34;http://en.wikipedia.org/wiki/Code_coverage&#34;&gt;Code Coverage&lt;/a&gt; anyone?!).&lt;br&gt;
But when I came across this situation, it appeared that the static constructor wasn&amp;rsquo;t invoked!even when “Class.Method();” is called! so lets examine it.&lt;/p&gt;
&lt;p&gt;I have two simple classes as an Example:&lt;/p&gt;
&lt;div style=&#34;font-size:10pt;background:#f2ebe3;color:black;font-family:courier new;&#34;&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
    &lt;span style=&#34;color:blue;&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:blue;&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#2b91af;&#34;&gt;Parent&lt;/span&gt;
  &lt;/p&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
    {
  &lt;/p&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
        &lt;span style=&#34;color:blue;&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:blue;&#34;&gt;static&lt;/span&gt; &lt;span style=&#34;color:blue;&#34;&gt;string&lt;/span&gt; DoSomething()
  &lt;/p&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
        {
  &lt;/p&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
            &lt;span style=&#34;color:blue;&#34;&gt;return&lt;/span&gt; &lt;span style=&#34;color:#a31515;&#34;&gt;“Parent: DoSomething() called”&lt;/span&gt;;
  &lt;/p&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
        }
  &lt;/p&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
    }
  &lt;/p&gt;
&lt;/div&gt;
&lt;div style=&#34;font-size:10pt;background:#f2ebe3;color:black;font-family:courier new;&#34;&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
    &lt;span style=&#34;color:blue;&#34;&gt;public&lt;/span&gt; &lt;span style=&#34;color:blue;&#34;&gt;class&lt;/span&gt; &lt;span style=&#34;color:#2b91af;&#34;&gt;Child&lt;/span&gt; : Parent
  &lt;/p&gt;
  &lt;p style=&#34;margin:0;&#34;&gt;
    {
  &lt;/p&gt;</description>
    </item>
    <item>
      <title>Get On With It!</title>
      <link>https://emadashi.com/2009/01/get-on-with-it/</link>
      <pubDate>Fri, 16 Jan 2009 15:56:35 +0000</pubDate>
      <guid>https://emadashi.com/2009/01/get-on-with-it/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://eashi.files.wordpress.com/2009/01/clock.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; style=&#34;border-width:0;&#34; src=&#34;https://eashi.files.wordpress.com/2009/01/clock-thumb.jpg&#34; border=&#34;0&#34; alt=&#34;clock&#34; width=&#34;150&#34; height=&#34;146&#34; align=&#34;right&#34; /&gt;&lt;/a&gt;When we started gathering requirements from the charity organizations for &lt;a href=&#34;http://www.codeplex.com/bunian&#34;&gt;Bunian&lt;/a&gt;, it appeared that there are other kinds of people who benefit from the charity organization; there are “needy families” whose father is still alive but can&amp;rsquo;t sustain their families, and “students” who can&amp;rsquo;t afford their study. &lt;/p&gt;
&lt;p&gt;So Bunian needs to support all these Beneficiaries in smart way; we solved the problem by creating the IBeneficiary interface. But the problem is that in order to get out with the best solution ever (damn perfectionism!), we kept coming up with different solutions, and overriding them with other solutions every once in a while, and this kept going like forever!&lt;/p&gt;</description>
    </item>
    <item>
      <title>Importance of Documentation</title>
      <link>https://emadashi.com/2008/12/importance-of-documentation/</link>
      <pubDate>Fri, 26 Dec 2008 11:25:15 +0000</pubDate>
      <guid>https://emadashi.com/2008/12/importance-of-documentation/</guid>
      <description>&lt;p&gt; &lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://eashi.files.wordpress.com/2008/12/documentation.jpg&#34;&gt;&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; style=&#34;border-width:0;&#34; height=&#34;251&#34; alt=&#34;documentation&#34; src=&#34;https://eashi.files.wordpress.com/2008/12/documentation-thumb.jpg&#34; width=&#34;174&#34; align=&#34;right&#34; border=&#34;0&#34; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Lately we have decided in &lt;a href=&#34;http://www.codeplex.com/bunian&#34;&gt;Bunian&lt;/a&gt; to move on to NHibernate 2.0, and the contributor assigned to the move started out, only to send an email one day after: “THERE IS NO DOCUMENTATION!&amp;rsquo;.&lt;br&gt;
We had errors as a result to the move which couldn&amp;rsquo;t be fixed without a documentation explaining why this happened.&lt;/p&gt;
&lt;p&gt;After searching for a while, we found two resources of the new documentation:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;
&lt;p&gt;a wiki help that is hosted on &lt;a href=&#34;http://knol.google.com/&#34;&gt;Google Knol&lt;/a&gt;:&lt;br&gt;
&lt;a href=&#34;http://knol.google.com/k/fabio-maulo/-/1nr4enxv3dpeq/21&#34; title=&#34;http://knol.google.com/k/fabio-maulo/-/1nr4enxv3dpeq/21#&#34;&gt;http://knol.google.com/k/fabio-maulo/-/1nr4enxv3dpeq/21#&lt;/a&gt;&lt;br&gt;
Not really appealing to be used extensively; no smooth flow between chapters, frames dazzle the eyes, no table of contents, but surely a great step forward for a documentation that is maintained by the community&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
