All Questions
0
votes
0answers
1 views
Reducing dependency cycles and reducing coupling
I'm trying to learn how to produce quality object-oriented code and have been studying concepts like SOLID. I'm currently working on an entity-component-process system for a small game engine.
...
5
votes
1answer
35 views
When systems get larger and larger, how do you keep a global understanding of your system?
Today I realized painfully that for some decisions you need a good overall understanding of the system. Otherwise, the risk is too high that your assumption turn out to be wrong.
Imagine that you are ...
1
vote
0answers
17 views
Fire domain events after transaction completes
I am trying to implement a domain event system that only fires its events when the associated unit-of-work commits successfully.
The main reason why I want to do this is because I have other ...
0
votes
1answer
20 views
State Change Tests
In Chapter 3 of his book The Art of Unit Testing: with Examples in C#, Roy Osherove describes the concept of testing state change of a system.
The example code under test he uses looks like this:
...
0
votes
0answers
25 views
Did I branch or not? How to merge 2 branches [migrated]
I'm HMS confused
I today created a branch to work on implementation of a new feature. I thought this branching was successful as these appeared.
However I'd like to merge the new feature branch ...
6
votes
3answers
106 views
Proper Response to HTTP Request When Too Much Data is Requested
I'm building an API for an ad serving platform that will allow you to request tracker data for ad campaigns. Campaigns often exceed hundreds of millions of requests, which means there will be many ...
1
vote
1answer
50 views
Why is (f . l) not allowed and equal to (apply f l)?
In scheme when defined
(define f (lambda (a b c d) d))
(define l (list 'a 'b 'c 'd))
Why it does not do argument destructuring? I mean arguments should evaluate first, why destructuring is not ...
-2
votes
0answers
10 views
Notepad++ For Normal Text and Syntax Highlight? [migrated]
I want to use Notepadd++ for taking notes on python programming language. I want to write some normal sentences and also write codes on same page simultaneously. I don't want to show line numbers for ...
1
vote
1answer
59 views
Benefits of Java ByteArrayInputStream vs byte array?
I have a scenario where my Java process will be receiving a stream of binary data:
public class DataHandler {
public void handleData(DATA data) {
// TODO: Do something with data
}
}
...
-4
votes
0answers
39 views
HTML , EPUB , eBook [on hold]
I converted a a book from .doc format to .html . Then i converted the html to EPUB format so i can make it a eBook . Fonts , sizes , colors , everything works perfect without the images . I insert ...
-5
votes
0answers
66 views
Why am I getting wrong answer ? (Beginner here) [on hold]
The question I am trying to solve is:
A number is well-ordered when its digits are in numerically ascending order. E.g. 147 is well-ordered but 174 is not. In a well-ordered number, each of the ...
-5
votes
0answers
25 views
Pursuing a career in computer sciences and related fields? [on hold]
I am currently a Biochemistry major with a mathematics minor. My original plans were to go on to medical school and become and anesthesiologist but, that vision has been getting pretty cloudy for me. ...
0
votes
5answers
114 views
Are mutliple database calls really significant with a network call for a web API?
At one of my employers, we worked on a REST (but it also applies to SOAP) API. The client, which is the application UI, would make calls over the web (LAN in typical production deployments) to the ...
0
votes
2answers
95 views
Website compatibility with old operating systems
I'm a web developer. I most often come across this critical situation when the website layout fits with the design when run on Windows 7 or 8 and Mobile Operating Systems (Android, iOs, Windows 8).
...
2
votes
1answer
24 views
Communication/Updates between units of works/entity framework contexts, colliding with user changes
I'm developing a WPF application using Entity Framework for my database communication. The application has a hierarchy of tabs where each tab has a db context. Each tab allows the user to view some ...
-4
votes
0answers
27 views
Printing LinkedHashSet Side By Side [on hold]
I am writing a program for school to get user input of what they ate for dinner and the price. The issues I am having is printing it side by side, like a receipt.
import java.util.*;
import ...
0
votes
0answers
65 views
Improve logic finding possible misconceptions [migrated]
I made a logic to accomplish a specific problem, but it's too long. I've sure that it can be reduce too fit it.
I have the following model
public class ColumnChart
{
public virtual ...
0
votes
0answers
38 views
Converting a huge decision tree into a decision list for fuzzy matching
I'm trying to build an intelligent action bar similar to the command palette of Sublime Text:
The Sublime Text command palette allows fuzzy matching of commands in the list (e.g. "ancd vin" will ...
-1
votes
5answers
196 views
Can we use `a <= x <= b` to check if `x` is between `a` and `b`? [on hold]
How to give conditions for geographical directions based on degrees? for COMPASS API Reference...
I have tried this...but not working
if((0 <= a <= 22.4) || (337.6 <= a <= 360)){
...
1
vote
1answer
69 views
Data persistence for transactional customer emails
I'm developing a system to handle sending transactional emails to our customers. This is how it works:
An event occurs during the order's life cycle, for example 'shipped'
This event will trigger ...
0
votes
1answer
99 views
Viable method of sharing our PHP project [duplicate]
We are two developers that have no previous experience in sharing one PHP project. In particular, cakePHP.
We both use NetBeans and we have set the project up as a "PHP application from a remote ...
-6
votes
1answer
98 views
Writing code with 5 fingers, is more efficient? [on hold]
Actually I tend to write with 4 fingers, my actual typing speed is in average 110~120 ( using http://www.typingtest.com/ with an spanish from spain )
I have some time trying to force myself to use 5 ...
-1
votes
0answers
15 views
show different xibs from inside a xib file [migrated]
I'm a newbie in mac programming so here's my questions:
I'm developing a mac app that has two xib file
MainViewController and SecondViewController
in MainViewController there's a button in which it ...
0
votes
0answers
73 views
How can I put multiple hierarchical forms in a single web page and avoid making it a mess?
We are a group of developers working on a web application that accepts forms filled and sent by our users and present it in an overall view. Our main form view looks like this:
There are multiple ...
-4
votes
0answers
54 views
Which language should I choose as a replacement to Erlang [on hold]
I am going to design an app which should be able to handle large no of concurrent requests. We are evaluating suitable tech stack to use for this application. As per many views on internet, Erlang is ...
-4
votes
0answers
16 views
Unable to load Persistence Unit from EAR [on hold]
When i trying to deploy my project, This exception appears: (it's not complete, just first error)
SEVERE: Unable to load Persistence Unit from EAR: F:\Web Design\wwwroot\Ali Farvardin\Farvardin ...
-2
votes
0answers
32 views
Googling to differentiate between collection of nodes and edges graphs and visualised data graphs [on hold]
Is there a trick for googling when you want to find information/resources pertaining to just on of these types of graphs?
For example, if I google 'display graph python' it will give me a heap of ...
-2
votes
0answers
33 views
WPF project using Helix 3D toolkit [migrated]
I am writing a program on wpf that gives me the trajectory of a particle. I found CanonicalSplineHelper in the helix 3d toolkit and im using it now in conjunction with LinesVisual3d, but I have a ...
0
votes
2answers
69 views
Does Play framework approach necessarily leads to confuse code?
I want to start a new project and I just got in touch with Play framework, which has a ruby on rails -like approach that called my attention.
I am not an expert in rails, but I think that the ...
0
votes
1answer
127 views
Knowing who is the user in every request (every action, every view, every time)
I have many model classes that are mapped from/to tables using EF. Two of them are User and UserCookie, which are stored in tables Users and UserCookies.
public class User
{
public long UserId { ...
-5
votes
0answers
32 views
Which cross-platform technology stack for Android/iOS would produce better performance? [on hold]
Considering a programmer is fluent in Java and C++, and wants to write the non-UI logic of an Android/iOS app in the same language, which would be a better choice, writing it in C++ (then use directly ...
-2
votes
4answers
189 views
What to do if you're stuck on a project because you got dumped in without the information you need? [on hold]
I'm a junior developer and I'm supposed to be debugging this project, but the simple fact is that neither I, nor anybody else here (the only person who's worked on it just left recently) knows much ...
1
vote
1answer
43 views
Large internal features on kanban
This days I'm reading some tutorials/advices about Kanban process and Agile methodologies, but I have two big questions about this Kanban methodology.
What I understood is user stories are about ...
2
votes
1answer
68 views
Is there a better way to update NoSQL records in bulk?
When we started our application we had the choice of going with the traditional MS-SQL normalized database or with a NoSQL database (RavenDB is what we tried out). Here is a simplified version of our ...
-1
votes
2answers
91 views
How do developers deal with “where to start” problem in a context of overwhelming difficulties caused by too much heterogeneous information? [on hold]
A friend of mine, a beginner PHP programmer, needs to link the product his company develops with a third-party product (a set of web services). He received the "relevant" documentation (a few hundred ...
-2
votes
0answers
64 views
Why is a MEAN application so large in filesize? [on hold]
Decided to try out MEAN stack and followed the instructions from MEAN.io.
After installing all requirements, creating an app (called myApp), using npm to install all dependencies, running mongodb, ...
0
votes
0answers
53 views
Large Scale Application Development in Android
Since, I am fairly new to large scale app development in Android and Java, I though I would ask for your advice guys.
My team was faced with developing a prototype of a fairly complex medical ...
0
votes
1answer
138 views
Should I continue stressing development standards? [on hold]
I've been with my software team for about three years now, and just recently I brought up the concept of variable naming conventions (across all languages, but C#/VB.Net specifically).
We really ...
-5
votes
1answer
93 views
K&R bracing in C# [on hold]
I'm a Java programmer and I'm thinking of learning C#. It looks awesome for the most part.
However one thing I always disliked about C# is the following convention:
if (something)
{
// a single ...
-3
votes
0answers
10 views
How do you send a new command using NSTask to a unix executable file? [migrated]
I'm trying to learn how to use NSTask, NSPipe, and NSFileHandler to make use of unix executable files in Xcode. I've already written a program that both renders chess and plays it against a user, so I ...
-2
votes
1answer
70 views
What is the legality of making a mobile app version of an existing card or board game? [on hold]
I see that the market is full of mobile apps based on card/board games. For example, do a search for "Taboo" and there are many results which are not published by Hasbro Inc. Is this legal?
The top ...
2
votes
2answers
220 views
Why aren't we building and using parallel processors *meant* for general computation?
We all know GPUs are much faster than CPUs for a wide range of applications. When someone asks why we are not just programming for GPUs at all, one of the most common answers is that GPUs are not good ...
0
votes
0answers
17 views
Lower Bound Omega Notation [on hold]
I have to prove that some number S is bigger than Ω(|V|), where |V| is the number of vertices. I read the definition of asymptotic notations, but I am still confused with the examples. For example, in ...
-1
votes
1answer
77 views
Writing a compiler, which targets a custom Virtual Machine [on hold]
I've been stuck on a concept for a while. I've been writing toy-languages that are interpreted recently. I've decided I want to move on and to try and create a compiler. I don't really want to use ...
2
votes
1answer
34 views
how does semantic versioning apply to programs without API
In http://semver.org/ —which in my perception seems to be the most widely used convention in versioning— it is recommended to increase the major version number when a change that breaks/modify the API ...
3
votes
1answer
161 views
What is a good design pattern for generating an Excel (xlsx) file in code?
I occasionally have projects where I have to output some data as an Excel file (xlsx format). The process is usually:
User clicks some buttons in my application
My code runs a DB query and ...
1
vote
2answers
492 views
The Definition of “Strong Type Systems” [on hold]
I saw Martin Odersky's "The Trouble with Types" presenstaion. He divided programing-languages in two dimensions in the "Type Systems Landscape" chart; A "Static/Dynamic" dimension and A "Strong/Weak" ...
3
votes
7answers
164 views
What if any languages treat undisposed resources as an error?
I've seen lots of code like the following example. It's in Python, but the same mistake is made in all languages with managed resources:
f = open('foo.txt', 'rb')
for line in f: print line
That's ...
1
vote
1answer
42 views
Is doing Parent.call from the child object a right way to implement Inheritance in JavaScript?
I came across this piece of code it didnt look that right to me. Is it the right way to implement SUPER in javascript. if not what is the right way?
function Person(name){
this.name = name;
}
...
6
votes
4answers
253 views
Is using Git Stash as a workflow an antipattern?
I've recently been looking at how me and my team uses Git and how our workflows work. We currently use a feature-branch workflow which seems to work well.
I've also seen some individuals on our team ...