0
votes
0answers
7 views

How should I recursively process a file in Haskell?

Basically I'm expanding a literate program in Haskell. There are two things I need to look for to expand. Here's an example file: program.c.lit: ============== Some comments in the source file that I ...
-3
votes
0answers
10 views

Arrays in Fortran

I was trying to plot y=sin(x) but I made a mistake somewhere in my code and I can`t get any data for y. I get zeros both for y and x. Can you help me in identifying the mistake please? program ...
-4
votes
1answer
21 views

Why use database versus a data structure?

Why is it better to use a database with web server instead of using a data structure on the actual web server for a web application.
-4
votes
0answers
12 views

What language/engine to use for 2d indie game?

I was thinking about creating a game with gameplay based on free roaming within a 2d grid on the computer. Player/entities will be 2d sprite based. One will be able to transverse between smaller ...
0
votes
0answers
13 views

Architecture for a messaging app

I want to build a messaging app and I'm struggling with architecture here. What I want to achieve: Rest API for registrations/login Chat server itself, i.e. app which will allow clients to connect ...
1
vote
1answer
29 views

How to tell node.js which javascript code runs on server vs client?

I am trying to learn the theory of node.js but can't seem to figure out how node.js knows whether to pre process it on the server or send it to browser for execution.
2
votes
3answers
72 views

Why would the switch from C# to scala make sense in order to take advantage of scala's functional capabilities?

What is the benefit of using functional program for large scale software projects? I have heard it is pretty performance equivalent to regular OOP. I also have heard that it is more "mathematically ...
0
votes
1answer
19 views

Permutation tests for large sequences

I would like to perform a permutation test on a particularly large data set, i.e. around 4 million entries. Basically, I need to get some number of random permutations of this data set. Usual way to ...
-6
votes
0answers
17 views

Why does Mandrill take longer when sending mails from my domain? [on hold]

I'm using the same api for sending mails from localhost and from my hosted domain. The mails are delivered much quicker when sending from localhost. Any reason why this might be so ?
-6
votes
0answers
15 views

How do I have my navigation bar scroll down too when users scroll down. Kind of like the navigation bar never moves, it just stays fixed [on hold]

How do I have my navigation bar scroll down too when users scroll down. Kind of like the navigation bar never moves, it just stays fixed. Here's the code in question: <DOCTYPE HTML PUBLIC> ...
2
votes
0answers
61 views

Frog crossing N lane road problem

Problem says that: There are N lanes, and the speed of each lane is given. There are many cars in all the lanes and the start position and the length of each car and its corresponding lane is ...
-4
votes
0answers
19 views

Python book with lots of examples and exercises [on hold]

I have done a course on fortran in college and I want to learn python. I would like a resource recommendation with lots of examples and exercises. More or less in the style of the C book Ritchie and ...
0
votes
3answers
40 views

How to maintain view-related information in MVVM and may I store this in the model?

I have an ongoing discussion with some colleagues on how to manage the views to our model. We've got a model which may be represented by many views. Let's say we've got some data that is stored in an ...
-3
votes
0answers
19 views

Remove portion of string TSQL [migrated]

I have a string of numbers that I need to trim a portion from using TSQL. The string of numbers will always start with a 101 then it will have a set of 0's and a set of random numbers. Example: ...
-2
votes
0answers
23 views

Programming advice with DFHack

Me and a Friend are looking to develop a plugin for the DFHack console of the popular game Dwarf Fortess. Pretty much what we had planned out was a way to utilize multiple cursors, or a way to make ...
3
votes
4answers
180 views

When is an API considered to be an embedded DSL?

What is the difference between an API and an embedded 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 ...
2
votes
1answer
41 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
0answers
54 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
20 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
64 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 { ...
1
vote
2answers
69 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
77 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 ...
3
votes
1answer
83 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
30 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 ...
-3
votes
1answer
54 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;??
-2
votes
1answer
29 views

Reverse a queue using an extra queue [on hold]

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
261 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
212 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
25 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
101 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
21 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
0answers
46 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 ...
-6
votes
0answers
28 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
27 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 ...
-5
votes
0answers
76 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
23 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
34 views

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

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
52 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
34 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
52 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
38 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
40 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
87 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" ...
4
votes
9answers
629 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
40 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
49 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
107 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, ...

15 30 50 per page