0
votes
1answer
21 views

When is an API considered to be a DSL?

What is the difference between an API and a Domain Specific Language (DSL)? Is it just syntax? Consider an API like OpenGL. How is that different from a graphics DSL? In other words, if an API is ...
0
votes
0answers
14 views

How to define the motion path of one object on a surface of the other one?

I have an uncommon problem. There are 2 3D objects, which are represented by arrays of vertices and triangles (.stl files). Each of them contains a big enough amount of vertices: 1-10 mln ones. The ...
-5
votes
1answer
26 views

How to get back to Software programming after a 15 years break? [on hold]

i'm an old school developer comming from pascal and c/c++ in 1998 , but i'm looking for adviceon which programming language that has capabilities for this new technologies revolution
-1
votes
0answers
12 views

What is 'proper' way to organise a startup of an ASP.NET server app

I have an old ASP.NET server app which is quite large in terms of lines of code.. It hosts few WCF services and some other stuff. There is enormous amount of work done when the app is starting. E.g. ...
0
votes
1answer
25 views

Effective Repository in C# - Where to put methods?

I'm trying to build a new application using the Repository pattern for the first time and I'm a little confused about using a Repository. Suppose I have the following classes: public class Ticket { ...
0
votes
1answer
33 views

When copy/pasting private methods is it necessary to carry along the Javadoc?

So, unfortunately, I'm stuck with code where I'm doing this: @Override method A{ //calls private methods 1-8 } private method 1{ //copy/pasted } And so on for all of the private methods. ...
0
votes
1answer
43 views

Does lots of Instance Variables within my class suggest flawed Design?

Ok so I am setting out to consolidate some learning I have been doing. What I am going to do is create a small game relating to a game I enjoy called Persona. For reference a persona you can think of ...
1
vote
0answers
41 views

Programming by usage

Iv'e been programming for 15 years now and I often read online that it seems like a lot of people will plan out their objects and how they interact and the data they need and that seems to shape the ...
-3
votes
1answer
25 views

Considerations migrating from one platform to another [on hold]

I have a deal website running with about 50.000 transactions a year. The whole system is inherited from another deal site that I don't own, but have paid a monthly fee to use their system. This have ...
-4
votes
1answer
48 views

How to assign null to Datetime in C#? [on hold]

How to assign null to Datetime? DateTime dt = new DateTime(); Both are not working dt=null?? dt = (DateTime)null;??
-1
votes
1answer
24 views

Reverse a queue using an extra queue

You are given 2 queues, Q1 and Q2. Q1 is already filled with n elements. Q2 is empty You have to reverse all the elements in Q1. You cannot use any other space apart from Q2. only operations ...
1
vote
1answer
184 views

Is object oriented programming ALWAYS a good way for large projects?

Is object oriented programming always the good way for all types of projects? Is this methodology the best suited for large projects like compilers, interpreters and other large systems? Most of the ...
6
votes
4answers
150 views

“Immutable” interfaces

I am confused about the notion of immutability. Consider the following structure of a simplistic calculator: Here are the interfaces: interface IOperationalInterface { int Sum(int a, int b); } ...
-1
votes
0answers
21 views

Dart responsive design

I've been doing responsive web design using Bootstrap for a couple of years now. I'd like to migrate to Dart but I am having difficulty finding documentation on how to do responsive designs in that ...
1
vote
0answers
32 views

Which patterns/architecture to apply for “Import Data, Process Data, Export Result”

I was wondering which architecture/patterns to choose for the following problem divided into three steps: Import TestScript Description from File (e.g. .xls, .txt) Process Described TestScript ...
2
votes
2answers
83 views

Is there anything inherently bad about mixing paradigms in an application?

I am currently in the process of writing a (custom) Minecraft server application in C#. I figured it's a good way to teach me a lot of important things like concurrency and especially memory ...
0
votes
0answers
16 views

Boost Software License seems to extend disclaimer of warranty automatically but the author says it doesn't

Here is a copy of the Boost software license. Permission is hereby granted, free of charge, to any person or organization obtaining a copy of the software and accompanying documentation covered by ...
2
votes
1answer
37 views

BSD vs. MIT license: Pros and cons of not requiring the disclaimer to be retained [on hold]

I see a difference between the BSD licenses and the MIT license. The BSD licenses require the complete disclaimer to be retained in all redistributions of source code or binary code. MIT license ...
-3
votes
0answers
19 views

On Demannd PostgreSql 1:M Database Synchronsation for Selected Tables

Requirement is like I need to perform database sync on Demand or Event base for Selected tables of Admin Database to Client Databases. So I need an any open source php tool or library that will ...
-3
votes
0answers
23 views

How to Use JButtons as the JComboBox render

My application have a JButton and I need to have when I click on the Button a list of Buttons will appear ( as when the JComboBox is clicked ),So thought to have a JComboBox with custom render JButton ...
-4
votes
0answers
68 views

How do I write an esoteric programming language? [on hold]

I've been asked by Mozilla people to write an "esoteric programming language", which means a light-weight language meant for a small group of people. In other words, a light domain-specific language, ...
1
vote
0answers
18 views

How does Elastic Search approach the problem of distributed membership and consensus?

I already understand that Elastic Search is supposed to be deployed in a distributed topology, in that you can have multiple nodes for a cluster of ES instances. I like the API, and it looks ...
3
votes
0answers
29 views

Do I understand this Function.prototype.call() code correctly?

The code: var content = Array.prototype.map.call(document.getElementsByTagName("p"), function(e) { return e.innerHTML; }); It's from p. 367 of JavaScript: The Definitive Guide, 6th ed. Here's ...
0
votes
1answer
46 views

Why Microsoft’s Web API is named as ASP.Net Web API

ASP.Net is Active Server Pages using .Net Framework Wikipedia says It was first released in January 2002 with version 1.0 of the .NET Framework, and is the successor to Microsoft's Active Server ...
-4
votes
0answers
33 views

can I study automobile design for my Masters degree [on hold]

I just graduated with a bachelor's degree from computer science but that was given to me by my school because they didn't have mechanical engineering. I have a passion to design car engines. And the ...
0
votes
1answer
51 views

I recently read about unit of work and repository design patterns; working with EF wondering if this is a good design pattern

I found myself creating child records that require a master record to exist, first, so that they can reference it by the master record's primary key (if that's the right term). To accomplish this ...
-3
votes
0answers
34 views

Detect specific sound playing from another program

I'm currently working on a program in Visual Basic which have to detect if a monster speaks in a video game running on the computer. So if the monster is saying "hello" the program will do 'something' ...
-3
votes
0answers
35 views

Improve my OOP development skills [on hold]

I would like to improve my OOP development skills. OOP has been a big obstacle for me during interviews, but I try reading, but I still tend to miss some of the interview questions. I want to ...
2
votes
1answer
81 views

Multiple classes with the same name, but different namespaces?

I've run into some code (C# if it matters) that has classes which have the same name, but differ in their namespaces. They all tend to represent the same logical thing, but often are different "views" ...
5
votes
9answers
603 views

Customer is “deeply disappointed” in software because of one bug. How to reply? [duplicate]

We have been building custom software for one of our customer for a few years now. Everything is going well so far. However the customer always has an attitude that when they find a bug in the ...
0
votes
0answers
6 views

Vlookup in python [migrated]

I am new to python and leaning as fast as possible. I know how to do my problem in bash and trying to work on python. I have a data file (data_array.csv in the example) and index file, index.csv, at ...
-1
votes
0answers
39 views

What techniques are used in larger programming groups to limit access to portions of code? [duplicate]

I've never worked in anything larger than a startup and so code access was never a problem, but as our organization begins to grow and we need to offload portions of our (non-obfuscated PHP) code ...
-1
votes
0answers
44 views

Mastering a programming language [on hold]

I'm second year C.S student and in years of my study I tried learning different programming language. but as may some experienced, if you do not use that language for a while, you definitely lose your ...
0
votes
0answers
7 views

SuperCollider not audible on headphone [migrated]

I am just beginning to learn audio programming using supercollider. When I play a sound I am able to hear it on speakers but not headphone. I get the following message on starting server - ...
1
vote
1answer
103 views

Should I separate a web api from the webserver?

Lets say I'm building a site similar to this or Quora (or some arbitrary blog-like site). I need a real-time component that will be using web-sockets/long-polling to notify the user of new posts, ...
-2
votes
1answer
44 views

Which license should I use in the program?

I have developed software that I would like to sell commercially. I don't know which license I should use. I've never used one before. I don't I think need/should to write one myself. Basically, I ...
4
votes
1answer
182 views

Is there a reason to define type aliases in any program

I have started to learn c++ for some time ago. It is a big subject and I am not very use to it yet. Thus is this question asked more of curiosity, than something else. In the book that I read to now ...
-3
votes
0answers
13 views

In AppCode, is there a way of filtering the list of classes presented on the 'navigate to class' dropdown (⌘N)? [migrated]

I'm building an iOS application, and have a need for making a large number of duplicated classes with the same name (actual implementation, vs. sample data implementation). Let's say I have some ...
-2
votes
0answers
10 views

c# Directory and GetFileName Problem [migrated]

I have a problem and I think you can help me I have this Code: string[] A1 = Directory.GetFileSystemEntries(textbox2_f2.Text, "*", SearchOption.AllDirectories).Select(System.IO.Path.GetFileName); ...
1
vote
2answers
124 views

Phone Number based Login

I'm trying to implement a phone number based login and not sure if I should ask the users for full number, i.e country code + number or just the number. What I have in mind so far: Attempt ...
0
votes
2answers
62 views

SOAP message testing

I am working in Scala/Java. I'm testing the messaging infrastructure of a part of my system that I did several years ago with CXF and Java. More specifically, I'm re-writing the specification of the ...
-5
votes
0answers
38 views

Chain of Responsibility Design Pattern [on hold]

I want to get an intuitive feeling for Chain of Responsibility pattern. I guess a good way to get that would be to learn about some real world examples. Can you guys share such examples? One of the ...
1
vote
1answer
52 views

Chasing DirectX versions

We're a small-medium size enterprise (~50 devs), working on several DirectX 9 applications. (not games) DirectX 10 and 11 both were deep interface overhauls, as DX12 will probably be. We didn't ...
-3
votes
1answer
51 views

Please help, I'm trying to open a dialog box using ajax inside kendoGrid row double click but I've encountered error [on hold]

Here's the complete javascript: <script type="text/javascript"> var gridReadUrl = '@Url.Action("LoadServices")'; var getServiceUrl = '@Url.Action("GetAService")'; var GridExample = function ...
15
votes
6answers
2k views

Client Side Coding: How to prevent malicious use?

Over the last few years, the trend for client side (browser) apps has really taken off. For my latest project, I have decide to try and move with the times and write a client side app. Part of this ...
0
votes
0answers
22 views

Structuring Resource Files

In .NET we've got Resource files which are great for allowing providing translations across your application. In the past I've seen these resource files grow into monolithic unmaintainable lists of ...
-2
votes
0answers
9 views

getting error while using pdftk tool [migrated]

for performing the pdf modifications install the cpan module PDF::Tk [Perl integration for the pdf toolkit (pdftk)], but while using the functionality of pdftk getting the below set of error, Can ...
-3
votes
0answers
48 views

Apache Spark and Hadoop's MapReduce [on hold]

Recently people behind apache mahout decided to move away from hadoop's mapreduce and use apache spark. What are the features in apache spark that makes it better than hadoop's mapreduce?
3
votes
1answer
61 views

Are there any (free) video formats that include channels for arbitrary time-dependant data?

I'm in the process of writing an image analysis pipeline and I've hit a bit of a roadblock. Here's the 30,000-ft view: Images arrive as base64-encoded PNG images over standard input Images are ...
2
votes
2answers
116 views

Implementation strategies for atomic counter

I basically have a counter variable that is decremented and frequently polled. There are three options to implement that, that I can think of: Number 1: private volatile int count; public void ...

15 30 50 per page