-6
votes
0answers
32 views

How do I begin my machine vision graduation project? [closed]

I'd like to know how to implement a machine which see something like (roads, faces, texts,...) so it will be machine vision project which is image processing + machine learning and I know now the ...
0
votes
2answers
72 views

guideline on void methods that do not throw exceptions

In our codebase I saw a method that is similar to following: public void doSomething() { try { ... } catch (Exception e) { ... //log something ... } } ...
-3
votes
0answers
39 views

set() is the value in a key:value pair?

I'm working on dictionary comprehension for a database so that I can save various database tables as nested dictionaries for easier data manipulation. SQLAlchemy Core has a good tutorial with an ...
-5
votes
1answer
57 views

Separation of concerns is important, but can it go too far? [closed]

Last semester we discussed the concept of separation of concerns in a class I took. While I see why this is useful, sometimes I felt like things were being separated too far, or that the rules for ...
0
votes
0answers
37 views

Decoupling related services [on hold]

My project has a Product entity, and its stock is computed by its historic of sales(Order), loss, replacement... When a order is placed, the system should generate a stock line automatically. But I ...
1
vote
0answers
56 views

Async library guidance

I'm creating a library that contains a class that exposes several Async methods: public class MyClass { public async Task<Foo> DoFooAsync() { /*...*/ } public async Task<Bar> ...
0
votes
0answers
24 views

BCMath vs MySQL: performance

Scenario I am working on a web application that handles financial transactions, and my code will need to be reusable for everything from consumer carts to manufacturer/distributor shipments. The ...
0
votes
1answer
83 views

Is having a Data Access Layer as singleton a good ideea

I'm working on a project(web application) where I have a DataManager(IDALContract dalImplementation) class that does some stuff with the data after retrieving it from the database or before saving it ...
3
votes
2answers
122 views

How to deal with outlier programmers during sprint planning?

It is generally accepted that the best programmers produce at least an order of magnitude more than average ones. This seems like it would cause problems with the usual approaches to sprint planning ...
0
votes
2answers
84 views

Efficiently find whether Binary Search Tree is Height Balanced or not?

A binary tree is height balanced if and only if the two subtrees of root are height balanced and the difference between the two subtrees height is at most 1. I implemented a code in java to find ...
1
vote
2answers
109 views

Language/Programming term for paired delimiters [on hold]

Can someone help me find the language and/or programming term for delimiters (?) that must be paired? Quotes, parenthesis, angle-brackets, square-brackets, etc. are often used to symbolize these ...
0
votes
1answer
44 views

How can I check if answer the user typed in is unique in the form submission?

So, I have a form that has security questions and textfields for the user to type in their answer. I want to prevent the user from typing in the same answer to every security question selected. So I ...
-3
votes
0answers
34 views

.jar file to interact with C++ console application [on hold]

I know this is probably a difficult and/or insane question, but is there any way that I can make a .jar file that can type things into a C++ console application? I made a .jar GUI in netbeans, and I ...
0
votes
1answer
28 views

maintain rate of animation with requestAnimationFrame

I've noticed that HTML game developers are recommending the use of requestAnimationFrame as opposed to a timer for the animation loop. I understand that this can be optimized by the browser, but how ...
-5
votes
1answer
55 views

Logging implementation in Javascript [closed]

We are planning to write logging statements in JavaScript. I got to know from various sources that write logging statements in a file on client side machine(Using Log4js) is security violation ...
0
votes
0answers
21 views

Nature of Bluetooth Scanning

I have a bluetooth application that I've developed and fiddled with scan parameters to make it quicker between scans, or make the scans themselves longer. Etc, etc... One question I have is about the ...
-4
votes
1answer
52 views

How to reduce reworking? [closed]

I am a beginner at a programming job, fresh out of college. I have learnt with some experiences that I should plan well before I start coding some project. However I still lack the far-sightedness to ...
1
vote
1answer
39 views

Clear JQuery Listeners Before Ajax Load of Similar Data

I have a tree structure on the left side of my page from which the user can drill down and select items. Each branch has similar items. When clicking a leaf node, I make a JQuery .load(...) call that ...
0
votes
1answer
65 views

Benefits of this data format

I'm integrating with a bluetooth blood pressure monitor, and I've come across one of the most bizarre data formats I've ever seen. The systolic, diastolic and pulse rate (all ints, should all be ...
2
votes
2answers
93 views

What's wrong about extending a class with prototype methods?

I was at a bar last night with a few of my colleagues. They said that it's a bad idea to extend the functionality of basic JavaScript Objects with a prototype method. For example, let's say you ...
0
votes
1answer
151 views

Is it a common practice to first develop a RESTful backend (no MVC), then build thin client on top of it [closed]

This is what I currently have in mind: Build these components: Pure RESTful ASP.NET Web Service backend Thin native mobile apps Thin desktop client (WinForm/JavaFX/Angular/Whatever) This will ...
1
vote
1answer
36 views

How to pass object generated by certain test class to another test class using webdriver and testng

I am contemplating on creating a public api for my team to use that will encapsulate the workings of webdriver and testng as it's main tools. Primary to the concern is re usability of code when ...
3
votes
0answers
116 views

How to design a time tracking or activity monitoring application?

I am trying to build something like Manic Time - which is an application that tracks what the user is currently working on. It worked flawlessly on Windows, but doesn't support Linux. It has mad ...
207
votes
12answers
30k views

Should you write your back-end as an API?

I had a heated discussion today about our MVC application. We have a website written in MVC (ASP.NET), and it usually follows the pattern of do something in the view -> hit the controller -> ...
18
votes
5answers
2k views

Create new object or reset every property?

public class MyClass { public object Prop1 { get; set; } public object Prop2 { get; set; } public object Prop3 { get; set; } } Suppose I have an object myObject of ...
2
votes
1answer
46 views

Best practices for a daemon that forks and becomes user

I want to write a small daemon in python under Linux that accepts connections and authenticates the user (details for this don't matter) and then forks a child for the connection and becomes the user. ...
-3
votes
1answer
74 views

Java - Best way to set properties of an object [on hold]

I don't know if there is any difference in performance, or its just a matter of choice, but I am a perfectionist like that, and I'd like to know. Lets say you have the object HolySheet. You can set ...
5
votes
2answers
153 views
+50

Does it ever make sense to read from and/or write to a bound, listening socket?

I'm experimenting a little with creating a socket server, in PHP. In doing so I'm trying to abstract away the kinds of sockets I think I'll be needing, that I've tentitively named: ListenSocket — ...
0
votes
0answers
20 views

Ipython3 development cycle

I am new to python (python3) and am using Ipython3 while writing the code just in my preferred text editor. I am not yet sure what is a good development cycle as I keep getting problems with reloading ...
2
votes
1answer
29 views

log method calls per object

How to log method calls on a per object basis for a particular class? I.e. after instanciating a = myClass() I somehow want to keep a log for what methods have been called on a like a.reverse() ...
0
votes
2answers
156 views

Why can't I use an operator like plus sign to concatenate strings? [closed]

Why in Objective-C we should be typing explicit references to methods like stringByAppendingString to concatenate strings, when in some other languages we can use operators for that? For example, ...
0
votes
0answers
24 views

DDD Request Validation Handling

I stuck somewhere that I can't find a solution! There are plenty of validation questions here, but as far as I see, most of them were asking about entity validation. But what about request validation? ...
-2
votes
0answers
22 views

Difference between Eclipse+STS plugin and STS IDE? [closed]

What is usage difference between Eclipse + STS plugin and only STS IDE in terms of placing xml configurations and web.xml please explain in brief? I know sts has its own pivotal tcServer .But I ...
-4
votes
0answers
16 views

problem on working with ksweb server [closed]

I want to run a php file in android mobile using browser. can I able to done it in ksweb and how it possible? is it is same as working with xampp server in windows. then where I have to save my file ...
3
votes
1answer
143 views

Is Apple sample code the “correct” way to go?

I'm in a place were I know how to build apps and have submitted at least 5 for different clients to the app store and wanted to step up my game. So of course I went to Apple resources and analyse the ...
3
votes
0answers
35 views

Android: Pattern for checking requirements at startup?

My app's launcher activity checks a bunch of requirements like whether GPS is enabled, there's a network connection, the app has device administrator privileges, etc. Some of these checks display ...
1
vote
1answer
33 views

Filtering additions to a list

Hopefully Iʼm posting this in the right SX, and Iʼve tagged it correctly. I have a legacy system that Iʼm making additions to which contains a custom list object. This list object can contain two ...
-4
votes
0answers
48 views

What near-universally supported standards exist for Linux applications (GUI and TUI), and where are they? [closed]

I would like to compile a list of standards That are: widely supported (on modern *nix systems), and would be applicable to over 90% of GUI applications, or over 90% of command-line applications, ...
3
votes
2answers
284 views

How to avoid calling String.Replace() in a loop?

I am building a very simple email templating system in C#, and it works amazingly, but I have a personal issue with the way I designed it: Template looks like this: Hello {UserName}, Welcome to ...
3
votes
2answers
47 views

(Partially) Sorting a lazy-evaluated collection

So I'm trying to implement a lazy-evaluating data type (in PHP, though that shouldn't matter any) where you can queue up actions to take on a set of data. This data can come (theoretically) from any ...
-1
votes
0answers
23 views

Linux header files for Win32 typedefs like BOOL, LONG, and WCHAR [migrated]

I'd like to compile this clone of xcopy as a linux binary. I commented out all the win32 include files, and now it complains about things like WCHAR, and LONG. These are simple typedefs. Is there a ...
0
votes
2answers
36 views

Flag arguments in an html factory class

I have been told that flag arguments(boolean arguments) are a bad thing because it complicates the signature of the method and means that the method does more than one thing. An issue I have with ...
-2
votes
0answers
35 views

What is the best way to structure a expressjs REST application? [closed]

I am a long time ASP.NET MVC developer. I am beginning with learning some nodejs and expressjs. I am confused whether the default folder structure generated by express generator is good enough for a ...
-3
votes
0answers
40 views

Which languages are supported by most web browsers for client-side scripting? [closed]

I know JavaScript is the main language supported by browsers. Is Python or C++ especially, or any other languages other than JavaScript supported by web browsers? In other words, what is a list of ...
0
votes
1answer
30 views

How to model complex event in event sourcing?

Lets say that we have a user (like super-hero) that want to see all wars that is going on in a world so that he can stop them. He can't prevent them all, because he needs to sleep sometimes and so on. ...
1
vote
1answer
67 views

When do micro-benchmarks make sense?

I've been researching micro-benchmarks (e.g. using JMH or Caliper, though not necessarily limited to Java). Now, there are many articles which describe how to write a benchmark but I haven't found ...
1
vote
2answers
22 views

Mobile Web App - combines with exist web app or separate them

The company I work for already has a fully functional web app that is written in java using JSF framework. I'm now in the process of creating a mobile version of this web app and having some general ...
0
votes
0answers
19 views

Should a property in Swift be implicitly unwrapped in my UIViewControllers? [migrated]

Let's say we have this viewController public class DetailsViewController : UITableViewController { public var text : String; public override func viewDidLoad ( ) { // do something ...
3
votes
1answer
89 views

PHP Refactoring advice

I'm working on a Soccer management game. Project is fairly new and small and I'm new to PHP. The project was starting to get a bit messy so I've been looking into refactoring. The first thing I've ...
1
vote
3answers
75 views

Design question concerning extensibility

I am constructing a new class which handles deciding which class should process the requests from a web service. I'm looking for a solution for a problem that I am having regarding extensibility with ...

15 30 50 per page