-2
votes
0answers
54 views

Shall I rewrite my project if it's not hard to maintain, but has some design/implementation mistakes? [closed]

I realized that my project doesn't use the default classes provided by the platform for commonality and connectivity between my program and the others. My classes are harder to connect to the ...
-4
votes
0answers
40 views

Nested Enumeration in java? [on hold]

I currently have six separate enums in java that all implement interface A. I cannot combine the enums because then I get a code too large error. The six enums solution works, but I cannot iterate ...
-2
votes
0answers
25 views

How do I find the TTF font name for Adobe Normalizer (i.e. Times New Roman) [closed]

I'm trying to use Adobe Normalizer to convert PostScript files to PDF/A. The problem I am having is that if a font isn't found it is a hard stop. I added the "--ignorestdttfonts=off" and that helps ...
1
vote
3answers
42 views

Automation testing strategy with changing test cases

Say, for example, you have a program that sends a message to a server and that server validates it. Note: The server validation process can have additional test cases due to it being implemented in ...
0
votes
0answers
32 views

Better way to model parallel implementations of specialised collection-like types

I am working with some wrappers for selection widgets on the web (in Selenium). They each have one "parent" type that represent the widget and another type for the options. Two interfaces are created ...
0
votes
1answer
97 views

Why do most payment gateways use synchronous integration?

This question comes to my mind having just lost some money while ordering Pizza. Most internet merchants (atleast in India) use synchronous page redirection for integration with Banks and payment ...
1
vote
1answer
37 views

How to map references in different VB.Net solutions

I just come to a small company. There are more than 500 solutions in different VS.Net versions and even VB 6.0 projects. They share several dll. Is there a way to map relation between each program? ...
-2
votes
0answers
78 views

Is there any problem with dual screens of different sizes/quality/resolution? [closed]

If you have to buy a second screen to make a dual screen setup, what problems you may get if you were only able to get a screen of slightly different settings ? And how best to avoid those problems, ...
-2
votes
1answer
35 views

Matching address and addreses [closed]

Suppose, we have one list of user address, and second list of addreses used in transactions which can be repeated. These lists are sorted. Usual comparison (in this case for int, for simplicity) (good ...
0
votes
0answers
11 views

Default Application Compatibilty Manifest for new Visual-Studio projects? [migrated]

I'm currently fighting with some app compat settings, specifically a certain shim, and looking into the compatibilty section of the application manifest. Details aside, one thing that strikes me as ...
1
vote
2answers
62 views

Catching Exception and Recalling same function?

I have a function which sends data to a third-party's server using a library they've supplied. The function is very simple. It just takes a list of objects to send, loops through each item in the ...
0
votes
3answers
67 views

Preventing information leakage while returning an error message

Say my website contains 2 functions: Allow a user to change their own password Allow an administrator to change a user's password (the user must change again before they login) Now let's say that ...
10
votes
5answers
314 views

Is indiscriminately catching exceptions (Pokemon exception handling) ever acceptable? [duplicate]

Normally, I don't anticipate exceptions and if I get them, its something that I can't fix in my code - bad user input or connectivity issues with the database. But errors do occur so at the very ...
3
votes
2answers
80 views

Creating Instances from same SuperClass Object

I have 3 subclasses (LowState, MediumState, HighState) which derive from the same superclass (State). Within the superclass, State, I have declared several variables which need to be accessed and ...
0
votes
2answers
123 views

Is there a reason beyond Fibonacci why Planning Poker doesn't involve a 4?

During our sprint planning meetings, we use a planning poker deck to reach a consensus on estimates, with the cards indicating how many days we estimate to need. We then use these estimates combined ...
0
votes
2answers
128 views

Python build system

Currently our Python application is deployed like this: Development team work on issues, commit code and create a Pull request Pull request is integrated to Development branch QA and Operations team ...
4
votes
2answers
73 views

How to facilitate thread-safe access to large set of shared variables?

I have 2 sets--inputs and outputs--of 70 32-bit integer variables and 70 bools (140 vars altogether). These need to be accessed and modified from 3 threads. What is an appropriate design pattern to ...
2
votes
1answer
36 views

In SemVer 2.0.0, what kind of public API change category is the addition of a new exception?

I am working on an implementation for an existing public API. Now I needed to change the implementation to throw an exception for a failure condition about which previously the API consumer was not ...
0
votes
1answer
27 views

Value addresses of functions

I'm reading Yung-Hsiang Lu's book, Intermediate C Programming, and I'm working through the chapter on stack memory. When defining the value address he provides this code example: int f1(int k, int m) ...
-2
votes
0answers
32 views

How and where is Swift and Objective-C interoperability implemented? [on hold]

The question seems very generic but it does have a good meaning. For some time, I'm trying to find out exactly how objective-C and Swift can work together. I have been using them both and it works ...
-2
votes
0answers
98 views

How to rate your programming skills [closed]

I am an Electrical Electronic Engineering student and I started programming 2 years ago. I am about to graduate from University and I cant tell how skillful I am in programming. I have written a ...
11
votes
2answers
1k views

How to go about testing un-injectable code?

So I have the following piece of code in use all over my system. We're currently writing unit tests retrospectively (better late than never was my argument), but I don't see how this would be ...
-4
votes
0answers
51 views

What will be approach for below mentioned scenario in C#/Dot Net World [closed]

Scenario Mentioned: We are having central module/service, where each client sends requests to CM/CS and central module/service forwards the request to the appropriate window pricing services like ...
1
vote
1answer
45 views

Where should you validate the state of “other” aggregates?

Scenario: A customer places an order, then, after receiving the product, provides feedback on the order process. Assume the following aggregate roots: Customer Order Feedback Here are the ...
3
votes
6answers
243 views

How efficient is malloc and how do implementations differ?

If I use malloc, does malloc always use the same algorithm regardless of what it is allocating or does it look at the data and select an appriopriate algorithm? Can we make malloc faster or smarter ...
-1
votes
1answer
65 views

Are there methods for mapping out a program's flow?

I am writing a modeling script that is composed of many functions, and I'm trying to keep a document going that looks something like this: build_model(data, outcome_variable) returns(model) ...
3
votes
1answer
39 views

Importing large data sets into a database over the web

I need to import 100,000 products from one database to another using the results from a RESTful API. But I can only do this overnight. So if I can't get the job done in one day, I need to spread it ...
1
vote
2answers
46 views

Iterate over Collection while removing elements from it

I am iterating over a collection and want to delete some entries of it. Example: For i = 0 To Node.Nodes.Count If i >= args.TotalNumberOfNodes Then Node.Nodes.RemoveAt(i) End If ...
-3
votes
0answers
26 views

Certificate Subject Name Filtering - Glassfish [on hold]

We have an issue with our glassfish server which should only be trusting certificates with an appropriate Distinguished Name, Subject values - corresponding to certs added to the trust store. ...
2
votes
2answers
43 views

When should the naming of data structures be more abstract or literal?

Say that I create an ordered set structure, and I choose to implement it as a binary tree. I name my structure OrderedSet because I feel its underlying implementation isn’t necessarily important to ...
0
votes
0answers
53 views

What type/class of algorithms should be run on a gpu? [closed]

Is there a class of defined algorithms that run quicker on a gpu than a cpu? IE: divide and conquer, greedy, multi-threaded algorithms, etc. For algorithms that do not run faster on a gpu, but can ...
0
votes
1answer
47 views

Why is the “global” RegEx flag in JavaScript considered a property of regular expression itself?

In JavaScript, RegEx objects can be instantiated with flags such as g for global matching and i for case-insensitive. Intuitively, it makes sense for i to be a property of the constructed RegEx, ...
0
votes
3answers
223 views

What does Architecture of the project mean

I'm working on website and java application for my project and I'm writing report and there is question that say "What is the architecture of the project" I don't know what should I write because I ...
-3
votes
0answers
32 views

Connecting ASP.NET and Android applications to the same Database

I am starting to build a web application with ASP.NET which will help people who are looking for rides inside a city find drivers offering rides from defined start points and destinations. The web app ...
0
votes
1answer
22 views

Dynamic form builder with serialised sql storage

I have a requirement whereby my users will need to be able to build their own forms. Which they can specify different datatypes: Text DateTime Checkboxes All customisable mandatory/optional. I've ...
-3
votes
0answers
41 views

Assignment makes pointer from integer without a cast. C [closed]

I have this error: warning: assignment makes pointer from integer without a cast in line 6. Inicial is a string and x a character char top; void push (char* stack[], char x) { top=top+1; ...
4
votes
1answer
70 views

Patterns for maintaining consistency in a distributed, event sourced system?

I've been reading on event sourcing lately and really like the ideas behind it but am stuck with the following problem. Let's say you have N concurrent processes which receive commands (e.g. web ...
0
votes
2answers
111 views

Could Java XYZ implement (limited) Operator Overloading without breaking backwards compatibility?

Recently, I've been learning a bit more of C++ and the dangers and uses of operator overloading, and the readability boost it provides to arithmetic types (like Complex numbers). A while ago, I was ...
0
votes
1answer
63 views

Is an all-encompassing enumerator appropriate?

I will illustrate the problem with a specific case. Suppose we have a bit-flag style enumeration type defining different kinds of validations. It's tempting to define an enumerator like ...
4
votes
2answers
75 views

How to handle a one-time startup SQL script

I'm trying to figure out the best way to tackle running a one-time SQL script when a service instance starts up. Here's the scenario: We run multiple Amazon instances of our service in parallel. ...
0
votes
1answer
48 views

Would you use a responsive framework in this scenario?

I'm working with a large enterprise application custom CMS. The content managers have some level of control of the HTML, but there are a number of elements that are created by the dev team for more ...
4
votes
1answer
86 views

Is it confusing to not store the version number of a project in the source code?

Currently to create releases for our project, we're using Travis CI to upload binaries whenever a tag is created. We're using semantic versioning, so our tags have the form ...
1
vote
3answers
230 views

How to store many global variables?

I have around 30 not-changing "objects" (the amount of them is final, no more can be added or removed). Each object has an id as well as some booleans describing what the object is and what it isn't. ...
0
votes
1answer
39 views

Most Pythonic way to remove first match of potential leading strings?

This is a bit difficult to describe, but I'll do my best. In Python, I can use string.startswith(tuple) to test for multiple matches. But startswith only returns a boolean answer, whether or not it ...
3
votes
1answer
83 views

Is there a good way to use the front controller pattern for command line applications?

I am a PHP developer and I used to build web applications with one PHP file per page for a very long time. This resulted in duplicated logic and messy code (even though I didn't know it at the time). ...
0
votes
0answers
17 views

Using @Hidden or passing through BeginForm?

I have a small question about the following answer from a stackoverflow question. There seem to be 2 ways to pass parameters through a @BeginForm() to a Controller. Using a Hidden field: ...
-1
votes
0answers
20 views

PropertyGrid color cell display [closed]

Is it possible to change the default way to display a color in a property? I want to use the color as a traffic light to display working conditions with three possible values: Red, Yellow and Green. ...
0
votes
1answer
75 views

Trying to find time complexity of modulus algorithm

I can't quite figure out the time complexity of this algorithm I've written for finding the modulo. I've added it here in psuedocode. Modulo(int x, int n) // x is the dividend, n is the divisor e ...
19
votes
3answers
1k views

Why is Optional.get() without calling isPresent() bad, but not iterator.next()?

When using the new Java8 streams api to find one specific element in a collection, I write code like this: String theFirstString = myCollection.stream() .findFirst() ...
0
votes
3answers
83 views

Cyclic dependency in this project design

I have 2 modules (containing multiple classes). Let's call them Module A and Module B. Module B has a dependency on Module A: Module B -> Module A. Now, I have created an utility class C, which A ...

15 30 50 per page