0
votes
1answer
9 views

Version controlling a database's contents

I'm working on a web project that involves user-editable content, and I'd like to be able to do version-tracking of the actual content, which lives in a database. Basically, I want to implement ...
0
votes
1answer
10 views

InteliJ Git vs GitHub for Windows vs SourceTree

So I'm a bit curious as to what is the best practice when using version control. I've been using SourceTree(w/ mercurial) at work but have used as well for my course assignments with (Git). I've also ...
0
votes
0answers
20 views

Arrays List- Programming

In my programming class I have been asked to make a program about solitaire and I have no idea where to begin. The game starts with exactly 45 cards. Initially, they are divided into some number of ...
31
votes
6answers
747 views

Why was the Itanium processor difficult to write a compiler for?

It's commonly stated that Intel's Itanium 64-bit processor architecture failed because the revolutionary EPIC instruction set was very difficult to write a good compiler for, which meant a lack of ...
1
vote
1answer
26 views

Is there any reason not to make a webapp be client-side only?

I recently started writing a path-finding algorithm simulation application in python. It takes user inputs, randomly generates a 2d graph, and shows displays the simulation via GUI. Now, what I ...
3
votes
2answers
1k views

What .NET objects should I use to create a cookie based session in MVC?

I'm writing a custom password reset application that uses a validation technique that doesn't fit cleanly with ASP.NET Membership Provider's challenge questions. Namely I need to invoke a workflow ...
22
votes
6answers
1k views

Does the advent of the SSD have any implication for database optimization?

Today I was browsing through a book on SQL Server optimization and it seemed that a certain amount of the ideas were based on a linear model of storage. As SSDs have a completely different storage ...
1
vote
0answers
41 views
+50

How to determine what should get it's own respective controller?

I'm using the MVC pattern in my web application built with PHP. I'm always struggling to determine whether I need a new dedicated controller for a set of actions or if I should place them inside an ...
1
vote
1answer
28 views

Is it considered good practice to declare base interfaces as immutable, supplying an mutable sub-interface

I asked a question on StackOverflow on how to properly implement an ImmutableMap that abides by the SOLID principles. Due to Java's Map interface containing put and putAll, it violates the interface ...
1
vote
0answers
3 views

Partial Model Updates From View

I hope this is on-topic here since I'm a bit new to the whiteboard... I'm currently developing an application using ASP.NET MVC 5 (and WebAPI 2). One of my domain entities is huge, and is stored in ...
-2
votes
0answers
8 views

Simplest way to parse a title from an HTML file using PHP functions only, no extra classes

So far I've been trying to get a simple way to stract a title from an HTML page. This simple: $url = "http://localhost"; Use any function to extract the title tag using only PHP functions or ...
0
votes
0answers
5 views

Making API calls with celery

I'm designing a system for a client where the requirements are: they upload a JSON file (one object/line) make a call to an API with the JSON object as the payload record the state (success/failure) ...
-2
votes
3answers
56 views

How did “Webservices” become such a buzz word?

For the past few weeks I have been researching a lot about webservices. The more I read about it the less it becomes "magical" to me. By magical I mean all it does is return text in xml or json ...
-1
votes
0answers
11 views

C# Thread Abort hanging in .NET 4.0 but not in .NET 3.5 [on hold]

In VS2013, C#, in Win8, this simple line of code thrListener.Abort(); was just fine in .NET 3.5 but now just hangs indefinitely in .NET 4.0. (I'm a beginner when it comes to multithreading.) I can ...
0
votes
0answers
9 views

Where to keep persistent services in MVVM architecture?

In an MVVM application I need to use some services that are persistent, e.g. network services like P2P and WCF where the main "engine" or server endpoint must remain up and running during the lifetime ...
-2
votes
0answers
22 views

Combining CS and Programming [on hold]

Editing to simplify the question: My original question was trying to understand why so many developers either do not know or simply do not care about lower level concepts. Instead of heading down that ...
4
votes
3answers
486 views

If Scala runs on the JVM, how can it be much different than Java (except for maybe syntax)?

I just learned about Scala yesterday, and I'd like to learn more about it. I'm mostly familiar with Java, so it may not be too much of a stretch to learn it. But one thing that came to mind from ...
2
votes
3answers
573 views

Write data to SQL Server directly from BizTalk or use external service?

An external source will be sending us XML data that BizTalk will pick up and transform into an internal schema. We need this data to be loaded into a SQL Server database as we're going to expose some ...
-2
votes
1answer
54 views

Mermaid problem (OOP)

A Mermaid is half fish and half human. It has upper human body and lower fish body. When under water its upper part swims like a human while its lower part swims like a fish. Please explain how can it ...
0
votes
1answer
68 views

How to deliver messages from a communication interface to a core?

I want to develop an application in near future, where I will receive data via a communication interface. So there exists a Java class, that is responsible for getting the data. After the application ...
17
votes
7answers
7k views

Is it a bad practice to have an interface to define constants?

I am writing a set of junit test classes in Java. There are several constants, for example strings that I will need in different test classes. I am thinking about an interface that defines them and ...
2
votes
2answers
41 views

Sharing info objects between objects?

I'm making a game and I have several cards that are created during the game. Each card needs some info, which is shared between cards of the same type. So I have a class CardInfo, which holds a name ...
2
votes
1answer
32 views

When to use def in Groovy?

I have been developing in Groovy for a little while now and I'm wondering how often I should be using the dynamic casting def? A co-worker of mine believes we should use it always as it helps Groovy ...
1
vote
1answer
35 views

React and simple UI state

I'm starting to playing around with React and have a basic question regarding state. I understand that in React state should only contain data which may change and cannot be computed from elsewhere, ...
1
vote
1answer
233 views

Is this database design good? What JPA Entities should I create for this design?

I am trying my hands on JPA. For this I am thinking of using the example of a student admission process as shown in the diagram below. Is this design good ? Any suggestions for improvement are ...
44
votes
8answers
5k views

Why a static main method in Java and C#, rather than a constructor?

I’m Looking for a definitive answer from a primary or secondary source for why (notably) Java and C# decided to have a static method as their entry point, rather than representing an application ...
1
vote
10answers
6k views

Loops in real-life problems

I'm learning C as my first programming language. I'm confused on how do loops work in real-life. In programming every function has a reason. example - if/else statements are used if we have ...
1
vote
4answers
656 views

Should non-interface code be hidden from the client?

I am working on a library which had several headers that are meant to only be used by the library itself. I also have a few classes and functions in headers that I do not want the client to use. For ...
-2
votes
0answers
12 views

TreeView Selection [on hold]

I am using a Server Side TreeView Control. I want to get the values after the selection of the items present in the treeview. Actually I can't able to differentiate between the selected items that ...
0
votes
1answer
61 views

C#/.NET multithreaded application design

The application to be designed serves as a bridge between two different systems. One natively speaks TCP (RS232 actually, but there's a COM->ETH server in the line of communication) - the other one is ...
6
votes
2answers
2k views

Is “Unit testing” a form of formal method?

After some research, I understand that: Formal method contribute to the reliability and robustness of a design. (ref : Wikipedia - Formal method) Unit testing ensures us of the absence of errors ...
-2
votes
0answers
11 views

Java SWING: JList holding multiple Components as a single item

Here is my problem: I'm creating a window that is responsible for listing a layer, where it displays the layer's current image (in the form of a ImageIcon as of now), layer's name, and a checkbox to ...
-1
votes
0answers
5 views

How do I save directory information from os.execute(“dir”) into a string? [migrated]

Is it possible to save the directory info obtained from os.execute("dir") into a string form? So in the directory <DELL> I have the files info.txt and readme.txt. I want to use ...
14
votes
7answers
1k views

Why big internet companies (Google, Facebook, Twitter, etc) going open source way?

These very large internet companies using, developing, and promoting open source technologies like crazies. What is the rationale behind promoting and developing open source tools and technologies ...
1
vote
2answers
218 views

In C++, should I ever declare a local variable in the corresponding header?

So for example, I create a class with two functions: foo.h class foo { public: foo(); void bar(); void ey(); bool m_memberBool; bool localBool; // ??? Should I put this here? }; ...
-2
votes
3answers
22 views

Finding the sum of columns in a Two Dimensional Array with rows of different lengths

So i'm having a bit of trouble with my code in returning the sum of the columns in a two dimensional array with rows of different lengths. For example a 2X2 array works perfectly to calculate the sum ...
0
votes
0answers
14 views

Android runtime - does ART miss optimization opportunities over Dalvik?

Is ART a strict improvement over Dalvik, or there are optimizations that an ahead-of-time compiler will miss compared to JIT, but Google decide they don't matter in practice? For example, with JIT, ...
0
votes
0answers
44 views

Using WiFi USB dongles or other technologies to send non-WiFi data wirelessley in Java [on hold]

I'm currently trying to figure out a good solution to make a new kind of peer to peer network. I need a hardware protocol (ie. USB, Ethernet, Wifi, etc.) that is easily accessible from Java, probably ...
0
votes
1answer
50 views

How can I avoid an SDK requirement for an end-user unless he uses a specific function? C#

One of the modes of my program uses Microsoft Kinect but the user may never decide use that mode. I want to make it so the libraries for that functionality are only looked for and loaded if he uses ...
-6
votes
0answers
19 views

how do you make an os? [on hold]

What exactly is an os, and how can I program an os?
0
votes
0answers
13 views

Polling more recent / active items more frequently

I'm setting up a service that is meant to query, via a rate-limited API, a number of posts in real-time. Now, some of these posts can be several months old, and they should really only be queried, ...
1
vote
1answer
37 views

Down Sides to Using Properties as Opposed to Method Variables

I am debating the pros and cons of a couple of utility classes I have. The classes have a couple of properties which are set prior to calling the class methods. However, I was wondering if there are ...
-4
votes
0answers
19 views

The design and implementation of a programming language [on hold]

I study computing, I have to create a language in ANTLR 4 and the implementation should be a compiler or interpreter. Have anybody an idea what kind of language can I create????
-3
votes
1answer
29 views

Is it possible to use C and C sharp together? [on hold]

I have tried reshearching this question but couldnt find ant luck. Is it possible to start a project using C Sharp and C together?
-4
votes
0answers
13 views

Including trail period and paid version in the software [on hold]

I am have few questions about the software launch I have built my software using Java, and Converted it to .exe setup using Excelsior. I want to include trail period/paid version in my software, ...
2
votes
1answer
67 views

Should I consider uncertain future requirement while development? [duplicate]

I have one text box across multiple pages which is used to enter multiple customerids (as comma separated) . But in current page due to some subsequent implementation difficulties we make it as ...
0
votes
0answers
33 views

Lag problem for a simple game in Java on Linux [on hold]

I am using Ubuntu 14.04 and openjdk-7.I am working with Eclipse. I made a snake game in java on Ubuntu but there is a lag problem with the game.The lag is happening in openjdk-7 on Ubuntu 14.04 and ...
1
vote
3answers
207 views

Object creation: when should I expose a factory vs wrapping class?

I am having some problems trying to figure out when to use a factory or to wrapper class. This question is slightly geared towards C# I guess, so I'm not sure if this is the correct place to ask. Say ...
38
votes
3answers
3k views

When should I use event-based programming?

I have been passing callbacks or just triggering the functions from other function in my programs to make things happen once tasks complete. When something finishes, I trigger the function directly: ...
1
vote
1answer
139 views

Generics in C# Test Class

I'm learning about unit testing in C#. Languages_Service and PlaceOfWork_Service are classes for SOAP services which Microsoft Navision generated for me. There are several methods that are very ...

15 30 50 per page