language-agnostic

Is it a good idea to put Easter Eggs in applications?

What do you think? If yes - where would/did you? If no - why not? Did anyone ever get in trouble for that? Where do you think lies the line between a funny/insightful easter egg and embarrassing yourself in front of your boss/clients/open source community?...

What are the best RSS feeds for programmers/developers?

I am looking for a breakdown of some really good RSS feeds. I have quite a few subscriptions with Google Reader but lack many very good development/programming feeds. I would love to see some lists here. Will Stack Overflow have an RSS feed? I found the answer to the Stack Overflow RSS feed question: "Have an RSS feed of recent quest...

C# logic order and compiler behavior

In C#, (and feel free to answer for other languages), what order does the runtime evaluate a logic statement? Example: DataTable myDt = new DataTable(); if (myDt != null && myDt.Rows.Count > 0) { //do some stuff with myDt } Which statement does the runtime evaluate first - myDt != null or: myDt.Rows.Count > 0 ? Is there a...

Geographically Distributed Development

My company is using me as a sort of guinea pig for having developers on both sides of the US. The main office is located in Denver, and I'm in Louisville, KY. I've been trying to come up with ideas to make the remote development experience line up better with the experience in the main office. It obviously will never line up perfectly, b...

How do you handle huge if-conditions?

It's something that's bugged me in every language I've used, I have an if statement but the conditional part has so many checks that I have to split it over multiple lines, use a nested if statement or just accept that it's ugly and move on with my life. Are there any other methods that you've found that might be of use to me and anybod...

Split a string ignoring quoted sections

Given a string like this: a,"string, with",various,"values, and some",quoted What is a good algorithm to split this based on commas while ignoring the commas inside the quoted sections? The output should be an array: [ "a", "string, with", "various", "values, and some", "quoted" ] ...

C# loop - break vs. continue

In a C# (feel free to answer for other languages) loop, what's the difference between break and continue as a means to leave the structure of the loop, and go to the next iteration? Example: foreach (DataRow row in myTable.Rows){ if (someConditionEvalsToTrue) { break; //what's the difference between this and continue ? ...

How do you mock a Sealed class?

Mocking sealed classes can be quite a pain. I currently favor an Adapter pattern to handle this, but something about just keeps feels weird. So, What is the best way you mock sealed classes? Java answers are more than welcome. In fact, I would anticipate that the Java community has been dealing with this longer and has a great deal...

What rule engine should I use?

What are some of the best or most popular rule engines? I haven't settled on a programming language, so tell me the rule engine and what programming languages it supports. ...

Puzzle: Find largest rectangle (maximal rectangle problem)

What's the most efficient algorithm to find the rectangle with the largest area which will fit in the empty space? Let's say the screen looks like this ('#' represents filled area): .................... ..............###### ##.................. .................### .................### #####............... #####............... #####......

Of Ways to Count the Limitless Primes

Alright, so maybe I shouldn't have shrunk this question sooo much... I have seen the post on the most efficient way to find the first 10000 primes. I'm looking for all possible ways. The goal is to have a one stop shop for primality tests. Any and all tests people know for finding prime numbers are welcome. And so: What are all the...

Best IDE's for different programming languages

I'm looking to learn python and wasn't sure what IDE's are available, what is the best one, etc. As a way of making the question more general, lets try to establish a definitive list of the best IDE for all languages. Here's a start .NET: MS VS Java: Eclipse Ruby: ? Python: ? x86 Assembly: ? others.... ...

Database, Table and Column Naming Conventions?

Whenever I design a database, I always wonder if there is a best way of naming an item in my database. Quite often I ask myself the following questions: Should table names be plural? Should column names be singular? Should I prefix tables or columns? Should I use any case in naming items? Are there any recommended guidelines out ther...

Practical non-image based CAPTCHA approaches?

It looks like we'll be adding CAPTCHA support to Stack Overflow. This is necessary to prevent bots, spammers, and other malicious scripted activity. We only want human beings to post or edit things here! We'll be using a JavaScript (jQuery) CAPTCHA as a first line of defense: http://docs.jquery.com/Tutorials:Safer_Contact_Forms_Without...

How can you tell whether you're ready to start your own blog?

Hi, I'm curious whether I should start my own blog or not. I've been working as a programmer for 3 years and have some good and bad experience I can share. On the other hand I'm not sure I will be able to post very often (maybe even less then one time per week). They say writing a blog will improve your writing skill and it seems appe...

What's the most silly/inappropriate task and language combination you are responsible for?

I've written a number of pieces of code that attempt to do tasks that are wholly inappropriate for the language being used, eg. particle engines in javascript, a web server made from bash scripts, etc. Has anyone else deliberately set out to achieve such absurdity? what languages did you use and for what purpose? ...

Can a developer truly be Language Agnostic?

Apologies this question could be interpreted as a question not to ask but an impending project has lead me to this. When you ( as in a developers / designer ) first encounter a task / project do you not find yourselves mini solving it as it unravels ( either read or spoken )?(1) If so are your thoughts in "a programming language?" If ...

What is some great source code to read?

Following the advice of Scott Hanselman, I'm looking for good source code to read. Here's what is currently on my list: Scott's posts CodeProject How about you? What source code do you read? It doesn't have to be .NET related. Update Compiled replies: Beautiful Code Donald Knuth's literate programs CodePlex Linux SQLite Java J...

Check for hung Office process when using Office Automation

Is there a way to check to see if an Microsoft Office process (i.e. Word, Excel) has hung when using Office Automation? Additionally, if the process is hung, is there a way to terminate it? ...

Software for managing multiple projects.

Does anybody have any recommendations on software to use for managing resources on multiple projects? I work in an internal development department and the team typically has 3 or 4 projects that are live at one time as well as day to day support and ad-hoc requests. I currently schedule them using MS Project but this seems to be designe...