Most Popular

1500 questions
165
votes
10 answers

When is it not appropriate to use the dependency injection pattern?

Since learning (and loving) automated testing I have found myself using the dependency injection pattern in almost every project. Is it always appropriate to use this pattern when working with automated testing? Are there any situations were you…
Tom Squires
  • 17,755
  • 11
  • 67
  • 88
164
votes
12 answers

Why does it matter that HTML and CSS are not programming languages?

Example here: What languages should I know if I'm interested in building web applications? Yes, I understand that HTML and CSS are not Turing-complete. Yes, I understand that they are declarative, not imperative languages. But why are people…
Robert Harvey
  • 199,517
164
votes
7 answers

What really is the "business logic"?

I'm working with web development since 2009, when I started with PHP. When I moved to ASP.NET, I've heard a lot about DDD and OOAD where a lot of focus is given to this "business logic" and "business rules". The point is that all the apps I've…
user1620696
  • 4,867
  • 7
  • 32
  • 46
163
votes
13 answers

Is there such a thing as having too many unit tests?

I have been tasked with writing unit tests for an existing application. After finishing my first file, I have 717 lines of test code for 419 lines of original code. Is this ratio going to become unmanageable as we increase our code coverage? My…
user2954463
  • 1,460
163
votes
12 answers

When to use C over C++, and C++ over C?

I've been introduced to Computer Science for a little over a year now, and from my experience it seems that C and C++ are both considered to be "ultrafast" languages, whereas others such as Python and such scripting languages are usually deemed…
Dark Templar
  • 6,303
  • 16
  • 47
  • 47
162
votes
26 answers

Is constantly looking for code examples a sign of a bad developer?

I am a CS student with several years of experience in C and C++, and for the last few years I've been constantly working with Java/Objective C doing app development and now I have switched to web development and am mainly focused on ruby on rails…
Newly Insecure
  • 301
  • 2
  • 4
  • 5
161
votes
9 answers

What is a closure?

Every now and then I see "closures" being mentioned, and I tried looking it up but Wiki doesn't give an explanation that I understand. Could someone help me out here?
gablin
  • 17,407
161
votes
1 answer

Why there is no markdown for underline?

I am wondering why there is no markdown syntax for underline? I know that basic html tags can be embedded to achieve this but I am trying to understand why underline got omitted when bold and italics exists
ganessh
  • 1,729
161
votes
4 answers

why are noSQL databases more scalable than SQL?

Recently I read a lot about noSQL DBMSs. I understand CAP theorem, ACID rules, BASE rules and the basic theory. But didn't find any resources on why is noSQL scalable more easily than RDBMS (e.g. in case of a system that requires lots of DB…
ducin
  • 1,729
  • 3
  • 11
  • 7
161
votes
13 answers

Is using nested try-catch blocks an anti-pattern?

Is this an antipattern? It is an acceptable practice? try { //do something } catch (Exception e) { try { //do something in the same line, but being less ambitious } catch (Exception ex) { try…
Mister Smith
  • 2,977
  • 4
  • 21
  • 17
161
votes
1 answer

Module vs. Package?

Whenever I do from 'x' import 'y' I was wondering which one is considered the 'module' and which is the 'package', and why it isn't the other way around?
Dark Templar
  • 6,303
  • 16
  • 47
  • 47
160
votes
8 answers

Developing web applications for long lifespan (20+ years)

I'm currently developing a web application for government land planning. The application runs mostly in the browser, using ajax to load and save data. I will do the initial development, and then graduate (it's a student job). After this, the rest of…
Dan
  • 1,508
  • 2
  • 10
  • 12
160
votes
10 answers

Would you put your Stack Overflow profile link on your CV / Resume?

If applying for a new job, would you put your Stack Overflow profile link on your resume? This would show the employer you're an active member of the development community and also provide an insight into your knowledge + how well you convey your…
billy.bob
  • 6,549
  • 4
  • 30
  • 46
159
votes
17 answers

Windows Azure vs Amazon EC2 vs Google App Engine

From a developer point of view which platform would you consider for a large social web application? If you could provide some details on what you consider to be the strengths of which alternative it would be great.
iulianchira
159
votes
6 answers

SOLID Principles and code structure

At a recent job interview, I couldn't answer a question about SOLID -- beyond providing the basic meaning of the various principles. It really bugs me. I have done a couple of days worth of digging around and have yet to come up with a satisfactory…
S-Unit
  • 1,397