0
votes
0answers
3 views

Services over http and services over tcp

I was looking at my organizations service architecture. I was told by some one that we have two types of services. "One over HTTP" and "other over TCP". Moreover, services over TCP have no WSDL's. I ...
0
votes
0answers
19 views

why close() method is implemented in InputStream/OutputStream?

It make sense to see close() method as non-core functionality of stream objects, This is the reason this method is placed in interface Closeable. One evidence is, class ByteArrayInputStream do not ...
-3
votes
0answers
20 views

C application vs C++ application [on hold]

What are a real life application that is based on C language rather than C++? Why is it using C and not C++ since they are almost the same? Do you think we can convert that application to C++? And how ...
-4
votes
0answers
12 views

Getting the Max Age of a student using Class C++

Please, help me and check my program:i want to use the maxAge() member function to get the student age (Maximum age) entered from the function MAIN using the while loops which i stored into the ...
-2
votes
0answers
15 views

UI Developer Javascript Programming Responsibilities

What are the Main responsibilities for a UI Developer when it comes into JavaScript Programming/Development? What area in JavaScript s(he) has to concentrate? Whether s(he) need to be extreme solid in ...
-2
votes
0answers
27 views

What are the pros and cons of uploading company's all code on Github? [on hold]

I am thinking to upload all of my company's code on Github. We provide services to clients and we all also create our own products. What are the pros and cons of uploading everything on Github?
0
votes
0answers
18 views

How to code a one-sided virtual economy

I'm attempting to make an online game with a mini-economy in it. The challenge is that the only person selling anything will be the website itself, and hence the supply and demand curve doesn't apply ...
1
vote
2answers
22 views

Query on hiding implementation details in java

With the below piece of thread related code, I see that author of Thread class is hiding the details about the working of start() method. What a user of Thread class need to know is, class Thread ...
0
votes
0answers
15 views

vert.x message bus architecture

A large part of the vert.x architecture is around the message bus, and message passing between verticals. The main idea I guess being that I can create multiple modules (possibly in multiple ...
-1
votes
1answer
49 views

Thinking in Java 4th edition - How to read efficiently? [on hold]

a) Is there anyone who could give me some tips how to read Bruce Eckel's book efficiently? So far I read 230 pages of Eckel's book in 19 days (i made all the exercises, coded alot) - i went trough ...
2
votes
4answers
33 views

Handle server-side/client-side when for showing missing information as placeholders

I have a database table which stores Incident details. Each Incident can have an image saved for it. There are some Incidents which will not have an image for it. I have an API which pulls the image ...
1
vote
2answers
57 views

PHP package management with/without Composer

I noticed that many (large) PHP applications use Composer for managing the dependencies. I'm currently trying to figure out if I should switch to Composer (at the moment I'm simply keeping my ...
0
votes
2answers
57 views

Initialize in Field, Constructor, or Argument

If I know what a field will be initialized to, should I initialize it in the field, constructor, or receive it as a parameter? For example, where should I initialize an ArrayList? Initialized in ...
-12
votes
0answers
84 views

Why are they still using C program [on hold]

Why are they still using C even though not OO (object oriented)?Are they using Windows or Unix Environment? If either, what are the advantages or disadvantages? What it takes to move from procedural ...
-3
votes
1answer
27 views

How can this allocation of bi-dimensional arrays work?

I was seeing this post on StackOverflow and saw a new way (at least for me) to define a two dimensional array of 5x5, it works well, but I feel I don't understand what is going on in the background. ...
-1
votes
0answers
50 views

Redundant ElseIf-Else Blocks

These types of if-elseif-else blocks appear all over the place, and in no small number (so the less the better). Every time I have to think and decide: Do I want the simpler or the more thorough of ...
-1
votes
0answers
24 views

Unsure on how to start converting my application to MVC

I have a large application in PHP that I have been developing for the last few months and I am unsure on how to convert it into MVC. As I try to build it the questions arise more and more. I chose to ...
2
votes
0answers
34 views

How to model the dependencies between fields in very complex forms

We have to create a web application that will be used as an application form for multiple insurance products (15 in total). This application form will be similar to a form wizard, it will span across ...
0
votes
0answers
21 views

Order data for a fictional online store

I'm developing a warehouse automation system for a client that operates an online store. I've already made a domain model and translated it into CREATE TABLE statements for an SQL database. But to ...
3
votes
3answers
71 views

Why is Win32 API's WM_MOVE being called while dragging the window?

I have two callbacks for WM_MOVE and WM_MOVING. Oddly enough, WM_MOVE is being called while dragging the window. I expected WM_MOVE to be called only when I'm done dragging the window. MSDN says that ...
4
votes
2answers
273 views

What are the valid uses of static classes?

I noticed that nearly every time I see programmers using static classes in object oriented languages such as C#, they are doing it wrong. The major problems are obviously the global state and the ...
-4
votes
0answers
46 views

Where do programmers look for reference/documentation about Java's features/libraries/functions? [on hold]

Rookie programmers learning the language usually use a book or online materials.They are introduced to the language's syntax, common used functions for text processing or math operations. Only a small ...
0
votes
0answers
17 views

Where would you put configurable data to minimize Change Management slow downs?

I want to start by saying I understand Change Management's job especially when there are government contracts and security policies that must be followed. They are invaluable to prevent the mayhem ...
2
votes
2answers
52 views

Shared & exclusive locking

I need a "lock" that can be either shared or held exclusively, that will provide the following behavior for the following sequence of events: Process A: Requests and is granted a shared lock Process ...
1
vote
1answer
47 views

Algorithm to find the fewest number of values (from a set of values) where the sum equals a value (+ one more condition)

The simplest way to explain this is with an example. You're given then number 19 and you have a set of numbers to choose from: 1, 2, 3, 4, 6 When choosing values from the list (which can be ...
0
votes
0answers
38 views

Library in open source app

I am about to release free open source app on Google Play, which uses some classes from danielnadeau's HoloGraphLibrary (bitbucket.org/danielnadeau/holographlibrary/wiki/Home). Library is under Apache ...
-1
votes
0answers
8 views

Using linq to query a collection, gouping and summing certain items [migrated]

For some reason I cannot get the correct vb.net syntax (visual studio 2010) for a Linq statement that will do the following. Simplest and most straight forward code would be appreciated. Here is the ...
0
votes
1answer
48 views

Locking on data vs locking on functions

In concurrent code, what is the difference between, and the pros and cons of each: Locking on data Locking on functions My understanding is that locking on data is better, and I think I'm doing ...
-4
votes
0answers
28 views

Learning back-end development: Php vs NodeJS [on hold]

Hi i've already programmed in few languages: java, c++, objective-c Now i'd love to learn some web development, mainly back-end. ( i've already learned the basics of html,css,javascript and jquery ) ...
-2
votes
0answers
24 views

Difference between assigning a number or None? [on hold]

print("Temperature convertor") print("") print("f --> c ; 'f' ") print("c --> f ; 'c' ") print("") opcija = input("Option: ") if opcija == 'c' : c = 0 f = 0 c = ...
3
votes
4answers
224 views

What programming mindset to have towards JavaScript? [duplicate]

I used to program in Java. As a result of that I got well-versed with Object Oriented Paradigm. In my opinion it is a great approach to programming because it's easy to unit test, use design patterns, ...
1
vote
1answer
123 views

From which point does it become dangerous to keep going as the sole developer on a project?

I'm currently working as the sole developer in the brand-new "software department" of a company that, for the moment, gets all its revenues from consulting. The idea is that the management wants to ...
-2
votes
0answers
27 views

Source of extensive, battle-tested Unit Tests [on hold]

Where can I find solid, proven unit tests for common data structures and algorithms? I'm giving an introductory class, that covers basics such as lists (linked, array-based, tree-based, etc.), ...
-1
votes
0answers
24 views

Corporate Website Architecture

I asked this question in SO, was asked to move it here. I work for a startup and we're about to undergo a redesign of our main public-facing website. Simply put, the site does a lot. It's pretty ...
1
vote
1answer
63 views

How to store/deal with data available to other classes

I'm writing a CAD program. Let's say I have in input class, this class reads various data from a text file and creates lots of lists/dictionaries and .... These data need to be accessed by other ...
0
votes
1answer
50 views

Tracing and Logging per item instead of per application

I'm building a service in .NET that process "things" in the background and I'd like to trace the execution of these things per item, not per application. Most logging frameworks (I'm familiar with ...
0
votes
1answer
62 views

Sending Out Functions To Return Or To Die

Which is preferable for both solid technique and secure coding? Example #1: function_one() blah; function_two() blah; print blah; exit; ... Example #2: ...
-2
votes
0answers
58 views

Is the time complexity of this code snippet O(n)? [migrated]

struct lists * list_depth[ht]; for(int i=0; i<ht; i++) list_depth[i]=NULL; insert_to_list(&list_depth[0], root); for( int i = 1; i < ht; i++ ) { struct lists * temp = ...
1
vote
1answer
43 views

Does cleaning data before saving fall under the term “data sanitization”?

I understand that "data sanitization" mainly deals with cleaning user-entered data to prevent harmful effects (e.g. SQL injection), but what about other forms of cleaning data? E.g., trimming ...
-2
votes
1answer
30 views

Approximate string matching algorithms [on hold]

I'm looking for some efficient approximate string searching algorithms in huge lists of words/sentences. Most of studies I found are about ranking results. Can somebody give me an advice where can I ...
-2
votes
0answers
15 views

how to make an interactive databaseplatform [on hold]

Hi i have a bunch of information on excel spreadsheets, however i want to turn this into an interactive searchable platform online so my clients can easily navigate the infomation, what kind of ...
-3
votes
0answers
18 views

Php form validation with fwrite() and fopen() [on hold]

I want that php first validate the form and when the form is validated completely it runs fwrite script and when any field is empty, it returns an error and do not run frwite script. Am i doing right ...
2
votes
2answers
230 views

Unit testing and reality [on hold]

I m actually studying Unit testing, reading some articles on the internet and trying to understand how it works exactly, but it's not very clear for me actually. What should I test ? I have seen ...
0
votes
1answer
50 views

What's good about statement coverage?

When it comes to code coverage, you often hear about the flaws of statement coverage criteria. We're told that statement does not take into account control structures and branches thereof, and is ...
0
votes
1answer
68 views

On planning and implementing classes and their properties

When writing applications in an object oriented manner, I often have hard times deciding how to implement my classes. I fail to decide which properties should belong to a certain class and often end ...
-4
votes
0answers
32 views

can someone explain me what does a <enum class>.values() functions actually do? [on hold]

I used a values() method in an enhanced for loop to traverse all values in my enum class. But what does this method actually do?
-4
votes
0answers
40 views

Custom code folding in Eclipse

For those who use Eclipse and are working primarily in Java, there is a custom folding plugin coffee script. It is old but still works. However, C/C++ users are left without code folding ...
0
votes
2answers
185 views

Is using multiple static classes with maximum one public method is a good idea

I'm writing a structural detailing (CAD) software for concrete buildings in C#. I have defined like hundreds of static classes each with one public method and if needed some private methods. Each one ...
-3
votes
0answers
28 views

Java 1.6 on Eclipse: What does ERROR “annotation must be explicitly requested,” mean when creating new classes? [on hold]

I've copied code from a YouTube tutorial and for some reason the program terminates but it never renders the window. I've included Eclipse in firewall exceptions on Mac, I'm sure my system currently ...
-1
votes
1answer
56 views

Term to describe pre-canned objects for use in testing

There's a common term to describe a collection of pre-created objects that can be used in testing. It's on the tip of my tongue but I can't think of it, nor does google help. e.g. If I'm testing a ...

15 30 50 per page