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

3
votes
4answers
340 views

Have you ever had to sacrifice programmer integrity for customer satisfaction?

I mean did you ever reluctantly adopt a less than ideal solution because management told you that "customer is always right"? I'll go with mine first. A few years back, me and my team developed a ...
2
votes
2answers
773 views

Clojure: Adding functions to defrecord without defining a protocol

A record can implement protocols. However, each time I think of a new function that I would like the record to implement, I have to add it to an existing protocol or create a new protocol. How do I ...
24
votes
8answers
1k views

Legitimate use of the Windows “Documents” folder in programs

Anyone who likes their Documents folder to contain only things they place there knows that the standard Documents folder is completely unsuitable for this task. Every program seems to want to put its ...
12
votes
12answers
4k views

How would you refactor nested IF Statements? [duplicate]

I was cruising around the programming blogosphere when I happened upon this post about GOTO's: http://giuliozambon.blogspot.com/2010/12/programmers-tabu.html Here the writer talks about how "one ...
28
votes
8answers
2k views

Is there such a thing as having too many private functions/methods?

I understand the importance of well documented code. But I also understand the importance of self-documenting code. The easier it is to visually read a particular function, the faster we can move on ...
57
votes
18answers
4k views

How to tell your boss that his programming style is really bad?

I'm a student and in my spare time I'm working for a big enterprise as Java developer. The job is good, but the problem is, my boss writes very strange code. I don't want to complain, but some issues ...
11
votes
12answers
3k views

Coding from phone? [closed]

Have you ever tried coding from your phone or just simply going through it when you are commuting or waiting at the doctor? I hate to carry the entire laptop for it.
13
votes
18answers
3k views

I'm 15 and I really want to study Computer Science at University, any advice? [closed]

I already do a lot of programming in my spare time. I'm confident with PHP, Javascript, jQuery which I use in combination with HTML to create mock-up websites. The specific part of programming I want ...
5
votes
8answers
1k views

Top bad practices in MySQL [closed]

There was another post allowing people to post their top bad practices in PHP, I had a gripe about MySQL practices and thought it'd be an interesting topic to hear the top bad practices in MySQL. Up ...
5
votes
3answers
437 views

Weighing pros and cons for using jQuery for just one widget

I have been using html select boxes or textboxes for date input. On submit, the date is validated and if invalid an error is returned. I have avoided javascript calendars thus far, but jQuery ...
3
votes
1answer
147 views

Should I forward the a call to .Equals onto .Equals<T>?

So, I've got you bog standard c# object, overriding Equalsand implementing IEquatable public override int GetHashCode() { return _name.GetHashCode(); } public override bool ...
8
votes
7answers
379 views

How can we deal with experiental gaps in learning of programmers or any technology field?

This problem is a re-occuring one in my experiences. That of the ability to learn from other people's experiences, and being able to share what I have learned. Part of the problem of this learning ...
2
votes
7answers
539 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 ...
6
votes
3answers
242 views

Separation of Tasks in an n-tier app: By module or by tier?

Developing an n-tier app with a team, is it better to divide tasks by module or use case (e.g. Employee 1 creates Admin module, employee 2 creates Payroll module, etc.) or by tier (e.g. Employee 1 ...
2
votes
3answers
1k views

How do you find the most optimized way to write code?

In my programming career, I have written Java and PHP, Javascript and a little Ruby. I am not a CS major but got into web development from a more broad Internet Professional associates degree, which ...
12
votes
5answers
575 views

Can there be too much uniformity in coding standards?

Is there such a thing as too much uniformity? Where I work we of course have standards including naming conventions, architectures, frameworks to leverage etc. However lately there has been a lot of ...
12
votes
2answers
471 views

Equity derivatives programming

I've been considering applying for some programming jobs that require experience in Equity derivatives and whilst I know what equity derivatives are, I have no idea what sort of things a programmer ...
5
votes
1answer
456 views

What benefits do I get from learning Scheme?

I'm a java programmer and I've decided to learn a bit about theoretical computer science. I don't have a degree in that and a little background would help me a lot since I don't know anything other ...
3
votes
3answers
825 views

Code to simulate a users actions, such as logging in

I've recently begun working on a PHP application, replacing another developer. I believed the application was using an API to communicate with a remote service but when I looked through the code I ...
20
votes
11answers
3k views

Logging: Why and What? [closed]

I've never written programs which make significant use of logging. The most I've done is to capture stack traces when exceptions happen. I was wondering, how much do other people log? Does it depend ...
2
votes
1answer
731 views

What source code organization approach helps improve modularity and API/Implementation separation?

Few languages are as restrictive as Java with file naming standards and project structure. In that language, the file name must match the public class declared in the file, and the file must live in ...
1
vote
3answers
281 views

Most commonly forgotten thing to do when programming/web developing

Does anyone else have that one thing they always forget to do when programming or developing a website? Personally mine is forgetting to include the Doctype in a website...the amount of time i have ...
13
votes
11answers
737 views

How do you keep track of the authors of code? [closed]

This is something I was never taught. I have seen alot of different types of authoring styles. I code primarily in Java and Python. I was wondering if there was a standard authoring style or if ...
26
votes
15answers
2k views

Does heavy library and code snippet usage make you a bad programmer?

Overall I'm in programming for about 8 years now and it seems to me that I'm relying more and more on open source libraries and snippets (damn you GitHub!) to "get the job done". I know that in time I ...
1
vote
2answers
271 views

How to choose a new technology for mastering and not lose sense of reality and practicality?

How to choose the right next step in learning programming and mastering new technologies? I have experience with WinForms applications in C# .NET. Next what I see as a good area of expanding the ...
5
votes
3answers
3k views

Defensive Programming Techniques [closed]

I was attempting to identify an element of software engineering that I think is overlooked, not emphasized or not taught in typical undergraduate course work for CS or SE. What I came up is the ...
26
votes
17answers
4k views

Am I copy/paste programmer? [duplicate]

When ever I am stuck with a particular problem, I search for a solution in Google. And then I try to understand the code and tweak it according to my requirement. For example recently I had asked a ...
12
votes
5answers
739 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 ...
4
votes
3answers
2k views

Beginner need help on learning Qt programming [closed]

Thought of learning Qt. Need help from experienced ones out here. How should I begin. Some good books to refer. Some good tutorials to learn... Edit: Also which is the good IDE available out there ...
13
votes
0answers
599 views

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

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 ...
26
votes
24answers
4k 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 ...
0
votes
3answers
629 views

Key bindings war in my brain

How many key bindings are there in your brain? I personally use Intellij Idea as my primary IDE for development, but sometimes switch to Eclipse and Netbeans a bit, and sometimes I use ...
5
votes
5answers
1k views

Spartan programming… What is it good for? [closed]

We are being forced to use Spartan programming on a project, to everybody's dismay. So I get it, it makes the methods really short and it handles the simple cases first. But is it really worth the ...
14
votes
13answers
3k views

Is using ELSE bad programming? [closed]

I've often come across bugs that have been caused by using the ELSE construct. A prime example is something along the lines of: If (passwordCheck() == false){ displayMessage(); }else{ ...
21
votes
18answers
4k views

What should be the maximum length of a function? [closed]

What should be the maximum length of a function? And are there cases which are an exception to this?
0
votes
5answers
351 views

Deciding factors in pair programming

Are there specific things that you look out for before getting the team into pair programming? Obviously pairing someone who's great with C++ with another who knows ASP.NET best won't get me far, but ...
3
votes
3answers
358 views

How much to “automatically” do?

I'm reading Code Complete 2, and I'm at the chapter where it says to (paraphrasing) "avoid programming through the interface." Why is it bad to program "through" the interface? A more concrete ...
6
votes
2answers
2k views

UI automation patterns and best practice for desktop applications

Background I'm currently automating some tests for a plugin for MS Office. We are creating Coded UI tests in VS 2010. I suppose I could use the "Coded UI test builder" tool, but it does not really ...
4
votes
6answers
272 views

Coding style - define fields separate or not

Some use this convention: private String event; public getEvent() { return this.event; } public setEvent(String value) { this.event = value; } private int id; ... same as above ... In some ...
12
votes
9answers
639 views

Have you forgotten more than you know, and how much do you make a point of memorizing?

I'm talking about knowing an area of computer science or a language, and then forgetting it over the years. As I approach the 20 year mark, I'm finding myself realizing that I've forgotten more than I ...
10
votes
12answers
883 views

What do programmers “micro-optimize” for today? [closed]

Back in the "good ol' days," when we would copy shareware onto floppies for friends, we also used a fair bit of assembly. There was a common practice of "micro-optimization," where you would stare and ...
7
votes
3answers
1k views

Is there a good reason to use Java's Collection interface?

I've heard the argument that you should use the most generic interface available so that you're not tied to a particular implementation of that interface. Does this logic apply to interfaces like ...
8
votes
11answers
556 views

Should my colleagues review each others code from source control system?

So that's my story: one of my colleagues uses to review all the code, hosted to revision system. I'm not speaking about adequate review of changes in parts that he belongs to. He watches the code file ...
36
votes
6answers
13k views

Method vs Function vs Procedure

Simple question, but I often hear these three terms defined with such ferocity, but which have been known to me to mean different things over the years. What are the "correct" definitions of ...
6
votes
4answers
548 views

How to deal with complex codes in (huge) projects

I am preparing a memoir about "Why do (some) IT projects become too complex and how to avoid it ?". If you have ever encountered projects having complex codes or were hard to maintain, how did you ...
6
votes
1answer
221 views

About compilers, coding, large code bases, and some other stuff too

This is not purely a programming question. I work in a large company. We have lots of code written in C++ language: Multiple simultaneous projects in progress and implementations that have to be ...
6
votes
6answers
257 views

Is Extreme Programming (XP) the best way of learning from experts?

I have been involved in many development models, and have found XP to be the best for a new programmer from the aspect of learning, as the collaboration between the team members is very high and the ...
3
votes
2answers
709 views

What's the proper way to exit program in C?

There are many ways how to exit program in C. Some of them are returning zero or error code, using exit function with EXIT_SUCCESS, EXIT_FAILURE, exit(0), exit(1) or some other error code, abort and ...
10
votes
6answers
973 views

What software do you use to help plan your team work, and why?

Planning is very difficult. We are not naturally good at estimating our own future, and many cognitive biases exacerbate the problem. Group planning is even harder. Incomplete information, ...
4
votes
7answers
415 views

Not specifying a return in a function, good or bad?

I have coded like this many times, and I've never encountered an issue, but the compiler always warns when it expects a return and there is none. For instance, look at this: -(NSString ...