-2
votes
1answer
42 views

Javascript: Effect of passing entire object vs a property of the object as argument on performance

Does passing the entire object as argument rather than just a property of it, in javascript, effect performance? For example: <input type="button" onclick="getDetails(this)"/> vs <input ...
3
votes
3answers
155 views

Unit Testing and 3rd party packages. Do I mock or not?

I'm just getting used to unit testing and on my new project I decided to adopt a TDD approach. My code below is to test the UserServices class which is responsible for creating a user, deleting a ...
2
votes
2answers
76 views

Code size overhead by including unnecessarily extra header files

I have a program which includes lots of header files but it do not uses all the header files. I have removed some of them although it is working fine. I did not notice any changes in the performance. ...
0
votes
1answer
77 views

What is the responsibility of a class 'calling' other classes as workflow?

What if I have a class X that does the following: Read a file (within its own class). Parses the file by calling a Parse class Processing the parsed file by calling a Process class Outputting by ...
-1
votes
0answers
54 views

Individual developer in a big company [duplicate]

I work in a company as IT specialist/programmer, the company hires around 1 000~ employees and annual revenues is more than 1 MLN dollars. I am the only one who program. I wonder if using Visual ...
0
votes
0answers
49 views

Where do you put your profiling code?

I just developed an algorithm and additional to the usual unit tests I wrote a profiling "test" that I was using to measure and optimize its performance. It is structured similar to a test (arrange: ...
-6
votes
4answers
163 views

Java constructor: I can't understand [on hold]

I am learning Java and I have a problem understanding the concept of constructor for the field variables. What is the problem with the following code. It shows "null" as an output. public class ...
-2
votes
0answers
22 views

Streaming video from android camera to web page [closed]

My project is android app like ipcamera,want stream video from android camera to web page.I am using codes in this ...
-1
votes
0answers
35 views

How much poppler-utils is scalable?

We need to process large number of PDFs simultaneously to extract text, images and create htmls. We have been using poppler-utils for PDF processing and Ruby for making system calls to poppler-util ...
0
votes
0answers
31 views

Best practices for dashboard of near real-time analytics

I’m currently building a dashboard to view some analytics about the data generated by my company's product. We use MySQL as our database. The SQL queries to generate the analytics from the raw live ...
-3
votes
0answers
26 views

How use opaque object and service function separate underlying Implementation of object form code in windows kernel

Windows object kernel is opaque . To initialize object we must call on object service to get data out of an object or to put data into, for example windows use initializeObjectAttributes macro to ...
0
votes
1answer
191 views

Efficient way in comparing two lists

I have created two lists of objects: One is records from an xml and the other is records from the database. The rule is check if the record from an xml exist in the database then exclude. I have ...
-3
votes
0answers
38 views

Is it possible to access protected members of an object from the function of an object whose type is derived from type of first object?

I am aware that access-specifiers are class-based but I want to know if it extends to Inheritance also? Class base { protected: int x; } Class derived: public base { public: void f(base* pb){ ...
2
votes
0answers
34 views
+50

Windows Phone 8.1 & above - is there some equivalent for Apple's keychain

I want to store store some app specific secret on the phone - this should be available only for the app & no other app. I was looking at DPAPI - however, if the user does not have a logon ...
4
votes
1answer
122 views

Developing a system that connects to any datasource without much/any source-specific code [on hold]

We are a small team doing work on a LoB system that needs to connect to varied systems such as ERPs and CRMs to extract business processes like invoices, customer info, production orders and the such, ...
1
vote
2answers
163 views

Is this an appropriate code structure, or is there a better one?

This is an iOS app but I will try to make it as general as possible because I think a wide audience could have good feedback. I have a application I am making for iOS. It has 4 main tabs in a tab bar ...
-1
votes
0answers
40 views

How does Microsoft's Cortana or Apple's Siri map inputs to actions [closed]

I was wondering what method Cortana, Siri, and similar software use to map user input to an action (e.g. show the weather or create a remainder). I don't care about speech to text software, I don't ...
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
232 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 ...
-2
votes
0answers
39 views

Branching for websites coming from base code [closed]

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
47 views

Impacts of a method's parameter that throws an exception according to object state [on hold]

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
38 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
290 views

Is turning a method into a class to use it across many classes bad practice? [closed]

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
65 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 ...
8
votes
4answers
447 views

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

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 ...
2
votes
2answers
52 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
78 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
14 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 ...
6
votes
3answers
237 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
39 views

Measuring sound frequency [closed]

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
9 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
159 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. ...
3
votes
1answer
72 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
106 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
81 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) [closed]

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
145 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
2answers
128 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: its multiplicity, it RW (Read/Write), RO (Read only), longName, shortname. So I was ...
5
votes
9answers
334 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
69 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
79 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
110 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
43 views

Android App - GPS Help [closed]

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
35 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
126 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
37 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
101 views

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

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
59 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
47 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 ...

15 30 50 per page