0
votes
5answers
175 views

Is it difficult to develop a programming language which is closely related to human language? [on hold]

Will it be difficult in developing a programming language which is much more closer to our language ? It was just to know the view of programmers across the globe towards the natural programming ...
1
vote
2answers
74 views

TDD with repository pattern

In my new project, i decided to try with TDD. And in very beginning I encountered a problem. First thing that i want to do in my application is to give ability to read data from data source. For this ...
-2
votes
0answers
12 views

Hi i'm a java developer planning to develope a software for my new medical shop. Which framework shall I use. [on hold]

Sir, I'm a Java developer setting up a medical shop @ my location , Since i'm a J2EE developer i'm planning to write a s/w to maintain my medical shop's daily transaction and stock maintenance and ...
2
votes
2answers
61 views

AGPL - If I modify the source code do I HAVE to distribute it?

I am looking at extending/modifying a web application licensed under AGPL for my own business. The program that I am modifying doesn't interact with the public, but with my employees who will be using ...
1
vote
3answers
120 views

Checking a record is due based on the 'occuring' field

I have records that have dates against them and an occurring field that contains none,yearly and monthly id status note date last_updated occurring 1 open --- 01/01/2011 ...
2
votes
1answer
161 views

If MVC is “Separation of Concerns” than why was Razor Syntax introduced?

My question is related to MVC design pattern and Razor Syntax introduced by Microsoft. While learning MVC design pattern I was told that the idea is based upon a principle known as Separation of ...
-4
votes
0answers
31 views

Minimal number of extra points that should be added to create at least one square [on hold]

You are given an array of points on the plane. What is the minimal number of extra points that should be added so that you could create at least one square using four of the points from the resulting ...
1
vote
1answer
23 views

License of library used by one library include in my project

I am developing a small project to sell and I have used several Java libraries, mostly with LGPL or Apache 2. And I have one question, for example, I am using jasypt, wich is an Apache 2 license ...
3
votes
1answer
196 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
2answers
618 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. As you know, Django app contains two main directories for front-end: /static - for ...
-2
votes
0answers
32 views

Can anyone help or knows how to insert fingerprint template to MYSQL?

Can anyone help or knows how to insert fingerprint template to MYSQL? I have a digital persona 4000B and I have the SDK of it, but it finds me difficult to use it, the SDK have its own database and I ...
-1
votes
0answers
15 views

Accessing file from FTP server works for all but one file

I have an application setup on a FTP server. When users access it, it downloads some files (also hosted on the server) needed for the install. I have a problem with only one of those files ...
1
vote
2answers
188 views

How to Keep Track of Thread Safe Code in a mostly Thread Unsafe Legacy Rich C++ Code Base

For large legacy C++ code bases, notions like Herb Sutter's "const means threadsafe" don't seem to help much, because there can be an overwhelming amount of code in const functions which are modifying ...
5
votes
2answers
1k views

Context class in Strategy pattern

I'm trying to understand the strategy pattern and asking myself: is the context class must-have or can I leave it out without compromising pattern's purpose ? I was under the impression I needed some ...
0
votes
3answers
53 views

Java Ceil Weirdness

Why does this output 0 instead of 1? System.out.println((int) (Math.ceil(1/2))); While this one correct outputs 1 System.out.println((int) (Math.ceil((double) 1/ (double) 2))); Shouldn't ...
-1
votes
0answers
19 views

Host Application Online, Only Download Newer Version [on hold]

Excuse me if this is not technically a programming question but I've spent the last 2 weeks on this to no avail. I want to host my application (vb.net, winform) on a web server, embed the application ...
9
votes
4answers
58k views

Initializing char array with string

I don't remember how I got to the thread, but I was reading its replies and one of them states that you should never initialize a char[] with a string literal. My question: Is initializing a ...
-2
votes
0answers
20 views

How to architect a media project? [on hold]

I want to architect a project which is delivers media like, video audio image and article In order to successfully architect this, what are all the technology/tools, I should consider? What type ...
1
vote
1answer
28 views

How to export Haxe in HIDE

I'm using Haxe on the HAXE IDE, HIDE. I can simply create code for any language, but I don't know how to export it. It didn't have any export options, and no tutorials explain this. How do I export ...
2
votes
2answers
211 views

What UML diagram should be used for modelling permissions/users/files in Linux?

If I am planning a structure for support testing in Linux, a structure that will contain packages, such files as shell and build scripts, app configurations, DBs, sources, tests and jars for to be ...
0
votes
1answer
60 views

Can most compilers check for errors?

I am a beginner at programming; so far all the compilers I have used can check for errors, and can refer to the line with the error. Are there any compilers, maybe for a certain language, that do not ...
0
votes
1answer
24 views

What are the advantages of a 3 tier environment for SAP/BI development?

I have recently joined a team in which the developers were able to work completely in live production to produce business intelligence products for customers. Recently, management, at the advice of ...
-2
votes
0answers
25 views

Function with multiple structure arguments in a multithreaded application using c++11 [on hold]

I get an error doing this: struct S1 { int * A; double* B; std::string* C; } S1; struct S2 { int* D; char* E[10]; float F; } S2; struct SBoth { S1* data1; S2* data2; } SBoth; bool ...
1
vote
2answers
95 views

Should we refactor our existing codebase to use functional programming, especially streams?

We have a large project written in PHP. It almost exclusively uses imperative operations, as in example 1. Should we refactor our existing code to use functional operations? Do you think that the code ...
1
vote
1answer
93 views

Long running task initiated in the web site

The plan is to develop generic solution for long running task initiated in web site by users such as: 1. upload large file and do some custom processing and then insert in the database. 2. export ...
-1
votes
0answers
38 views

What are the prerequisites for SICP?

What is the complete list of materials to go through to read SICP and do all the exercises without getting stuck in the non-programming stuff for someone who only has high school education? By ...
-2
votes
1answer
49 views

C++ Game developer paths? [on hold]

I've been looking around the internet for a while, I've learned c++(basics), i have learned the basics in SFML, but now i have a couple of questions that still remain unanswered. My ultimate goal ...
0
votes
3answers
71 views

where should put showSchedule method in school system

In my school management system I have this partial class diagram: 1- In one use case student want to see his schedule of classes in week. this is what i suppose to do: get student object from ...
1
vote
2answers
99 views

Naming self or this something else, a good idea?

I'm finding that my code becomes more readable when I make a local reference to this/self, and/or call it something that makes sense in the context. "self" or "this" doesn't really indicate what kind ...
0
votes
1answer
116 views

Strategy for creating a websocket relay?

I own a Raspberry Pi and would like to use it as some sort of websocket relay, so that all people who visit a specific webpage would be able to communicate with each other. The key thing about this is ...
-1
votes
0answers
27 views

Conventions for Object Oriented Programming [on hold]

I would like to read up on all of the programming practices for object oriented languages. The problem is, I don't know what they are called to research them. I hope this is not too broad of a ...
2
votes
1answer
76 views

Silverlight-based “area of influence” algorithm

I am in the process of developing a tool for a game called MechWarrior: Online which defines a map of an area of space called the Inner Sphere. Essentially, this map is a set of points (planets) on a ...
0
votes
2answers
42 views

Workaround for unit testing Core Data in Swift

I am still pretty new to programming, but my first app was recently approved and is now for sale on the App Store. My app uses Core Data and is written in Swift. After some initial difficulties, I ...
0
votes
1answer
20 views

Design Pattern for Cron/Schedule in MongoDB

I am looking for a good pattern to handle cron-type data in a MongoDB collection (or collections). I have been peeking at the O'Reilly book MongoDB Applied Design Patterns and poking around the ...
0
votes
1answer
111 views

String[] args vs (String . . . args)

When programming for android, whenever I use an AsyncTask the doInBackground method looks like this. protected String doInBackground(String... args) But when using the arguments anywhere in that ...
-1
votes
2answers
58 views

Creating a language for the virtual machine of another language: compile to that language or compile to the byte code?

I want to create a compiler for language - Call the language, "A". I want my compiler to compile code, capable of running on language B's virtual machine. Would it be a better choice to compile ...
0
votes
0answers
51 views

Extend Class vs Traits vs - passing Instance to Constructor

I'm working on a project and I've built my classes in 3 ways, I'm after opinions on which you think should be used, and why. I have a Finder class. This essentially builds a path, based on the Finder ...
-1
votes
2answers
45 views

Converting List of objects to an Array of Strings

In my main class, I have: List<Person> allPeople = new ArrayList<>(); Then in the class I have a method which returns a String array of all the Id of people (Person has an accessor method ...
0
votes
0answers
38 views

How to pull images in a timely manner [on hold]

I have an iOS app in which I pull images from a server and display them for the user. It's "feed" style app that is image heavy (think facebook, instagram, etc.) I'm trying to keep the images under a ...
-4
votes
0answers
24 views

How do I create the windows explorer kind of search bar with QT [closed]

I am currently writing a program with QT using sqlite database and I need to write code to query the database and I want it to be like the search bar in Windows. such that as the user types, it brings ...
1
vote
1answer
50 views

Solving a Sudoku variant with an unknown element

I recently stumbled upon a special Sudoku variant and am now struggling to effectively solve it programatically. Consider the following initial 6x6 grid: The rules The red question mark is ...
3
votes
1answer
81 views

What is the best way to format complex SQL queries in Node?

I am using node-mysql to query a MySQL database via Express and Node. My queries are getting fairly complex and I want to format them across multiple lines. However, the only way I could accomplish ...
0
votes
1answer
34 views

MVC: Inserting a view from a SubController to its Parent controller

I have 2 controllers: 1 top level controller,MainController, and a SubController, which MainController has an instance of and controls. The SubController has a Subview which goes inside the MainView ...
0
votes
5answers
152 views

Why C language is taught as the basis of Computer Programming Languages? [duplicate]

I often wondered why C Language is taught as the basis of programming languages everywhere. There are a lot of modern languages like Java, Python etc. which makes the syntax and programming easier. ...
0
votes
3answers
33 views

Event Driven Objects/Framework on the Web [on hold]

I am a desktop developer moving to web development. The guys who I am working with use procedural PHP, and coming from an event driven, objectified perspective (using WPF and C#.Net) I am completely ...
2
votes
1answer
125 views

NodeJs website webapp architecture

I would like some advice on how best to architect a website comprising the following: tool a landing page, open to the public, main marketing tool the main website/app, that people can access only ...
0
votes
0answers
35 views

User interaction on a website without requiring registration nor captcha

Are there succesful ways (i.e. non spammed by 1000 bots per second!) to propose some user interaction on a website such as : Voting up / Voting down / Liking posts Posting comments but without ...
-3
votes
0answers
19 views

Java program to build bayesian DAG? [on hold]

Is there any java program (library or stand alone program), which I could use to build and learn a directed acyclic graph(DAG)(a bayesian network) for a given data set except WEKA.
0
votes
4answers
190 views

Haskell's ':' operator

I am currently studying about pattern matching in Haskell from here. The author gives an example of the implementation of "head" function (which returns the first element of a list) as following: ...
-4
votes
2answers
52 views

what does it mean to be a core programmer? [on hold]

I want to know what does the community refers to as a core programmer. What should one do to be able to become a core programmer? In other words, is it possible to do programming in a level in ...

15 30 50 per page