Questions tagged [analogy]

8 questions
58
votes
10 answers

How to explain that sample size does not influence project length

We have big enterprise projects they normally involve copying data from a source database to a destination database and then setting up a number of additional applications that sync this data etc. The last project contained 250,000 items (rows of…
Daveo
  • 900
  • 6
  • 12
5
votes
4 answers

Dependency Inversion Principle and Hollywood analogy

Often DIP is known as the Hollywood principle: "Don't call us, we'll call you.". But doesn't always higher level module calls lower level module, whether there is dependency inversion or not? Then why is DIP called the Hollywood principle? Am I…
q126y
  • 1,713
  • 3
  • 14
  • 24
3
votes
1 answer

Web applications have "the todo list." What analogous program is there for systems programming?

You can find many frameworks with an example todo list for demonstrating a small but full application in the framework. You don't have to consider large problems like scaling or caching, but you still exercise most of the fundamentals of that…
Mark Rushakoff
  • 1,734
  • 14
  • 14
3
votes
3 answers

Analogy for Thread Pools

I am working on an application which spawns a new thread per request. Sometimes the number of threads active on the machine at one time is in the high hundreds. It's suspected that this is causing all sorts of problems. I would like to experiment…
Anthony
  • 605
  • 6
  • 13
2
votes
1 answer

Good analogy for MVP and MVC patterns?

To be honest, I'm a student here, but I have seen many questions from teachers asking for ways to explain, and I have not found one for the MVP and MVC patterns. Model–view–presenter Model–view–controller My problem is, that I have studied these…
Dragonturtle
  • 143
  • 3
1
vote
1 answer

is a DoS attack a good analogy of Dining Philosophers?

Let's say that, instead philosophers, we have TCP/IP connections to a server, and instead forks we have the server's TCP/IP avaliable ports. In this scenario, we don't have a lot of connections competing for the ports: we have a few number of…
Broken_Window
  • 247
  • 3
  • 9
0
votes
6 answers

How do I explain a ruby method with a real-world analogy?

I am looking for a good analogy to help the concept of a method in ruby stick in my head. When I truly understand a concept, an image flashes in my mind that relates something physical to the abstract concepts I am trying to learn. For example,…
Tara Roys
  • 113
  • 2
-3
votes
3 answers

Real-world analogy for green threads

I'm giving a talk on concurrency which will cover multithreading, multiprocessing and green threads. I'd like to give simple real-world analogies of single threaded programs, multithreading, multiprocessing, and green threads. These are the…
aco
  • 101
  • 2