0
votes
1answer
52 views

Ideal export in terms of size for asynchronous module definitions in JavaScript?

When creating AMD modules you can export whatever you like whether it be an object or a function. I vaguely recall reading a recommendation somewhere to export just one thing; the idea being "keep it ...
1
vote
2answers
21 views

'Tuple' vs 'List' operations in python

Only two operations are allowed on tuple, as shown below. Operations like insert / delete at an index is not allowed. I learnt that tuple is an immutable data model. list allows insert and delete ...
17
votes
2answers
593 views

Why are people making tables with divs?

In modern web development I'm coming across this pattern ever more often. It looks like this: <div class="table"> <div class="row"> <div class="cell"></div> ...
0
votes
0answers
9 views

Best use of frontend framework

I've been using rails' erb template for my views, but I've recently been trying to incorporate React as my front end framework. I'm a little lost on how front end frameworks are supposed to be used. ...
0
votes
0answers
16 views

How to visualise this data model?

I have learnt different variants of list data model like Dlist, SList and recursivenodetype-list. But I could not understand/visualise this datamodel as mentioned below in C++ syntax: class XGNode { ...
3
votes
1answer
398 views

How do you get the usernames/passwords onto a STUN or TURN server for long-term credential authentication?

The STUN and TURN specifications allow for client authentication using usernames and passwords, and call this authentication via long-term credentials. In fact, TURN requires that clients authenticate ...
10
votes
2answers
792 views

NoSQL within SQL Server

Firstly, this question is not about the difference between the 2. I am looking for some rational for something that really does not make sense at the moment. Maybe because of lack of understanding or ...
0
votes
0answers
12 views

Set up git for web development

This question has been asked before, but none of the answers could help me in my case. I am developing a web application in PHP and JS. The workflow as it is today is the following: There are two ...
0
votes
2answers
210 views

How to manage data flow between UI components?

I have been trying to use classes that implement ActionListener to respond to user input. I'm consistently noticing that for an action listener to communicate the event to other objects, it has to ...
-1
votes
0answers
29 views

Why so much difference in compile time - python and c++

This is the question : I wrote the following code which is in Python 3: n,m = map(int,input().split(" ")) totTEAM = 0 problem = 0 stri = [] for i in range (0,n): newstr = input() ...
1
vote
1answer
52 views

Doubts about architectural pattern for customizable standard enterprise application

My company needs to build an application to be rolled out for a lot of clients. This software will have many modules and functionalities, but some of these will need specific adjustments for some ...
3
votes
2answers
79 views

How to infer the result of a query?

To understand what a query does, I have always thought the following is the procedure on evaluating a query: Form the table as specified in the FROM clause. Pick the rows from that table as ...
0
votes
0answers
23 views

Check distance between all elements in a list of numbers in O(n*lg(n))

I have an exercise for my algorithms and data structures class, where I basically have to implement a divide and conquer algorithm or function called check_distance to determine whether all numbers in ...
1
vote
0answers
14 views

How to interpret correlated subqueries? [migrated]

Correlated subqueries are highly confusing me. Example query from here: SELECT DISTINCT store_type FROM stores WHERE EXISTS (SELECT * FROM cities_stores WHERE ...
1
vote
4answers
76 views

What practical steps do you take to ensure you are thorough?

Bit of Context I'm not sure if this is fitting to the programmers.stackexchange area, but I'm not going to post it in SO. Any problem with ambiguity and I'll happily remove it. If I had to talk ...
47
votes
5answers
1k views

Why not XHTML5?

So, HTML5 is the Big Step Forward, I'm told. The last step forward we took that I'm aware of was the introduction of XHTML. The advantages were obvious: simplicity, strictness, the ability to use ...
3
votes
1answer
262 views

Pattern to use to relate multiple data sources to different user data widgets

I have an client x server intranet application the basically gets data from the server, format it and send that data to the client for display. At the server we are using ASP.NET C# running on IIS ...
4
votes
0answers
33 views

RESTfully Returning Diagnostics Data With Response

In a REST API I am working with, under certain circumstances (ex/ request originated in network) diagnostics data is returned with the response. Right now, a property is appended to the root object of ...
0
votes
0answers
11 views

Spring Boot Hibernate and JSR 303 - response formatting

Sifting through forums I can't seem to stumble into an issue solution I've been haveing with Spring Boot + JPA and JSR303 bean validation. Simply put validation works but but when say ...
22
votes
7answers
2k views

Does path coverage guarantee finding all bugs?

If every path through a program is tested, does that guarantee finding all bugs? If not, why not? How could you go through every possible combination of program flow and not find the problem if one ...
0
votes
1answer
222 views

How do we isolate dependencies for a .Net app deploy in a way which is safe for a strongly-named assemblies?

To design in such that it is easy to deploy dependencies with your app, and so that development environments are easy to set up, it is advantageous to isolate an app's dependencies from it's ...
8
votes
3answers
4k views

Is it OK to return HTML from a JSON API?

On my current project I am responsible for the implementation of a service which involves the consumption of newly created RESTful APIs, documented as solely supporting JSON. The client consistently ...
-3
votes
0answers
26 views

I'm looking for error checking methods

Im a student. I have a computer architecture project I'm working on. We got to make our our project. For my project, I chose to code up some error checking algorithms, run them several thousand times, ...
6
votes
7answers
4k views

Non-zero exit status for clean exit

Is it acceptable to return a non-zero exit code if the program in question ran properly? For example, say I have a simple program that (only) does the following: Program takes N arguments. It returns ...
0
votes
1answer
22 views

How to evaluate the performance of a Data Access Layer b/w two ORM's?

I am currently working on a project where I am going to replace the Data Access Layer from a custom ORM to Entity Framework.(The product is almost complete and mostly any changes that will follow ...
3
votes
1answer
86 views

How can 'yield' be added as a keyword in ES6 if it wasn't a reserved word?

yield is not a reserved word in JavaScript, yet ES6 makes it a keyword. I thought the point of reserved words was for backwards compatibility. For example, let and const were reserved, so you ...
0
votes
1answer
39 views

Simple TimeZones

I need to send out emails based on a timestamp. But the timestamp must be what the user expects it to be. The timestamp is set by the user submitting an object. E.g Al from L.A in the U.S saves an ...
-2
votes
0answers
10 views

Process two forms in 1 PHP file [migrated]

So, I got this piece of code, I'm trying to test it out, my issue is this, I've got 1 single PHP file, which contains 2 variables... what I want to achieve is this, first get the first name from the ...
23
votes
4answers
260 views

As a lone developer, how can I be sure I am learning and doing decent work?

Background: I work in a small (less than 75) person engineering/manufacturing company. I was hired as a developer to work with a single teammate, our purpose being to migrate the company to the modern ...
1
vote
0answers
11 views

Global / Application settings and testing

We have a global dictionary of application settings (read from a DB on start-up and refreshed when required) and a static class with a bunch of methods to get these settings. This is historic, but I ...
5
votes
0answers
27 views

Safest way to use and store User's third party credentials

I'm working on an add-in that will integrate git into the VBA IDE. I'm using the LibGit2Sharp library under the hood, which supports User name and password credentials, but not SSH Keys. I would use ...
5
votes
3answers
576 views

How come javascript, being a prototype based language, doesn't have an easy way to access the prototype?

May be this is a stupid question, but I'm kind of intrigued. Being JavaScript a prototype based language, with its pseudo-class function constructors sort of half baked (remember JavaScript: The Good ...
-4
votes
0answers
33 views

What is the Diamond problem [duplicate]

The notorious Diamond problem seems to be the cornerstone of multi-inheritance discussion. Let's take the definition that satisfies everybody from here For the "diamond problem" to appear, it’s ...
1
vote
2answers
105 views

Agile Use Of Dedicated Teams

When reading the Agile Manifesto, they don't mention anything about dedicated teams. However on some websites (example: this article on agile teams) they claim it's necessary to have a dedicated team ...
0
votes
1answer
74 views

how to modularize wcf services?

I am working on a WCF application that supports 4 different applications. lets call those 4 application: App1, App2, App3, and App4. this WCF Application has 4 services. one for each application. 4 ...
1
vote
2answers
159 views

Source file shouldn't be more than 100 SLOC

I just started working on a baseline that is rooted in Ada. Many of the older Ada programmers insist that the source files shouldn't be more than 100 SLOC. I researched this online and I have not ...
0
votes
0answers
12 views

Is Python Logging in a WSGI application a best practice a production environment?

I am trying to log my webpage access to a database. It is a requirement. It seems to be a difficult thing to do outside of Windows IIS, and I do not wish to use Python with IIS. My options seem to ...
-3
votes
2answers
50 views

how to make legacy/rescue projects more fun? [on hold]

I'm starting to get bored with fixing bugs and fixing code that was poorly written in the last year. Is there a way to make this more fun? I have a new project and some new code to write in the next ...
0
votes
1answer
20 views

How can I create a data model to efficiently answer the question of - where to place my db-interaction code I am about to write?

I am seeking the right model for storing and retrieving data, when working with any specific class, while keeping in mind the bigger picture. Details: I have some SQL code in (one) of my classes and ...
-2
votes
3answers
56 views

Is LinkedList an Abstract Data Structure? [duplicate]

This quote is from the book HeadFirst C: A linked list is an example of an abstract data structure. It’s called an abstract data structure because a linked list is general: it can be used to ...
0
votes
0answers
16 views

How to access objects in lists? How to create many sequentially named objects at once? [migrated]

Im new at python and programming in general, so forgive me if this question is painfully simple. I could not find an answer using google. Anyway, I want a long list of checkbuttons and entries. I ...
1
vote
1answer
35 views

Efficient ordering of objects online

I have a list with objects stored in a database. These objects are shown in a list and the user can drag and drop them to order them in a specific way. I want that specific order to be stored. How ...
-3
votes
0answers
16 views

How to develop android RESTful client to upload video? [on hold]

How to develop android RESTful client to upload video using Android SDK or third party library 1)Upload from Phone : What is best android api or third party libraries 2)connect to RESTful ...
0
votes
0answers
52 views

IP / Domain name validation in a GUI

This is both a technical question and a design question, which is why I thought stackOverFlow might not be the best place to ask. I am writing gui to a program in Java, which amongst other things, ...
1
vote
3answers
56 views

Secure DAL Design using Stored Procedures

I normally avoid sProcs as much as possible. I dont like the language be it TSQL or PL/SQL; they seem archaic against Java/Dot-Net which I use. I go for them when a routine needs to fetch a lot of ...
0
votes
1answer
81 views

Changing repetitive code to improve good programming design

In Java Swing if you want to add a listener to a component, it would look something like this... JButton j = new JButton(); int counter = 0; j.addAncestorListener(new AncestorListener() { ...
1
vote
3answers
121 views

How to version control a running web application? [duplicate]

I am developing a web application in PHP and JS. The software until recently was only being developed on and not being used by clients, so I could just change the script files directly. After the ...
1
vote
1answer
48 views

Structuring project (refactoring)

I'm working on a project that requires from me to make modular and extendible code structure. This code should be able to support multiple clients. The good news is that code should not do anything ...
-2
votes
0answers
18 views

Store decompiled code of external apk in public repo legal? [on hold]

Is storing decompiled code of external Android apk in public repo legal? I've decompiled application that I've got from Google Play Store. I'd like to share its source code because it shows how to ...
-1
votes
1answer
40 views

How to create self-updating WPF Kiosk mode application [on hold]

I am creating a WPF application that will be running in Kiosk mode on Windows PosReady 2009 (basically XP using .NET 4.0) devices. I have a web interface communicating with my API that allows the ...

15 30 50 per page