0
votes
0answers
14 views

Alternatives to a generic authentication to access an admin dashboard without session management

On my private homepage I am hosting some pages and corresponding files for some courses where my students can download material for the classes. Furthermore I am publishing news where I write about ...
5
votes
2answers
211 views

Report test failures “all at once”, or report them one by one

I am a sole developer working for an organisation that has no testing strategy. I am trying to integrate a crime system developed by a vendor with an external application I developed. The external ...
-1
votes
0answers
37 views

Branching for websites coming from base code [on hold]

I'm trying to develop a version control strategy for websites coming off of the same base code. I've been developing a plan and would like to request feedback as to the feasibility of it. For ...
0
votes
1answer
44 views

Impacts of a method's parameter that throws an exception according to object state

I'd like to know how bad it is to do something like this: public class FooBar { public bool CanOverride { get; } public FooBar(bool canOverride) { CanOverride = canOverride; ...
1
vote
1answer
33 views

TreeItem containing non-String object displaying strange text

Hello StackExchange community! This is my first post and appreciate any help anyone can offer. I'm new to Java, and I'm sure this issue is simply due to my misunderstanding of the fundamentals. I ...
3
votes
2answers
251 views

Is turning a method into a class too use it across many classes bad practice? [on hold]

Let's say I have a sort method inside of my class and another class that has no relationship with that class needs the same method. Instead of writing that method twice and breaking the do not repeat ...
2
votes
1answer
64 views

Is there a standard for this type of component diagram?

Came across this open source project called fruit. In the documentation are some diagrams of the code. Here is an example from the tutorial page: Is there a standard for this type of diagram or is ...
7
votes
4answers
388 views

Is a 25+ table join a code smell all by itself? [on hold]

I just think our database design is terrible. Academically it's great! It's in like 85th normal form. Practically, this results in some queries with so many tables, it's basically impossible for a ...
1
vote
1answer
40 views

Relational vs Graph Database for (initially) moderately-sized network

We're developing an application whose data domain (or at least 90% of it) can be modeled effectively using a relational database. We've been using PostgreSQL since the beggining and have had no ...
0
votes
1answer
72 views

Mutability, and pass-by-reference, “new” object, what am I having left out?

I started questioning what I know, or thought that I know, after this question: Array.fill differs from literal 2D definition on assignment A JavaScript question, defining an array with predefined ...
1
vote
0answers
13 views

Launching iPhone App - Do I need separate names for the App and the Landing Page/website or can I use the same name?

I am launching a iPhone App. Do I need two separate domain names for the app and the landing page website or can I use the same name for both. The website will solely be used to advertise the app ...
5
votes
3answers
198 views

Generate equally sized areas in polygon

I am looking for a pseudo code logic that would find n equally sized areas in a given polygon. No space should be between or outside the matched areas. First valid match of areas should be returned. ...
-5
votes
0answers
38 views

Measuring sound frequency [on hold]

I've been looking around for a Java API that measures the frequency of the sound, the project idea is to browse an audio file from the computer (contains only piano music) and to convert these music ...
0
votes
0answers
8 views

Running unit tests for an Azure solution built by TeamCity

We have a solution containing a Web Role and Worker Role. This is built by TeamCity and deployed by Octopus Deploy to a Microsoft Azure environment. The solution contains unit test assemblies (MSTest) ...
0
votes
0answers
26 views

Best way to create some dynamic input controls?

In my web app, a user will enter a quantity. Based on their input, a number of input boxes will be created/displayed, and the user will enter values into those inputs for the system to process. ...
0
votes
2answers
143 views

Should a Junior programmer add TDD tests to mvc project

I'm a junior programmer near to my 6 month probation, following my initial career changing 3 month assignment in which I added TDD tests and wondering whether I should add tests to my current work. ...
2
votes
1answer
68 views

How to access environment-specific configuration in an enterprise application?

My application is a generic enterprise application which can be deployed on any application server running on any OS. I don't know how/where to configure my application, except for the database ...
3
votes
5answers
96 views

Bulk update: return all results or only failures

I'm developing an API that performs bulk update of a large number of items in a single call. This code will consist of a REST endpoint and the internal library code that it calls. There are a few ...
3
votes
2answers
79 views

App db creation at first run

I am working on Qt/QML/MySQL app and I want to achieve maximum customization of software; therefore I've packed app's settings into SQLite3 database file. I have several SQLite3 scripts hardcoded into ...
-4
votes
0answers
34 views

Licensing systems (frameworks) [on hold]

I want to add license protection for my app. It must be NOT a license key scenario (something like "buy a key, type it during installation or letter, use"), but a license for the amount of actions. To ...
-2
votes
3answers
124 views

What is the most elemental workflow for TDD?

Gradle is such an interesting build tool that it prompted me to look at Spock and JUnit -- which I've never done before. What is the basic workflow with TDD? My approach has been to do frequent ...
0
votes
1answer
83 views

Whether to use enum vs map vs config file?

I have ~30 resources each having ~10 attributes. I want to store some information about each attribute. Ex: It's multiplicity, it RW (Read/Write), RO (Read only), longName, shortname. So I was ...
4
votes
9answers
306 views

Why is using an optional preferential to null-checking the variable?

Take the two code examples: if(optional.isPresent()) { //do your thing } if(variable != null) { //do your thing } As far as I can tell the most obvious difference is that the Optional ...
2
votes
4answers
67 views

Keeping a ratio column that's the division between two other columns

I'm about to build a SQL table where I want to store currency orders. That means that I need to store how much I paid for a certain quantity, and the ratio between both quantities. So for example: ...
0
votes
1answer
71 views

How does the base class non-virtual function get called when derived class object is assigned to base class?

#include <iostream> class Base { private: int b_value; public: void my_func() {std::cout << "This is Base's non-virutal my_func()" << std::endl; } virtual void ...
3
votes
2answers
104 views

Is using getters in XAML view-models a bad thing?

I've recently had an argument with a colleague about using getters (without setters) in a view-model classes used by XAML. Example: public string FullName { get { return $"{FirstName} ...
-2
votes
0answers
42 views

Android App - GPS Help [on hold]

I'm currently working on a project that includes making an app for android phone using the phone's GPS. I'm looking for some insight into how to approach the project. The app needs to receive a ...
1
vote
0answers
32 views

Using events and event subscribers to create windows in a desktop application

I should probably open this by saying I do mostly Web applications at work, which obviously have some major differences from typical desktop stuff. I had a small Windows Forms program I'd made for ...
2
votes
4answers
118 views

Is the var token necessary to signal variable declaration?

When creating a variable foo, Python lets you just write foo = bar. However many languages, like C# or JavaScript, require additional syntax like var foo = bar or foo := bar to signal the same thing. ...
0
votes
0answers
33 views

What's the most straightforward way to integrate my company's custom authentication with ASP.NET SSO?

My company has a series of WinForms applications that pretty crudely provides authentication by checking usernames and passwords directly against the database (with a little hashing). I have a fair ...
-2
votes
1answer
98 views

What do developers do during testing phase of a waterfall life cycle? [on hold]

If the testing phase is over 5 months long do the developers help the testers execute scripts? I don't know how it's done in a waterfall lifecycle where the phases are usually quite long.
3
votes
2answers
54 views

Is putting the license into the issue tracker okay or is it even better than putting it into a single file?

Usually you put your license into a single file called COPYING or LICENSE. However there may be reasons you do not want to do this - let's not discuss them - and therefore you look for alternative ...
1
vote
1answer
44 views

Service/component based application in Java

I have a Java project whose architecture is quite component-oriented, and I am wondering if this is a common way to organize code which rules/patterns are used, if there is a name for this coding ...
0
votes
0answers
26 views

Handling multiple rest api versions within Android Java client

Actual architecture I have an app where a model is attached to every activity. The model ask a repository for information that can come from server or local db depending on many factors. When it asks ...
-1
votes
0answers
28 views

How can I refactor my http swift code to do retries? [on hold]

In my ServerAPI class I have this method: func getState(name: String, completionHandler: (result: dto?, error: NSError?) -> Void) { let parameters = [String: AnyObject]() /* 1. Make the ...
9
votes
4answers
234 views

What are the drawbacks to mapping integral identifiers to enums?

I've been thinking about creating custom types for identifiers like this: public enum CustomerId : int { /* intentionally empty */ } public enum OrderId : int { } public enum ProductId : int { } My ...
0
votes
0answers
47 views

How do you integrate separate projects into a single solution?

Background I'm a technical lead on a small team of three developers who work at a community college. Because of the nature of our environment, our projects are typically related (since the core set ...
1
vote
4answers
111 views

How to name functions that use conditionals in refactoring

Consider this bit of code : private Norf foo(Baz baz) { // ... // Logic on baz // ... if (baz.color == Baz.BLUE) { // Do this thing } // ... // More logic // ...
33
votes
7answers
6k views

Why is chaining setters unconventional?

Having chaining implemented on beans is very handy: no need for overloading constructors, mega constructors, factories, and gives you increased readability. I can't think of any downsides, unless you ...
3
votes
3answers
72 views

Unit Testing Module-Internal Functions

I'm writing a simple whitebox unit testing suite for a project I'm working on in C. The project is broken into modules (each has a .c file with an associated .h file), and all modules are compiled ...
0
votes
1answer
217 views

In which cases and examples String in Java is not immutable?

If Strings are immutable in Java, why is the output of this code 2GB, instead of 1GB? class Laptop { String memory = "1GB"; } class Workshop { public static void main(String args[]) { ...
0
votes
2answers
49 views

The best practice for writing of examples

I have written some projects. I try to annotate or comment all possible (hard to say if correctly toward clean explaining). I would like to write documentation for it, but I have problem with ...
3
votes
1answer
26 views

How do I represent in UML two-way interface used by two connected components?

For an interface that can be used symetrically like for example interface **ipc** send() receive() Both components receive and send. How do I represent this in UML? Currently I am doing ...
2
votes
1answer
54 views

How to paginate local and remote data?

My team is currently facing a problem that we don't know how to tackle. Some technical details: we use Java 8, Hibernate, Spring, MySQL, and AngularJS for the front-end. We need to do pagination on ...
1
vote
2answers
55 views

Does my code still break encapsulation and uses getters/setters instead of the TellDontAsk principle?

I and one guy have been discussing potential solution of a problem on an unrelated board, regarding the typical getter/setter hate, ie. using getters/setters leads to procedural programming. I ...
0
votes
2answers
71 views

Should I log errors in the function they occur? or pass them back and log them when control returns?

One of the things I love about Go is how they encourage passing errors as return values, but when it comes to logging what is the most maintainable solution: passing the error as far back down the ...
0
votes
0answers
63 views

Parsing text with repeating blocks

I am parsing the responses from our Varnish load balancers in order to monitor the status of various nodes. One of the responses we get is text consisting of multiple blocks of data, one for each ...
1
vote
2answers
91 views

Which layer should validation located?

I'm creating Rest API using (Spring Boot) and i using Hibernate Validation to validate request input. But I also need other validation, example when update data need to check, if company id not ...
2
votes
3answers
123 views

Dependency Inversion Principle - No deriving from concrete classes?

I'm not sure if I am getting this right. In order to observe proper SOLID principles, am I forbidden to inherit from concrete classes? Does that mean that every concrete class that I have more or less ...
1
vote
1answer
30 views

Managing Opengl projects under Team Foundation Server

I am learning OpenGL/C++ by following a tutorial series on in2gpu. I set up my Project just like the autor did. It is an Empty Visual C++ Project. Inside the project I linked glew and freeglut, the ...

15 30 50 per page