Browse by Tags
All Tags »
Opinion (
RSS)
MIX10 – Summary Home sweet home! I arrived today back to Israel after a trip of six days to the MIX10 conference (three days conference and almost three days “on the roads”). To tell the truth, I was a little disappointed from the conference. I’ve expected more relevant information and less recycling of things that I already know. As you know (if you followed the MIX10 ), there were announcements about Windows Phone 7 , Silverlight 4 , OData protocol, IE9 and more. After being at the conference and...
Entity Framework Context Lifetime Best Practices In this post I’m going to write about one of the major decisions that you need to take when you use ORM tools like Entity Framework . This decision is the context lifetime . The Problem Context lifetime is a very crucial decision to make when we use ORM s. Since the context is acting as an entity cache (it holds references to all the loaded entities for change tracking and lazy loading purpose), it may grow very fast in memory consumption. Also this...
To Use OSS or Not to Use? This post is a result of a very big discussion I had with a customer that I’m currently consulting for. The discussion started because a project reached its testing phase and to my surprise the QA team worked with… (don’t be shocked) a primitive excel file to manage bugs. The testing phase was taking to long because of things like concurrency (two users can’t edit the excel file at the same time), synchronization of the same file and many other multi-user or files problems...
The Regulator Yesterday, I reviewed a regular expression that was written by one of the developers and I needed to improve it since it wasn’t performing the appropriate thing. Since I know The Regulator tool, I opened it and in 5 minutes I came up with this regular expression which validate Israeli phone/cellular numbers: ^0(5[012345678]|6[47]|[23489]){1}(\-)?[^0\D]{1}\d{6}$ With The Regulator I created and checked the expression and then implemented it in the application. What is The Regulator?...
Don’t Repeat Yourself Today while I was doing code review I found myself writing a new generic function instead of one piece of code that was repeating itself in the developer’s code. When you write code sometimes you have to duplicate some piece of code. When it occurs, this is the best time to think of refactoring your functionality. A lot has been written about DRY principal this post is my opinion about it. The DRY Principal Don’t Repeat Yourself or DRY is a very good practice when we are writing...
Back to Basics – Exposing UserControl Events This morning I saw Shlomo ’s post ( in Hebrew ) that explain how to expose events in a UserControl in order to enable the page to register to that event . This post will show a different solution to do the same thing and also explain my opinion in regard of whether to expose events through UserControl or not. Should We Expose UserControl Events? One of the things that I always explain when I’m being asked my opinion about exposing UserControls...
Do We Need Design Patterns? In the previous week I have been asked “do we really need design patterns when we write code?”. Since one of the first things that I wrote in my blog was a design patterns series you probably would think that I answered SURE! or other absolute answer. That isn’t the case. The question was raised since I saw that a developer tried to enforce a design pattern (abstract factory) that wasn’t needed in some place in the code. What I really believe in is that design patterns...
Management From Hell This post is a result of a conversation I had with my wife. My wife is also in the Hi-Tech world and she is a senior Java developer (yes computers runs in the family ;-)). Last week we talked about what is going on in the project that she is assigned to and I couldn’t believe what I’m hearing. Apparently, the managers there just lost their mind… Sentences like: “I don’t want/care about quality code I want to see that you work a lot of hours” “Do you have a family? kids...
If it is Working Don’t Touch it? Occasionally I hear this sentence from here and there. Every time I hear it I get angry again. IMHO, when someone says that sentence it’s probably indicating that there is a lot of pain coming at us in the future. When I always hear that sentence? When there is a spaghetti code that nobody knows how to deal with (because the code is so tangled). When the developer is lazy and don’t want to change something that is working even though it is badly written. When there...
Programming Entity Framework Book Review One of the books I read in the last weeks was Julia Lerman ’s Programming Entity Framework book. Review Julia Lerman ’s book is currently the best choice if you want to learn Entity Framework . The book is very thorough and even though it is very long to my taste (about 800 pages) it is written very good. The book covers almost every aspect in Entity Framework and also suggests some solutions to problems that V1 has like for example an approach to N-Tier applications...
Why You have to use Coding Conventions Tomorrow I’m going to a client in order to help in constructing a coding conventions document for their project. One question that I sometimes hear is why to use coding conventions in projects? This post will try to answer the question. What are Coding Conventions? Taken from Wikipedia – “ Coding conventions are a set of guidelines for a specific programming language that recommend programming style, practices and methods for each aspect of a piece program written...
Pro ADO.NET Data Services Book Review Lately I’ve been reading a lot. One of the books that I read is Pro ADO.NET Data Services - Working with RESTful Data from Apress which I’ll review in this post. Review The book isn’t long, its about 300 pages and has four major parts: ADO.NET Data Service Fundamentals ADO.NET Data Services in the Real World ADO.NET Data Services from the Outside The Future of ADO.NET Data Services The first part is written well and it gives a very thorough understanding about...
Who Develop the Developers? Sometimes I find myself wondering about the title’s question. During the years that I’m developing software I found out that this question isn’t trivial but holds a very simple answer - you should . When I was a junior developer, my team leader gave me three books and said that my first mission is to read these books and then after three weeks he’ll give me my first assignment. As you expect, I read the books and got my first assignment. But something was missing. I didn...
My Current Learning List of Technologies In the last few days I have started to learn few old/new technologies that I think you should consider learning in the near future as well (if you didn’t learn them before). The technologies: ASP.NET MVC Framework – the new framework that leverage the MVC pattern for ASP.NET. The technology is a must learn technology for every .NET web developer in my opinion. Learning the framework will give you a new choice for implementing web applications with MVC pattern...
Deep Code Analysis With NDepend A few weeks ago, I was contacted by Patrick Smacchia , a C# MVP, that I read his articles on one of my favorite blog sites – CodeBetter . Patrick asked me if I want to evaluate NDepend professional edition. Without thinking twice, I agreed and this post is a review of the product. I want to thank Patrick for the opportunity to evaluate a professional product which I wanted to test for a while (I downloaded the evaluation edition a few weeks before Patrick contact me...
More Posts
Next page »