After getting frustrated with the fact that Entity Framework and NHibernate does not resolve my needs, I am writing my own ORM tool to finalize one very important part of enterprise architecture.

Here are the features that are included (hope to finish by tomorrow)

  1. Mutliple entity classes (one per each)
  2. Single Data Provider Class
    1. One Interface IDataProvider
    2. One Class which inherits I[Model]DataProvider (SQL[Model]DataProvider)
      1. [Model] to be renamed by the model name provided
    3. One mocked class using moq framework (http://code.google.com/p/moq/)
  3. SQL[Model]DataProvider will also implement retry logic in case of certain cases such as
    1. Deadlock
    2. Connection Timeout etc.
    3. In a nutshell the following error codes : -1,-2,2,53,1222,1205
  4. Will obviously generate related stored procedures and utilize them :)
  5. Entities will be able to track simultaneous changes and will be able to throw exception if data changed before update!
  6. Entities will implement [DataContract] & [DataMember] so that usage in WCF will be a lot easy
  7. As you may see from here generated codes will implement Abstract Factory (Provider) design pattern and possibility of Singleton is also there.
I think all of those will give me the best ORM that I would need.
I’ve named it as SevDer ORM+ and first version will be completed by tomorrow
  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
, , , , , , , , , , , ,

So far, the best tool I’ve seen is Selenium (with Firefox recorder of course) for functional testing.

It covers most things that one may want to achieve.

Here are the points where Selenium (http://seleniumhq.org/) shall be used

  1. Functional testing of web pages (not only web of course)
  2. Validation content on the page
    1. Image
    2. Text
    3. Source code (rendered of course)
    4. css
    5. Note
      1. And above things by specifying where you expect it
      2. You don’t need to code for that, you just specify those using the recorder tool (it does it for you)
  3. Run complete tests as unit test
    1. by default it is Nunit but it is not a big deal to convert into MSTest format
    2. Just imaging adding function UI test code coverage results into all other unit test coverage results :)
  4. Regression testing
    1. All test scenarios combined
    2. All browsers and versions for all scenarios
  5. Simply stop doing manual test please, it is very easy to do with this tool (not limited to .NET etc.)
Here are the points where Selenium shall not be used for
  1. Performance testing
    1. Please note, selenium is browser based tool so it will open up a browser
    2. Before you reach to the target servers limits you will reach executing machines limits because of having so many browser windows opened by selenium test
  2. Javascript coverage
    1. I would say don’t go for this because
      1. You probably use many javascript files anyway
      2. Most of those can be from other vendors than your own
      3. It is extremely difficult to manage that (long story to explain)
      4. What would you get in the end?
        1. You can try this but only if you’ve mastered your actual code with more than 90% coverage
      5. Your functional testing actually covers your javascript anyway and as jscript is not compiled code, plus it can be fed by CMS or it can be hosted outside of your servers, it will not make too much sense to do it. You will never get a good figure.
I hope this also helps a lot.
Let me know if any changes are required
  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
, , , , , , , ,

Here we go,

After so much name discussion, finally project name is clear.

  1. It needs to be on the cloud (Azure)
  2. It needs to be clean (Green)
  3. It needs to be unique
So what makes the gloudcms?
  1. Runs on cloud
    1. Currently only designed for windows Azure
  2. Be Green
    1. Implement all best practices
      1. All code analysis rules are passing (implemented :) )
      2. 100% code coverage (not yet implemented)
    2. Clean implementation  √
    3. Easy to integrate / install 
      1. Only requirement to install is
        1. Put the dll file into your bin directory
        2. Make 1 line change in web.config
        3. Copy “Template” folder which contains CMS templates you want to implement (make your own also)
    4. No additional hardware requirement 
    5. Platform independent (other that being on .net platform) 
      1. Can run on azure
      2. Can run without azure
    6. Multi-lingual
      1. Currently supports only
        1. English
        2. Turkish
        3. Looking for translators for other languages send me email from sevket01@sevder.com
Do you want to test drive what is there so far?
Ok, I am not offering all fancy things you can test yet, just a simple admin view is there without saving.
Please note, the importance of this preview is about having simple installation on base asp.net application and being on cloud and implementing all static code analysis rules.
From now on, all features will be coming in and making this very interesting.Simple change in web.config for Azure:
    <system.webServer>
        <modules runAllManagedModulesForAllRequests="true" >
            <add name="gloudcms.net" type="SGCmsBase.SGIntercept" />
        </modules>
    </system.webServer>
 Change in regular web.config (No Azure)
    <system.web>
        <httpModules>
            <add name="gloudcms.net" type="SGCmsBase.SGIntercept" />
        </httpModules>
    </system.web>
  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
, , , , , , , , , , , , ,

This is really interesting for unit testing. A new approach called approval testing. Well not too interesting but nicely done approach.

Requires some thinking over this.
And wondering really how this will work with TFS automated builds (unit testing integrated mode)

Plus there is more in ASP.NET unit testing or we shall more say results testing.
I am posting this because it is interesting concept. I don’t really approve changing the base code to do testing.


Ohh yes, check this framework for more details here: http://approvaltests.sourceforge.net/

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
, , ,

Well,

I am sure, many of you had frustrating experience from time to time.
How bad it is to be in situation where a developer causes the whole release to be delayed unnecessarily!
Or one mistake by a developer causes all developers/development teams to suffer?
Or even worse, how a developer cause a huge live bug!

None of those are fun to have and indeed very much frustrating.

What shall we do?
Someone shall take the responsibility because I hate to hear sorry after sorry!

We shall penalize the developer also?
Even better, the TEAM that developer belongs to be penalized so they will be more careful next time!

But what is the solution? How do we penalize a tech team?

Of course not with money!
And firing is also not a problem.
:) – LOL
I have a solution which works perfectly!

I simply force the whole team to do one of the following in order for them to be allowed to be checking in.

  • Fix some code analysis rules (I change the warnings to “errors”). Build fails if we have erroneous rule failures (VS 2010 code analysis or fxcop 10.0)
  • Enforce to write more unit tests to increase code coverage rate.
And how actually I guarantee that it is done properly.

Thanks to TFS 2010 Gated Check-ins.

  • Each check in is controlled by gated check-ins
    • Check-in fails if
      • Solution does not build
      • There are errors in code analysis rules
      • A Unit Test Fails
      • Code coverage rate is below last coverage value (we’ve customized build template in order to achieve this)
        • If they need to be penalized I enforce them to cover 1% more code with unit tests :)
        • Here is an example result:
          Code Coverage Failure Example

That is our solution and results are improved code quality.
I thank Microsoft for TFS 2010 and automated builds.
And thanks to Serdar for implementing  build template modification.
It will be a bit odd but I thank myself for the innovation here and getting deep into the capabilities which can be controlled.

  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
, , , , , , , , , , , ,

I’ve been interviewing several candidates throughout the week and here is the frustrating observation.

Many candidates

  1. Don’t know unit testing
  2. The ones who know don’t know code coverage
    1. Many hear the phrase from me only
  3. Some use it for site monitoring rather than code health check
  4. The architect level experienced ones can’t do simple web project
    1. Not asking too much, just have form, validate data, save into database and show on another page (list of data from database)
And we are not offering low salary for this. Still I am surprised that many fail on those.
Still waiting for the perfect talent to come soon.
  • Facebook
  • Twitter
  • Delicious
  • LinkedIn
  • StumbleUpon
  • Add to favorites
  • Email
  • RSS
, , , , , , , ,