Updates from June, 2009 Toggle Comment Threads | Keyboard Shortcuts

  • ty 3:33 pm on June 20, 2009 Permalink | Reply  

    Scaling From Day One 

    There is a saying in software development, you write it first and then you optimize as needed. This is a very general rule and works much of the time. However, when you need your solutions to scale from day one, you can throw this rule out the window. Well, you aren’t really throwing the rule out, you are modifying it. The new rule is to write it optimally first when the solution needs to scale.

    Scales

    Going to the supermarket is a solution the needs to scale from day one. Let say we have two scenarios: you need to pick up two items and you need to pick up twenty items. I see two real approaches to the problem. The first would be to go to the store every time, and the second is to go only once. Going once is more optimal and it scales. Think of how much time and resources I burn up going to the store each time. You can argue that going to the store twenty times is not that bad, but what about 100 times. My point should be apparent now. Going to the store one time for every one item is inefficient

    Let’s replace the supermarket drive with a database call. When you need to retrieve thousands of records, going to the database for each record can be costly. This is a common pitfall in development, the solution to retrieve information one item at a time is probably plaguing your world as we speak. You ever wonder why things take so long, the code in use may suffer from inefficient retrieval.

     
  • ty 2:22 pm on June 1, 2009 Permalink | Reply  

    A Problem You Can Duplicate is Easy To Fix 

    This is not true 100% of the time, but the majority of the time this is correct. There have been times, I “fixed” a problem. Only to realize I didn’t fix anything. However, I did break working code. After you have done this a few times, you will learn.

    In an attempt to reduplicate the problem, here are a few questions that may help. How did this happen? What are the steps taken that caused this problem? What has changed that I don’t know about? When was the last time this worked? Answers to these questions will uncover the steps that lead to the problem.

    The process of fixing bugs is not magic. Chances are something was overlooked or a scenario was not accounted for. Again, not magic. Get into the habit of trying to reduplicate the issue. Once you can reduplicate a problem, it’s usually pretty straightforward to resolve.

     
c
compose new post
j
next post/next comment
k
previous post/previous comment
r
reply
e
edit
o
show/hide comments
t
go to top
l
go to login
h
show/hide help
shift + esc
cancel

Page optimized by WP Minify WordPress Plugin