2
votes
3answers
55 views

Is a 'least significant bit' used anywhere practically today?

I'm working on a library that supports file reading, and right now I've always assumed that all the bytes are written in most significant bit first format. Is the least significant bit first format ...
0
votes
0answers
5 views

Differences between Instruction set (architecture) and machine language?

Tanenbaum's Structured Computer Organization says: Every computer has an ISA (Instruction Set Architecture), which is a set of registers, instructions, and other features visible to its ...
1
vote
3answers
424 views

Where should I put bindings for dependency injection?

I'm new to dependency injection and though I've really liked it so far, I'm not sure where bindings should go. I'm using Guice in Java, so some of what I say might be specific to just Guice. As I see ...
0
votes
0answers
4 views

Should code comments explain the control flow?

Should comments explain how the application control flow works? For example, the relationships between classes, how this function is used by other functions, and what we are trying to do with these ...
0
votes
0answers
2 views

Best practices for MVP pattern on Android

my team has had great success introducing MVP and the associated unit tests that go with the presenter. We are wondering how granular we should make the interaction between the View and the ...
0
votes
1answer
36 views

Algorithm to 'segment' a number into blocks of n?

I'm not sure how to word the title properly, but the problem goes something like this: I have 5 nodes, and node 0 is the "master". User inputs a number, e.g. 100 to the master. master "splits" the ...
0
votes
0answers
5 views

How to handle separation of concerns between two run loops?

I'm trying to write a server application using Poco which provides a runloop for the server daemon. I also need to use Boost.Asio because Poco can't listen on domain sockets, so I have a wrapper class ...
0
votes
0answers
3 views

Using SASS with Visual Studio 2013, reliably! [migrated]

I want to start using SASS/SCSS in my app since it's very CSS heavy and would love to be able to use mixins, variables, and all the amazing stuff that comes with SASS. I spent the better part of ...
0
votes
1answer
29 views

Boundary traversal in binary tree

How to perform boundary traversal in binary tree using only single traversal of the tree? I am doing it in this way (not a single traversal): void printBoundary (struct node* root) { if (root) ...
-3
votes
1answer
42 views

Polymorphism: down the rabbit hole?

The more that I read about polymorphism, the more that it appears that every single person has a different idea about what it means (and is opinionated) and if they have heard of the subcategories of ...
0
votes
0answers
10 views

Java Socket or SocketChannel

I am designing a server for a remote file store in Java and trying to decide whether to use asynchronous java.nio.SocketChannels or the older blocking model with Sockets. What kind of factors should I ...
-2
votes
0answers
7 views

Social media analytics platform [on hold]

I manage social media accounts for several people. My expertise with social media comes with the creation of actual content and not having any real ability in programming or software. The management ...
50
votes
9answers
9k views

Bad sign if nobody can comprehend one's code? [duplicate]

If a coder writes code that nobody other than he can understand, and code reviews always end with the reviewer scratching his head or holding their head in their hands, is this a clear sign that the ...
3
votes
2answers
74 views

How to organize predefined queries with Entity Framework?

I have some queries that I use all the time (like get rows only of some specific type, or count something etc.). I'd like to organize them somehow (better then I currently do). Currently I have them ...
0
votes
0answers
5 views

Enabling SSO using http header-based authentication in GitLab

I'm trying to set something up in GitLab to authenticate users automatically using http headers. Does GitLab CE include this feature? Can anyone point me to the right place for documentation regarding ...
0
votes
2answers
33 views

Github convention for putting projects on hold

I have a few github projects on the go at the same time. I am only actively working on one at any one time which can take months. My other projects remain in a semi-completed state. Is there a ...
0
votes
1answer
74 views

Injectable, Poppable Stack

Background A project involves converting a relational expression map (rxm) to an XML/SQL statement. The map resembles: root > people, # "root" keyword starts the document ...
-2
votes
0answers
17 views

Developing on a desktop with a cloned laptop

Simply put, I want the power of a desktop, but the flexibility to be able to take a laptop with everything on it to a client or another location to work on. The added advantage of a backed up system. ...
1
vote
1answer
52 views

What alghorithm can I use to find the biggest subarray within a 2d array with only n different numbers?

Let's say I have a 2d array 100x100 in size, each cell in that array has a number from 1 to 50 randomly. How do I find the biggest subarray in a rectangle size in that array that has only n different ...
0
votes
1answer
19 views

Design of actions handlers requiring some order

I have a REST application where 'actions' can be executed to perform anything in the system. For example: user.save, user.get, etc... I also have pre and post execution 'handlers'. For example a ...
0
votes
1answer
76 views

Styleguide when coding in a static language

I am currently a junior engineer and keen on learning best practices and expanding my experience. My question concerns any static programming language such as Java, C#, C++ etc. When I am writing ...
2
votes
2answers
145 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 ...
6
votes
3answers
121 views
+100

Algorithm or domain for finding cheapest subgraphs that connect vertex pairs

I am currently working on a project inspired by the Ticket to Ride board game. This board game is played on an undirected graph where each vertex represents a city and each edge represents a ...
0
votes
1answer
54 views

Should I implement Enterprise Web based apps without backend only REST?

I keep seeing conversations about frontend driven application and using a frontend with REST API directly. For me, the "cover all cases" architecture is: REST API - allow users to use your data ...
1
vote
3answers
59 views

Domain analysis - why OFF points are inside of the domain when the border is open

I have asked on a few other sites, no response but it must be something silly as many authors mention in their books. Here is the best text I found: My ultimate question is: Why the OFF point lies ...
-1
votes
1answer
19 views

Laravel - BLOB File Management System - Possible obstacles?

I'm working on this weird project where I need to upload huge files (500mb+) and store them in a postgresql table as a blob. Before you start telling me that storing files in the database is bad and ...
-2
votes
1answer
16 views

Possible error with Google's Navigation Drawer tutorial

I'm following this Navigation Drawer Tutorial by Google which can be found here. http://developer.android.com/training/implementing-navigation/nav-drawer.html I having trouble with this line ...
0
votes
0answers
32 views

What architecture/design to adopt when consuming a RESTful API? (iOS App)

TL;DR 1) I want to refactor the biggest part of the app on which I work - and it is pretty much spaghetti. It's a single class that makes the requests to the server, parses the JSON and saves the ...
-4
votes
0answers
33 views

Good Language for a command line library [on hold]

I want to create a command line library of useful commands that I commonly use, I also want to share this with my colleagues. Some are sufficiently complex that I can't simply alias the commands in my ...
4
votes
3answers
146 views

OOP Practice: how to best handle dependent dependencies

I have a problem with the design shown in the picture. My Section class has some TextBlocks (or simply Blocks). The section should be drawn on a page (a Bitmap as device context). It sets the blocks ...
1
vote
0answers
12 views

Hierarchical ViewModels and tracking IsDirty/PropertyChanged events

I have a set of ViewModels depicted like in the below picture. And, I have a couple of commands AcceptCommand, CancelCommand in the Top Level View Model that are bound to Apply, Cancel buttons ...
0
votes
1answer
106 views

Best Data structure for implementation of dependent drop-downs

I want to implement dependent drop-down feature on a web page in my website containing the following drop-downs: User's group name Group events (dependent drop-down) Locations (dependent drop-down) ...
11
votes
4answers
3k views

Difference between DevOps and Software Configuration Management

What is the difference between Development Operations and Software Configuration Management? For me it seems to be the same as long as both DevOps and Software Configuration Management are focused ...
0
votes
2answers
405 views

Manage content for multiple websites and mobile apps

I need to manage content (pages, key/value list, assets and more) in one webbased system for multiple websites and mobile apps. My idea is to create a web api, secured with tokens for apps and sites ...
-3
votes
0answers
62 views

Database Design: How do multilingual sites store product data? [on hold]

First, I would like to specify that I take Amazon as an example but the question could be the same with others big websites (wikipedia, facebook...). It is more a design question. Amazon is available ...
7
votes
1answer
513 views

Can a programmer renounce ownership of source code? [on hold]

I came across this license: /** * The author disclaims copyright to this source code. In place of * a legal notice, here is a blessing: * * May you do good and not evil. * May you find ...
2
votes
1answer
67 views

Design, how to utilize The Hardware (multiple threads and/or GPU) while indexing (via a database) a very large set of binary files

Problem How can design my file parser to maximize the hardware when processing (creating meta data for) a large file (i.e. how to avoid being blocked by IO and running out of memory) preferably ...
-5
votes
0answers
46 views

Exporting webmap features to kmz [on hold]

Is anyone aware of a way to view Loopnet listings in Google Earth?
1
vote
1answer
248 views

What programming technique is this?

I have two Java classes. The first one is called "Index", and the second one, temporarily, I called it "IndexCache": public class IndexCache { private static Map<String, Index> map = null; ...
-4
votes
0answers
56 views

Type checking in dynamic language [on hold]

Below is the program written to perform the explicit type check(at runtime) in addition to primary functionality(i.e., square root). from math import sqrt def isnumber(thing): try: ...
1
vote
2answers
84 views

Should I backup gradle dependencies to git?

I always like to backup project dependencies myself in case they can't be resolved due to a down website or because certain versions aren't available for download any more. Should I trust the maven ...
-6
votes
0answers
52 views

How do I invoke a for loop in a method with argument “self” [on hold]

def commandType(self): '''P.commandType() -> str ''' for i in self: ......... I want to write a for loop such that I am able to loop through the Contents of "P" object. ...
-3
votes
0answers
44 views

What to know prior to open-sourcing a project from legal perspective? [duplicate]

Previous questions and answers are focusing on "usability" and promotion (as if we are living in some ideal world). I am wondering what could be potential negative legal consequences. For example: ...
8
votes
2answers
5k views

What is the best “bucket-fill” algorithm?

I'm pretty new to image processing, and I am currently working on a paint-like application that will feature a bucket-fill. However, I have no idea what the best algorithm for a bucket-fill is. I ...
0
votes
0answers
72 views

Filtering out images that are in the golden ratio

My goal is to detect images that are probably in the golden ratio - by accident, because I take frames from a video that was taken without the intent of having the images in the golden ratio. My ...
-4
votes
0answers
26 views

Java Start JNLP without paying to certificate authority? [on hold]

I've noted that now it is difficult to run Java Web start files (JNLP) for Java8, without a proper certificate, due to "security reason". I've found that this a terrible decision by Oracle, breaking ...
-1
votes
3answers
144 views

How to design a solution that needs dynamism using Visitor Design pattern [on hold]

I have below code/classes/interfaces: An Interface: public interface Animal<A extends Animal<A>>{ void fight(A otherAnimal); } 2.Tiger class which is implementing Animal ...
1
vote
3answers
173 views

How to make one test depend on the results of another test?

Let's say there is a utility class that provides some common static methods used everywhere in your code by many other classes. How would you design your unit tests for the consumers of the utility ...
2
votes
2answers
108 views

Best practice A.I. - check all possible moves or pick an objective?

I'm looking for some general guidance on how to produce best practice A.I. The way I understand it, the way A.I. works for games like Go, Chess etc is by considering all possible moves (combinations ...
26
votes
5answers
3k views

Is “convention over configuration” not violating basic programming principles?

I was looking at the WPF MVVM framework Caliburn.Micro and read that a lot of standard things are based on naming conventions. For example, automatic binding of properties in the View to properties ...

15 30 50 per page