1
vote
1answer
38 views

Database Object That Reads From Two Tables and Writes to One

I am updating a database design that must be compatible with old and new applications. My goal is to make a design change which minimizes impact on the existing code. The Design Change Currently our ...
2
votes
1answer
99 views

Onion architecture design question

I recentlly started working on a new project where the team was considering use onion architecture, which I was not very familiar with, so I started reading about it. The application is a simple 3D ...
0
votes
1answer
64 views

ThreadPool.QueueUserWorkItem is this example a valid use case?

I need to send out a batch of reminder emails, never more than 100 emails per batch, using authenticated SMTP. This is happening on a WindowsService (no GUI). The SMTP library we're using raises a ...
-4
votes
0answers
19 views

Server and client change from TCP to UDP /// Using rcmd [on hold]

I need help with this program. I must change protocol TCP to UDP and I dont have any idea how do this ;x Server: http://wklej.org/id/2436724/ Client: http://wklej.org/id/2436725/
20
votes
6answers
1k views

Is there any point in unit testing a client service that simply passes through data from the server?

Imagine a simple AngularJS REST Service which retrieves (GET) data from REST endpoints on a server. It maintains no state of its own and each method only passes back a promise to whomever is using ...
18
votes
3answers
9k views

Does Node.js actually increase scalability?

I've been reading about the C10K Problem, and of particular note is the part that refers to asynchronous server I/O. http://www.kegel.com/c10k.html#aio I believe this pretty much summarises what ...
0
votes
0answers
23 views

Place of a threading module in a MVP design pattern in Python

I am working on a GUI that displays images, 1 image or many (a video). Some processing is needed before displaying an image. Hence, I would like to do some threading in order to keep the GUI ...
0
votes
0answers
38 views

Embedding custom business logic using Javascript in Java application

We have an application where the front-end is completely rendered dynamically. The web page is stored as JSON in the database. A simple JSON to display input field with a label is as follows: { ...
2
votes
5answers
301 views

Why do I need to declare virtual functions as such?

Example: We have a base class Base and three subclasses which all implement their own version of doSomething(). In an intermediate function f(Base b), we want to call the relevant version of ...
3
votes
2answers
118 views

Designing a centralised command api

I'm working on a personal project that has a fairly complex UI. As much as possible I would like to remove mouse interaction. To help with that I am working on a kind of in app command line, where you ...
5
votes
3answers
723 views

Moving from a CVCS to a DVCS in a big company, what is the right way to do it?

I just started a new job and I'm currently at the process of trying to introduce a DVCS (mercurial, but the actual DVCS is not really a matter of discussion at this point, it could also be git) to the ...
6
votes
3answers
143 views

If you can use def to redefine variables how is that considered immutable?

Trying to learn Clojure and you can't help but be told continually how Clojure is all about immutable data. But you can easily redefine a variable by using def right? I get that Clojure developers ...
2
votes
2answers
104 views

Where does apply authorization rules for my layered application?

This question is about applying rules of my application that confuse me. My controller is using service and the service is using repository. public class CommentController: ApiController{ ...
0
votes
0answers
25 views

finding optimal token definitions for compression

I have a collection of strings which have a lot of common substrings, and I'm trying to find a good way to define tokens to compress them. For instance, if my strings are: s1 = "String" s2 = "Bool" ...
0
votes
1answer
75 views

Need help with figuring out a better method of my application layout, please

I am working as the sole .Net developer at a company and I have been tasked with a very large and complex project, an internal intranet site for inventory and time tracking. I have built a project ...
3
votes
2answers
185 views

Web Application: OOP or procedural [on hold]

I'm building a Web Application that includes a search, user profiles, rating, gallery, comments, etc. While writing the outline I was not sure whether to do this by coding the functions directly in ...
0
votes
0answers
85 views

Am I right that anyone can use PyQt free of charge for commercial and closed source applications? [on hold]

This is a question about licensing mechanics of PyQt, GPL and optional Riverbank GPL Exception. The whole point of the question: Am I right that anyone can use PyQt free of charge for commercial and ...
-1
votes
0answers
49 views

Is it legal to distribute a Python commercial and closed source application together with QtPy or PyQtGraph linked to PySide? [on hold]

This question is a twin brother of the following question: Am I rigth that anyone can use PyQt free of charge for commercial and closed source applications?. But it still differs in important details. ...
1
vote
4answers
257 views

How to mark/track features in code?

After some time in every project sooner or later you will need to find a feature in it a fix it or extend it so I was wondering if there is already a system or a convention for marking those features ...
2
votes
2answers
41 views

When do I prefer a local DB over serialization for local data storage?

I recently started developing a small calendar application, in which I can add and view several calendar entries, which contain several data like name, date, alarm settings and so on. Those values ...
5
votes
0answers
41 views

Choosing a sequence of animations for an NPC - use a behaviour tree?

I am implementing an NPC to walk around a virtual space, specifically a cat. I have a series of short animation clips (3-5 seconds). My first instinct was just to choose a random animation when the ...
1
vote
1answer
150 views

Fork Management of Git Multi-level Hierarchies

We have the following Git hierarchy structure in place, where each child is forked from the parent. If we build something in Client1 that will be useful in the entire hierarchy, what is the best way ...
-5
votes
0answers
30 views

Twitter login through javascript [on hold]

I want to write only JavaScript code for twitter login and fetch logged user information like screen name , user link URL , user location etc.
3
votes
1answer
306 views

Is it OK to do IO inside java 8 streams?

Example to question in title: List<UUID> ids = dao1.getContactsOfUser(userId); List<String> contact_names = ids.stream .map(uid -> dao2.getContactByUid(uid)) //is it ok? ...
-4
votes
2answers
106 views

Should one always start a boolean with “is” or “has”? Or write it as it makes more sense grammatically?

Examples: isKeyValid -> keyIsValid hasPostThumbnail -> postHasThumbnail The first case is easier to remember (convention). The second is easier/more natural to read. Which should I use?
2
votes
1answer
131 views

Are there well known libraries that are frequently used in C/C++, which aren't written in C/C++/assembly themselves? [on hold]

I just wondered whether there are any other compiled programming languages made it into this "level". For "libraries" basically I mean a set of functions or classes in the same format as C++ ...
1
vote
1answer
56 views

Why does ORM persist() functionality use references to populate insert_id and not return?

My understanding of how ORM persist works: //ORM "persist" oversimplification function persist(&$entity) { ... $insertId = api_actual_db_insert(...); $entity->setId($insertId); } ...
8
votes
2answers
230 views

Does there exist a programming language specifically designed for dependency injection?

Many general programming languages are flexible enough to allow you to support dependency injection. Even without library or framework support. But even if a language is turing complete enough to ...
0
votes
1answer
94 views

Is pubsub pattern suitable for my case?

I'm planning to use pubsub pattern with azure service bus in my logistics application.but I'm confused whether pubsub pattern is suitable for my case. My scenarios: users will subscribe set of ...
1
vote
1answer
26 views

Angular View Model Validation

The view model seems to be the most appropriate place to perform validation yet Angular seems to be pushing me down the popular form validation route. Why Model Validation? DRY - Applying ...
0
votes
0answers
24 views

Inheritance and Parcels

In Android development, we have Parcelable interface. Since I wish to build Data Models that will run on multiple apps and services (not just Android), I would like to add two jar libs that will share ...
-5
votes
0answers
69 views

Does programming language matters for a developer? [on hold]

I have close to 3 years of experience in Java + PHP. I want to know : 1) Does being a specialist expert in one programming language important ? or 2) Being good at problem solving, algorithms is more ...
-1
votes
0answers
49 views

Integrating IDE with docker C++ toolchain

I have created a docker in order to compile C++ applications using a third party toolchain. My ideal work environment would be to leave the sources on my local directoy and to use the docker only for ...
1
vote
2answers
74 views

Passing and returning domain object in create method

We have this bean with two properties: ContainerImage + name (final, not null) + id (null) Then there is this method: ContainerImage create(ContainerImage containerImage); It receives ...
19
votes
6answers
2k views

What to call an HTTP API that is not RESTful? [closed]

What would you call an API that is HTTP-based, uses URI to name resources and HTTP verbs (PUT, POST, DELETE, GET...) to manipulate those resources? According to Roy Fielding's complaints it is not ...
-3
votes
0answers
34 views

How to download monthly reports from Google Play Developer Console? [on hold]

Google Play Developer Console reports are stores monthly reports on private Google Cloud Storage bucket. So is it possible to download these reports using Google API Client PHP Library? Or there is ...
1
vote
1answer
67 views

Is this indexed approach to java rts game development valid and how can I improve it?

I have class GameState laid out to basically hold an Array of Players, an Array of StarSystems, and a few other fields that need to persist from save to save. Each GameObject keeps track of its own ...
-4
votes
0answers
33 views

Picking a random word in Python [on hold]

I have a tuple which contains three lists in python and I want the interpreter to pick a random word from each list to make a sentence. How do I do this? An example of what I'm saying is this: Tuple ...
4
votes
0answers
49 views

Generating sort keys when reordering items

We have a number of items which the end user will be able to organize into a desired order. The set of items is unordered, but each item contains a sort key which can be modified. We're looking for ...
0
votes
1answer
229 views

Data serialization architecture, injection on construction vs. on function call

I am creating a data serialization/deserialization mechanism for essentially a persistent storage object. Due to the variety of systems this mechanism could run on, there needs to be a a variable ...
0
votes
1answer
53 views

Portable Class Library best practices

I am converting some .NET framework targeted projects over to Portable Class Libraries and looking for some best practices. Usually all of my projects use the same project name and assembly name, and ...
4
votes
1answer
127 views

What practical problem results from lack of hygienic macros in Clojure?

I've heard that Clojure macros are easier to write but not as reliable as Racket's hygienic macros. My question has 2 parts: How does gensym differ from hygienic macros? What do Racket macros ...
7
votes
4answers
743 views

How could dependency injection be integrated into the language? [closed]

I've been thinking a bit on how dependency injection could be better integrated directly into a C# like language. I've come up with a potential solution I'd like to hear your opinion on. I haven't ...
-1
votes
0answers
34 views

J-Boss, Jackson, RESTEasy: what do these RESTful tools do?

I'm sure that question seems very asinine. I understand the purpose of these sorts of tools is to… Remove an unnecessary outer layer of Java servlet code that can be replaced by annotations. Handle ...
4
votes
3answers
46 views

In CQRS/ES, can a command create another command?

In CQRS/ES, a command is sent from the client to the server and routed to the appropriate command handler. That command handler loads an aggregate from its repository, and calls some method on it, and ...
0
votes
0answers
16 views

Difference between RAISE and RETURN HTTPResponse in bottle framwork

I am using Bottle framework to implement API's. There is code return before I started, and they use from bottle import HTTPResponse @api.get('/some/api/url') def some_method(...): ... ... ...
4
votes
3answers
2k views

Separation of retrieving data and business objects between DAL and BLL Layers

I did some research before posting this question. Among other questions or post, one of those is provided below. I could not get a clear mind how to determine.. Business Objects within a Data Access ...
-4
votes
0answers
53 views

Contribute to opensource and get better English [on hold]

Actually I have two goals: 1) to improve my English skills. 2) to improve my software skills. Is it real to find the open-source project where I can verbally talk with another developers and ...
11
votes
3answers
211 views

What to do when critical functionality of a dependency is broken and impedes development?

Yesterday I was working on a Rails 5 API project which is using the acts-as-taggable-on library to allow things to have tags (like questions on SE). Rails 5 is in alpha support right now. There is ...
-2
votes
2answers
145 views

Reverting back To Waterfall from Agile [on hold]

I place a lot of Software Engineers (A LOT). Recently I had a client tell me that they are reverting back to Waterfall after trying to move towards Agile. I have noticed with the PM's and Engineers I ...

15 30 50 per page