<?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>Development on Emad Alashi</title>
    <link>https://emadashi.com/tags/development/</link>
    <description>Recent content in Development on Emad Alashi</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Fri, 05 Dec 2008 13:29:47 +0000</lastBuildDate>
    <atom:link href="https://emadashi.com/tags/development/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Introduction to NHibernate Session at Jordev Was Good</title>
      <link>https://emadashi.com/2008/12/introduction-to-nhibernate-session-at-jordev-was-good/</link>
      <pubDate>Fri, 05 Dec 2008 13:29:47 +0000</pubDate>
      <guid>https://emadashi.com/2008/12/introduction-to-nhibernate-session-at-jordev-was-good/</guid>
      <description>&lt;p&gt;The feedback was very good, and I was glad that everybody liked it. Jordev is really moving ahead, and I am very excited being part of it 🙂&lt;/p&gt;
&lt;p&gt;Below is the slide show (it&amp;rsquo;s an enhanced version from my &lt;a href=&#34;http://eashi.wordpress.com/2008/07/02/my-introduction-to-nhibernate-presentation-and-slides/&#34;&gt;previous one&lt;/a&gt;):&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;https://www.slideshare.net/slideshow/introduction-to-nhibernate-presentation/821222&#34;&gt;Introduction To NHibernate (SlideShare)&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Code is the same of the previous one which you can download from &lt;a href=&#34;http://www.freedrive.com/file/395364,emadnhibernatepresentation.zip&#34;&gt;here&lt;/a&gt;&lt;/p&gt;</description>
    </item>
    <item>
      <title>Mapping Enumeration of type int in NHibernate</title>
      <link>https://emadashi.com/2008/08/mapping-enumeration-of-type-int-in-nhibernate/</link>
      <pubDate>Tue, 19 Aug 2008 07:45:38 +0000</pubDate>
      <guid>https://emadashi.com/2008/08/mapping-enumeration-of-type-int-in-nhibernate/</guid>
      <description>&lt;p&gt;I wanted to map an integer enumeration type in NHibernate, I googled “mapping enumeration in NHibernate” and the best explanation was of Jeremy Miller in his post &lt;a href=&#34;http://codebetter.com/blogs/jeremy.miller/archive/2006/02/20/138732.aspx&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;But as it appears (and according to my understanding) that the enumeration type should be mapped to a database column of characters type (varchar, char,…etc).&lt;br&gt;
What if the database column was int? well…do exactly like what jeremy did except simply use “&lt;strong&gt;NHibernate.Type.PersistentEnumType&lt;/strong&gt;” instead of “&lt;strong&gt;NHibernate.Type.EnumStringType&lt;/strong&gt;“.&lt;/p&gt;</description>
    </item>
    <item>
      <title>How we decide what to have for lunch</title>
      <link>https://emadashi.com/2008/08/how-we-decide-what-to-have-for-lunch/</link>
      <pubDate>Sat, 02 Aug 2008 13:09:26 +0000</pubDate>
      <guid>https://emadashi.com/2008/08/how-we-decide-what-to-have-for-lunch/</guid>
      <description>&lt;p&gt;&lt;a href=&#34;http://eashi.files.wordpress.com/2008/08/croppercapture5.jpg&#34;&gt;&lt;/a&gt;&lt;a href=&#34;http://eashi.files.wordpress.com/2008/08/croppercapture41.jpg&#34;&gt;&lt;/a&gt;Do you go through the same, time-consuming, frustrating discussion with your colleagues when you want to decide what to have for lunch? well…this is exactly what we have been going through where I work.&lt;/p&gt;
&lt;p&gt;To solve the problem (partially, because humans can never totally agree! &lt;a href=&#34;http://eashi.files.wordpress.com/2008/08/4.gif&#34;&gt;&lt;img loading=&#34;lazy&#34; decoding=&#34;async&#34; class=&#34;alignnone size-medium wp-image-61&#34; src=&#34;https://eashi.files.wordpress.com/2008/08/4.gif?w=18&#34; alt=&#34;&#34; width=&#34;18&#34; height=&#34;18&#34; /&gt;&lt;/a&gt;), I made a small, quick and dirty web application; LunchPoll.&lt;/p&gt;
&lt;p&gt;The user (Active Directory user, it works on Windows Authentication) would go to the home page, select the available poll:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Are code comments important?</title>
      <link>https://emadashi.com/2008/07/are-code-comments-important/</link>
      <pubDate>Sat, 19 Jul 2008 10:02:50 +0000</pubDate>
      <guid>https://emadashi.com/2008/07/are-code-comments-important/</guid>
      <description>&lt;p&gt;From the very first day I have heard about &lt;a href=&#34;http://en.wikipedia.org/wiki/Agile_development&#34; title=&#34;Agile Development&#34;&gt;Agile development&lt;/a&gt; and I have been hearing things like “&lt;a href=&#34;http://blog.gravityfree.ca/2006/11/myth-of-comments.html&#34; title=&#34;code comments are bad&#34;&gt;code comments are not such a good thing&lt;/a&gt;”&lt;/p&gt;
&lt;p&gt;The main idea behind that is that the code should be self explanatory; giving functions good names and splitting concerns into different functions.&lt;/p&gt;
&lt;p&gt;But what about the “why”; why this certain code is written this way? why not do it that way? and this is what I have gone through today!&lt;/p&gt;</description>
    </item>
    <item>
      <title>My “Introduction to NHibernate” presentation and slides</title>
      <link>https://emadashi.com/2008/07/my-introduction-to-nhibernate-presentation-and-slides/</link>
      <pubDate>Wed, 02 Jul 2008 16:34:04 +0000</pubDate>
      <guid>https://emadashi.com/2008/07/my-introduction-to-nhibernate-presentation-and-slides/</guid>
      <description>&lt;p&gt;I have delivered the presentation I talked about in my previous post &lt;a title=&#34;what is next&#34; href=&#34;http://eashi.wordpress.com/2008/06/21/what-is-next-2/&#34; target=&#34;_blank&#34;&gt;here&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;Actually it was pretty simple and straightforward, the slides them selves don&amp;rsquo;t have code content; all the code was shown in VS directly (I always found it better to see the code in its really environment to better understand).&lt;br&gt;
The attendees were handful, but if felt really great when they expressed how excited they were about the whole thing.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Columns’ case-sensitivity in NHibernate</title>
      <link>https://emadashi.com/2008/06/columns-case-sensitivity-in-nhibernate/</link>
      <pubDate>Sat, 28 Jun 2008 09:29:44 +0000</pubDate>
      <guid>https://emadashi.com/2008/06/columns-case-sensitivity-in-nhibernate/</guid>
      <description>&lt;p&gt;The other day I wanted to create an HQL query to retrieve data from one object (WorkOrderFault) that has many-to-many relation with another. so I created the following:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;&#34;&gt;&lt;code class=&#34;language-csharp&#34; data-lang=&#34;csharp&#34;&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;ISession session = NHibernateOrmSessionFactory.CurrentNHibernateSession;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;IQuery query = session.CreateQuery(
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;    &lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;select wof from WorkOrderFault wof join wof.WorkOrderTechnicians as tech where tech.Id = 43334&amp;#34;&lt;/span&gt;);
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;
&lt;/span&gt;&lt;/span&gt;&lt;span style=&#34;display:flex;&#34;&gt;&lt;span&gt;IList&amp;lt;WorkOrderFault&amp;gt; objects = query.List&amp;lt;WorkOrderFault&amp;gt;();
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The query ran successfully, and I got my results.&lt;/p&gt;
&lt;p&gt;Then I wanted to use paging and get certain amount of results starting from certain record, so I added these two lines directly after I instantiated the IQuery object:&lt;/p&gt;</description>
    </item>
    <item>
      <title>Suspecting already used code</title>
      <link>https://emadashi.com/2008/06/suspecting-already-used-code/</link>
      <pubDate>Sun, 22 Jun 2008 14:37:12 +0000</pubDate>
      <guid>https://emadashi.com/2008/06/suspecting-already-used-code/</guid>
      <description>&lt;p&gt;In one of the modules I am working on, my unit tests used to take tremendous amount of time (4 minutes per test 🤢. I inherited the NHibernate config file from previous NHibernate test module that was used somewhere before!&lt;/p&gt;
&lt;p&gt;At the beginning I thought that this is something common when you use NHibernate with rich applications, so I didn’t pay much attention, but then it became a real headache.&lt;/p&gt;</description>
    </item>
    <item>
      <title>What is next</title>
      <link>https://emadashi.com/2008/06/what-is-next-2/</link>
      <pubDate>Sat, 21 Jun 2008 13:14:36 +0000</pubDate>
      <guid>https://emadashi.com/2008/06/what-is-next-2/</guid>
      <description>&lt;p&gt;Ok, now I am facing a hard decision; what to do next in my technical life?&lt;/p&gt;
&lt;p&gt;In order to reach for better decision, I drew a &lt;a href=&#34;http://en.wikipedia.org/wiki/Mind_map&#34;&gt;mind map&lt;/a&gt; using this wonderful online tool &lt;a href=&#34;http://www.mindomo.com/&#34;&gt;Mindomo&lt;/a&gt;, it’s like  the following:&lt;/p&gt;
&lt;p&gt;&lt;a href=&#34;http://eashi.files.wordpress.com/2008/06/mostimportant1.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/2008/06/mostimportant-thumb.jpg&#34; border=&#34;0&#34; alt=&#34;most important&#34; width=&#34;527&#34; height=&#34;279&#34; /&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Those nodes are the things I think I want to study/do most.&lt;br&gt;
I marked the most important ones with the red, yellow and then blue flags. Then marked the ones I need to do most urgently with 1 being the most urgent, 2 less urgent and so on.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Builds while deployment</title>
      <link>https://emadashi.com/2008/06/builds-while-deployment/</link>
      <pubDate>Sun, 15 Jun 2008 16:20:45 +0000</pubDate>
      <guid>https://emadashi.com/2008/06/builds-while-deployment/</guid>
      <description>&lt;p&gt;In my company, we are working on this big GRP project, lots of pages, projects and workflows, soon we are delivering some modules to the customer.&lt;br /&gt; So today, while trying to test a workflow that we have been working for days, something weird happened; the users of the workflow didn&amp;rsquo;t exist anymore!!&lt;/p&gt;
&lt;p&gt;After searching for a while, it appeared that we are delivering some modules, and real data needed to be deployed on a database especially for deployment, basically the Users table was the primary table! so as simple as it gets…they created the new database and changed the users we used for the real users (along with the hierarchical structure of the employees).&lt;br /&gt; Ok…that’s fine for now, but the problem is that they wanted us to work on the new data; the action was that they changed the users on the development database on our development environment!&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
