1
vote
1answer
23 views

Behat/Mink: best practice for testing strings in a web application's GUI

I'm writing acceptance tests for a web application using Behat/Mink. I want to know best practice for testing strings in the GUI. For example: say I want to test that a link exists on the homepage ...
-3
votes
0answers
61 views

What must modern web sites have in order to be competitive? [on hold]

It's been more than ten years since I last programmed a commercial web site for anyone, having been focusing more on open source projects, web apps and intranets. But now I got a job where I must ...
-5
votes
0answers
16 views

Is there a tool to improve asp .net web forms automatically change control size [on hold]

I have some web form in asp .net .controls of webform had not size and arranged very well .Is a tool for optimizing size and position control Web forms automatically change there
-4
votes
0answers
56 views

Where can I find a compiler [on hold]

and tried looking for a c compiler. I have tried GCC which is now GNU I think now, but did not seem to work is there any advise people can give to some just looking to start out thanks Hayden
5
votes
2answers
152 views

Is there a Haskell idiom for trying several functions and stop as soon as one succeeds?

In Haskell, I can use the type a -> Maybe b to model a function that either returns a value of type b, or returns nothing (it fails). If I have types a1, ..., a(n+1) and functions f1, ..., fn, ...
-2
votes
0answers
13 views

java.util.ConcurrentModificationException while removing items from collection [migrated]

I am learning Java's Collection framework. I wrote this little program to check why we can't use For-each to remove elements. Code: import java.util.ArrayList; class intro{ public static void ...
1
vote
2answers
163 views

Java difference between String a = null and String a = new String()

It a pretty naive question to ask but I got this doubt while programming for android. I use to initialize my new strings like String a=null, so in my code there remains a probability to get ...
4
votes
3answers
210 views

How can I add properties to subclasses and access them without casting from a superclass?

I'm trying to model a multi-dimensional point class in C#. I have about eight different types of points, and there may be more in the future. Right now, I have a superclass (PointBase) that holds all ...
2
votes
1answer
52 views

How to handle a project in git with the same code but different templates?

I have a project where the only difference are the templates. The question is how should I manage this with git now? At the moment I have 3 different git Repos, but it's hard to maintain all 3 of ...
2
votes
0answers
37 views

Tricky RegEx Lookforward Problem For URLs

I have URLs I am trying to rewrite using apache's mod_rewrite so that authorizations work correctly. Thus I need to be able to use RegEx to match a specific pattern: ...
1
vote
1answer
64 views

Domain driven design with eventual consistency

My domain aggregate is struggling with simple business logic so I feel like I have modeled it incorrectly. The architecture I have right now uses domain driven design with event sourcing. The domain ...
1
vote
1answer
82 views

Web framework in pure SQL

I heard that SQL is Turing complete language (for example: http://stackoverflow.com/a/7580013/2604170) I am just curious if would be possible to create independent web framework like Ruby on rails or ...
0
votes
2answers
65 views

Testing Scenarios More than Once

Is there an industry standard in how many times a scenario is tested before it is considered passed? Is it common to test a given scenario using multiple different records? Here is the issue: A ...
4
votes
1answer
104 views

Dependency Management in the real world?

Most of the examples i've see when watching anything on dependency management hit what i consider to be the holy grail in that the only dependencies on classes are interfaces that the IOC container ...
0
votes
0answers
40 views

Why should I use a Dockerfile instead of a batch script?

I'm new to Docker and feeling my way around. My plan is to build a typical web app using Nginx+Rails+Postgress, all of which will be in the one container. I'm not (currently) doing anything complex ...
2
votes
0answers
60 views

How do I test with multiple input combinations?

I have a piece of code that I need to test, which is layered in three parts: Web API Controller Persistence/Logic Layer System calls for persistence It's the basic GET/POST/PUT/DELETE call system. ...
21
votes
6answers
4k views

Is throwing new RuntimeExceptions in unreachable code a bad style?

I was assigned to maintain an application written some time ago by more skilled developers. I came across this piece of code: public Configuration retrieveUserMailConfiguration(Long id) throws ...
5
votes
3answers
269 views

Does it make sense to use “ys” instead of “ies” in identifiers to ease find-and-replace functionality?

Although grammatically incorrect, when writing identifiers for functions, variables etc. does it make sense to simply append an "s" to plurals of words ending in Y? My reason for this would be that if ...
0
votes
0answers
16 views

SPA with RESTful backend

I'm building an app based on ng-seed which is angular setup with routing out of the box. I'm backing the app with a rest interface of which I aim for Richardson level 3 compliance. Often it seems ...
19
votes
6answers
4k views

How to work with programmer with different preference of indentation width? [duplicate]

I personally prefer 4 spaces for each indentation level, but there are colleagues that prefer 2 and even 5 spaces. We can of course use the same spaces level, but is there a way we can uses different ...
-5
votes
0answers
32 views

How else can I write the following code to generate C code and then the user submits a C file to the database? [on hold]

How else can I write the following code to generate C code and then the user submits a C file to the database? <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ...
0
votes
0answers
21 views

What is prerequisite for Algorithm and Data Structure Analysis and Designing [on hold]

I want to learn Programming, So I want to start this learning program with studying of the Introduction to algorithms book. I'm familiar with C, C++ and ASM Language a little bit, but I can't write ...
1
vote
2answers
58 views

API with limits vs site crawling

I started working on a website,for tracking and rating watched anime/manga/etc. and recommendations, and it should also have an API, for providing the info about series and other things. On similar ...
0
votes
0answers
61 views

A Standard Coding Guideline [on hold]

I have been programming in C, C++ and a few other languages for more then 15 years and been switching companies over that time. I have faced one constant problem, that being the requirement for a ...
-4
votes
0answers
14 views

Ruby on Rails : create web GUI for backup program [on hold]

I'm learning Ruby on Rails these days. Recently I need to create a web application to monitor backup program on Debian Linux, I wonder if it's good idea to create a GUI for it using Ruby on Rails? I ...
0
votes
0answers
12 views

Controller technique with request data in session

I am trying to find out the best possible way to save the POST data in session and making it available in different page requests. For example at website's homepage I have a Search form with ...
16
votes
3answers
2k views

Class with members that are mutable during creation but immutable afterwards

I have an algorithm which creates a collection of objects. These objects are mutable during creation, since they start out with very little, but then they are populated with data in different places ...
0
votes
0answers
43 views

Pointers vs IDs for “context-specific” functions

I need to be able to load, use, and free resources from a single monolithic object. I have two requirements: 1. That the resource loaded is owned by the object that created it and 2. All objects in a ...
-5
votes
0answers
29 views

Object Oriented Programming help [on hold]

I have two classes A and B in android programming, class B extends from class A and implements view.onclicklistner, class A is my base class which is extends from Activity. Now i am trying to ...
3
votes
2answers
67 views

Shared domain model between different microservices

Imagine a scenario of two different microservices. One to handle Authentication within the service, the other one takes care of User Management. They both have a concept of a User, and will talk about ...
-3
votes
0answers
16 views

Please recommend an IDL/RPC framework that works with Java and Python [on hold]

I'm looking for a framework that supports RPC from Java to Python, where the message format can be defined via a simple IDL. My requirements are: Must be high performance Must support streaming ...
1
vote
2answers
52 views

Is it valid to expect/throw an exception using a custom caching system?

Imagine some code like the following: class Cache { private Map<String, String> values = new HashMap<String, String>(); public String getFromCache(String key) { if ...
5
votes
3answers
101 views

What is the most accepted transaction strategy for microservices

One of the major issues that I have seen occur in a system with microservices is the way transactions work when they span over different services. Within our own architecture, we have been using ...
2
votes
2answers
80 views

Incorporating functions into a Shunting-Yard algorithm implementation

tl;dr What would be a simple way of incorporating functions into a Shunting-Yard algorithm implementation? If only expressions like function(arg1, arg2, arg3) were allowed (where function is some ...
-3
votes
0answers
96 views

Can My Algorithm be Patented [on hold]

I developed an algorithm that runs about 1000 times faster than the standard version found in other platforms. I did this while I was doing some work for my company. Is this algorithm patentable? If ...
0
votes
1answer
47 views

Should HTML or CSS files count toward a “lines of code” metric? [on hold]

I was asked how many lines of code my web application contains. Is it appropriate to include presentation layer/template files such HTML and CSS files in this count? (Note that I am not able to have ...
10
votes
2answers
302 views

What uses does Smalltalk’s ‘become:’ have?

The become: message in Smalltalk causes one object to change into another, affecting all references to it. What uses does this language feature have? Does it get used in real code? Is it just a ...
1
vote
0answers
41 views

How long to learn Java EE if I learnt Java SE? [on hold]

I hope I did post at the right category for my question. First of all, I am currently looking for a job and from what I see is that there is quite a demand for programmers knowing Java EE rather than ...
4
votes
1answer
85 views

Message queue vs database for delayed tasks

I need to build a system that can handle a fairly high amount of delayed tasks (e.g. scheduled emails). For non-delayed tasks I would go for something like RabbitMQ. But, is it ok to let tasks ...
1
vote
1answer
63 views

Which JavaScript Template (jst) syntax uses double-brackets, (e.g. [[ and ]] )?

I'm looking at the source code for a Rails application that uses Backbone and there are template files with .jst.ejs extensions. The templates include HTML with lines of JavaScript wrapped in ...
-1
votes
0answers
32 views

CS newbie with questions about internships/knowledge [on hold]

There's a tl;dr at the bottom. Hey guys. I'm a Computer Science student who's taken two programming classes thus far. They were both in C++. The first one was very, very rudimentary, whereas the ...
-1
votes
0answers
45 views

Should you explain a technical issue to a non technical person or give them information and alternatives that would help them to make a decision? [migrated]

During a recent interview I was asked the question "How do you explain technical things to a non technical person?" My Reply was : "Why? what is the point of explaining technical things to a non ...
-1
votes
1answer
67 views

Can one abstract class extend another abstract class? [on hold]

I wanted to know whether the abstract class can extend another abstract class and how can it be useful while coding ? Can anybody explain it with an example.
0
votes
0answers
4 views

Google App Engine Launcher demo application not working [migrated]

I installed Google App Engine. When I File->Add Demo Application->python->guestbook, and try to run it, a yellow triangle appears with an exclamation mark. I get this error message also: 2015-07-26 ...
-1
votes
2answers
75 views

Is there an abbreviation for “serialization”? [on hold]

Is there a shorter word for "serialization," suitable for naming a namespace? Looking for something more concise than my.namespace.serialization. For example, "codec" is a great shortening of ...
-1
votes
0answers
25 views

jQuery Ajax ASP.Net MVC : How ajax send request to ASP.net MVC [on hold]

How jquery ajax send request and JSON data to ASP.Net MVC. If I am sending request to ASP.Net MVC, how ajax resolve this request internally, how JSON data map to parameters passing through ajax. ...
0
votes
1answer
77 views

How do I avoid using regular expressions in this example?

I'm going to use ftw.h to iterate over two directorys and load up two separate structs with file information. Currently my idea is to load a singly-linked list with the absolute pathname, stat ...
-1
votes
0answers
24 views

Best use of Winpcap [on hold]

I just need to know the best/most efficient way to use winpcap to monitor 5 different tcp ports while another program is running displaying the data etc. I was using a thread for each port with a ...
0
votes
0answers
14 views

ASP.NET MVC : How asp.net mvc view engine bind model and render data in html form in browser?

How mvc model binder binds data to model and when I submit form or pass model to view. //Action public ActionResult ShowStudent() { Student student = new Student(); return View(student); } ...
-3
votes
1answer
16 views

Qt vs GTK#/Mono for serial, 3d graphics, and cross-platform distribution? [on hold]

I'm writing a desktop app targeting Windows, Mac, and optionally Linux. I need serial communication and 3d graphics capabilities, and I would like to streamline deployment. I'm a fan of what I feel ...

15 30 50 per page