Questions tagged [view]
The view tag has no summary.
41 questions
0votes
1answer
413views
How can I trace back the original table of a column?
New to a software engeneer job and I am kinda blocked on the way to go with my new project To explain this in a scheme. I have a source of data in a custom app that is for most part of the time the ...
2votes
4answers
1kviews
How do I avoid tightly coupling one microservice to another microservice's feature that depends on specific views of the first's data?
I've seen this problem in a few different contexts now but I'm not sure what it's called or how to think about it. Suppose I have a service, AccountService, that serves accounts from a database, e.g. ...
0votes
0answers
1kviews
add web api endpoint, which return html from view
I have ASP.NET 5 Web Api and need to do the following task: Add endpoint, which get cshtml page and return generated html, so it should do the same what is does razor view engine. What is better way ...
-2votes
1answer
151views
System Hungarian Notation for Android UI components?
Is using System Hungarian Notation for Android UI components (Views) valid? I mean using it ONLY for Views - no strSomething, boolStuff or similar names. For example, tvDescription (TextView), ...
3votes
3answers
947views
Does the Controller contain get methods in MVC?
I am at the stage of implementing a my 1st ever view, after developing a Model and Controller, however there is a problem. I have been reading this article on MVC, which is what I have been aiming ...
14votes
5answers
17kviews
WPF UserControl Reuse With MVVM
I'm struggling to find an elegant and idiomatic way of coding the following scenario using the MVVM paradigm in WPF and was wondering how other people would approach it. I have a UserControl in my ...
-3votes
2answers
165views
Options for managing a multi-purpose web service?
I have a web service that serves two purposes. On a weekly basis, it syncs records from the GIS DB to a workorder management system's database. On a continual basis, it serves up the records to a web ...
1vote
0answers
166views
What approach can be used to automate SQL views generation?
Let's say I have to create tons of different SQL views. Having actual and target table DDLs, is it possible to programmatically automate view creation? Example: I have 2 table DDLs: CREATE TABLE ...
0votes
2answers
2kviews
Is it okay to pass my model into my view model via its constructor through MVVM practices?
public class LDLTrackViewModel : RailwayViewModel { private LDLTrack _ldlTrack; public LDLTrack LDLTrack { get => _ldlTrack; set { _ldlTrack = value; ...
1vote
2answers
2kviews
PHP MVC - One view class for all controllers vs a view class for each controller
I am creating an MVC inspired PHP framework, mainly for learning purposes. I basically have the framework created and am building an app on it and improving the framework as i go along. I am still ...
25votes
2answers
14kviews
Clean Architecture: What is the View Model?
In his book 'Clean Architecture', Uncle Bob says that the Presenter should put the data that it receives into something he calls the 'View Model'. Is this the same thing as the 'ViewModel' from the ...
0votes
1answer
375views
Is creating near duplicate partial views solely for populating html elements with Ajax returns violating DRY?
Maybe anti-pattern is a better word for this question. I do not know, but I mean a violation of DRY. Id like to reuse a partial view, and I can, but that partial view has other things in it I don't ...
4votes
3answers
14kviews
MVVM Correct way to switch between views occupying the same footprint on the screen
An example is switching the main view according to the selected item in a hamburger menu. Also sometimes it is just a small part of the GUI that changes according to the application state or according ...
0votes
1answer
307views
Which should subscribe to view events - the presenter or the view?
I have some Views and Presenters. In my architecture, they have a circular dependency, so the View has a reference to the Presenter and vice-versa. Now, which is the more commonly used: class View { ...
0votes
2answers
34views
Organizing specific human messaging in the web applicaiton code
Python (Flask) web application has a big portion of email/SMS messages generated by templates, translated by Flask-Babel. To my eye, having literal constants for the message in views, among other ...