Coding is an alternative way to describe programming.

learn more… | top users | synonyms

66
votes
15answers
3k 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 ...
50
votes
17answers
6k 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 ...
38
votes
18answers
22k 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?
32
votes
16answers
2k 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 ...
31
votes
12answers
2k views

Would a cut and paste coder ever get past a job interview?

As a long time cut and paste coder I never committed much of the syntax of a language to memory. Even worse, I now use google to solve many of the coding problems which are of the type typically used ...
31
votes
7answers
1k 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 ...
23
votes
10answers
3k 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 ...
23
votes
12answers
1k 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 ...
22
votes
13answers
2k 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 ...
20
votes
15answers
2k views

Motivating yourself to actually write the code after you've designed something

Does it happen only to me or is this familiar to you too? It's like this: You have to create something; a module, a feature, an entire application... whatever. It is something interesting that you ...
17
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: ...
17
votes
10answers
2k views

Does your company have a coding standard?

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 ...
17
votes
3answers
1k 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. ...
17
votes
3answers
1k views

How to avoid jumping to a solution when under pressure?

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
15answers
3k views

Do you ever write code with pen and paper, and should we do it more often?

Like the title says, do you ever write code with pen and paper? If so, why? Do those who don't do if have anything to gain by doing so more often?
16
votes
5answers
707 views

How did programmers work back when a computer was very expensive, rare, as big as a room?

I assume they weren't able to sit in front of a computer for the whole day like we do today. So how did they write their program? On a piece of paper and type it later when the computer is available? ...
15
votes
12answers
1k 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 ...
15
votes
9answers
1k 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 ...
12
votes
7answers
810 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
11answers
1k views

How do you prepare yourself before you start coding? [closed]

Before you start coding something, how do you prepare yourself? Do you make diagrams, pseudocode, mockups or any of that kind of stuff or you just start coding and see what comes along the way. ...
11
votes
3answers
935 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 ...
11
votes
4answers
3k views

Why Groovy(Java)?

I am looking on a new language to pick up and found out about Groovy. According to the website, the language is 'agile dynamic' language. How is it Agile? How shorter are the syntax compared to ...
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
4answers
3k 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 ...
10
votes
8answers
515 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
882 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 ...
10
votes
4answers
500 views

How to do best practice development as the single IT guy in a small company

For the best part of the last decade I have been working as the only IT guy in tiny company. At it's peak this company employed about 8 staff. It's now down to 4, one of them part time. So the going ...
9
votes
9answers
703 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
6answers
278 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
7answers
7k views

Whiteboard “testing” during an interview: legitimate way to back up your (whiteboard) code?

As I get it, having an error (even a typo like or missing ";") in your whiteboard code will often cost you some interview points. Avoiding that will inevitably make one proof-reading code again and ...
8
votes
14answers
1k views

How to minimize typos when you code?

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 ...
8
votes
12answers
641 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
7answers
1k 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?
8
votes
3answers
2k 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 ...
8
votes
11answers
757 views

Is a designer supposed to write CSS code? [closed]

I'm wondering if the CSS creation is supposed to be the job of the designer or the programmer. I'm not talking here about really complex CSS layout, I'm referring more to skinning. So is this ...
8
votes
4answers
2k views

SSD harddisks & programming

SSD harddisks have been on the rise lately. And I've been wondering if it's worth buying one as a programmer. Being able to save five minutes when starting my PC is fun but won't convince my boss. ...
8
votes
4answers
185 views

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

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 ...
8
votes
2answers
324 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 ...
8
votes
2answers
249 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 ...
7
votes
19answers
9k 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. ...
7
votes
6answers
1k 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 ...
7
votes
5answers
368 views

Coding in known language or learning a new one in free time? [duplicate]

Possible Duplicate: Should I focus on being deep or broad Doing which of {coding,learning} will you recommend for a programmer in his/her free time? Of course,this question is valid in case ...
7
votes
1answer
515 views

Any ideas about puzzles and recruitment with Coderloop?

Does anybody have any experience with Coderloop? It is supposed to be community of developers solving programming puzzles, and they use that information to help companies recruit. Has anybody been ...
6
votes
6answers
1k views

Coding with laptop and external screen - neck, back, comfort

Guess I'm not the only one here coding on laptop + external keyboard + external screen. I can't really decide. Figure 1: Putting screen directly in front of (upright) my eyes and move laptop to the ...
6
votes
4answers
1k views

Programming by dictation?

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
7answers
257 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
12answers
2k views

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

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 ...
5
votes
7answers
2k 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?
5
votes
7answers
153 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
342 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 ...