0
votes
1answer
21 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? b) How to learn JAVA so I can search for a job? So far I read 230 pages of Eckel's book in 19 days (i made ...
0
votes
3answers
14 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
1answer
29 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
41 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
51 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 ...
-4
votes
1answer
19 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
32 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
17 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 ...
0
votes
0answers
19 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
19 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 ...
1
vote
3answers
55 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
234 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
41 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
14 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
50 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
44 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 ...
-1
votes
0answers
28 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 ...
-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
46 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
27 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
23 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
218 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
112 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
22 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
58 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
44 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
29 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
229 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
49 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
67 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
30 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
37 views

Custom code folding in Eclipse

For those who use Eclipse and are working primarily in Java, there is a custom folding plugin. It is old but still works. However, C/C++ users are left without code folding customization. Eclipse CDT ...
0
votes
2answers
182 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
26 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
53 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 ...
0
votes
0answers
79 views

Better way than scrolling a long list

I have a mobile app that allows you to browse lists of songs: [a][b][c][d][e] Elvis - Song 1 Elvis - Song 2 Elvis - Song 3 Ernie Wood - Song 4 You can jump to the letter to filter based on the ...
5
votes
1answer
133 views

Log to file or to database table?

I'm developing a web application which uses MS SQL for various data: including users, user accounts, user licenses, license prices, invoices. I need to log users' real-time usage of the system, and ...
-2
votes
0answers
39 views

Django vs Rails for SaaS Startup [on hold]

Several friends and I have a SaaS idea we want to flush out and build a prototype. We have already decided on AngularJS for the front-end, so we need to find a framework that plays well with ...
0
votes
2answers
73 views

How early does a hashable type need to become immutable?

Suppose I have a class that looks vaguely like this: class Foo(object): _value = None # XXX: see below def __init__(self, value): self._value = value @property def ...
-6
votes
0answers
19 views

Link's massive in webdriver [on hold]

I want create script where the 1st step is to open a website and the 4th step is to click on a button. The button I want to take is from massive. I'm getting an exception. Can you help me or give me ...
5
votes
2answers
158 views

How detailed should QA aim to be?

When QA discovers an issue during testing should they... Log the bug with the test case and scenario information and move on testing? Try investigating to determine why the bug is happening? I ...
-6
votes
0answers
26 views

What things you take into consideration while developing a java web application? [on hold]

While developing a new java web application , what are the things we consider?
4
votes
3answers
104 views

Test Driven Development when the specifications change

These days, it's fairly common for me to be tasked to make a change that actually breaks the prior spec. I know that one of the major ideas behind TDD is to have a suite that verifies all your changes ...
-4
votes
0answers
33 views

Mock interview help in Oslo Norway [on hold]

I am basically from India but I have moved to Norway a year ago. I am looking for a job here as a .net developer. The most basic requirement is Fluent Norwegian. I can communicate very well in ...

15 30 50 per page