0
votes
1answer
17 views

Structuring an application that reads from a .properties file

I have a Java app with three classes: Foo, Bar and Baz. All three depend on a bunch of what are currently constants defined in each class in order to determine how to run. On top of that, Baz ...
48
votes
11answers
4k views

Should the commit history be used to convey critical information to developers?

Recently a conversation came up during a meeting regarding the rollback of a third-party SDK from the latest version and it was noted that the fact it shouldn't be used was already in the commit ...
0
votes
0answers
8 views

What time should be recorded against story points in order to determine velocity

We recently tried to correlate the hours spent on a sprint against the stories assigned to the project (to try and get an idea of velocity). However our recording system only allowed us to put time ...
-5
votes
2answers
35 views

Why use database versus a data structure? [on hold]

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.
1
vote
3answers
140 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
2answers
113 views

Website Internationalisation approaches

I'm currently working on a project that the client wants to deliver to different countries. The application is a website. We started out using resource files to change the text the user sees when ...
2
votes
1answer
100 views

how to process document state transition?

Imagine there is an application (ASP.NET MVC) that processes some documents. The document must be revised several times by different group of users. state/role rules: simple user can only publish ...
2
votes
0answers
31 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 ...
-5
votes
0answers
24 views

Arrays in Fortran [on hold]

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 ...
0
votes
1answer
23 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 ...
-7
votes
0answers
24 views

What language/engine to use for 2d indie game? [on hold]

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 ...
2
votes
1answer
46 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 ...
12
votes
7answers
1k views

How does a CLI-oriented programmer's workflow differ from a GUI-oriented one?

I've heard a lot about the advantages of doing less programming work in GUI apps and using more command-line tools (especially with regard to getting things done more efficiently). However, since I ...
0
votes
1answer
318 views

Front-end structure of large scale Django project

Few days ago, I started to work in new company. Before me, all front-end and backend code was written by one man (oh my...). As you know, Django app contains two main directories for front-end: ...
1
vote
0answers
71 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 ...
0
votes
0answers
19 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
44 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.
1
vote
3answers
44 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
1answer
96 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
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: ...
4
votes
4answers
270 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 ...
-6
votes
0answers
18 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 ?
-7
votes
0answers
17 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> ...
27
votes
3answers
15k views

Programming SOLID Principles

Over time I could understand two parts of SOLID – the “S” and “O”. “O” – I learned Open Closed Principle with the help of Inheritance and Strategy Pattern. “S” – I learned Single Responsibility ...
3
votes
4answers
247 views

Which language introduced the idea of private (hidden) variables?

I know C++ had private variables inside classes, and Java, C#, Javascript, and others picked up on that and ran with it. Aside from variable scope, most languages before that just made everything ...
-4
votes
0answers
20 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 ...
-2
votes
0answers
27 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 ...
0
votes
2answers
75 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. ...
1
vote
2answers
51 views

Architecture for application-wide diagnostic-gathering tool?

My product owner wants us to report more information on the state of the product when a user contacts customer service through an in-app form. The form eventually results in an email being sent to a ...
6
votes
4answers
229 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); } ...
0
votes
1answer
84 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 ...
0
votes
1answer
73 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 { ...
-5
votes
0answers
62 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
-6
votes
0answers
34 views

On Demannd PostgreSql 1:M Database Synchronsation for Selected Tables [on hold]

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 ...
-1
votes
0answers
21 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. ...
3
votes
0answers
81 views

Programmatically manipulate expressions accounting for operator precedance

There are times when an expression becomes confusing because of implicit operator precedence. Take this Python expression: a, b, c, d = range(4) e = a + b // c << d >> a ** b or a + c * ...
6
votes
6answers
7k views

Which language is best for OpenGL?

I have the following list of languages: C++ C# VB.Net D Delphi Euphoria GLUT Java Power Basic Python REALbasic Visual Basic I would like to know what people think is the: Best (most efficient) ...
1
vote
0answers
24 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
1answer
31 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 ...
1
vote
1answer
272 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 ...
-2
votes
1answer
30 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 ...
2
votes
0answers
48 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
1answer
58 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;??
4
votes
5answers
10k views

Real-time chat in Ruby on Rails without owning a server

I'd want to implement a Real-time chat for my Rails app but I can't really host the server which handles the sockets. I've tried Faye but it needs a server. I've also heard of pusher but it's limited ...
18
votes
6answers
3k 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 ...
-1
votes
0answers
29 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 ...
2
votes
2answers
106 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 ...
2
votes
3answers
788 views

Architecture strategies for a complex competition scoring system

Competition description: There are about 10 teams competing against each other over a 6-week period. Each team's total score (out of a 1000 total available points) is based on the total of its ...
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
1answer
176 views

Should we call Web API from MVC application in same solution?

I am working on a project in MVC that has mobile application so one thing is clear that we have to use Web API so it can used in mobile application. After creating API when we started to develop Web ...

15 30 50 per page