Questions tagged [code-separation]

75 questions
0
votes
2 answers

Runnable war with jetty+guice

This is a question about better separating the code for embedding jetty from the code for wiring up servlets. I am trying to adapt this sample code such that I will be getting a runnable war, i.e. a war file that I can drop into an existing Jetty…
derabbink
  • 2,419
  • 1
  • 22
  • 47
0
votes
1 answer

How to separate UI from controller with angular?

I'm developing angular web app, I have this doubt that whether it's possible to separate UI from controller absolutely clean? I have a controller method which send request to server to retrieve data. If there's some error occurs, I need to notify…
Aaron Shen
  • 8,124
  • 10
  • 44
  • 86
0
votes
3 answers

Is Knockout.js inline with content/UI/behavior separation best practices?

I've been working on the web for quite a long time and I saw the "best practices" evolve. I'm now fairly convinced separating HTML (Content), Javascript (Behavior) and CSS (UI) is the best thing to do. A few months ago, I started using knockout.js .…
Laurent S.
  • 6,816
  • 2
  • 28
  • 40
0
votes
1 answer

Proper Code-separation in Zend Framework 2

I am editing a Zend Framework 2 module and I came across the following code: partial('/menu', array('menu' => $this->menu)); ?>

Heading

Dennis
  • 7,907
  • 11
  • 65
  • 115
0
votes
1 answer

How can I assign a separate name to a variable with a comma?

Hello stackoverflow users. Today i want to ask for your help with something what is only a small part of my project. So... I have already done small application using Selenium to get text from div, text is not static, it changes with the character…
Mezulith
  • 33
  • 1
  • 1
  • 9
0
votes
4 answers

Python : splitting and splitting

I need some help; I'm trying to program a sort of command prompt with python I need to split a text file into lines then split them into strings example : splitting command1 var1 var2; command2 (blah, bleh); command3 blah (b bleh); command4…
0
votes
2 answers

PHP Passing variables to included file

I have a very simple template class that allows me to set some values and then include a template file. The class stores the variables, and the template file can access using $this->variable. So my question is how should I go about doing this? Or…
user1649448
0
votes
1 answer

.net mvc single admin section multiple sites

Desired outcome: 4 customer facing sites as separated projects 1 set of admin code used by all four sites My current setup is 4 Projects: Core for models/entities Data for repositories Controllers for, well, controllers Web for views Now, the Web…
Dave Archer
  • 3,022
  • 20
  • 23
-1
votes
1 answer

Can I get some simplified explanation about semi-colon use in php?

I have seen some articles explaining that a semi colon is not required in the last line of a PHP code due to the closing PHP tag (?>). Is this the case or is there any other theory around it?
-1
votes
2 answers

Where the best place to put a websocket connector. Angular

I have a private websocket, this websocket brings me information about the user like balance, notification and other things. all application needs to use this websocket. I have a component where I connected in this websocket and i created an emitter…
-1
votes
3 answers

How strictly should I keep styling separated from the html code?

What is the most common or accepted way to prioritize between clean html code and clean css code? As I see it there are two possible approaches… Either you can go for a html code with minimal markups related to styling. The downside is that the css…
Daniel
  • 1
  • 3
-1
votes
2 answers

Split Django application into two Python packages

I have a pretty large Django web application. The application is installed on a server and is working. It is divided into several Django apps, each with its own models and views. The users of this application are also programmers, and sometimes they…
zmbq
  • 38,013
  • 14
  • 101
  • 171
-1
votes
1 answer

build error when separating c++ code

I have recently made a little example in order to practice separating C++ code in .h and .cpp files using Geany. The code compiles without issue, but the following error occurs when I build: g++ -std=c++11 -Wall -o "parent1" "parent1.cpp" (in…
user3443063
  • 1,455
  • 4
  • 23
  • 37
-1
votes
1 answer

Undefined reference error in c++ dynamic member

hi everyone im new to programming so excuse the noob question... i tried every method to get through with the undefined refernce error but it keeps throwing that error at me i tried using pointer "->" and the "::" sign and also the dot "." what am i…
-2
votes
2 answers

Determining the representation-class for a data object based on its specialized type?

I tend to have a class to describe a general concept and subclasses to describe variances in that concept. For example, Polygon <|-- {Rectangle, Triangle, etc.}. However, I often find I have various representations of these hierarchies. For…
jkiv
  • 94
  • 8
1 2 3 4
5