1
vote
0answers
14 views

Which is the more testable C function implementation ?

I write code in C. I have been striving to write more testable code but I am a little confused on deciding between writing pure functions that are really good for testing but require smaller functions ...
0
votes
1answer
56 views

Observing progress of a distributed system

For a distributed system, there is a requirement of observing the progress of smaller applications on distributed computers (runtime 5 - 20 minutes). There is a web fronted, which right now only ...
7
votes
4answers
2k views

Multiple Same Object Instantiation

What exactly happens in Java when you instantiate the same object multiple times? For example: Test test = new Test(); then later on I will call it again, Test test = new Test(); again or inside a ...
0
votes
1answer
26 views

C# Implementing filtered Iterator without using yield return

I'm trying to display elements of a list with filter and without filter. Here, I use the filter in such a way to display the elements which are divisible by 3. I'm going to use Enumerable and ...
0
votes
1answer
25 views

Referencing StackOverflow questions in comments

Often when coding I'll get stuck on a particularly tricky problem and will go about searching for a solution. More often than not this leads me to a StackOverflow question that provides a full or ...
1
vote
1answer
46 views

Multiple many to many relations or one option table?

Let's say I have a database of persons who have some properties. For the sake of this problem let's say all of these properties relate as N-N. I can either create two tables for each property (one ...
0
votes
1answer
72 views

Approach to managing multiple services like Evernote, Google drive, dropbox in iOS

I'm trying to think up a scenario when I'd have three different forms of NSData (or whatever) to be sent to three different services like Evernote, Google drive, Dropbox. Granted, each of those has ...
0
votes
1answer
40 views

How to implement the use of NoSQL and RDBMS together

(I don't have hadoop experience so excuse me if this is irrelevant) I am building a search engine that would scrape a number of websites (not the whole internet) I am planning to write the website in ...
0
votes
1answer
18 views

Android SDK and Iphone SDK limitations

I have an idea that would require triggering a call or text message simply by pressing or dialing a certain number. Example: Pressing 2324 on the pin code. Despite it not being your pin code to ...
0
votes
1answer
15 views

Tool which lets you view external function calls from a class

Let's say I am trying to find all of the places in a class that functions external to the class are called. Eg import requests class Foo(object): def __init__(self, url): self.url = url ...
0
votes
1answer
17 views

Using XAMPP for intranet setup

Hi I'm planning to run production code in an intranet of about 12 computers. Is it okay to use XAMPP to run this or are there better alternatives?
0
votes
2answers
47 views

Whats the best way to build a HTML/AJAX site that requires login?

Let's say that hypothetically you wanted to build a website that delivered content to the visitors entirely using HTML and Javascript (AJAX to fetch server side data). The site would require login for ...
10
votes
11answers
2k views

Can a closed-source programming language survive? [on hold]

A friend has written a programming language. It has a syntax reminiscent of SGML. He has written an interpreter for it, and an IDE. He and his colleagues use it in-house as a server-side language. It ...
1
vote
2answers
99 views

Passing data between hundreds of objects in java

Currently, I'm working with a group on building a model. This model simulates interactions between many "agents" in a region. Agents can be any entity such as a city, a farmer, a business etc. Each ...
0
votes
0answers
11 views

Object Chain through an Interface

Say I have 3+ types of objects: function Sea() { var logs = [Logs]; this.getLog = function(ind){return logs[ind]} } function Log() { var bumps = [Bumps]; this.getBump = ...
4
votes
3answers
139 views

Declaring variables in Python and PHP

The question is how to cope with absence of variable declaration in Python, PHP, and the like. In most languages there is a way to let the compiler know whether I introduce a new variable or refer to ...
0
votes
1answer
10 views

What are the boundaries of Domain Events?

As I get it, domain events imply loose coupling and separation of responsibilities. That's fine. But if domain events are allowed to cross aggregate's boundaries then it is a question how to guarantee ...
0
votes
0answers
11 views

How do you handle specific networking exceptions in Haskell?

I have the following to try and connect to a server: testAddress :: HostName -> Int -> IO (Maybe Handle) testAddress host iPort = do let port = PortNumber $ fromIntegral iPort putStrLn ...
0
votes
2answers
51 views

Beginning Web Development

I want to know what to do to host a personal site .. I know I need some programming skills so I already learnt HTML, CSS, JavaScript & CGI Scripting Basics .. I am currently learning PHP & ...
5
votes
2answers
329 views

What term is used to describe running frequent batch jobs to emulate near real time

Suppose users of application A want to see the data updated by application B as frequently as possible. Unfortunately app A or app B cannot use message queues, and they cannot share a database. So ...
2
votes
2answers
62 views

Algorithm to reverse engineer permutation

I have a sequence of permutations formed using these strings: "A", "BC" and "D". The permutations are: BCAD ABCD BCDA DABC ADBC DBCA Now I need to reverse engineer this; i.e. I have a text file ...
1
vote
1answer
98 views

call complex mathy Fotran from Java

I'm working with a company to productize the work that comes out of a couple research labs. The long (appended at the bottom) and short of it is this: we need to call Fortran from Java on windows. I ...
2
votes
5answers
289 views
+50

Object Design & Cohesion - Issue & potential refactoring

Abstract I have been trying to get my head around the cohesiveness of some functionality in our code base. I’ve approached this design in different ways, and lately I’m convinced that I took the ...
2
votes
4answers
130 views

Technical reasons to prefer coding business logic to support Unicode (when not required)

I have a legacy application in which the UI and business logic are already reasonably well-separated. There is a proposal to separate them even further, turning the core application into a "service" ...
0
votes
0answers
156 views

What's the best way to expose a Model object in a ViewModel?

In a WPF MVVM application, I exposed my model object into my viewModel by creating an instance of Model class (which cause dependency) into ViewModel. Instead of creating separate VM properties, I ...
-2
votes
0answers
31 views

Recommend me a markup language [on hold]

I need some markup language for GUI building in my 3d engine. Rather than making up yet another one (since afaik there are hundreds), I was wondering if there are some good ones out there that I could ...
4
votes
1answer
832 views

Help with complex MVVM (multiple views)

I need help creating view models for the following scenario: Deep, hierarchical data Multiple views for the same set of data Each view is a single, dynamically-changing view, based on the active ...
0
votes
0answers
8 views

How to use Messagequeing in a distributed web application

I am curious for solutions to this problem: Assume we are going to build an online-store. To better scale parts of the architecture, it is broken into independend subsystems. The typical scenario ...
-4
votes
2answers
76 views

Trying to understand how MySQL license applies to code I wrote

I have an ERP, coded with Java and the database in MYSQL Community edition. When I was going to sell it to a client he asked me for the sources to my application (with the belief that it is GPLed). I ...
0
votes
1answer
34 views

Is it a bad idea to use mutable for pre-allocated temporaries?

Let us assume I have the following C++ class: class MyFastMessageEncoder { public: MyFastMessageEncoder() : m_fieldEncoder(ENCODING_STYLE_DEFAULT) { } void ...
-1
votes
0answers
15 views

How can I use Dart with Django? [on hold]

Any idea on how I should use Dart as frontend with a Django backend? Or should I go all in with Dart (both frontend and backend)?
0
votes
0answers
16 views

Replacing a string in C [migrated]

The following only works with numbers, but it won't replace words with spaces. Any suggestions? // Program to find one string in another, delete the found string, and replace it with another ...
2
votes
1answer
142 views

WCF Versioning, Naming and Endpoint URL

I have a WCF Service and a Main Lib1. Say, I have a Save Profile Service. WCF gets data (with predefined data contract) from client and pass the same to the Main Class Lib1, generate response and ...
4
votes
3answers
148 views

How to write JavaScript while keeping HTML/CSS out of it

What is / are some recommended ways to write JavaScript as to control behavior of showing HTML on screen, while keeping well-maintainable code? Basically, I started to look for ways to keep HTML/CSS ...
2
votes
2answers
130 views

Why does C# allow properties in interfaces?

In C#, the following code is valid interface I{ int property{get;set;} } Which doesn't make any sense to me. This seems to break one of the most important principles of interfaces: lack of ...
0
votes
0answers
14 views

going from elec engr undergrad to sofware engr masters [on hold]

I just graduated with a BS in EE. I took quite a few classes that were centered around programming or had software applications in lab. I've gotten my feet wet with C, Objective C, Java, Assembly, ...
-3
votes
0answers
15 views

Mysql Connector J lisence

I need to use mysql connector to be distributed with my commercial java application.so that are there any solution to have a free licence for connector J, are there any solutions.
36
votes
6answers
6k views

Why is polling accepted in web programming?

I am currently working on a Ruby on Rails project which shows a list of images. A must-have for this project is that it shows new posts in realtime without the need of refreshing the web page. After ...
-1
votes
0answers
27 views

How to share code between Android Wear and Mobile? [on hold]

After creating a new Wear and Mobile project, in Android Studio, we get 2 source folders: mobile; wear. I have some code that is shared between both platforms. Would you put it into a library and ...
0
votes
2answers
83 views

Should an abstract class always abstract its methods to an interface?

I had learned sometime ago that abstract classes should always abstract their functions to an interface. So instead of having something like this - abstract class a{ public int i; public int ...
-1
votes
0answers
39 views

How can we create a desktop based application in php? [duplicate]

I this possible to create a web based application in php if we can please provide me some link of that app also if applicable in youtube provide me youtube link. My search: I search on google and ...
0
votes
0answers
16 views

SVN merging trunk into branch, deleted files re-appear [on hold]

Maybe I didn't understand SVN as well as I thought.... I am trying to create a branch for some software for doing daily builds. This branch is located under [repo]/branches/Release-A. All development ...
0
votes
3answers
224 views

Application qos involving priority and bandwidth

Our manager wants us to do applicaiton qos which is quite different from the well-known system qos. We have many services of three types, they have priorites, the manager wants to suspend low priority ...
-1
votes
0answers
67 views

Project Euler problem 31 - tail recursive algorithm? [on hold]

The Problem's details are in the following link : Project Euler Problem 31 The following code illustrates a simple recursive solution object Problem_31 extends App { def combinations(list: ...
0
votes
0answers
39 views

Does an Oracle Java Certification expire? [on hold]

I was recently told that "older" certifications do not expire, but the "newer" certifications do expire (they didn't clarify the cutoff between newer and older). I have not been able to find anything ...
1
vote
0answers
17 views

What kind of code coverage data does the Sonarqube dashboard display?

Does it display Branch coverage, method coverage, or symbol coverage? I ask because I am trying to reuse a report in Sonar that has no symbol coverage, but 20% branch and method coverage. I am ...
2
votes
1answer
86 views

What is a good design approach in .NET for performing a series of checks in background process?

I have a flight planning system in .NET/SQL Server which needs to perform several validation checks. This needs to work on both a windows and a web client. Currently the checks run synchronously but ...
16
votes
16answers
2k views

Coding standards and coding style, is it that much important? [on hold]

There are a lot of ways of typing code, but I can't understand what is the good reason to adopt a certain standard or style if it does not change the way the code can be read and understood. Everyone ...
2
votes
5answers
292 views

Classic inheritance problem?

I keep seeing the following pattern when people learn about OOP: Problem: How do I put objects of different but related types into a container? Solution: Inherit from a common base class. New ...

15 30 50 per page