-8
votes
1answer
113 views

How would we compile our code if all binaries would disappear? [on hold]

How would we compile our code if all the binaries in the world would disappear and we would only have the source code? First you would think it's all OK I have my Roslyn code here, but wait! It's in ...
0
votes
1answer
73 views

Multiple if in comparison function vs chain of || or && [duplicate]

I'm writing a function (or operator==() in C++), comparing two objects. The code looks like this: bool operator==(const Obj& copy1, const Obj& copy2) { if(copy1.a!=copy2.a) return ...
-3
votes
4answers
84 views

Time complexity of this loop [duplicate]

Is the time complexity for this loop O(n) or O(log n)? for(i=0;i<n/2;i++){} I am thinking, the time is proportional with the input size.
-4
votes
0answers
38 views

x86 assembly books; but looking for something slightly different [on hold]

Are there Assembly tutorial books that clearly explain the relationships between a high level programming language and the x86 assembly language during compilation ? For example, I know a very good ...
-2
votes
0answers
44 views

What is ERROR 65508 in MS-DOS? [on hold]

Well, In my project am using HP 200lx Palmtop, to control a weather equipment (10 years old). there is BASIC program which controls instrument over Serial Port of palmtop. When I wish to run qb.exe, ...
0
votes
1answer
45 views

Design pattern for mapping data fields

I have seen this problem a few times and never can come up with a solution i like. System A Sales Order Entity order_id created line_items_count System B Sales Order ...
1
vote
4answers
72 views

Use the company style guide or try to match the incorrect source files? [duplicate]

I'm currently working on a large project in C++. The style guide for this language has been well defined by my company and is available for everyone to see. This particular code-base is being ...
-2
votes
0answers
28 views

State of the art on outlining a software system on a startup scenario [on hold]

We are building a new web application with some basic features: users, automated payments, management of media (photos and videos). It is an asp.net mvc web application in C#. I would like to create ...
0
votes
0answers
62 views

How do I model this Shipping Routes scenario?

Trying to begin coding this solution. I have a scenario as follows below: A shipping operator has a network of routes to various ports, the routes are specified explicitly below Buenos ...
2
votes
2answers
88 views

How to use one web page to create and edit database entries

My team and I are developing a java web application which allows our admins to create and edit "methods" which can later be viewed by other users. We are currently discussing the best way to ...
0
votes
0answers
31 views

Design of a Smartcard listener [duplicate]

I have the task to write a listener which detects smartcards inserted into a terminal and notifies all registered classes. The listener needs to be accessible from different parts of a large ...
1
vote
1answer
175 views

Why can a constructor be used without `new` keyword in Javascript?

I found Date can be used without the new keyword. Date(1) > "Thu May 28 2015 15:54:20 GMT+0800 (CST)" new Date(1) > Thu Jan 01 1970 08:00:00 GMT+0800 (CST) I was wondering whether there is ...
1
vote
1answer
73 views

Changing license of personal GitHub repository [duplicate]

I know you can't take someone else's code and change it from GPL to MIT, but if you are the only contributor to a repository can you freely switch it from GPL to MIT?
0
votes
1answer
66 views

Application development with fully dynamic controls and processes based on database

All software development projects are moving into separation of design, logic , data in patterns like MVC , MVVM and others. Strangely i got a very strange requirement for a new software; that is : ...
-4
votes
0answers
26 views

Printing Unicode elements in a loop [migrated]

Consider this: print u'\u2599' I get ▙ something like this, which is what I need But when I try to run it in a loop like this : for i in range(2500,2600): str1 = """u\'\\u""" + str(i) + ...
0
votes
1answer
85 views

Passing same argument to multiple small functions versus doing everything in one big function?

I have inherited a class method from another developer, which looks like below: (Note: Class:X means X is a member of Class in the OOP paradigm.) Class:BigFunction() { ImportantValue = ...
3
votes
2answers
75 views

Identifier vs domain object as a method parameter

Are there any objective arguments for or against using objects vs unique ID as method/function parameters? (and members of other objects?). Specially in the context of statically typed languages ...
-1
votes
2answers
76 views

CI Server vs Build Server [on hold]

Forgive my ignorance, but I'm having a difficult time finding an answer to this. We currently use TFS and a TFS Build server. I was looking at other build server options and was wondering if products ...
0
votes
0answers
56 views

Addicted to Interfaces - Good or bad? [duplicate]

After 2 years of programming, I usually found myself using the following design pattern: public interface ISomeInterface { void SomeMethod(); void OtherMethod(); } public abstract class ...
1
vote
0answers
35 views

What are my options for exposing customization settings to the admin user?

I'm writing a blog system as a learning exercise and I would like to allow the admin/blog owner to select/change some custom options based on features that I choose to expose to them such as: change ...
1
vote
2answers
214 views

Is this the solution to static inheritance?

I've seen a lot of posts recently on why Singletons should be avoided. However, I can't see any of those problems with the following solution to a common problem: static inheritance. For example, I ...
-3
votes
0answers
41 views

Why can't I use the word 'header' in my PHP filenames? [on hold]

Not really a coding problem, but when I saved my file as header.php, it didn't show up on my local server. I tried adding other files, they showed. I changed the name to headerTest.php, still didn't ...
0
votes
2answers
74 views

Middleware dependencies

I'm trying to convert a legacy PHP app to use the middleware paradigm, similar to connect/express.js. I've started porting the code into separate middlewares so that every feature is neatly self ...
0
votes
0answers
25 views

Using Google for full text database search

I have a lot of text and I am storing it in Elastic search. Using Lucene, NLP and Wordnet filters the search is good but not as good as Google's because none of these methods use AI for the search so ...
3
votes
2answers
37 views

How to display/clarify the licence for code in a blog

Let's say I have a blog available under one of the Creative Commons licences. Such type of licence would be displayed at the bottom of each page with a link to the actual licence, etc.. However, ...
2
votes
2answers
90 views

“Hand written” recursive descent parser with “catch all” rule

I'm trying to write a (scannerless) recursive descent parser with a "catch all" rule for the following "Mustache template" grammar (simplified here): content : (variable_tag | section_tag | ...
0
votes
0answers
18 views

Handling image and audio files in iOS

Currently I have an iOS app that downloads image and audio files from a server, but each view controller downloads its own set of image and audio files (This is because each view controller needs a ...
2
votes
1answer
58 views

Storing values in SQL whose types are determined in runtime

I have come across a need of storing runtime determined values in a SQL database. For example, there is a GUI where a user can add new editable fields. So the user adds a field Name, chooses the ...
2
votes
4answers
62 views

If I have a method that needs verification in order to proceed, do I call it inside the method or before? [duplicate]

This has been bothering me. This is more of a pragmatic problem than technical. Imagine I have a SaveOrderChanges method which, as its name implies, will save the order changes when the user submits ...
-5
votes
0answers
38 views

Logic for String Expansion [on hold]

I am new to programming. I encountered a question where I had to expand a string, for example input : a3b2c5 output : aaabbccccc or input : abc5 output : aaaaabbbbbccccc. Can anyone please ...
45
votes
7answers
6k views

Is it good that testers are competing to see who opens more bugs?

I'm a software developer. There is a team of testers who follow and run test cases written by the analyst, but also perform exploratory testing. It seems like the testers have been competing to see ...
4
votes
3answers
230 views

When is an object of real world a (computational) object of your program?

In an OOP design phase strategy, Any physical/conceptual object of a system can be modeled(considered) as computational object in your OOP designed program based on below two conditions: First ...
-1
votes
0answers
104 views

Does there exist a programming language that is designed to be spoken instead of typed? [on hold]

Now that voice recognition technology has gotten really good, it seems like spoken programming languages seem like a viable idea. I was looking for something that currently exists but I could only ...
0
votes
0answers
115 views

Comparing an object with a String using equals() method [migrated]

In the below example, I am expecting equals() to return true: public class flower { String flower; public flower (String flower) { this.flower = flower; } public static void ...
-3
votes
0answers
23 views

ASP Database and Phone [on hold]

I have created an asp server program that uses wcf data services to access a database. I have created a website that correctly uses the services. I would like to create a Windows 7 phone app that uses ...
3
votes
1answer
51 views

Using parameters in automatic integration tests

I am trying to automate integration testing in our team, and I am wondering if making tests with parameters is good or bad design. My problem is that the integration tests should run some perl ...
1
vote
0answers
33 views

Show Log not showing all revisions [migrated]

I have an issue with Subversion not showing all revisions I'd expect to see when I look further down in the directory tree. Let this be my directory structure: trunc |____ src ...
0
votes
2answers
116 views

What is the difference between an abstract method and an interface [duplicate]

An interface requires implementation of the specified functions in a class that implements the interface. An abstract function from an abstract class requires implementation in a class that extends ...
0
votes
0answers
14 views

Cascading ACL and drill-down data architecture

I want to implement a drill-down data architecture based on the data and the ACL permissions of a user. Lets say we have data of employees of an organization and lets consider the hierarchy as ...
-5
votes
0answers
37 views

Ambiguity with instanceof in Javascript [on hold]

My question is about the following code: var name=new String("NewDelhi"); var count=new Number(10); console.log(name instanceof String); //false console.log(count instanceof Number); //true When I ...
0
votes
1answer
80 views

What are the time and space complexities of this recursive method that reverses a singly linked list?

What are the Time and Space complexities of this Java method that reverses a singly linked list (of length n)? I'm more interested in knowing the reasoning behind the space complexity. Let me know if ...
1
vote
1answer
131 views

What would be the best way to implement priority based programming without adding too much of if-else processing logic

We need to add priority based programming in our application using java programming language. For example, there are three priorities that a phone can have: A1, A2 and A3. Also there can be three ...
-5
votes
0answers
26 views

Can't turn on my computer in Android [on hold]

I'm trying to develop an application which will enable to turn on computer using my phone in android the problem is I can't send the command. Every time I send the command it brings an error. I have ...
-1
votes
0answers
42 views

Understanding multi-threadiing PHP (pthreads) [on hold]

I am trying to understand multi-threading in PHP using pthreads via reading this article: https://gist.github.com/krakjoe/6437782 , but all the concepts/terms are going over my head. Such as mutex / ...
0
votes
1answer
102 views

Design: Bridge Game

I'm making revisions to a Console version of contract bridge I made in Java. The source can be found here: Bridge So most of the code is terrible and I've been trying make improvements wherever ...
-4
votes
0answers
37 views

Looking for a complete tutorial for X11 Programming [on hold]

As in title, I'm looking for a good and complete X Windows System tutorial. I found these but they are incomplete : Linux Journal and Tronche Any suggestion will be appreciated.
0
votes
0answers
39 views

Does loop unrolling on a JIT platfrom (.NET or JVM) provide any benefit

I know in C, you can use loop unrolling (unwinding) to help reduce branching in your code but at the expense of program size. That seems to work when you compile to a target machine, however, does it ...
-3
votes
0answers
36 views

How can i loop through string of phone number and remove the leading zero and replace with country code? [on hold]

Example: I want to replace each leading zero (0) of the phone numbers with "233"; $pn_box='08064342060,08052031697,08064342060'; Though I tried doing it this way but it converts only the first ...
1
vote
5answers
335 views

Should I use a source-to-source or a traditional compiler in order to develop my own Programming Language?

I'm really interested in writing my own general-purpose high-level programming language, but I'm somewhat confused. I know that Python and Ruby were written in C, but that makes me wonder: "If I want ...
-3
votes
0answers
51 views

become a better programmer - advice for finding a project [on hold]

I would like to find a project to work on for at least a few months, and I am having trouble committing to an idea. I have a game project I'd like to work on using the unity engine, but I know its a ...

15 30 50 per page