Programming Practices are the commonly or not so commonly used practices in development of software. These can include things like Agile Development, Kanban, Coding shortcuts, etc.

learn more… | top users | synonyms

7
votes
6answers
2k views

Do you handle Out-Of-Memory conditions?

What do you do when malloc returns 0 or new throws exception? Just halt or try to survive OOM condition/save the user's work?
16
votes
7answers
2k views

How did you become a const correctness convert?

After 15 years of C++, I've still haven't learn to love using const. I understand it's use, but I've never actually been in situation where being const correct would have avoided the problem I was ...
12
votes
4answers
783 views

Which web site gives the most accurate indication of a programmer's capabilities?

If you were hiring programmers, and could choose between one of (say) the top 100 coders on topcoder.com, or one of the top 100 on stackoverflow.com, which would you choose? At least to me, it would ...
14
votes
10answers
825 views

How do you normally layout a class's regions?

I was wondering if there was a standard for laying out a class's regions. I currently use Fields Constructor Properties Public Methods Private Methods Fields being Private Properties and ...
3
votes
3answers
71 views

Getting a coherent view of the state of the data

Here is a theoretical problem. It could apply to many systems. Let's assume RESTful Web services for example. You want to find out something but as it happens you can't get it in a single query. ...
35
votes
8answers
2k views

Is Linq having a mind-numbing effect on .NET programmers?

A lot of us started seeing this phenomenon with jQuery about a year ago when people started asking how to do absolutely insane things like retrieve the query string with jQuery. The difference ...
13
votes
17answers
508 views

What do you consider to be the prime cause of software defects (and how to minimize them) [closed]

I define defect as : "something within the application design or code which prevents it functioning as per requirements." I'm looking for ideas about the causes of defects, eg the human factor, ...
24
votes
16answers
4k views

What is the hardest bug to find? [closed]

If possible write how to avoid this kind of bug (besides testing, of course, please write a specific technique)
11
votes
9answers
448 views

What mistakes do your users make, and how can you update your application to handle them? [closed]

In fact this question is about cautions to be taken to enhance quality user experience and reduce avoidable support calls.
24
votes
11answers
2k views

Is it okay to use a language that isn't supported by your company for some tasks?

I work for a company that supports several languages: COBOL, VB6, C# and Java. I use those languages for my primary work, but I often find myself to coding some minor programs (e.g. scripts) in Python ...
7
votes
2answers
1k views

5 things before starting a project? [closed]

What are the first 5 things you do before starting a new project? Do you always spend a day researching new frameworks? Or, using similar or competing products?
22
votes
13answers
4k views

Why isn't literate programming mainstream? [closed]

Literate programming has good ideals. Why do you think that this isn't mainstream? It is because it has failed to deliver?
29
votes
5answers
2k views

Test driven development - convince me! [closed]

I know some people are massive proponents of test driven development. I have used unit tests in the past, but only to test operations that can be tested easily or which I believe will quite possibly ...
14
votes
10answers
1k views

Will correctness proofs of code ever go mainstream? [closed]

All but the most trivial programs are filled with bugs and so anything that promises to remove them is extremely alluring. At the moment, correctness proofs are code are extremely esoteric, mainly ...
15
votes
12answers
5k views

Is it ever worthwhile using goto?

Goto is almost universally discouraged. Is this statement every worthwhile using?
22
votes
12answers
2k views

Should developers be forced to check-in before leaving work each day, even if the code does not compile? [closed]

During a previous consulting position, the developers where told to check-in code on a nightly basis, regardless if it complied or was complete. Managers were afraid of losing any code and said now we ...