0
votes
1answer
59 views

how do I encapsulate this List<Message> properly?

I know that Swing isn't true MVC: Using this modified MVC helps to more completely decouple the model from the view. Leaving aside the veracity of the above claim, the problem I run into is ...
0
votes
2answers
79 views

PHP MVC simple sign up form review? Please be honest :)

I have tried to build my first MVC sign up form here is the code. Here is the user controller method register. public function register() { if($this->isPost()) { $user = new ...
2
votes
0answers
67 views

Design for uploading a file and persisting it to a data store

Say we have a spreadsheet (.CSV) being uploaded with static columns | (int) item 1 | (string) item 2 | (int)item 3]| That needs to be persisted to a data store, then sent back to a browser to ...
1
vote
1answer
150 views

How can I refine this code so that it complies with MVC (specifically, separating view and model)

Background I am making an app that allows the user to type chemical equations (H2O + NaCl) to the screen. The user taps, inside a tableviewcell, a custom textfield and types on a custom keyboard ...
1
vote
0answers
96 views

Guidance on SoC and passing data between GUI instances (MVC pattern)

I'm fairly new to Python and currently building a small application to record loans of access cards to people in a company. I'm using wxPython for the GUI and SQLAlchemy for the CRUD. I'm loosely ...
2
votes
3answers
589 views

A simple php Session class, is the layout/design correct?

Basically I'm writing a simple framework in php in order to learn more. This session class is extremely rudimentary. At this point I'm not even checking ip/user_agent to prevent session hijacking, ...
4
votes
2answers
2k views

MVC Controller in Java Swing Apps - Singleton or public static

This article has left me a little confused. In explaining a method on how to design MVC into Java Swing apps the author defines the controller class as Singleton and relays a series of calls to the ...