All Questions
0
votes
0answers
12 views
How to compare two different hashset objects with more than 100,000 records
I have two classes
class A{
int id;
String name;
public boolean equals(Object o)
{
if(o instanceof A) {
A a=(A)o;
if(a.getId().equals(this.getId()))
...
0
votes
0answers
4 views
copying from pointer to pointer in C language [migrated]
I've encountered a problem while writing a c program. suppose if temp1 and temp are two pointers, used instead of arrays. then to copy the contents of temp to temp1 i've performed the following ...
-2
votes
0answers
12 views
When should/can I stop optimizing? [on hold]
When developing a new feature or planning an applications underlying system, I constantly feel unpleased with my code.
As the developing process wears on, my software behaves well and the desired ...
-1
votes
0answers
11 views
what does EMR or EHR applications mean? [on hold]
would please help me understand the concept of this expression!"EMR or EHR applications".
Does it mean many kind of EMR or some program in side EMR?
thanks
-1
votes
0answers
7 views
In library management use case diagram, what is the relation between loan and reservation? [on hold]
In library management use case diagram, what is the relation between loan use case and reservation use case?
Could the reservation be the extend of loan? In a scenario which the member refer ...
-2
votes
0answers
23 views
Best Algorithm book [on hold]
I have learned C and C++ from books. Now I want to learn Algorithms. Which is the best book to start learning Algorithms?
-2
votes
1answer
50 views
Listing years of experience on resume [on hold]
If I use a certain language for only on multiple side projects (so not in a professional setting) throughout a span of X number of years, then would I be able to put on my resume that I have X number ...
0
votes
1answer
31 views
Project configs for Java projects
How to store configs for project in Java. In normally case i stored it in 'src/main/resources/' with *.properties. How best approach for storing projects config for development, local, production ...
-1
votes
0answers
19 views
c versus asm stack required
I am looking at translating some 8051 assembler code to C. I'm concerned about possible increases in stack use. The software architecture has 6 interrupt levels which execute the vast majority of the ...
0
votes
1answer
29 views
man hours for maintenance of asm versus C
I'm assessing the benefit of translating around 2000 lines of 8051 assembler code into C and looking to justify the cost in future man hours for maintenance. Does anyone have a rough figure for this ...
0
votes
0answers
6 views
Deduplicating html-attached javascript on page
I have a paging "widget" that consists of HTML with attached javascript. The javascript is only needed once, but the widget could be on the page twice or more. For example, it could be at the top of ...
0
votes
1answer
31 views
Spring web application deployment infrastructure
I'm interested in hearing out what's out there in terms of tips and tricks on deploying and maintaining a Java web application whilst keeping agile. I'm running solo on a startup project I'd like to ...
-2
votes
0answers
34 views
Show that 2(n + 6)^6 is O (n^6)
I'm trying to learn about big-o and big-omega and so forth for interviews, I found this problem and wanted to learn how to do it. I asked another question earlier about this type of thing.
so if Big ...
0
votes
2answers
38 views
OOP: Behavior + Data, but what about 'validation' behaviors?
I had this discussion with my superior about whether validation rules should be in the domain model or not (specifically, in the property accessors) and I tend to lean towards putting them just about ...
-3
votes
0answers
25 views
C programming problem [on hold]
I have a program in C which as follows :
#include<stdio.h>
#define swap(a,b) temp=a; a=b; b=temp;
int main()
{
int i,j,temp;
i=5;
j=10;
temp=0;
if(i>j)
swap(i,j);
printf("%d %d %d",i, j, ...
-2
votes
0answers
16 views
License Concerns for Logos [on hold]
Quick question, but how concerned do you have to be about using the Logo of another company on your web page. For example, I am considering releasing an open source project under the MIT license, is ...
0
votes
2answers
33 views
Abstract Class confusion
I have learnt so far that abstract classes can't be instantiated because they are only there for other classes to inherit from. But i cant get my head around this code i came across in the msdn ...
-2
votes
0answers
14 views
What creates more creative opportunities? [on hold]
I am a fresh graduate. I am not asking a career advice here. But, I think that being web developer gives more opportunities to CREATE something rather than managing. I would like to know if network ...
-1
votes
1answer
47 views
Learn how to write/design code in a “organic” way?
I'm an average programmer, I have not issue accomplish the most of daily task and figure out solution, instead my issue is how to design code.
let me try to explain:
I don't need to learn OO ...
-3
votes
0answers
29 views
Java Programing Question [on hold]
I am beginner of Java learner, I found this question on the website but I don't know how to solve this. following are the question:
Build a simple game will allow a player to attempt to guess a ...
0
votes
1answer
29 views
Creating a generic framework for application loading
I have multiple applications that use a generic framework for creating a graphical user interface. All run with a certain gui.cpp (600 lines) and gui.h (150 lines) containing the int main() function, ...
1
vote
3answers
41 views
What is the rule for simplicity over complexity?
We have a site which is hugely complex in its implementation. Conceptually, it is simple - a web-based catalog. But the implementation has become a multi-layered nightmare.
Can anyone indicate a ...
0
votes
1answer
64 views
Is there a particular coding standard with comments between function name and body?
I'm integrating with a shipping API built in php.
They have a strange coding standard where the comments are between the function name and the first curly bracket.. which - subjectively - makes the ...
0
votes
4answers
43 views
TDD: how to test file outputs?
I'm really new to TDD, so I guess this question is pretty basic.
We're building a website, and part of the functionality is generating some files (binary files: Excel, PDF, whatever). How should I ...
1
vote
1answer
12 views
JavaFX with or without Rich Client Platform
I'm starting to delve into JavaFX and have heard that one of the cons of java fx is that there isn't a mature rich client platform or application framework ala eclipse rcp or netbeats platform for it.
...
0
votes
1answer
59 views
Move semantics in C++ - Move-return of local variables
My understanding is that in C++11, when you return a local variable from a function by value, the compiler is allowed to treat that variable as an r-value reference and 'move' it out of the function ...
-2
votes
1answer
42 views
Best Java solution to communicating via applications on Unix/Linux platform without socket communication [on hold]
Hello I have an application written in Java on a Linux platform. My application will work the following way:
User A will open application. User B will open application.
User A will need to send ...
2
votes
3answers
106 views
Best approach for an online store which changes its product’s price over time? [Designing the DB Table]
I am currently creating a website which will allow people to buy consumer products (deodorant, shampoo, toothpastes, etc…) from a store. Those products tend to change price and other details twice per ...
-4
votes
0answers
38 views
How can you determine the relative position of each screen, i.e which is on the left, middle or right? [on hold]
Given your application is running on multiple screens (dual or more) how can you determine the relative position of each screen, i.e which is on the left, middle or right in WPF? The screen class ...
2
votes
0answers
31 views
In domain driven design, how do I convert a database table with a primary key into a Value Object?
Lets suppose there's a database schema defined like this:
Person.mail_address_key ----- Address.address_key
Person.billing_address_key ----- Address.address_key
A Person has a mailing address and a ...
3
votes
2answers
287 views
Are there any OO languages without inheritance?
During a code review today, a colleague of mine said something interesting:
prototype is only useful when you need inheritance - and when's inheritance ever a good idea?
I thought about this and ...
0
votes
0answers
87 views
How many functions called by other functions are too many?
I posted a question about a week ago about using PHPExcel with multiple cases of use and how to simplify it. Since then my process has simplified as we've agreed to work with a single lay out with ...
0
votes
0answers
24 views
How to set-up security roles and permissions for a dynamic web applications?
I am currently migrating from a Web framework (Struts) to another (Spring MVC), so I will take the opportunity to review my security strategy at the same time.
My applications are Web based, and ...
-1
votes
0answers
24 views
More efficient management of assets(image, documents) in a large web project
I am beginning to refactor a large, very old, messy project. One of the biggest issues is the lack of a central location on the filesystem for simple things like images, icons, documents, csv, etc.
...
-4
votes
0answers
29 views
Attaching a file using <a> tag instead of file input button [on hold]
I want to attach a file in a feedback form. The form is to be send as mail.In most of the cases, I used a file input button for this purpose. This time, I am thinking about using an tag for ...
1
vote
3answers
480 views
Why was Fortran never used to develop an Operating System?
I'm not a Fortran developer myself, but I'm about to use it a little and found myself wondering why, if it is much older than C but equally as performant as C, was it never used to develop any ...
-3
votes
0answers
34 views
Game programming for the web? Or for extensibility? [on hold]
I have a request from a client that wants to build a new casino game. They want to make a sample available online for freeplay. I'm not up on the current technologies to do this. If I look at a site ...
0
votes
0answers
32 views
How can one tell if IN returned a meaningful zero or there was no data to read [on hold]
This question is rather hypothetical and it's just out of my curiosity, hope you don't mind :)
I was wondering, having an assembly code like this:
in al, 10
how do we know, if after this operation ...
-4
votes
0answers
12 views
Read File strip whitespace [migrated]
Working through CorePytho
I can print a file using code below w/ eachLine,
If I remove the comma it is doublespaced.
I am trying to strip the whiteaspace w/o using the comma - no looking for an ...
2
votes
3answers
174 views
Java - Is it possible/good idea to reduce chance of crashing by catching Error?
I have a class the implements A which will run a certain method of class B. There is a requirement that this A should never crash when running this operation (which is not possible, right?).
To ...
-1
votes
0answers
24 views
CC licensed content in BSD licensed HTML
Let's say we have a directory containing two files, index.html and LICENSE. The license file includes the BSD license text (could be any license really) and the HTML file contains content as well as a ...
0
votes
0answers
14 views
Read specified line from external text file [migrated]
Using C# and writing a Windows Form application for Windows 7 or Windows 8.
I need to know how to get my app to read a specific line which should be assigned to a specifict text box or combo box.
...
19
votes
3answers
1k views
On GitHub, etiquette and pull requests [duplicate]
If someone forks your repository and commits some changes, what is the accepted way to proceed if you'd like to ask them whether it's alright to pull those changes in?
Can you issue a pull request on ...
2
votes
1answer
90 views
What are classes that produce a result, but are necessarily classes because of the complexity of the task?
What generic name is given to classes that encapsulate a collection of esoteric functions which together perform some larger cohesive but entirely self-contained task useful to the wider application, ...
0
votes
0answers
122 views
I am the customer and have a question [duplicate]
I am not sure I can ask this here but cannot find answer on the web.
I have a contract programmer on my payroll that has developed my site.
She is self taught with no formal education. When she adds ...
0
votes
0answers
36 views
Is there a pattern for deserialization involving repository access? Or what is wrong with my design?
Let us have
case class Money(amount: BigDecimal, currency: Currency)
case class Currency(code: String, alpha3: String)
Money is a value object and Currency is an entity.
When transforming Money to ...
0
votes
2answers
92 views
Algorithm for figuring out the enemy flag's location in Stratego
I am currently programming a Stratego game in JavaScript, simply because I wanted to learn to use JavaScript while spending some time to keep my programming skills up to par. (My current work ...
0
votes
2answers
60 views
DDD - If an object is saved as a whole to the database, is it per definition an entity, or is it still possible that it is a value object?
I'm learning about Domain Driven Design and struggling with the question if a particular object should be handled as entity or value object.
All possible surname prefixes are kept in a database ...
-4
votes
0answers
86 views
what does min <? = G [i] [j] + R [i] - vc [J]; means? [on hold]
I am looking for a solution of hungarian assignment problem,, and I got a solution from kuhn's Algorithm.
while doing the implementation part I got a statement min <? = G [i] [j] + R [i] - vc [J];
...
-2
votes
0answers
29 views
How do decomposition methods relate to different parallelism methods
As I have learned, parallelism can be achieved in three different ways.
Instruction Level Parallelism
Data Level Parallelism
Thread Level Parallelism
And also I have come across different ...