0
votes
0answers
2 views

Dijkstra function for navigation for disadvantaged

Is there a way we can write a function for Dijkstra to determine which node to enqueue and which to discard. This is for a navigation solution for people with disabilities where path to stairs may be ...
0
votes
0answers
2 views

Does needing the ability to extend a class at runtime imply poor design?

Aadit M Shah states in Benefits of prototypal inheritance over classical: One of the most important advantages of prototypal inheritance is that you can add new properties to prototypes after they ...
1
vote
1answer
18 views

Domain driven design, can two aggregates have the same root?

For the purpose of separating different functionality into different classes, I have two following Aggregates: ActiveEmployee AssignTask () ReassignManager () Deactivate (string reason) ...
99
votes
11answers
10k views

Where should my team start with becoming “modern”? [on hold]

I'm a relatively new developer, fresh from college. While in college and during subsequent job-seeking, I realized that there were a lot of "modern" software development methodologies that my ...
0
votes
1answer
11 views

Avoid numeric errors in Naive Bayes method

I am implementing the Naive Bayes method with Gaussian distribution. The problem that I have is that the variance used on the Gaussian curve (calculated from a training set) is REALLY small. They ...
4
votes
1answer
178 views

Is Collection.stream().filter().forEach() inefficient compared to a standard for each loop?

IntelliJ IDEA recommended to me just now to replace the following for-each loop with a Java 8 "forEach" call: for (Object o : objects) { if (o instanceof SomeObject) { ...
1
vote
2answers
45 views

Would implementing a “Throwable Event System” be abusive?

I have been thinking for a couple years now about using Throwable events and implementing a sort of event system that uses throw to dispatch an event, or let a different method handle it with throws. ...
0
votes
0answers
4 views

How can we Invite friends to app via Facebook? (I am missing a step or two) [migrated]

I am trying to develop and app where users can invite their Facebook friends to use the app. Because of the new 4.0 SDK, I have had difficulty finding a good step-by-step answer to this problem. I ...
4
votes
3answers
251 views

Do common relational database systems work 'out of the box'?

I'm quite new to software development and whenever I come across small projects which involve storing (relational) data I always ask myself if something like a micro-blog (or any other project with ...
1
vote
1answer
343 views

MVC URL structure with URI parameters

When creating routes for your MVC web application I have seen two possible ways to pass variables to a controller method: With the first approach the variable is passed to a parameter of the ...
1
vote
1answer
61 views

How to design for good abstractions using algebraic data type?

Every now and then I have peaked at Haskell Tutorials and found the Algebraic data types quite interesting. I took their purpose to be to represent types that have completely separable states. Sadly, ...
7
votes
4answers
315 views

Is Visitor Pattern valid in this scenario?

The goal of my task is to design a small system which can run scheduled recurring tasks. A recurring task is something like "send an email to administrator every hour from 8:00 am to 5:00 pm, Monday ...
-3
votes
0answers
29 views

How would you structure your code for a Neural Network?

I understand how Artificial Neural Networks work. However, implementing one in code is quite another thing. How would you go about designing the classes and data structures? I found one great ...
0
votes
2answers
58 views

Can relational database tables always be topologically sorted by their FK reference relation?

Suppose I have some conceptual, not physical, E-R diagram describing a relational database. I want to sort all the tables in the database using a topological sort, where the partial ordering between ...
8
votes
7answers
633 views

Should I be looking for developers with specific skill sets or generalists that need to learn?

Thanks to the great help of this site and SO, I've been able to make a prototype of a software I want to sell but unfortunately although the prototype works I think my code quality is very low. I ...
0
votes
0answers
19 views

What to keep in mind when releasing an app which uses libraries licensed under the Apache 2.0 License?

I'm creating an Android app which is soon ready for release. I'm just going to implement a tab system using this library. I read that it is licensed under the Apache 2.0 License. I've never used any ...
-4
votes
0answers
23 views

Proper framework for developing on Android

I've been developing Android apps for almost 2 years now. I mainly do it as a hobby or as a way to spend my free-time being a college student. All that time I've never really used a proper framework ...
3
votes
2answers
82 views

Domain object model: query by id vs object

Let assume I have two simple model classes: Product and Brand It is obvious I have a query method in Product class like this Product product = Product.findById(123); What if, I want to query ...
0
votes
3answers
88 views

What is the explication for the difference execution time for the same instruction?

As you know when we run instruction in our code like long a = b; we will not have the same ticks each to be executed. first exeution it take 2ticks; second exeution it take 3ticks; third exeution it ...
0
votes
0answers
38 views
+50

Interactive help in a statically-typed language with overloading

One of the nice features of IPython is that I can inspect a function. In [1]: def inc(x): ...: """Increments a number""" ...: return x+1 ...: In [2]: inc? Type: function ...
0
votes
1answer
18 views

Orgmode file format license

Orgmode is an emacs plug-in and is under GPL. I am developing an application that uses plain text files to store notes and I do like the org mode file format. I am not going to copy any of the orgmode ...
2
votes
0answers
22 views

Kth selection routine - Floyd Algorithm 489

I have recently come across a promising Kth selection routine that reportedly outperforms quickselect the Floyd, Rivest Select routine. This Wikipedia article provides a pseudocode version which I ...
4
votes
1answer
81 views

Is is possible to write a “Brainfuck with variables” compiler?

I'm on a quest to write a LISP-ish language that compiles to Brainfuck. Well, it's a stack of intermediate compilers actually. Currently I'm trying to write the one that transforms this code: a++b+a ...
2
votes
1answer
46 views

Break big method into 2 methods, first containing a “for” loop and second a “break”

A method grew too big for its own good, and I need to break it up into two separate methods. def big_method(dct): # Initial code # ... for i in dct: # More code # ... ...
2
votes
1answer
85 views

Recommend an approach to decouple Product and Access code constructs, in order to simplify Product testing

I have some code that tightly couples Product specific code and Product-Access code. I am not sure how to untangle it. So for example, for testing Product, I have to mock up Access objects. And ...
-4
votes
0answers
18 views

Enable php-phantomjs to use disk caching?

Phantomjs has a disk-cache option that works when running via command line, but when I use php-phantomjs it seems that no disk caching is created, although I'm setting that option. Can it be because ...
-4
votes
0answers
46 views

Want to make a program [on hold]

i have a lot of experience in computers. I've been exploring one since i was little, but i never had time to learn a programming language nor make a program. It's time to change that. I want to learn ...
70
votes
16answers
13k views

Should one check for null if he does not expect null?

Last week, we had a heated argument about handling nulls in our application's service layer. The question is in the .NET context, but it will be the same in Java and many other technologies. The ...
2
votes
1answer
69 views

Encapsulating business logic that goes beyond validations in MVC

I'm pretty clear business logic goes into Models. But on this question, they refer to business logic as pretty much low level validation (if the user signs up, ask for their e-mail). What about ...
3
votes
2answers
227 views

Web Services and code lists

Our team heavily discuss the issues how to handle code list in a web service definition. The design goal is to describe a provider API to query a system using various values. Some of them are catalogs ...
-4
votes
0answers
15 views

How do I solve this java problem? [on hold]

I cant solve this problem which is given by AIDE ANDROID APP Please tell me the answer(because i am a beginner) I know it is simple but i am confused with that "mean" error please help me! Q- Now use ...
3
votes
1answer
137 views

How do you take into account usability and user requirements for your application?

Our team supports BackOffice application: a mix of WinForm and WPF windows. (about 80 including dialogs). Really a kind of a Swiss Army Knife. It is used by developers, tech writers, security ...
4
votes
2answers
340 views

Can a Code Review help in learning the code-flow and/or technology of a large code-base?

I'm new to VC++, and so am not very familiar with COM, ActiveX, IDL etc. When I mentioned this to my tech-lead, he assigned me the task of doing the code review of files he felt were important, in ...
8
votes
6answers
576 views

How to manage Agile developers working with traditional (serial) business persons?

Good afternoon, My work environment has some problems. Our IT team is trying to be more agile, but we're not really getting buy-in from the business. They attend our daily stand-ups and sprint ...
-4
votes
0answers
27 views

Shadowing vs Inner class's access only to final variables

In Java : Shadowing allows us to modify any variable with same name in an inner block but how is it possible when we have access only to final variables in an inner class?
1
vote
0answers
26 views

How to best encapsulate features in code and enabling/disabling them at runtime?

I would like to be able to abstract each ticket developed by the team in a way that it can be enabled or disabled at runtime by using a distributed shared configuration system. Tickets are small and ...
6
votes
2answers
211 views

Why store flags/enums in a database as strings instead of integers? [on hold]

I've been browsing SQL dumps of some famous CMSes, including Drupal 7, Wordpress (some quite very old version), and some custom application based on Python. All of these dumps contained data with ...
7
votes
4answers
810 views

Unit testing and Test Driven Development questions

I'm working on an ASP.NET MVC website which performs relatively complex calculations as one of its functions. This functionality was developed some time ago (before I started working on the ...
7
votes
5answers
688 views

Is it necessary to have an Android device to learn programming for the Android?

Is it necessary to have an Android device to learn programming for the Android? Currently, Java is my primary programming language.
-4
votes
0answers
18 views

Algorithms with natural language

I am building a web app where people can post their problems in 140 character length and the most common problem will be outputted in a list. To determent the most common problem, the app must match ...
0
votes
2answers
54 views

In javascript, should object properties be declared on top of the function?

I learned that it's good practice to declare variables before they are used. For example: function myFunction() { var i; var j; } Does the same thing go for object properties, and is there a ...
1
vote
2answers
34 views

const reference and const pointer. How do they work?

I read a post about how const storage works. How does const storage work? (Item 2, Scott Myers Effective C++) This says that each segment has separate section of write protected memory and const ...
-4
votes
1answer
67 views

Should I remove logging statements on production? [on hold]

I have a bunch of console.log statements in my AngularJS app. Should those be removed for production? Are there potential issues from leaving them on?
0
votes
2answers
72 views

Refactoring case-when statement [duplicate]

The Product model which can have 2 price tables. The method price calculates the price of the product based on product's price table which is defined by price_table field. class Product < ...
1
vote
1answer
38 views

Is hiding complexity from API clients by merging resources a correct practice?

So let's say we have three simple resources: Groups, Users, and GroupUsers. Groups - Represent interest groups which can be subscribed by users. { name: 'Colorado Mountain Biking Group' ...
11
votes
5answers
791 views

What methods are available to show colleagues the advantages of a database+application solution over Excel?

I work in a company where there are Excel spreadsheets everywhere. As my colleagues are non-programmers, I'm sure they haven't contemplated that there might be a better/easier/more productive way of ...
-6
votes
0answers
23 views

How to make Online shop with quest/mission? [on hold]

Sometimes I Bored, What can i do?,but Reality I just a beginner programer ~ Now I want make new conception online shop with quest/mission like a game online can master help me? :(
0
votes
1answer
33 views

Is APL a Turing-complete language?

On the Wikipedia page for APL, I haven't been able to find any mention of the language being Turing-complete, although it does (to my incomplete understanding of TC) appear to be capable of performing ...
0
votes
0answers
16 views

How to illustrate the difference between forward and backward compatibility [duplicate]

Please correct me if I'm wrong, but a new version that can run old code is backwards-compatible and an old version that can run new code is forward-compatible (like an old B/W television can receive a ...
0
votes
1answer
36 views

Changing coordinate systems in python

I am working on a visual python program that is meant to model the orbit of an electron around the core of a Hydrogen atom. In order to avoid the singularity at r = 0 in the equation for coulomb ...

15 30 50 per page