3,110 reputation
21026
bio website
location Chicago, IL
age 26
visits member for 3 years
seen 4 hours ago

Mar
30
comment Model-View-Controller: Does the user interact with the View or with the Controller?
See also, on StackOverflow, Should sorting logic be placed in the model, the view, or the controller?
Mar
30
comment Model-View-Controller: Does the user interact with the View or with the Controller?
-1, the Controller should not be interpreting the data in a GET or POST request. The View is the part of the code that requests are sent to - it handles interpreting that data, then passing along the commands to the Controller. The result is then returned from the Controller to the View, which constructs an appropriate HTTP response.
Mar
29
comment Model-View-Controller: Does the user interact with the View or with the Controller?
@Mahdi When implementing something like a REST API, the part of the code that takes the URL/POST data and calls other functions is the View. The other functions being called should be the Controller (or part of it). Think of it this way: The Controller shouldn't be doing the grunt work of interpreting what the user (which isn't necessarily a human) intends.
Mar
26
comment Why is it bad to write something in language X as if you're writing a program in language Y in terms of using a shared coding paradigm
@Chuu He said he deleted it, but perhaps a sample of that code?
Mar
26
comment Separation of presentation and logic
@Spook Microsoft Word runs on Windows and Mac, which use different APIs for the UI, but the core code (called by the UI) may well be the same. That's part of what separation of concerns is about.
Mar
25
comment When and Where should we use hoisting in Javascript
@RobertHarvey Downvote says right on it, "does not show any research effort". It's not a reason to close, though.
Mar
23
comment Does the Composite design pattern implement recursive behavior?
There's multiple types of recursion. Another that is undoubtedly recursion, but fails the naive "a function calls itself" test, would be mutual recursion
Mar
23
comment Is it a bad practice to cite URLs as references in comments?
If recreating the reference would make it massive: Hell yes.
Mar
23
comment Is it a bad practice to cite URLs as references in comments?
Bullet 2 is why I try to only do this with StackOverflow, since we try to actively fight link rot here
Mar
21
comment Should one create underlying architecture to increase flexibility - in advance or when needed?
I agree with FrankHileman - as @Doval says in his answer, it's hard to predict correctly. Over-engineering has been the source of the vast majority of headaches we've had over the past 2-3 months, because while it's flexible, it's not flexible at the right places - and implementing business requirements takes longer than it should.
Mar
17
comment What Impact Do Scripting Languages Have on Junior Programmers?
@ChristopherMahan Problem is, it's not feasible to fix all of them. Python 2.x has that problem, for example. Teaching the programmers about the problem is.
Mar
17
comment Naming conventions: camelCase versus underscore_case ? what are your thoughts about it?
@ChristopherMahan >> set to-word {My Variable} 5 == 5 >> print get to-word {My Variable} 5 - it's viewed as a stupid trick that shouldn't be done, though. ;)
Mar
16
comment What Impact Do Scripting Languages Have on Junior Programmers?
@ChristopherMahan And when that business programmer's finance or statistics application starts returning the wrong results, because he didn't know about the low-level details? Oops!
Mar
16
comment Implementing bussiness logic with a large number of business rules and processes
@Tez If the old DB isn't in use, then don't restrict yourself to it. Even if it is, think about migrating the data instead of building around it.
Mar
16
comment How can you design a application when you have not imagined completely how the app look like?
@Kiti Depends entirely on the developer and general needs. There is no silver bullet, which seems to be what you're looking for.
Mar
15
comment How to address, “Is anyone even using this feature?” questions
@Superbest Several years ago, a feature was added to one of our primary products as a condition of one of our clients not moving to a competitor. Two months ago, while trying to move that feature to a new backend, we discovered that they have never used it, and brought it up with the product owner. Coding blindly is not the way to go.
Mar
14
comment Is there an anti pattern for historically grown software?
Non-programmers probably aren't going to understand antipatterns, being, y'know, programming terms. I think what you want is an analogy...
Mar
14
comment How to address, “Is anyone even using this feature?” questions
If it's a webapp and on a standalone page, access logs should already exist
Mar
14
comment How to address, “Is anyone even using this feature?” questions
@KonradMorawski Or because they can't find it. And you can't really predict when they will find it. We changed the background color of our old pages to match the restyled new pages about a year ago, and all of a sudden were getting feedback, "Hey this is neat, is it a new feature?" - our product owner just rolled with it and let them think it was new, instead of telling them that those features had been there for years.
Mar
14
comment KISS principle applied to programming language design?
@mouviciel After coming across some amazingly convoluted Python spaghetti code in multiple places, I no longer think Python succeeds in its goals here. Python is no better than most languages when it comes to simplicity - it can be very good at accidental obfuscation.