Questions tagged [view]
The view tag has no summary.
41 questions
0
votes
1
answer
534
views
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 ...
2
votes
4
answers
2k
views
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.
...
0
votes
0
answers
1k
views
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 ...
-2
votes
1
answer
170
views
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), ...
3
votes
3
answers
990
views
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 ...
14
votes
5
answers
18k
views
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 ...
-3
votes
2
answers
171
views
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 ...
1
vote
0
answers
179
views
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 ...
0
votes
2
answers
2k
views
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;
...
1
vote
2
answers
2k
views
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 ...
25
votes
2
answers
14k
views
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 ...
0
votes
1
answer
395
views
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 ...
4
votes
3
answers
15k
views
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 ...
0
votes
1
answer
321
views
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
{
...
0
votes
2
answers
38
views
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 ...