0
votes
0answers
11 views

SQL data model for nested milestones/timframes

I'm currently weighing different approaches to a data model and I'm curious what others would do. The main nugget of info is ACTIVITIES, which belong to a chain of milestone time releases. Stages ...
-2
votes
0answers
37 views

Porting a program to Android studio [on hold]

I'm a little out of my depth but im going to push on anyway. Im trying to implement a program called openSMILE in android studio. Ideally for my test phase i just want an activity to call the library ...
-2
votes
1answer
133 views

Is excessive technical debt a valid reason to quit a dev job? [closed]

Before I started my job, I was told ahead of time in the interview that the company had a lot of technical debt. I sort of ignored this because I was in a really tough situation and I needed the job ...
-1
votes
0answers
19 views

grocery crud with codeigniter manage n-n realationship between three tables?

the database has four tables to implement cars features and values of this feature I create a trigger that adds all features to the table 'feature_has_value' after adding new car and give each ...
4
votes
1answer
46 views

What's the advantage of storing database transaction changes in the log as well as data pages?

I know the basics of why a database uses a transaction log - fulfilling ACID properties, ability to rollback/restore, etc. The basic algorithm that I see for a transaction is as follows: ...
-3
votes
0answers
20 views

Create specific social network with blog posts - CMS or framework? [closed]

I'm thinking of creating social network where every user can add blog posts (PHP). It will be a dream journal, like www.dreamjournal.net, but it should be completely translated to local language ...
-2
votes
0answers
28 views

Java 8 on Weblogic 12.1.3, Weblogic roadmap [on hold]

I would like to upgrade Java to 8 from 7. We use Weblogic 12.1.3 and 12.1.1 I wonder if my web application would work with Weblogic and Java 8. What could be the problems? We are using JavaEE, JMS, ...
1
vote
1answer
114 views

Using “My” in identifier names [closed]

I've been reading a programming guide for Space Engineers game as there's a in-game C# programming interface (programmable block). But while looking at the API extract, it hit me, that most of their ...
-1
votes
0answers
29 views

Does java ee include java se? [duplicate]

I'm new to java EE. I am setting up my machine for java EE projects. If I install java EE package from oracle, do i have to install java SE also? Or does the java EE package already contain the SE ...
5
votes
1answer
79 views

How do I more effectively design this per its intended design while ensuring I'm meeting SOLID design principles?

I know what SRP is, but am questioning my current design of an object I call an entity. Below is a picture of the design I am referring to. If I shift the code from the GeometricInformation and ...
-1
votes
0answers
34 views

DAO only static methods [duplicate]

DAO public interface UserDao { boolean addUser(User user); User findUser(String email, String password); } DAO Impl public class UserDaoImpl implements UserDao { @Override public ...
2
votes
0answers
59 views

Enumerating the primitive recursive functions

How can I enumerate (by expression tree size, for example) all of the primitive recursive functions that map natural numbers to natural numbers in a traditional programming language like C? For ...
5
votes
2answers
185 views

Is it an antipattern to use peek() to modify a stream element?

Suppose I have a stream of Things and I want to "enrich" them mid stream, I can use peek() to do this, eg: streamOfThings.peek(this::thingMutator).forEach(this::someConsumer); Assume that mutating ...
-3
votes
0answers
108 views

Cons and Pros of ternary operator instead of if/else [closed]

I have some set of code in which same code is written by using two logics. which are as follows. 1. if (cart.getFacebookShare()) { return BigDecimal.TEN; }else{ return BigDecimal.ZERO; } ...
1
vote
1answer
61 views

Python file naming convention?

I've seen this part of PEP-8 https://www.python.org/dev/peps/pep-0008/#package-and-module-names I'm not clear on whether this refers to the file name of a module/class/package. If I had one example ...
0
votes
1answer
88 views

Communicating with third party API

I am working on an App which basically communicate with a third party API, it has no back-end. The front-end will be a SPA. Here is the overall scenario: The external API needs current user's Id to ...
0
votes
0answers
45 views

Software Architecture: CQRS and port modeling

I have a PersonComponent, which an internal implementation is based on CQRS pattern. So which one is better way to model ports (and their interfaces): I'm not totally sure that how high or low ...
0
votes
0answers
22 views

Web browser resetting connection

I have a web application that is hosted on an embedded device. This device has its own basic web server that can serve content just like any other web server. The web application in question is ...
-6
votes
0answers
32 views

How to get precise Math.exp() in j2me [closed]

I am using j2me and I need to get quite precise exp() for values up to 4. Problem with the j2me is that it's Math library doesn't have pow() and exp() method. To solve this, I just used this method to ...
1
vote
2answers
100 views

A generic helper class, a project specific class, and the rest of project

I have a generic helper class (1) that can be used in other projects also. Imagine something like basic handling of file and folders, something useful and DRY that always come in handy. I have ...
0
votes
1answer
60 views

Calling closed source library from LGPL library

I am integrating an LGPL application to my iOS application. As I am modifying the LGPL application, I am planning to open the modifications I make to the LGPL library. I am modifying the LGPL ...
-7
votes
0answers
22 views

Need Help With JDBC, connect Java to MySql. I have a error and I can't create a program that I want to create [closed]

I need help to connect Java to MySql, but I can't do it. Before I had searching about this, but I can't find anything that I want. Anyone can help me, please?
3
votes
1answer
129 views

C++ class design with invariant

I've been pondering a really basic question about how far to take enforcing a class's invariant. Maybe that's worded badly, so as an example, let's say that I want to write a class which stores a ...
4
votes
4answers
81 views

Domain Driven Design and Cross Domain interaction

I am a relative DDD newbie, but I am reading anything and everything I can get my hands on to boil out and distill my knowledge. I came across this DDD question, and one of the answers has me ...
0
votes
2answers
86 views

New Project starting point [closed]

So let’s say you are going to start a new project with a bunch of classes, and ready user case etc. How do you start coding it? Do you take one particular class implement it as good as you can, then ...
12
votes
2answers
2k views

Is using Exceptions at the highest level of a program considered bad practice? [duplicate]

I have seen programs using this strategy and I have also seen posts considering this bad practice. However, the posts considering this bad practice have been written in c# or some other programming ...
-8
votes
1answer
44 views

I want to make a quiz app using C in which it must give at last based upon answers? [closed]

Like there will be three questions and according to options swlected answer will be returned. e.g. Will you return free money ? a. y b. n and two more Based on option answer will be given that ...
-4
votes
0answers
62 views

Trying to flip a picture horizontally in java, any help? [closed]

Need help getting a picture to flip in Java. How do I do it? Here's my code public void flipHorizontal() { Color tempColor; //FILL THESE OUT AND THEN UNCOMMENT THEM! int limit1 = ...
-3
votes
1answer
89 views

Complicated constant in “The Software Equation”?

Why are the constants in The Software Equation so complicated? Here is the equation. where E = Project effort measured in person-months or person-years LOC =Lines of Code estimate for the ...
4
votes
2answers
202 views

Does such a design pattern exist? (Multi-Strategy/Multi-Traits)

Is there a design pattern that would allow a class from a hierarchy to 'subscribe to' concrete methods? For example, say you have an abstract base class that requires the implementation of a method. ...
0
votes
0answers
49 views

Options for implementing database and programming logic for statistics application?

I am implementing a statistics driven web application. The statistics relate to sporting events. Right now I have a postgresql database with a table that holds a row for each match. This is a ...
7
votes
2answers
167 views

How to manage copyright notices from contributors to a BSD licensed project

We have the following BSD license in the LICENSE file: Copyright (c) 2006-2016 SymPy Development Team All rights reserved. Redistribution and use in source and binary forms, with or without ...
1
vote
1answer
91 views

Compiler design prevent register override

I'm trying to write a compiler for a self-designed CPU with accompanying instruction set. The CPU has 3 registers, 2 input registers (B and C) and one output register (D). When for example an ADD ...
6
votes
1answer
183 views

MVC - Do I create 'joint' layers when dealing with multiple models?

I'm new to MVC and the different layers architecture and this is what I have currently: 2 models: User, Company 2 service layers: UserService, CompanyService 2 interfaces which abstract the ...
3
votes
0answers
54 views

How to efficiently query movies with characters via The Movie DB API?

I have a sort of whiteboard style question about efficiently querying The Movie DB API to find a list of characters in movies. My overall aim is to: Search for a movie by title (1 request) Look up ...
-1
votes
1answer
45 views

(Multidimensional array in C) How to make my output in a vertical position rather than in horizontal when the size of the array is n[3][4] [closed]

I would like to have some help. I must find a way that the output must be: A B C 90 60 80 50 100 70 100 20 100 10 50 75 Because the previous output is: A 90 50 100 10 B 60 100 ...
1
vote
1answer
34 views

Does having a EntityBase or DomainBase class violate LSP?

Suppose we have a abstract class EntityBase which is the base class for all our entities e.g. public abstract class EntityBase { public Guid Id {get;set;} } public class Customer : EntityBase { ...
1
vote
0answers
21 views

Feedback on simple authorisation system design

I'm writing a fairly simple authentication/authorisation api for an intranet application we are developing. It's my first roles based authorisation system and its a good opportunity for a first ...
1
vote
1answer
142 views

Is stack allocation in Java implementation dependent?

I've looked through the different threads, and there are a lot of conflicting information out there. The most useful article I found was this: Java theory and practice: Urban performance legends, ...
1
vote
1answer
66 views

How to avoid having nested generic in class

I'm working on a side project, and I turned on all rules for code analysis in Visual Studio, and I got the warning notice: Warning CA1006 Consider a design where ...
2
votes
1answer
75 views

Best approach to avoid duplication of code meant to run on windows/iOS/Android devices?

I am working on a new version of the following system: A 'main control' service that runs on Windows Server (C#). Clients on the following systems, that communicate with the above service via Web ...
0
votes
1answer
22 views

How to guarantee web script execution sequence/order or not parallels queues

This is a very simplified version of the problem: You have an integer saved on a server called "B" and you have an script saved on a server call "A" exposed to the internet. The script pulls the ...
0
votes
0answers
37 views

Trying to understand architecture of my project [closed]

I'm embarking on a project and I'd like to get some feedback on how I plan to implement it. I have a number of IP addresses with vulnerabilities attached to them (CVE IDs). This is in the form of a ...
1
vote
1answer
58 views

Best practice for settings for PHP class for code generation [on hold]

I would like to have a class create any code from given options and output it in a chosen way. Background I have written class for generation of simple JavaScript code for such cases where is needed ...
1
vote
0answers
24 views

How to decrease compile time when reading includes over a network? [migrated]

My project is very small but several includes are hosted on a network. Is there a way to speed up compile time and reduce latency without mirroring a local unsynced copy? I've already mapped the ...
2
votes
0answers
34 views

Polygon simplification that encloses original set of points

I have been trying to implement an optimization for 2D sprite rendering to fight the problem of limited fillrate on mobile devices. The idea is to render textured polygons instead of quads that will ...
1
vote
1answer
84 views

Prevent my clients from giving or selling my software using a LGPLv3 library to others

I am developing a commercial closed software using Qt which is under LGPLv3. May I prevent my clients from giving copies to other people?
26
votes
13answers
2k views

Help in understanding computer science, programming and abstraction [duplicate]

Until now, I always believed that you should learn programming languages that make you do low-level stuff (e.g. C) to understand what's really happening under the hood and how the computer really ...
1
vote
1answer
55 views

AGPL affects layout/design?

I've read many times AGPL3 (http://www.gnu.org/licenses/agpl-3.0.html) but I have a question, maybe somebody with a deeper knowledge can clarify me something. I would like to use a source code which ...
0
votes
1answer
110 views

How to let multiple threads write on the same file [closed]

I have got a text file called "vholders.txt". I am making multiple threads as you can see here ,those threads work with their own given data and at last they write their own output to the ...

15 30 50 per page