Tagged Questions

1
vote
2answers
127 views

Methods of ordering function definitions in code

When I work on some programming project (usually command line application in Python with many switches), I'm usually creating about 30 and more functions. Most of the functions are in one file (except ...
3
votes
3answers
222 views

Agile development : How to design your code for an iteration / Sprint?

In Agile development you work on small user stories and produce a working iteration. But what happens when the next user story comes in and affects the design for the already done iteration? ...
1
vote
7answers
393 views

Would you use UML if it kept stakeholders from requesting changes frequently?

As much as programmers hate to document their code/system and draw UML (especially, Sequencing, Activity and State machine diagrams) or other diagramming notation, would you agree to do it if it kept ...
8
votes
3answers
696 views

Which is a better practice - helper methods as instance or static?

This question is subjective but I was just curious how most programmers approach this. The sample below is in pseudo-C# but this should apply to Java, C++, and other OOP languages as well. Anyway, ...
4
votes
4answers
271 views

Should I learn design patterns or algorithms to improve my logical thinking skills? [closed]

Possible Duplicate: How can I improve my problem-solving ability? When starting a programming task, I have trouble breaking it up into steps and figuring out how to go about solving it. I ...
12
votes
4answers
408 views

What is the limit to the number of a class methods?

In different design books that I read, sometimes big emphasis is put on the number of methods that a class must have (considering an OO language, as java or C# for instance). Often the examples ...
41
votes
12answers
2k views

Are there problems with using Reflection?

I don't know why, but I always feel like I am "cheating" when I use reflection - maybe it is because of the performance hit I know I am taking. Part of me says, if it is part of the language you are ...
6
votes
7answers
348 views

What's the best way to prepare your design & code for those “unknown unknown” bugs from day one?

I am just wondering, is there any practical method or technique or even tricks to get avoid those "unknown unknown" bugs especially those nasty and random ones which are often emerge at the last ...
0
votes
7answers
210 views

Vector operations: vec1.dot(vec2) vs vec1 * vec2 vs dot(vec1, vec2)

What's your preferred way to implement/use vector operations? vec1.dot(vec2) allows to reuse vec1 but is hard to read for longer equations dot(vec1, vec2) A friend of mine prefers this as "dot" ...
5
votes
8answers
228 views

What tools do you as [web] programmers use to help your design skills?

As a programmer, I enjoy embarking on small personal projects and I have a load of open source scripts that I host on github. I am very much a programmer and not a designer. However, it is ...
5
votes
11answers
436 views

Starting all over again?

Have you ever been developing something and just came to a point where you think that this is rubbish, the design is bad and although I will lose time it will be better to just start all over again? ...
2
votes
7answers
471 views

Generic code or code easy to understand?

at work now I had an argument with co-worker, because I made a page that he feels is too generic. The page has 3 modes (simple, adv and special) - it has to work like this, because we don't choose ...
24
votes
24answers
3k views

Absolute statements in IT that are wrong [closed]

I was recently in a discussion about the absolute statement "It costs more in programming time to optimise software than it costs to throw hardware at a problem". The general thought (of which I ...
10
votes
5answers
425 views

What happened to Alan Cooper's Unified File Model?

For a long time Alan Cooper (in the 3 versions of his book "About Face") has been promoting a "unified file model" to, among other things, dispense with what he calls the most idiotic message box ever ...
13
votes
6answers
497 views

How do you dive into a big ball of mud? [closed]

Possible Duplicate: How do you dive into large code bases? So there is a question about understanding code. Mine is a similar problem. It started when I joined my current org. and like I ...

1 2
15 30 50 per page