programmer-efficiency

side effects of garbage collection?

This may be an eminently closeable question, but I'm the type that sees what sticks to the wall. For all of the benefits of memory and lifetime management afforded by a garbage collected runtime, have there been any notable cases of program indeterminacy caused by race conditions between an application and its garbage collector? Has a ...

Best shortcut management tool for development machine?

As a developer I had a slew of shortcuts and applications used daily. Visual Studio 6, 2003, 2005, 2008, SQL Client tools, WinMerge, Notepad++, Synergy, VMware (and lots and lots of VMs, multiple browsers, and on top of all that about 20 shortcuts to important directories, servers, test environments etc... The Vista start menu is a lif...

Is a faster "Run" time in the IDE always more efficient?

Bear with me on this one. Consider an iterative cycle of a developer. Make Changes Run Test So my question: is the elapsed time for the "Run" phase tending to zero the most efficient? Or, at some point, does a lower "Run" time result in less efficient iterations, and less efficiency overall? Clearly, a smaller "Run" time is a sup...

Loop and MySQL help!

Okay, basically... i am trying to store the dates and month name from my database in this format. I am aiming store the month and then count the entries in that month and then store the count. This is my loop, but I have trouble formatting the array properly. while ( $row = mysql_fetch_assoc($res) ) { if ($row['Date'] != $prev_date) {...

When developing a website...

Very often, I just create a new folder and test things out in there. I use remote upload and then edit and refresh the page to see if it works. Now, one time when I was asked to work on a friend's website, he told me to change the IP for his domain in my HOSTS windows file. He had a clone of his website on another server, so I could edit...

Can my code be more efficient?

I have to put my database's data in this format (values will differ, obviously), I think it's called an associative array (I'm horrible with terminology). $values=array( "Jan" => 110, "Feb" => 130, "Mar" => 215, "Apr" => 81, "May" => 310, "Jun" => 110, "Jul" => 190, ...

Loop: Need help with loop and efficiency

Currently, I need help with my loop. In each div, I want it to show two sets of FirstName and LastName instead of just one set, but I don't know how can I do that because of the loop. Also, the point of setting different font sizes is to create a visual look which is a funnel like shape. My question is, how can I add another set of name ...

Execution Efficiency vs Programmer Efficiency in R

The classic and brilliant Programming Perl reference book has a section in which the authors provide a list of advice for how to write Perl that is maximally computationally efficient, followed by a list of advice for how to write Perl that is maximally programmer efficient, followed by more advice for maintainer efficient, porter effici...

How to place reminders,todolist, or code-line bookmarks in your code [Dreamweaver]

Hello i am coding in dreamweaver for a change. I was wondering if there is a way to place reminders in your code, for example in the form of a todolist or another way. I know eclipse has this option. You can place //TODO before the line of code. And this is placed in a list. You can view this list every time and conveniently go back to ...

Advice needed on best and most efficient practices with developing google apps application...

Hi guys , I'm getting my feet wet with developing my order management applications for integration with google apps. However there are certain aspects I need to take into consideration prior to proceeding any further. My application is such that it would upload documents to google documents and store contacts in google contacts. It requ...

how to cope with deadline pressure ?

How do you cope with deadline pressure on a coding job? ...

How to find the right balance between "quick & dirty" and "nice & general" code?

This is not a direct programming question, but a little help from the programming community would be appreciated. I am suffering from an overgeneralization disease. I can't stop spending valuable time with making my code most general and abstract. I could also call it the toolkit/library disease. I tend to turn every programming task i...

Which is better a switch statement or if-else if-else statement?

Possible Duplicates: is else if faster than switch() case ? What is the relative performance difference of if/else versus switch statement in Java? I am just wondering if one is better (i.e. more efficient). To me the seem to be the same other than the syntax. ...

How to speed up WPF development

I've been developing with WPF for many months now. It's a great framework and I'm able to do fancy, elegant stuff that would have been a lot more difficult with WinForms. However, I do have the feeling that for normal "line of business" type of applications without any special UI requirements, it still takes me longer to code the UI in ...

VIM better way to replace line from the first symbol

Hi, Having the code: [Test] public void ShouldDoSomethingMeaningFull() { Assert.Fail(); } I often need to overwrite the line (3) Assert.Fail();. What I currently do is this: Go to that line 3G. Select everything starting from first non-whitespace ^v$. Change it - c. The whole sequence is: 3G^v$c. While this works for me but ...

What do you wish you'd known leaving College as a CS Major?

List 5 things you wish you'd known/done/emphasized differently now that you're in the workforce (in the context of your college software development). Thanks from KY for your wisdom. ...