Most Popular

1500 questions
60
votes
8 answers

Version control for independent developers?

Do you think it's worth it to use version control if you are an independent developer, and if so, why? Do you keep the repository on your own computer, or elsewhere, where it can serve as a backup?
vedosity
  • 825
  • 1
  • 6
  • 9
60
votes
2 answers

Communication between nested directives

There seem to be quite a few ways of communicating between directives. Say you have nested directives, where the inner directives must communicate something to the outer (e.g. it's been chosen by the user).
Michal Charemza
  • 1,320
  • 1
  • 10
  • 16
60
votes
14 answers

What's with the aversion to documentation in the industry?

There seems to be an aversion to writing even the most basic documentation. Our project READMEs are relatively bare. There aren't even updated lists of dependencies in the docs. Is there something I'm unaware of in the industry that makes…
user7433
60
votes
14 answers

RESTful API design. What should I return if there are no rows?

I'm currently coding an API for a social network with the Slim Framework. My question is: What are the best practices when there are no rows to return in the json structure? Lets say that this call /v1/get/movies returns 2 rows from the table movie…
Andres SK
  • 703
  • 1
  • 5
  • 7
60
votes
9 answers

What's the right balance between code consistency and code improvement?

Recently I had a discussion with a colleague regarding code style. He was arguing that your usage of APIs and the general patterns you are using should be as similar as possible with the surrounding code, if not with the the codebase as a whole,…
Robert Johnson
  • 1,081
  • 1
  • 10
  • 13
60
votes
5 answers

R vs Python for data analysis

I have been programming for about a year and I am really interested in data analysis and machine learning. I am taking part in a couple of online courses and am reading a couple of books. Everything I am doing uses either R or Python and I am…
The_Cthulhu_Kid
  • 781
  • 1
  • 7
  • 11
60
votes
11 answers

How to tell whether your programmers are under-performing?

I am a team lead with 5+ developers. I have a developer (let's call him A) who is a good programmer, who writes good clean, easy to understand code. However he is somewhat difficult to manage, and sometimes I wonder whether he is really…
A Team Lead
  • 719
  • 1
  • 6
  • 9
60
votes
3 answers

How is architectural design done in an agile environment?

I have read Principles for the Agile Architect, where they defined next principles : Principle #1 The teams that code the system design the system. Principle #2 Build the simplest architecture that can possibly work. Principle #3 When in doubt,…
BЈовић
  • 13,981
  • 8
  • 61
  • 81
60
votes
11 answers

Why is the use of abstractions (such as LINQ) so taboo?

I am an independent contractor and, as such, I interview 3-4 times a year for new gigs. I am in the midst of that cycle now and got turned down for an opportunity even though I felt like the interview went well. The same thing has happened to me a…
Matt Cashatt
  • 3,315
  • 5
  • 24
  • 35
60
votes
16 answers

FizzBuzz - really?

When it comes to "interview test" questions, the subject of FizzBuzz often comes up. There is also a Coding Horror post about it. Now, if you bother reading sites such as this, you are probably less likely to be in the demographic of programmers who…
DanSingerman
  • 1,681
  • 3
  • 15
  • 14
60
votes
5 answers

What are the design principles that promote testable code? (designing testable code vs driving design through tests)

Most of the projects that I work on consider development and unit testing in isolation which makes writing unit tests at a later instance a nightmare. My objective is to keep testing in mind during the high level and low level design phases itself.…
CKing
  • 1,012
  • 3
  • 10
  • 14
60
votes
18 answers

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 existing features. The guy who has written the…
60
votes
3 answers

What's the difference between recursion and corecursion?

What's the difference between these? Recursion Corecursion On Wikipedia, there is little information and no clear code explaining these terms. What are some very simple examples explaining these terms? How is corecursion the dual of recursion?…
user167908
  • 711
  • 1
  • 5
  • 5
60
votes
11 answers

How to represent a Rubik's Cube in a data structure

If I am attempting to simulate a Rubik's Cube, how would you create a data structure to store the cube's state in memory, with X number of tiles per side? Things to consider: the cube can be of any size it is a Rubik's cube, so layers can be…
Mel
  • 1,121
  • 4
  • 12
  • 14
60
votes
24 answers

How can I explain the difference between NULL and zero?

Working on a problem that uses the percent change formula: percent change = 100 * [(new value - old value) / old value] How would I explain the difference if new value or old value = NULL, rather than 0 to someone who might not be a programmer? My…
O.O
  • 668
  • 1
  • 9
  • 15