0
votes
0answers
5 views

Object orient programming - definition

In first approach, below is the code proving an abstraction of an account in a bank, using function object in python. def account(): """Return a dispatch dictionary representing a bank account. ...
-2
votes
0answers
5 views

Advice on posting a database/programming freelance project

I need a screen-scraped horse racing database/software that can provide statistical information about jockey's, trainers and horses. I'm planning on posting the job on freelancer.com or similar. It ...
6
votes
2answers
216 views

Why store flags/enums in a database as strings instead of integers?

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 ...
0
votes
0answers
3 views

flipping image andriod java

hi i am making a game in andriod that requires a list of sprites to running from right to left so i try to flip the image using the code below it slows the game speed down so much, moves fast running ...
0
votes
0answers
3 views

Extra phone icons display issue in Layout file in Android code

I am doing a Android app where I want to show "Travels and Holidays" button in the AppActivity.java and main.xml. When clicked on it, it goes to App2Activity.java and main2.xml where there is a list ...
2
votes
1answer
32 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 ...
-5
votes
0answers
9 views

The best way to learn Javascript or any programming language

I know its wrong to ask anything like this here but I had to. I have learned the basics of JS and I dint write any programs cos my knowledge was not enough so I bought a book called 'JavaScript for ...
2
votes
2answers
40 views

How do I deal with the following technical issue?

I am a Java Programmer and I am relatively new to Java(1 Year). I am working for a small startup company. My problem is a bit strange and I am facing it a bit difficult to deal with and explain also. ...
-3
votes
0answers
13 views

Tools to develop software for a company

I'm developing a software module for a company as part of a school project. I am a decent programmer but I have never built a software module in a professional context. Which tools do I have to know ...
2
votes
1answer
32 views

How do hybrid interpreter-JIT compilers work?

Chrome's V8 compiler, the Java HotSpot compiler, and many more have multiple tiers of interpretation and compilation. A function starts off as interpreted in HotSpot and then, if it is run often ...
1
vote
1answer
23 views

Designing Message class in Java

I'm writing a class for Message. Message comes with Header and Payload. Header has following fields: Version Type For Type "XYZ", the following Payloads are allowed. Configuration Metafile ...
4
votes
1answer
18 views

Semantically more appropriate package name than `util` for the following things?

As a strawman consider the package java.util it is a dumping ground for various classes that in most cases do not share anything in common other than the person that put them there was lazy or ...
-2
votes
2answers
46 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 ...
-2
votes
0answers
4 views

How to add custom view to markers located on a map?

I have been working around with a store locator application built using JavaScript. I am able to locate the stores on the map but how to add a custom view to the markers of the stores so that when an ...
-3
votes
0answers
7 views

Python - Creating an IP finder with user input,

first post here and I'm a bit of a newbie to programming. I finished CodeAcademy's lessons on Python and thought I'd take a run at learning about how sockets and networking work. Either way, I've got ...
0
votes
1answer
36 views

Is Objective-C the only language with infix arguments?

One of the things I like about Objective-C is the use of infix arguments when calling a method. [myDictionary setObject:myObject forKey:@"key"]; where the method name is setObject:forKey:. Does any ...
1
vote
2answers
20 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 ...
-4
votes
0answers
18 views

C, C++ & Java in same Windows application.? [on hold]

Is there any SINGLE Windows Software/Application that I can code C, C++ and Java in..?
2
votes
3answers
58 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. ...
1
vote
1answer
23 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
16 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
193 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) { ...
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 ...
5
votes
3answers
264 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
344 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 ...
2
votes
1answer
72 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
318 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 ...
0
votes
2answers
60 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
642 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 ...
2
votes
0answers
20 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
26 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
87 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
89 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
41 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
28 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
82 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
52 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
86 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
19 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
70 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
228 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
18 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
138 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
342 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
578 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?

15 30 50 per page