most (994)


language agnostic - Do you use design patterns?

language agnostic - Do you use design patterns?

What's the penetration of design patterns in the real world? Do you use them in your day to day job-discussing how and where to apply them with your coworkers-or do they remain more of an academi…


Refactoring away labeled loops

After I was convinced that labeled breaks/continues are a total "nono" over here, I need help to remove the label out of my code. I have a square matrix and a vector that has the same length. The vec…


Delete all but the most recent X files in bash

Is there a simple way, in a pretty standard UNIX environment with bash, to run a command to delete all but the most recent X files from a directory? To give a bit more of a concrete example, imagine s…


language agnostic - Most efficient implementation of a large number class

When doing calculations on very large numbers where integral data types such as double or int64 falls short, a separate class to handle such large numbers may be needed. Does anyone care to offer a…


.net - (Why) should I use obfuscation?

It seems to me obfuscation is an idea that falls somewhere in the "security by obscurity" or "false sense of protection" camp. To protect intellectual property, there's copyright; to prevent security…


Is there a standard for storing normalized phone numbers in a database?

What is a good data structure for storing phone numbers in database fields? I'm looking for something that is flexible enough to handle international numbers, and also something that allows the vario…


svn - How to convince a company to switch their Source Control

My current place of employment is currently in a transition, new ownership has taken over, things are finally getting standardized and proper guidelines are being enforced. But we are still using V…


SQL Query to get latest price

I have a table containing prices for a lot of different "things" in a MS SQL 2005 table. There are hundreds of records per thing per day and the different things gets price updates at different times…


Find the highest order bit in C

what I'm after is something I can feed a number into and it will return the highest order bit. I'm sure there's a simple way. Below is an example output(left is the input) 1-> 1 2-> 2 3-> 2 4->…


language agnostic - Continue Considered Harmful?

Should developers avoid using continue in C# or its equivalent in other languages to force the next iteration of a loop? Would arguments for or against overlap with arguments about Goto?…





how the list for popular find programming and packages python