techniques

In VIM, how do I apply a macro to a set of lines?

I have a file with a bunch of lines. I have recorded a macro that performs an operation on a single line. I want to repeat that macro on all of the remaining lines in the file. Is there a quick way to do this? I tried Ctrl+Q, highlighted a set of lines, and pressed @@, but that didn't seem to do the trick. ...

Why isn't System...Stack<T> implemented as a Linked List?

I was looking through my code and I found a couple of extension methods that I wrote in order to remove items from a System.Collections.Generic.Stack. I was curious, so I looked at the source of Stack with Reflector and I can see that they implemented it as an array instead of a linked list and I'm just wondering why? With a linked list ...

Hip application name

I have finished developing a quite useful small application. I would like to launch it, but I am not satisfied with it's name. What techniques, websites do you recommend that can help a programmer construct a powerful, easy-to-remember application name? For example: Firefox is a very powerful name IMO, easy to remember, very visual. ...

Best way to transparently log downloads?

I have a personal project that's been online for sometime now. I've been keeping a tally of downloads by doing this: When the user clicks the download link, it hits a PHP script that writes some information to a table. Once the data is written, the script returns the path to the actual file. The user then has the ability to save the fi...

How do you ensure code quality?

What techniques you use to ensure code quality? Pairing? Code reviews? Design? Documentation? What helps you creating extensible quality software? ...

Difference between RDP/Terminal Services and VNC Streaming Techniques

As part of a client support tool, I'm wanting to provide some functionality to be able to request to view/remote control a desktop session. There are a bunch of ways to get a screen capture and then stream it, but I'm wanting to find out in particular, why the RDP (Remote Desktop / Terminal Services vs. VNC experience is so different. I'...

How can I improve my program design and problem solving technique?

I have been coding for a while now and am confortable with a few programming languages but now feel that I need to improve my problem solving or program design technique. What skills do I need have to be able to design a program as a solution to a problem? More: The question is about how to design a solution rather than how to code bet...

What programming technique not done by you, was ahead of its time?

There are developers who understand a technology and produce a solution months or years ahead of its time. I worked with a guy who designed an system using C# beta which would monitor different system components on several servers. He used SQL Server that would pick up these system monitoring components (via reflection) and would ins...

Latest and accepted ajax techniques in Rails

What is the present state of Rails Ajax? What frameworks and technologies should one use when working with Rails now? Rails seems to evolve so rapidly that one might not be able to keep up. Is it prototype and RJS or something else? ...

As a programmer what single discovery has given you the greatest boost in productivity?

This question has been inspired by my recent discovery/adoption of distributed version control. I started using it (mercurial) just because I liked the idea of still being able to make commits at times when I couldn't connect to the central server. I never expected it would give me a large boost in general productivity, but a pleasant si...

What techniques do JavaScript compression libraries use to mimize file size?

Please note that this question is intended to be a bit more on the theory side of the subject, but besides stripping whitespace what other techniques are used for JavaScript Compression? ...

How to learn new techniques?

How to practice new technique when there is no programming jobs related to that technique? Such techniques as sql/wpf etc.. ...

How to notify users about another one is now online?

I'm using yahoo messenger to chat with my friends. Every time a friend of mine comes online (almost intermediately) YM will notify me. How did Yahoo! (and other companies) do to implement this? As far as I guess, there are some techniques to solve this issue: Pulling: client constantly (500ms duration, maybe) asks server about which us...

What programming concept/technique has boosted your productivity?

I've been programming for several years now and since then I have learned several concepts and techniques that have made me a better programmer (i.e. OOP, MVC, regex, hashing, etc). I feel too that by been able to learn several languages (basic, pascal, C/C++, lisp, prolog, python) I have widen my horizons in a very possitive way. But si...

image processing techniques - direct manipulation of destination image or virtualized?

i need to re-project a series of ariel images that have been referenced in a geographical coordinate system into a UTM projection. I had read that using getPixel and setPixel might be slow - should set up a series of 2 dimensional arrays for intermediate access and then flush the values to the destination image when I am done. Is this ...

What are the best books for Programming Theory?

Related: http://stackoverflow.com/questions/537855/what-books-to-take-programming-beyond-the-basics-closed http://stackoverflow.com/questions/574001/what-books-do-you-suggest-for-understanding-object-oriented-programming-design-de http://stackoverflow.com/questions/13781/computer-science-textbooks I'm trying to build some...

What are some of the other old / researched techniques that are not in the main stream yet?

With the recent announcement of Google Wave I started looking into how it worked, I then found that work and research on Real-time Collaborative Editing Systems has been around for some time (the first work was done in 1989). Google "introduced" MapReduce however that had been around for some time in functional programming as well. Are...

Optimizing Delete on SQL Server

Deletes on sql server are sometimes slow and I've been often in need to optimize them in order to diminish the needed time. I've been googleing a bit looking for tips on how to do that, and I've found diverse suggestions. I'd like to know your favorite and most effective techinques to tame the delete beast, and how and why they work. un...

High level code in production context?

I've been reading realy good books about advanced programming technique recently (Modern C++ Design by Andrei Alexandrescu is one of my favorite) and I have been realy disapointed to learn at my new job that such technique where prohibited since it would be too hard to maintain for people who can't understand such technique. Does such h...

What is the most useful way to document assessment of technological choices for a business problem?

I would like to know if there are any templates for doing this in a clear and concise way to give the gist of the application and its inner workings and how it meets the business needs. I do not want to write a mythological story so looking for any new ways of doing this. ...