Questions tagged [code-separation]

75 questions
0
votes
2 answers

Separation of logic and GUI in Android app. Service has knowledge of app and shouldn't

I'm a relative novice to Android programming (I mostly do C# on Windows). I inherited some code that consists of a service and app. I'd like to reuse the service and some of the app in another app. I'm putting that in a library. All has gone…
Dave
  • 8,095
  • 14
  • 56
  • 99
0
votes
2 answers

Flex has Components. What is similar in HTML?

Something that is very handy in flex is that you can create a component, code it, skin it and then you can reuse it as you like. This means that the code is independent from each one of the copies that you produce. I am trying to achieve this using…
PCoelho
  • 7,850
  • 11
  • 31
  • 36
0
votes
3 answers

How to print two elements without being separated by space in output in python3?

I should write a code for calculating average of some grades in a csv file. My code is going to be check by another program(and not a human.) I already have the Help file about the checking program and I should design my code to be understandable…
0
votes
0 answers

R- Is there a way to separate vectors in a column by a delimiter into new column headers with 1's for columns that have the specified vector?

I am working in R studio and currently have this as a field for a column: row 1: SA * OP OIT ORT * PC row 2: SA DT * ACMA * PC I would like to have this SA DT ACMA OP OIT ORT PC 1 na na 1 1 1 1 1 1 1 na na na 1 I have tried using…
0
votes
1 answer

Want to separate the positive and negitive words in wordcloud using Jupitor notbook

I am doing sentiment analysis i already genrate wordcloud as a whole but stuck in the separation of positive and negitive words in wordcloud using jupitor notebook
0
votes
1 answer

Befriending a function template defined in another file in C++11?

I have written a custom vector class template and print_vector function template that is supposed to print the content of my custom vector class. The print_vector function uses v.sz and v.elem which are declared private inside the vector class.…
Enigma
  • 53
  • 9
0
votes
1 answer

Location Manager in seperate class in Swift

so I am currently working on some project and I encountered this issue. If I use CLLocationDelegate in ViewController, it runs normally, however when I try to separate this in its own class, it just doesn't work. When I try to run it just doesn't…
Pepa
  • 41
  • 6
0
votes
1 answer

(Python) Separating lists when printing

I am writing a code for school and we need to make a deck of cards as part of it. I have already made the deck but I do not know how to print it the way I want it. It either prints with all the brackets and commas or none. My goal is to print it…
0
votes
1 answer

asp.net static content in separate project. now how to refer?

Project1.csproj is the website project and StaticContent.csproj is the static content project to hold all .css, .js and image files. I am keeping it separate so that designers can work without touching the main project file and may be use cdn in…
xoail
  • 2,978
  • 5
  • 36
  • 70
0
votes
1 answer

Calling functions from inside (Matlab) code sections

I have a massive script consisting of many code sections that I run independently of each other. For some of these code sections, there is a lot of repeating code, and so I wanted to define a function that I can call multiple times from a given code…
z8080
  • 571
  • 3
  • 7
  • 23
0
votes
1 answer

How to prevent including header in header to minimise including in other CPPs

I'm using a physics library called Bullet and I'm having trouble preventing including the Bullet headers into my Physics header. //Physics.h #include // Contains lots of other headers struct Physics { …
Zebrafish
  • 11,682
  • 3
  • 43
  • 119
0
votes
2 answers

Separate sentences per line for language and translation

I'm working on a education site for swedish-english language. In my articles has example sentences, and I've enter these words into textarea. Its easily save my texts to database. But I want to insert my texts in one row like id -- swedish_text --…
Kil'jaeden
  • 35
  • 6
0
votes
1 answer

GLFW3 create window returns null

I was trying to put all GLFW3 init code from main to separate file. When I'm running the code, I get EXC_BAD_ACCESS on glew init function, because GLFW could not create window. Before code separation everything was ok. Is it possible to have GLFW…
0
votes
1 answer

Are table operations in PLSQL more efficient than running them in an external app? (Oracle 10g)

So, I'm reading Ian Abramson's Beginners guide to Oracle Database 10g (coming from using mysql), and it mentions PL/SQL and gives all these great reasons to use it, however I'm doing this in preparation for a rewrite of several applications my…
Sidney
  • 624
  • 7
  • 20
0
votes
1 answer

Separate and combine code in Maple

I create simple package by using table. Because the package has many procedures so I split the code into many text file. Each file will pass the convention checking of Maple I want to create a master file and "include" all text-code file into master…
Quan Nguyen
  • 559
  • 4
  • 23
  • 47