Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 41163

Questions about problem solving and planning for a solution through software design.

4 votes
Accepted

Is Dijkstra's algorithm an appropriate solution to this signal routing problem?

This is a tree, Dijkstra is O(n^2) overkill. Trivial O(n) breadth-first search is enough. EDIT: Start the BFS in any node with degree at least two. EDIT2: Since the graph is not guaranteed to be a t …
herby's user avatar
  • 2,754
9 votes

Should a view and a model communicate or not?

In MVC, Paul Hegarty is wrong. Controller is about user events, not model-to-view communication. In classical MVC, the view(s) observe(s) the model (Observer pattern). With the guy in between doing t …
herby's user avatar
  • 2,754
6 votes

Struggling with the Single Responsibility Principle

No, not in both! It should be in one place. What I find uneasing in your question is the fact that you say "Post takes care of creating posts, deleting posts, updating posts" and same for Tag. Well, …
herby's user avatar
  • 2,754
3 votes

Which of these algorithms is best for my goal?

What about to remember last point when the mouse was inside and cast rays to that point but also rotated by 1, 2, 4, 8, ... degrees to both sides? Then select the nearest point at the intersection of …
herby's user avatar
  • 2,754
0 votes

Why should ViewModel route actions to Controller when using the MVCVM pattern?

Consider this a blend of two basic MVCs (this assumes you know the basic MVC). First, deeper MVC pair is: M = model C = controller V = view model Second, upper MVC pair is: M = view model C = c …
herby's user avatar
  • 2,754
33 votes

Are there any programming languages that follow a minimalist development approach?

Lisp, Smalltalk. Coincidentally, those are also the best languages in the whole bunch. Both Lisp and Smalltalk are languages which are built around strong unifying metaphor. Lisp's metaphor is "ever …
herby's user avatar
  • 2,754