2
votes
0answers
38 views

In MVC, who is in charge of handling observers?

(I'm writing a large MATLAB GUI that makes significant use of MVC, so my example is written in MATLAB. However, I believe this question is language-agnostic. Please correct me if I'm wrong.) I have a ...
3
votes
1answer
27 views

Architecting a SaaS for backwards-compatibility in regards to data and business logic

I have a SaaS platform where the user fills out a form and data entered into the form is saved to a database. The form UI has a large amount of config (originates from the DB but ends up in ...
-1
votes
1answer
44 views

Should my application's README be for developers or users

My application is meant to be used by regular everyday users, but may also me modified freely by developers. These two audiences (users and developers) require different information. Should my README ...
1
vote
2answers
86 views

Should method names getX and setX only be used for fields and have no other effects? [duplicate]

Should I avoid using getX() and setX() as names for methods that aren't "traditional" getters or setters? (Let's define traditional as it only gets/sets the field and has no other effects.) I guess ...
1
vote
3answers
137 views

Using System.err.println() for debugging in Java

System.err The "standard" error output stream. This stream is already open and ready to accept output data. Typically this stream corresponds to display output or another output ...
4
votes
2answers
86 views

When designing a replacement application, how can I compare its performance to the original, if there are no existing statistics?

I don't believe there are any performance statistics kept for the application I'm being asked to replace, and don't want to ask the individuals doing the work to manually record things like how long ...
-6
votes
0answers
20 views

Converting XML based pojo Model to JSONN based pojo Model in a RestEasy Services [on hold]

I have a XML over HTTP based RestFul Service which have some request/response XML. For mapping request response (complex object), we have used JAXB annotations. Now same service needs to be converted ...
-6
votes
0answers
32 views

Item and SubItem in ListView [closed]

I want to show Item and corresponding subitem in list view using Arrayadapter and android.R.layout.simple_list_item_2. I am able to list items with following code XML file: <?xml version="1.0" ...
-3
votes
0answers
131 views

How can I deal with apathy in the workplace? [closed]

I've recently been sent a meeting request to put forward a proposal to upgrade our Java version to 8. I'm quite enthusiastic about the features implemented in version 8 so I thought it would be a good ...
0
votes
0answers
48 views

Offer limited feature in app [on hold]

I want to add a feature to my app that user can avail only twice or thrice in the trial mode. I am unable to figure out which purchase mode should I implement. I successfully implemented the ...
-4
votes
0answers
20 views

GCC Ada command line [closed]

[Windows 8.1, 64-bit, using the most recent MinGW] So, basically, I need to compile a .adb Ada file and get it's output .o file. Buut, I have to do this programatically - more specifically, in Java. ...
-5
votes
0answers
14 views

WSIBP 1.1 or 2.0 [on hold]

When it comes to WSIBP validation, I seem to only find tools that are setup to verify the 1.1 Basic Profile (SoapUI for example). Is there a reason that Basic Profile 2.0 validation (or even 1.2 for ...
-3
votes
0answers
15 views

Spring batch design (Data enrichment) [on hold]

I have a working spring batch program that reads from a DB , the writes into a file. However I need to add labels to data so for example I need it to print student:John|LastName:Smith .. Etc my ...
0
votes
5answers
136 views

what gets testers invested in the releases they test? [on hold]

For a lot of roles in a development team it is pretty obvious how these roles are invested in the quality of releases of their software. Developers who accidentally write bugs know that when the call ...
4
votes
1answer
90 views

Nested classes via a getter (to emulate namespacing)

So, we all know that ES6's introduced syntax is definitely sugar over what we've been doing, previously. That being said, we still don't have namespaces (which would be nice...) The problem that I'm ...
-4
votes
0answers
78 views

Does imperative programming have a (mainstream) future? [closed]

I have written a few small programs in Python and C++ and am currently learning F# (I am already quite familiar with FP concepts, as a result of reading the Learn you some Haskell tutorial until the ...
-2
votes
0answers
27 views

PHP Static and Normal Functions Calling [migrated]

Can someone explain how these line of code are working class DemoStatic { function normalFunction() { echo "This is the normal function"; } static function staticFunction() { echo "This ...
0
votes
1answer
37 views

Cache policy categorization

From what I search online, there are 2 most common policies used in cache access: Cache aside Read through + Write through But there are some other policies like: For write hit case: Write ...
2
votes
0answers
77 views

Smallest number of rectangles covering marked parts of grid

I have an N by N grid of cells, and certain blocks are marked: +--+---+---+---+ | | | | | | | x | x | | | | x | x | | | | | | | | | | | x | +--+---+---+---+ I would like to ...
1
vote
1answer
201 views

What is the “->” symbol called?

I have seen the -> operator/symbol in Java 8 predicates recently and wondered what its name is. I know that it is used in lambda expressions, but I know that the symbol for lambda is λ, so that's ...
0
votes
3answers
58 views

Thread priorites - how to? [closed]

Is there some method or logic for defining correct thread priorities in a multi-threaded system which has a pipeline from input to output. For example assume the following pipeline exists: (1) ...
5
votes
2answers
121 views

How to distinguish whether a MS Word file is being saved or deleted? (“Save” deletes then re-creates)

I maintain a tool that syncs files between a client computer and a document management server (using the CMIS protocol). Versions history (on the CMIS server) is important. When saving a document ...
-1
votes
1answer
35 views

how exactly does a device driver interact with user level application? [closed]

I recently wrote a device driver for an eeprom to work with a raspberry pi model B(running Pidora OS). in the driver code i used the function i2c_smbus_write_byte_data to write to the eeprom and ...
0
votes
0answers
71 views

How to build full modular app [on hold]

I have full monolite app on java/scala and all modules work trough "Interfaces". For DI/IOC I use Guice. As example of structure:   How to organize structure of build for build different ...
7
votes
3answers
462 views

Enterprise software: Where should the code go? [duplicate]

I recently went for an interview with a software company that claims to write enterprise level software. During the interview, the interviewer remarked that its better to use the database simply to ...
25
votes
9answers
1k views

Commit at a logical checkpoint only, or also when you're at a stopping point? [duplicate]

Life, the work day, and personal projects don't always give us the opportunity the commit code at a logical completion (functionality subset programmed, bug fix completely patched, etc.). Sometimes ...
1
vote
1answer
31 views

What is Weighted Round Robin Arbitration

In NVMe Protocol, NVMe Controller uses Weighted Round Robin Arbitration to select the Submission Queue, from which commands can be taken. So what is exactly Weighted Round Robin Arbitration? My ...
-1
votes
0answers
13 views

How to use HTML Code Snippet? [migrated]

I am trying to create and use code snippets using Visual Studio 2005. I successfully created a snippet in VB.Net and used it by typing it’s shortcut and pressing tab. Now I am trying to use a html ...
1
vote
2answers
117 views

Is MVC controller an use case controller?

In GRASP (http://en.wikipedia.org/wiki/GRASP_(object-oriented_design) ), a controller (use case controller) is defined as: A use case controller should be used to deal with all system events of ...
-1
votes
0answers
48 views

BabysittingJob wont give me the proper output? [duplicate]

I am supposed to create an object with different fields for a babysitting job. and display all of the fields. This is what I have: public class BabysittingJob { private int jobNum; private int ...
0
votes
0answers
12 views

c Programming, dynamic allocation + linked lists [migrated]

I am having trouble with this code, and i'm not sure what i'm doing wrong #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> typedef struct ...
-2
votes
0answers
44 views

Is it possible to capture keyboard input in the browser while the window is unselected? [closed]

For reasons I won't go into here, I need to receive keyboard input on a webpage. Is it possible to do this while the browser window is unselected? I'd rather not use Java, because of security ...
0
votes
1answer
33 views

Copyright for collaborative group

Is there a recommended copyright (eg as BSD is to licensing) agreement type of template that could be used or altered for collaborative software work? I aim to start a collaborative work that would ...
-2
votes
0answers
46 views

how does the software for the cursor cause the cursor to move? [closed]

my question is: how does the software for the cursor to be shown moving on the screen when the mouse is being casue the cursor to move. please provide links for this answer as I haven't been able to ...
0
votes
1answer
24 views

How can I approach application programming from a database background? [closed]

I have a lot of database experience, but virtually no application programming experience. At work, we have an EDMX? model generated from entities in the database, and we transform T4 templates to ...
1
vote
1answer
125 views

Increment or double problem

I have a problem with an assignment. In this assignment I have to create a program which needs to calculate how many different possibilities are there to get from number a to b. To get from a to b you ...
0
votes
1answer
69 views

Sharing core repository and object mapping logic between Unit of Work methods

I'm wondering if there is a better way to do this or if I'm doing some anti-pattern here. Like I say in the subject, I'm trying to share repository calls and object mapping logic between Unit of Work ...
4
votes
2answers
103 views

Top-down vs Bottom-up approach when designing a class library

I am designing a class library to represent western equal temperament music theory concepts for the purpose of composing notated music with code (I realize there are other libraries and programs for ...
28
votes
10answers
3k views

Is it okay to have objects that cast themselves, even if it pollutes the API of their subclasses?

I have a base class, Base. It has two subclasses, Sub1 and Sub2. Each subclass has some additional methods. For example, Sub1 has Sandwich makeASandwich(Ingredients... ingredients), and Sub2 has ...
4
votes
3answers
276 views
+50

Picking m number in the best possible time

Imagine we want to pick m numbers from n numbers so that the difference of the maximum and minimum of the m numbers be minimum, for example if m = 4 n =6 numbers: 10 12 10 7 5 22 The ...
0
votes
1answer
47 views

JSON Web Token & RESTful Web Service - How to securely store the Secret Key?

I was building a RESTful Web Service when I came across JSON Web Tokens as an alternative to traditional cookies for authentication. The concept core of this method is that the server is the only ...
0
votes
1answer
64 views

How to write a suitable recurrence relation for a python function?

I have an exercise in which I am require to build a recursive function that takes a natural number and returns "True" if it is divisible by 3, or "False" otherwise, using the 3-divisibility rule. Then ...
0
votes
0answers
46 views

Enterprise Mashups. A good approach for .net

I'm in the middle of trying to talk our management into letting us do a portal that sits across the many, many systems that we use. I believe in using the best tool for the job so we have a good ERP, ...
3
votes
5answers
171 views

Injecting collections as constructor dependencies

We are using constructor dependency injection in our application. Following that approach we inject everything using an injection container so we are able to replace any dependency with a Mock. Some ...
-1
votes
0answers
26 views

REGEXP_REPLACE in ORACLE

I have an input string with numerous formats. It might be: NCA385Useless Text NCA 386:Useless Text NC345/545Some Useless Text NCA400/500 Some Useless Text NC 300/500Some Useless Text NC ...
0
votes
3answers
153 views

Compile-time vs. run-time configuration

I'm starting new project and need to decide on how to handle configuration. I recently run into suckless project. While it has its own issues, I really liked its approach to configuration - just a ...
-1
votes
0answers
36 views

Wpf reports for modern windows theme

I am a college student creating a WPF program for the 3rd year project. At this moment I have completed the most parts of the project. I want to know what are the available report types for WPF. The ...
-3
votes
0answers
10 views

Simple SMPP Perl Script [migrated]

I need your help/advices on my very short script I wrote in Perl in order to send SMS via SMPP protocol. I got a SMS gateway which is perfectly working (sending SMS via HTML request or via web ...
-1
votes
1answer
45 views

DDD - map or object

What is correct by DDD - should I create map of two objects eg Map or should i use more meaningfull object that will contain this pair MoreMeaningfullName{Obj1, Obj2} ? If using first approach, I ...
-2
votes
0answers
44 views

Lisp macros for c [closed]

I always thought Lisp macros are impossible in C. So can someone please explain me what this is?

15 30 50 per page