-3
votes
0answers
20 views

C Program to calculate the value of a function at a particular value of x using a McLaurin series expansion

I have a college assignment due soon for which I need to write a C program to calculate the value of a function at a particular value of x using a McLaurin series expansion to evaluate the function. ...
0
votes
0answers
12 views

Best approach for data storage in custom web app

I'm designing a system with clients where I have following data structure: users table: user,pass,name,address,phone,email,creditcard,verificationcode,ispro,istrial,regdate,etc. session table: ...
0
votes
0answers
32 views

Selling off an algorithm? Patent, copyright, attorneys… what do I do? [on hold]

I built this financial algorithm that solves a broad problem but has several elaborate modules executing it. I don't think there is anything like it out there and I think it may have lucrative ...
0
votes
1answer
28 views

Why does Git's stash commit need two parents?

Why does Git's stash commit need two parents? In the Hacker's Guide to Git, I see this mental model for stashes: The guide tells me that stash@{0} needs both A and B as parents. Why? Why doesn't ...
-2
votes
0answers
34 views

Replace tabs with spaces in C [on hold]

i want to replace tabs with spaces but i didn't get it. I have an file pointer which i give into the function and there are some \t and i want to replace them with as many spaces as needed. For ...
1
vote
0answers
46 views

Where did the three tenants of OOP originate?

It is easy to find the origin of the term OOP coined by Alan Kay when he created Smalltalk, but I can't find if when creating the language he also created the 3 tenants of OOP (Encapsulation, ...
-1
votes
0answers
21 views

Is it worth it to learn Java GUI programming? [on hold]

I'm a computer science student (2nd year), and in my university, they focus too much on Java programming. So, I started to like Java because I found it easier than C/C++ and I wanted to learn GUI ...
-1
votes
0answers
15 views

I'm starting off as a programmer and want to expand my horizons, what languages should I try to learn? [on hold]

Ok so I'm what you could call a total newbie at coding, I've only learning html and css (which some don't even count as real coding.) but none the less that's what I've done. I want to get more ...
1
vote
0answers
26 views

Ideas on Model of simple Traffic Simulation

I want to write a simple traffic simulation with one road intersection. First I thought of a cellular automata in the model but it should not be limited by an underlying discrete grid system so the ...
0
votes
0answers
16 views

Creating a We Based Board Game UI - Where should I Begin? [on hold]

I am trying to create a simple board game. I am writing the back-end in Scala and am thinking of creating a web based user interface. The board game is played using dice and the players have pieces ...
1
vote
1answer
55 views

The Better Parts and Delegation: Is Crockford Too Extreme?

Douglas Crockford has recently been giving a talk called The Better Parts. The gist of the talk is that JavaScript developers should actually avoid a superset of the The Bad Parts, which now includes ...
-10
votes
0answers
22 views

SQL SERVER DATA BASE ADMINISTRATOR [on hold]

I WANT TO BECOME A DATA BASE ADMINISTRATOR. WHAT COURSE SHOULD I DO AND WHERE. THANKS
1
vote
1answer
82 views

Why is close() implemented in InputStream/OutputStream?

It make sense to see close() as non-core functionality of stream objects. This is the reason this method is placed in interface Closeable. One evidence is that class ByteArrayInputStream does not ...
-3
votes
0answers
40 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
18 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 ...
-3
votes
0answers
17 views

UI Developer Javascript Programming Responsibilities [on hold]

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
39 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?
1
vote
2answers
64 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
41 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
19 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
55 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
41 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 ...
2
votes
2answers
68 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
62 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 ...
-3
votes
1answer
29 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
61 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 ...
3
votes
0answers
42 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
23 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
79 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
286 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
50 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
53 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
50 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
46 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
49 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
25 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
230 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
131 views

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

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
28 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
64 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
51 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 ...

15 30 50 per page