Coding is an alternative way to describe programming.

learn more… | top users | synonyms

110
votes
15answers
83k views

What's the career path for a developer who doesn't like management?

If you're developer (Senior or Lead Developer) and you'd rather stay with code/design than pursue a management career, what are the available career paths at your company, or any you've heard of? How ...
76
votes
19answers
28k views

How do I improve my coding skills? [closed]

Here's a bit information about me, before starting with the question. I am a Computer Science Undergraduate, Java being my primary coding language. The basic problem in my University are the ...
67
votes
15answers
4k views

I've stopped coding for fun, is this a bad sign? [closed]

At some point in time, I just stopped coding for fun. I used to go to work, finish my assignments and then upon arriving home I'd go and write stuff on the side for fun. However, I now just go home ...
52
votes
17answers
10k views

Working on someone else's code

I have hardly a year's experience in coding. After I started working, most of the time I would be working on someone else's code, either adding new features over the existing ones or modifying the ...
40
votes
18answers
50k views

What is better for coding - desktop or laptop? [closed]

Use of desktops are decreasing day by day in daily life but for coding purpose are there any reasons for using desktop over laptop?
38
votes
8answers
2k views

Code maintenance: keeping a bad pattern when extending new code for being consistent, or not?

I have to extend an existing module of a project. I don't like the way it has been done (lots of anti-pattern involved, like copy/pasted code). I don't want to perform a complete refactor for many ...
36
votes
16answers
4k views

How Much Logic in Getters

My coworkers tell me there should be as little logic as possible in getters and setters. Yet, I am convinced that a lot of stuff can be hidden in getters and setters to shield users/programmers from ...
34
votes
10answers
7k views

When to commit code?

When working on a project, the code may be developed reasonably fast in a single day or bit by bit for a prolonged period of few weeks/months/years. As code commits are becoming to be considered as a ...
26
votes
10answers
5k views

Does your company have a coding standard? [closed]

I recently saw that Microsoft released a coding standards document (All-In-One Code Framework Coding Standards) and it got me thinking... The company that I work for has no formal coding standards at ...
25
votes
12answers
2k views

Emotional attachment to code [closed]

As an employee of a company, when you write code do you feel like you have an attachment to it? Do you feel that you have some ownership of the code? Or do you write it completely detached from it ...
24
votes
13answers
3k views

Being IDE dependent. How can it harm me?

I am highly IDE dependent developer (NetBeans and Eclipse as I am a JAVA dev). I can code properly if I have an IDE. I can rely a lot on that for development, debugging and deployment. But without IDE ...
18
votes
12answers
1k views

Commented short fancy code vs. uncommented longer easy-to-understand code - which is preferred?

Sometimes an algorithm can be written in two ways: The short, fancy way; or The longer, easy-to-understand way. For example, here is a longer, easier way of copying a string source to dest in C: *...
18
votes
3answers
2k views

How to choose between Tell don't Ask and Command Query Separation?

The principle Tell Don't Ask says: you should endeavor to tell objects what you want them to do; do not ask them questions about their state, make a decision, and then tell them what to do. ...
18
votes
3answers
2k views

How to avoid jumping to a solution when under pressure? [closed]

When under a particularly strict programming deadline (like an hour), if I panic at all, my tendency is to jump into coding without a real plan and hope I figure it out as I go along. Given enough ...
16
votes
12answers
2k views

How often do you run & test your code while programming? [closed]

Especially when writing new code from scratch in C, I find myself writing code for hours, even days without running the compiler for anything but an occasional syntax check. I tend to write bigger ...
16
votes
8answers
2k views

Python Coding standards vs. productivity

I work for a large humanitarian organisation, on a project building software that could help save lives in emergencies by speeding up the distribution of food. Many NGOs desperately need our software ...
14
votes
3answers
2k views

Tips/advice on how to reduce the use of “manager” classes?

I sometimes hear that having too many "manager" classes in your program's design is code smell and add an unnecessary layer of complexity. To me it makes sense that people want to use manager classes ...
14
votes
2answers
1k views

What parts of Code Complete haven't stood the test of time? [closed]

I was looking at Code Complete on the shelf, thinking, "Outside of the Mythical Man Month, this may be one of the few mass market Software Engineering books to stand the test of time." For this ...
12
votes
7answers
874 views

After writing code, why do I feel that “I would have written better” after some time? [closed]

I have been working on my hobby project in C++ for more than 2 years. Whenever I write a module/function, I code it with lot of thinking. Now see the problem, do { --> write the code in module '...
12
votes
4answers
4k views

Why are off by one errors so common and what can we do to prevent them?

It seems that off-by-one errors are one of the most (if not the most) common programming errors (see What are common mistakes in coding?, and conventional wisdom). What is the reason these are so ...
12
votes
7answers
9k views

Coming from QA, how can one land that first development job? [closed]

I have been in QA for 10 years, trying to get into development for about 5 of them. I have taken classes in C++, Java and C#. I was able to write some tools and unit tests in C# at my current job and (...
10
votes
15answers
1k views

is coding important? [closed]

Is coding important to be good at computer science? Should one implement the algorithm to know it well ? I remember one cs professor's idiom that "I never code"
10
votes
7answers
2k views

Use of NotImplementedException

Is it considered bad practice to throw NotImplementedException for code you haven't written yet? Possibly TODO comments would be considered safer?
10
votes
8answers
565 views

What about all those coding rules?

I always supported the idea of having coding rules for developers in a company or a specific project. Especially if the company is size greater than 10. The bigger the company the bigger the need. I ...
10
votes
2answers
361 views

Should source-code in textbooks and the like be translated?

A few weeks ago, my class was assigned to translate to Portuguese the book Real World Haskell. As I did the translation of the text and comments, I started to wonder if I should translate the code as ...
9
votes
4answers
9k views

Domain knowledge vs Programming [duplicate]

Possible Duplicate: How important is Domain knowledge vs. Technical knowledge? I often hear from my colleagues and sometimes from interviewers that, "There is nothing so great in having ...
9
votes
12answers
5k views

Is it possible to learn maths via programming, or you should learn maths for programming? [closed]

I am not the best in maths, not very horrid either, but lower than the average, I've always been thinking to improve my maths, but schools and books didn't do the job because I get bored too fast. The ...
9
votes
9answers
718 views

Should development methods squash a developer's individualism?

I'm in my final semester of college and am taking a software engineering course. In the class we learn about various software development methods. The one we focused on, and used to develop our ...
9
votes
2answers
269 views

Beginning Design as a Programmer [duplicate]

I'm just starting to get in to web development. I'm learning Rails at the moment. I have lots of experience with various programming languages. I've been searching for books to help me get started; I ...
9
votes
6answers
285 views

How would you highlight code? [closed]

While the basic scenarios are white on black and black on white, most programmers find more varied syntax highlighting useful. What advantages do you find from a general setup? (E.g. "a dark ...
8
votes
22answers
2k views

Do non-manager coders in their forties or older out there sometimes regret about not being managers? [closed]

And why do most programmers quit coding and become managers so early compared to other areas? You can work as a construction worker, a lawyer, researcher, writer, architect, movie director for decades ...
8
votes
12answers
707 views

How is your working time distributed between coding and thinking? [closed]

...in percentage. For example 60/40 or 90/10 or 100/0. My hypothesis is that the bigger the proportion of time you spend thinking the smaller your code can be as a result (and the less time will be ...
8
votes
19answers
15k views

experience: coding on netbooks [closed]

HI, i want to buy a netbook for doing some stuff in the train. Can someone report how it is to code simple stuff on a netbook? 10/12". I wanted to buy a very cheap one. like 1gb ram 1,6ghz blabla. ...
8
votes
6answers
2k views

how do you cope with long hours of coding? [closed]

I am just a high-school student but for a while now I have been coding for weeks (from early in the morning to late at night). I really enjoy it, however it can be really monotone. I usually listen to ...
8
votes
4answers
203 views

Which is best for learning how to do a certain thing: writing your own or looking at someone else's? [closed]

Often when I'm writing code to do a certain thing, I'm faced with either writing my own or using someone else's code. Assume here that this "thing" is something that I've never done before and am ...
7
votes
6answers
2k views

Programming by dictation? [closed]

ie. you speak out the code, and someone else across the room types it in Anyone tried this? Obviously the person taking the dictation would need to be a coder too, so you didn't have to explain ...
6
votes
14answers
2k views

How to minimize typos when you code? [closed]

I make a lot of typing mistakes when I program. I have a good keyboard writing speed but I try to write faster and in the process end up making typos. I want to type faster, but make less errors. Can ...
6
votes
7answers
10k views

How important is to initialize a variable

How important is it to initialize variables? Does proper initializing avoid memory leaks or have performance advantages?
6
votes
7answers
278 views

Setting coding priorities

In the dev shops I've worked in, nobody has ever mentioned "coding priorities". I read this in a book or site somewhere, and sets the expectation of what priority should be first in the code. In ...
5
votes
6answers
3k views

Write once, run anywhere. Is it still relevant? [duplicate]

Since Oracle bought Sun and Apple have decided not to continue developing their JVM, is the "write once and run everywhere" model still relevant or has web services/SOA reduced it to an edge case?
5
votes
7answers
158 views

Can initial inefficient solutions INSPIRE better ones and thus lead to faster problem solving?

When faced with writing an algorithm to solve a small project/problem is it better to come up with pseudo code that isn't efficient/optimum but solves the problem and then try to use the inefficient ...
5
votes
4answers
396 views

How to improve the code writing effort?

Code needs to be written to file, on way or another. While all programmers should strive to write no more code than necessary, this "small" portion needs to be written nevertheless. What tips do you ...
5
votes
1answer
980 views

Coding site with test harness for basic data structures like linked list,graph,strings etc [closed]

I just took an Amazon online test and I messed it up badly. I am out of practice and have low confidence in writing code. Are there any coding sites with test harnesses for basic data structures and ...
4
votes
4answers
1k views

Which methods should be put in an interface and which in abstract classes?

I have seen many frameworks and modules and their standard they follow is like this UserInterface which have some predefined methods AbstractUserClass which implements userInterface Then ...
4
votes
1answer
367 views

Website with test data files for specific algorithms/data structures?

Is there any website, like SPOJ and Project Euler, with the test data files available for specific algorithms/data structures? I know it's a fun challenge to solve those problems on your own, but I ...
3
votes
5answers
629 views

Is this kind of Design by Contract useless?

I've just started informatics university and I'm attending a programming course about C(++). The programming professor prefers to connect every topic with a type of programming design that is similar ...
3
votes
4answers
307 views

Improve coding quality

I have been dealing with programming for several years now (I am still a student but with a lot of internships). Mostly working with C++, Python and MATLAB, I noticed that whenever I download an SDK ...
3
votes
1answer
222 views

Is this caution in Android API documentation an indication of suboptimal design?

The content below is from the Android developer site: According to the phrase it is expecting the developer to store this info in his head. Shouldn't this be simple if they kept only ...
3
votes
2answers
375 views

Arithmetic Coding vs. Machine Numeric Precision

When subdividing intervals for arithmetic coding, the worst case scenario is that the final interval will have size 2^(1-n), where n is the number of unique symbols you are encoding. This will reach ...
3
votes
2answers
512 views

Arithmetic Coding Questions

I have been reading up on arithmetic coding and, while I understand how it works, all the guides and instructions I've read start with something like: Set up your intervals based upon the ...