-1
votes
0answers
5 views

Multiple methods in single test case

I am new to Junit. I have a class with four methods. I am creating a test class with test cases. Can I have a test case that uses more than one methods of testing class or there should one test case ...
-2
votes
0answers
20 views

Preparing for a 3 hour interview for a different kind of role

I'm currently working as a Haxe game developer and I've been there for 2.5 years. The current manager and I don't get along too well so I'd like to move on. I'd also like to get out of the gaming ...
0
votes
0answers
14 views

Writing a container that treats nearly-identical images as the same

I want to create a mapping in Python that will use images as keys, but treat similar (but not identical) images as the same key. I have an approach for deciding which images are similar enough: I ...
-3
votes
0answers
19 views

Why are JavaScript Frameworks so popular despite the hate?

I've been working with frameworks like AngularJS for a bit and I've had my frustrations, but I know JS frameworks are a popular way to go about constructing a web application so I'd like to keep ...
4
votes
3answers
169 views

Should a method be forgiving with the arguments that are passed in?

Suppose we have a method foo(String bar) that only operates on strings that meet certain criteria; for example, it must be lowercase, must not be empty or have only whitespace, and must match the ...
0
votes
1answer
18 views

building web apps using exclusively cli api

I've seen this in many web apps, like trac, gitlab, and some cms even. There are cli tools besides normal admin panel. It got me wondering, isn't it a good idea to build a whole web app based on ...
4
votes
0answers
54 views

How to transition one's career to an alternate stack [on hold]

I have a problem that I suspect a lot of people in more "senior" positions have. The problem is how to get a job in a different technology stack without "starting over." I've been a full stack ...
-6
votes
0answers
32 views

Using algorithm from open source project

If I clone an open source project from github or anywhere else and learn something about the way I can solve some problems and other stuff about programming , can I use that knowledge ???? and also ...
2
votes
2answers
199 views

Is it better to store data in a small, unreadable format, or a large, readable format?

I'm often conflicted when creating a project that requires manipulation of data in files. Often times, I store data in a readable format, like JSON, as seen below: { "Project 1": { ...
6
votes
1answer
86 views

What is the term for an anonymous JavaScript function that's called immediately?

I'm writing a JavaScript style-guide for my team, so that we can organise and contribute our documents easier. But I've hit a small bump which is where my question applies... What am I supposed to ...
1
vote
1answer
79 views

Is it bad to store data in JSON form or should I use mySQL?

I've been building an application and the whole thing is built around a simple data storage system. Create an array. Convert it into JSON. Add <?php die() at the beginning to prevent access. ...
0
votes
1answer
16 views

Bounded contexts should contain just domain code?

In Domain-Driven Design there's the idea of bounded context which is basically a way to stablish a boundary within which a certain model is valid as far as I understood. I've found this idea very ...
-4
votes
0answers
9 views

Session issue in codeigniter with subdomain [on hold]

Session issue in codeigniter I used codeigniter 3.0 to develop dynamic subdomain website. I checked the database and noticed a new session was being created on every page load.
4
votes
1answer
36 views

Introducing Pull Requests for a 2 person team - merge my own requests?

I'm introducing git to a junior team member (a co-op). They are comfortable now with the basics of adding, committing, pushing and pulling. Now I want to introduce them to pull requests and ...
-3
votes
0answers
9 views

Inserting images from MySQL to listview in vb.net [on hold]

I am having a stuck. I'd like to insert all images from MySQL table to listview in vb.net, but i don't really know how. I'm using a blob for my images. I've already looked up for that on google but i ...
2
votes
3answers
112 views

Train domain specialists in programming, or train developers in the domain? [on hold]

As software developers, we are often told that our job is not to write code, but rather, it is solving problems in a given domain, with code as our tool of choice. This strikes me as the cause of a ...
0
votes
1answer
25 views

Best practice for documenting ports/hardware for embedded project?

I've recently taken an interest in embedded development and am wondering how most people document their projects. For example: Each pin on PORTE is wired to an LED and is aliased as LEDPORT. ...
1
vote
2answers
38 views

Portable (No)SQL-database, pure XML or something else?

I'm currently planning out a desktop-application that is used to organize stuff. I want to open source it on one point and I want to use and embrace open standards for everything. There is just one ...
1
vote
1answer
18 views

Regex backtracking on simple pattern

I've got this code in Mathematica that fetches the left or right side of an equation by turning it into pure text then textually getting rid of the other side through regex. I've isolated the faulty ...
-1
votes
0answers
17 views

Method passing integer value not responding for java GUI

I am doing two separate program, one is call MyNoteCenter and the other one is call SocketServer In MyNoteCenter, there consist of this portion of program if(e.getSource()== btn2) { ...
-1
votes
2answers
39 views

Integer conversion with Console.ReadLine()

To read a integer form keyboard I will use: int number = Convert.ToInt32(Console.ReadLine()); But why won't this work? int number = (int) Console.ReadLine();
0
votes
3answers
86 views

C# — Is there a key/key lookup table type provided in .NET?

It seems like a pretty straightforward thing to add, but I just want to be sure .NET doesn't already provide one and save me from adding unnecessary code: I need a lookup table (like a Dictionary) ...
1
vote
1answer
24 views

Qt/QML/C++ Application database connection object visibility

I am working on some Qt/QML/C++ app and I've got myself into some kind of dead end. Namely, this app uses mysql database and here is my questions: Is performance hurt if I instantate new database ...
-1
votes
0answers
29 views

How to get that very first programming job? [on hold]

I go to a crappy school, where we spend the first week learning about println and the second week how to create a variable. It feels very ap computer science like. I am about to graduate and I feel ...
0
votes
0answers
6 views

How does Xcode communicate with an iOS device? [migrated]

I can plug in an iOS device and tell Xcode to run my app on that device or stop it. I can have the app paused at any time and use the debugger to debug the running app. How is this all possible? There ...
-2
votes
1answer
57 views

How does not having a college degree affect a programmer's resume? [on hold]

In the medical field, one can't learn things on his own / prove his skills through self-practice obviously because he needs advanced experience before he can be qualified to practice his craft. All ...
3
votes
0answers
35 views

Strategy for OS X and downlevel version of C++11 library?

I think I've found myself in a situation where things are quickly spiraling out of control, and I'd like to get some feedback to select a way to proceed. BACKGROUND I'm working with a library based ...
1
vote
2answers
34 views

Good practice to save the last time user accessed the app

Using a JWT authentication, the user doesn't have to log in each time he uses my app. I would like to save in DB the last time the user used/opened the app. Technically, I have a set of REST API ...
1
vote
2answers
59 views

How do I write a proper messaging protocol?

I need to write a messaging protocol between client and server for a game application. I need to send messages back and forth such as, Player joined a game, player left game, player performed this ...
2
votes
1answer
17 views

Proper use of the GPL when using a library covered by an older version

I have a piece of software that I have been working on for a while now. You can find it here. Since it is now at a stage where it could potentially be useful to other researchers, I decided to cover ...
0
votes
0answers
3 views

NameError on executing 'rails s' [migrated]

I just started this tutorial for Rails. I just created the app and was going to test the default welcome page and this happened: D:\Programming\Rails Projects\simpleCMS>rails server ...
2
votes
0answers
16 views

Misunderstanding about “Evidence Based Scheduling” in estimation tasks

I read the Spolsky blog the post with title "Evidence based scheduling" (http://www.joelonsoftware.com/items/2007/10/26.html) but I don't understand the mechanism to predict and estimate ...
-6
votes
1answer
37 views

How to be Quiet And Communicate in programming team [on hold]

Be Quiet in work is necessary specially in programming team But Communicate is necessary too How you communicate with your team with respect to quietly office? Absolutely you know that then you start ...
-1
votes
0answers
39 views

How to send a string value from client side to server side?

I am developing a client server program which consist of combo box for user selection in client program. After the client make his choice, the download button will send the request to my server ...
4
votes
4answers
150 views

When did Undefined Behavior in C jump the causality barrier

Some hyper-modern C compilers will infer that if a program will invoke Undefined Behavior when given certain inputs, such inputs will never be received. Consequently, any code which would be ...
-3
votes
0answers
19 views

Pygame for Intel processor

I downloaded Python 3.4 64 bit IDE and pygame but whenever I tried installing pygame it would say "Not supported on Intel". So are there version of pygame available for Intel processor or are there ...
0
votes
0answers
8 views

Why does Service can't access the @Value in SpringMVC? [migrated]

I have access the file.properties by @Value and <context:property-placeholder location="classpath:file.properties"/> in Controller: @Controller public class SomeController{ @Value("${name}") ...
2
votes
1answer
22 views

Abstract/encapsulating session superglobal usage inside common accessor class

I am in the process of removing direct dependencies from an existing project. I have now come to removing the direct use of $_SESSION inside scripts. This is to make the same scripts available for an ...
-4
votes
0answers
17 views

Calender recurrence logic with daily/weekly/mothly patterns [on hold]

I'm working on a Webapplication, which stores the data of Fueling system in a periodical manner. i have fuel table in my Sql server DB, which normally stores the fueling details. ...
2
votes
1answer
28 views

Time attendance module design

I am working on time attendance module and I managed to read the data from the timing machine in the following format: Id CheckIn Type Status 0000142 5/15/2015 6:00 PM 2 OK ...
0
votes
0answers
16 views

Open source license to prevent publishing Android application with modified name or package

I've written an Android application and I want to publish it as a FOSS application, however, I want to restrict others from publishing it in Android markets (e.g. Play Store) with only changing the ...
-1
votes
0answers
51 views

Student Attendance Database - Circular reference [on hold]

I would like to store student attendance in table where I have created two attendance_master and attendance_detail tables. Similarly I have enrolled_master and enrolled_detail tables where students ...
1
vote
2answers
126 views

Why Java does not have a framework like Rails? [on hold]

I am a Ruby on Rails developer and I like its simplicity and rapidness. On the other hand we need to use Java for some projects that we develop for our clients. My question is why (pure) Java does ...
4
votes
1answer
77 views

A real-world use case for triple dispatch

A few times in my career I've encountered design problems that couldn't be elegantly solved with single dispatch and required double dispatch (which I implemented using visitors). However, I've never ...
1
vote
0answers
33 views

Refactoring to avoid circular references

I'm working on an ASP.NET MVC solution that has two projects, WebUI and DAL. WebUI references DAL. DAL has the repository and context, while WebUI contains Authentication and Authorization classes. ...
1
vote
0answers
34 views

Expert advice needed for a NoSql Database

At our company, I have been given the task to develop a Mobile Application (iOS, Android and in the future, maybe Windows). Given those devices, it's likely that we'll have a high number of ...
-2
votes
0answers
19 views

RESTful web service in Jersey

Im creating a RESTful web service through Jersey. I followed the guide http://javapapers.com/java/restful-web-services-with-java-jax-rs-using-jersey I created the web service as mentioned in the ...
-2
votes
0answers
21 views

Beginner Programmer: Mac XCode Errors [on hold]

I'm a totally new programer (just started yesterday), and I was working through the c plus plus manual here: http://www.cplusplus.com/files/tutorial.pdf and it works fine. However, when I tried to ...
-3
votes
0answers
33 views

Python: How to translate code from 1.5.2 [on hold]

So today I went to my local library because I decided to take my journey with python a step further. Naturally, I logged on to the library's intranet and searched for "Python programming language", ...
-3
votes
0answers
19 views

Segment sieve of Eratosthenes code [on hold]

I got this code to print prime number between m and n and while doing its dry run ,i observed that even if prime is not set to be 1 for composite 4 it gives same result int main(int argc, char** ...

15 30 50 per page