-2
votes
2answers
124 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, with an ...
0
votes
2answers
46 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 ...
-4
votes
0answers
60 views

Why so much difference in compile time - python and c++ [on hold]

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
0answers
67 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 ...
0
votes
0answers
31 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 ...
-3
votes
0answers
32 views

I'm looking for error checking methods [on hold]

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
1answer
73 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 ...
61
votes
4answers
5k 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> ...
1
vote
1answer
81 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 ...
0
votes
2answers
91 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 ...
1
vote
0answers
15 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 ...
3
votes
1answer
136 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 ...
5
votes
0answers
34 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 ...
0
votes
0answers
15 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 ...
-4
votes
0answers
38 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 ...
0
votes
1answer
22 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 ...
-3
votes
2answers
71 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
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
4answers
95 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 ...
-2
votes
3answers
59 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 ...
20
votes
2answers
2k views

NoSQL within SQL Server

This question is not about the difference between SQL and NoSQL. I am looking for some rationale for something that really does not make sense to me at the moment (maybe because of my lack of ...
1
vote
1answer
108 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 ...
1
vote
1answer
38 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
22 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 ...
1
vote
1answer
54 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 ...
-3
votes
0answers
26 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 ...
0
votes
1answer
53 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 ...
1
vote
0answers
100 views

How to decide if object should request or receive data?

Deciding whether an object should request data (by calling a function) or receive data (by having a function called from another object) is probably dependent on the exact situation. So how do I ...
2
votes
3answers
60 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 ...
-1
votes
0answers
25 views

Building a voice recognition system from MCU(DSP) [on hold]

First of all I am new in voice recognition field, and I wish to build a voice recognition module which can receive commands from user and send protocols(wired type) to my robot's MCU to execute ...
-4
votes
0answers
48 views

I'm developing a tiny db software and how to integrate a db in my installer [on hold]

This may not be a good question but i want to create a database software and im using MSACCESS as my database using JDBC but i want to integrate a lightweight database to my software installer and i ...
0
votes
1answer
85 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() { ...
2
votes
4answers
149 views

why do people do REST API's instead of DBAL's?

At the past two companies I've been at REST API's exist for querying data via a web app. ie. instead of having the web app do SQL directly it calls a REST API and that does the SQL and returns the ...
1
vote
3answers
128 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 ...
-3
votes
0answers
23 views

receiving geojson from client, displaying on google map, responding with url to displayed map [on hold]

am new to all server side stuff, I've set up an ubuntu server with LAMP and have a simple html page displaying a google map and one of their template geojson files overlayed. <!DOCTYPE html> ...
2
votes
2answers
184 views

Source file shouldn't be more than 100 SLOC [on hold]

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

How to create methods at runtime for scripting purposes? [on hold]

!!! There's a TL;DR question at the bottom of this !!! I'm looking into writing a Java API that developers can implement that will allow users to write their own scripts that can interact with a ...
31
votes
9answers
4k 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 ...
4
votes
1answer
102 views

If I fork a project on Github that is licensed under MIT, how to I handle the attribution and copyright notice?

If I plan to fork an MIT project and significantly modify and rename it, how do I handle the copyright notice above the MIT license on the main License file. Would I list the original author and my ...
3
votes
1answer
250 views

Beginner Facade Pattern Example

I came across this article: http://didawiki.cli.di.unipi.it/lib/exe/fetch.php/magistraleinformatica/tdp/dp-l10a-facade2014.pdf At the end, it has a question asking: One common problem ...
-4
votes
0answers
29 views

Should I build custom CMS from scratch or use an existing framework? [on hold]

so recently an idea came to my mind and I started pursuing it. I would like to develop my own CMS in php to (maybe) learn new things and have a CMS which completely suits my needs. And should I ...
-3
votes
0answers
74 views

Can I learn the basics of C++ through Parts I and II of Bjarne Stroustrup's book? [on hold]

I'm interested in learning the basics of C++ for the purposes of making me a better programmer. I do not code in C++, and have no immediate projects in mind that could make use of C++. But a lot of ...
1
vote
1answer
19 views

asp.net tracing custom implementation

I want to do event tracing in asp.net. That is whenever any method is called, i want to log some method specific details into a text file like method name, return value e.t.c But, as requests will ...
-2
votes
0answers
32 views

How is a virtual machine process created in VirtualBox [on hold]

I'm looking into the source code of VirtualBox, but since it is very complex I wanted to know how exactly a virtual machine process is created. Since a virtual machine similar to a real mach it has ...
3
votes
2answers
82 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 ...
2
votes
0answers
55 views

Pattern matching against two similar types

What is the best way to handle pattern matching in the following situation? sealed trait A final case class A1() final case class A2() final case class A3() sealed trait B final case class B1() ...
-3
votes
1answer
68 views

Creating multiple houses in Java? [on hold]

everyone! I created a program that would draw a house in Java, which is: import java.awt.*; import java.applet.*; // Program to draw a house public class House extends Applet { public void ...
1
vote
2answers
116 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 ...

15 30 50 per page