Catch up on stories from the past week (and beyond) at the Slashdot story archive

 



Forgot your password?
typodupeerror

Comment Re:Team Reviews are far superior (Score 1) 186

Finding 1.25 bugs per man hour is impressive. If we did that, we could ship a bug-free application every week (just kidding), the code fixes usually take longer the 1.25 hours. But seriously, we have find around 30-40 bugs per release so if we could spend 24-32 man hours to find all the bugs, I would be thrilled.

Now if Microsoft would lock all their developers in a room for a year, we could get a stable release of Windows.

Comment Stupid (Score 1) 197

4 out of 5 of his suggestions were so simple the you could have gotten them out of any of the 10,000 blogs on 'improve' your programming, Refactor, use OOP, Unit Test and use Version Control. Any programmer that has more than an ounce of experience is already doing this.

The fifth suggestion was the one that was just plain stupid. Using auto/var for declaring variables is the intellectual equivalent to Visual Basic's, Option Explicit Off. Sure you could do it but why?

Comment Re:A tough one (Score 1) 285

You mention "Window NT and bugs" and that brings back some bad memories.

I was writing a program in MS Visual C++ on Window NT, and encountered a place in my code where the program would always crash. No compiler errors. The syntax was all correct. I then started walking through the assembly code with a debugger. In the middle of my function some system call was erroneously throwing an exception and crashing my program. Thank you Microsoft. So in the middle of my code, I added this try/catch block, empty brackets and all....

try
{
}
catch()
{
}

That caught the Windows NT system error and allowed my program to continue. Whoa to the future programmer that removes it because is "obviously" does nothing.

Comment ** Spoiler ** (Score 2) 285

It is the anonymous CORBAConnection variable that is create in the function call. Programmers create this anonymous variables all the time and never thing that it will bite them is the ass. Well, this one did and nearly took down the company too. Here is the explanation behind it.

CORBA communication is asynchronous, and thus COBRA connect object lives past the function that created it. When the communication thread that was using the connection is finished the original calling function that created it, has passed out of scope so there is no destructor called implicitly. And since there is no explicit variable, we cannot call the destructor explicitly either. With no way to call a destructor, there is no way to reclaim the memory, used thus the memory leak.

The solution was to explicitly declare a variable for the CORBA connection object and then call the destructor when it finished.

Comment Still haunts me (Score 1) 285

I was a young programmer working at my first startup company back in 1999. We had an communication app that talked using CORBA much as today you would used Web Services. We knew we had a memory leak and back then you only had a few megabytes of RAM so a memory leak could chew through all your memory pretty quickly. This bug was causing our servers to crash at least once a day and was in danger of taking down the whole company.

I didn't write the code, it was written by one of our senior engineers. He has insisted his code was right but I found the memory leak in his code using a debugger.


/*code snippet*/

returncode = CallCORBA( new CORBAConnect( /*Connection parameters*/), &header, &message);

if (returncode != ERROR)
{
/* continue processing other event */
}
else
{
/* handle error */
}

Comment Re:Must be Silicon Valley (Score 1) 264

Even if the house costs $1-1.5M, if you are making the salary to afford that house, you end up ahead. The higher cost of living results in higher salaries and in the end, the person making the higher salary accumulates more assets.

Here is a simpler example, Alex and Bob both buy a car for $500/mo and both have student loans for $1000/mo. For Alex, that is only 18% of his salary. For Bob, it is 36% of his. In the end, Alex will accumulate more assets in his working life.

Comment Re:Must be Silicon Valley (Score 1) 264

I agree with you. If the salary doesn't make up for the difference in housing prices, it is not worth it. The housing prices in San Francisco have just gone insane. Same thing for the housing prices in Manhattan. More than outstripping the salaries that they are now paying IT workers.

The best of both worlds is to do contract work in SV but live elsewhere. You get paid like the locals but then get to go home to a house with yard.

Slashdot Top Deals

"It takes all sorts of in & out-door schooling to get adapted to my kind of fooling" - R. Frost

Working...