2
votes
2answers
62 views

subclass reference to another subclass

Imagine I have the following code: class A: pass class B(A): pass class C(A): def __init__(self): self.b = B() Is the above code correct in terms of correct inheritance? I ...
30
votes
11answers
1k views

Should a developer be forced to memorize details?

Many times I forget things about my application. I don't memorize the table names or what a query did and I search to get what I want. My team leader told me I'm supposed to memorize the table names ...
1
vote
4answers
365 views

Good design for a simple site that contains a blog [on hold]

What is a good design for a simple web site with mostly static pages and a blog? I am helping a friend build this for their small business. We are looking for a simple approach that can be ...
-4
votes
0answers
21 views

Help with D3.js adding of circles to each of the country on the world map [on hold]

<!DOCTYPE html> <meta charset="utf-8"> <title>D3 World Map</title> <style> .country:hover{ fill: #52adcc; stroke: #fff; stroke-width: 1.5px; } .text{ ...
-2
votes
0answers
22 views

IE 11 Compatibility mode [on hold]

I want to add IE 11 compatibility mode in my code.I cannot use meta tag, as "". Please suggest me other than meta tag. Thanks in Advance.
1
vote
1answer
74 views

What to include in metadata?

I'm wondering if there are any general guidelines or best practices regarding when to split data into a metadata format, as oppose to directly embedding it within the data. (Specific example below). ...
7
votes
5answers
1k views

What should happen at the start of a software project startup?

A quick introduction My college semesters include a 8 week project working for an actual company with a software need in order to get some much needed practical experience. I have just started such a ...
-2
votes
0answers
20 views

connecting to different servlets through android client [on hold]

I am trying to connect to a servlet on application load and connecting to a different servlet on button click in android using urlconnection.But on application load it is connecting to the servlet but ...
-2
votes
0answers
31 views

Scalability, concurrency and response time in node.js serving API: better than Sinatra/Scala/Go? [on hold]

We're building a location-based app that has to provide realtime information about the location of things nearby. We're using Phonegap to build a hybrid client that can serve the information via a ...
2
votes
1answer
80 views

What is a good strategy to develop apps that run in console and as API?

I develop quite often scripts that are primary used as a console application but later they are used in other scripts, webservices and other things where it is very convenient, to just import the ...
2
votes
5answers
373 views

Which is better design: Determining if a function should execute from outside of it, or inside of it?

I'm often presented with these two options. From a design point of view, which of these is subjectively better, and why? Option A class foo { private boolean bar() { //Stuff } private ...
0
votes
0answers
7 views

Defining property and find substitution for copy function of python in cython

I want to cythonize a code in python to speed up the code. In the following you can see my attempt to make my python class understandable for cython: import numpy as np cimport numpy as np ctypedef ...
2
votes
1answer
46 views

Python API: Extension Module or Pure Module

We have a C++ application, with C++ interfaces changing regularly during development. We also have a C API which is designed to be stable in spite of such changes; the C API is tighly focused on ...
14
votes
13answers
3k views

Why do operating systems do low level stuff in C and C++? Why not just C++?

On the Wikipedia page for Windows, it states the Windows is written in Assembly for the bootloader and task switcher, and C and C++ for kernel routines. IIRC, you can call C++ functions from an ...
3
votes
2answers
105 views

To depend on source code or on binary?

We have two in-house projects, A and B, developed by different teams with B dependent on A. Since source code for both projects is stored in git, I've included project A as a submodule into project B ...
2
votes
2answers
106 views

Should we always create web application scalable? [on hold]

Fact that now a days everyone is moving to cloud due to ease in scalability, configuration and maintenance. But my question is should we develop all web application scalable event if it is not ...
1
vote
1answer
34 views

Equidistant polygons

Consider these polygons: For reasons of simplicity I only consider triangles or polygons with 4 vertices. These shapes are specified by the vertices, the output of the program should be modified ...
0
votes
4answers
68 views

Can one always design for scale out?

When designing an application where scalability is going to be important, it would be useful if the application could be designed to "scale out" on cheap commodity servers. However, there are many ...
3
votes
2answers
200 views

What's a good simple way to combat the n+1 problem?

I'm trying to better understand performance in PHP. One issue I'm thinking about is the n+1 problem. By n+1 I mean something like this: $posts = Posts::getPosts(); foreach($posts as $post) { ...
24
votes
5answers
3k views

Why do some functional programming languages use a space for function application?

Having looked at some languages for functional programming, I always wondered why some fp-languages use one or more whitespace characters for function application (and definition), whereas most (all?) ...
-7
votes
0answers
66 views

Can someone review my Resume [on hold]

I am applying to most of the jobs I fits into, but I am not getting any feeback from recruiter. I read no. of articles and written resume based on it. Can you guys review my resume?
0
votes
2answers
73 views

Best way to port Pascal persistence method to C#

My new jobs is to port a Delphi application to C#. The Delphi application was originally developed as a proof of concept and after it entered production the company wanted it ported. I'm required to ...
0
votes
1answer
60 views

How can I approach creating an efficient algorithm for maximizing value with these specific constraints?

I'm having trouble coming up with an approach that isn't n^2 for this problem. Here's a contrived, simplified version I've come up with: Let's say you're a company that needs 4 employees to launch in ...
1
vote
1answer
74 views

“Cross-cutting” domain in DDD

I've recently started studying Domain Driven Design and so far it looks like it will help tremendously with my team's current project. I'm running into a bit of a problem though actually determining ...
-1
votes
1answer
43 views

Best way to jump into asp.net from classic asp? [on hold]

First, I am not a programmer, I am a sysadmin that learned classic ASP, VBscript and VB6 15 years ago. I have been using ASP and VBscript quite extensively and effectively at work for things that I ...
37
votes
5answers
2k views

When is Singleton appropriate?

Some hold that the Singleton Pattern is always an anti-pattern. What do you think?
4
votes
3answers
70 views

Returning results of method on batch list?

The title is a bit vague so I'll try to elaborate. I have a function makeFoo(int bar) -> returns Foo or throws Exception. I also have a batch version of this makeFoos(int[] bars) -> ...
-3
votes
0answers
52 views

How to build an application(dash board) to monitor Sybase ase database server by python? If so please share details [on hold]

In this moment we are monitoring sybase ASE database server by shell script(cron job) these data we are pushing to other database server what we call is monitoring server.After business hrs we are ...
-2
votes
0answers
18 views

How to create a 3D Model using Wikitude? [on hold]

Has anybody tried creating a 3-D Modeling using Wikitude AR SDK for iOS? I have heard it's possible with Wikitude , the 3D Moedling. (http://www.wikitude.com/developer/documentation/ios) Please let ...
5
votes
4answers
339 views

Adding field to the class at runtime - design pattern

Imagine your customer want's to have a possibility to add new property (e.g. color) to product in their eshop in their CMS. Instead of having properties as fields: class Car extends Product { ...
-3
votes
1answer
99 views

As I learn to program [on hold]

Ok, life story in two sentences. I have been to college and have one semester left but I have obtained absolutely nothing from it (life lessons and the like don't count- I'm talking lucrative skills ...
2
votes
1answer
28 views

Object pointer with privileged access?

Let's say you have class Car with Car->tune() and Car->drive() class CarDriver class CarMechanic Each CarDriver and CarMechanic object has a reference/pointer to a Car object. The CarDriver ...
0
votes
1answer
21 views

Is SQL Server Sevice Broker appropriate for transfering large volumns of records from one database to another

I have a database that collects and process large volumes of records However due to the legacy nature of the system im working with (and the powers that be) i need to transfer (processed) records to ...
9
votes
4answers
954 views

Pointer indexing

I am currently reading a book titled "Numerical Recipes in C". In this book, the author details how certain algorithms inherently work better if we had indices starting with 1 (I don't entirely follow ...
8
votes
2answers
116 views

Early attempt to remove Python GIL resulted in bad performance: Why?

This post from Python creator, Guido Van Rossum, mentions an early attempt to remove the GIL from Python: This has been tried before, with disappointing results, which is why I'm reluctant to ...
-2
votes
1answer
110 views

Good program to test skills and how to know when I am a competent programmer? [on hold]

I am almost done learning c++ off of learncpp.com I want to know what is a project that I can work on once I am done that will test everything I have learned and allow me to learn what it is like to ...
0
votes
1answer
62 views

How should a JEE application store credentials for logging in to an external system?

I am in a situation where I have a Web Application (WAR) that is accessing a REST service provided by another application. The REST service uses Basic HTTP Authentication. So that means the ...
6
votes
1answer
139 views

How are Rust Traits different from Go Interfaces?

I am relatively familiar with Go, having written a number of small programs in it. Rust, of course, I am less familiar with but keeping an eye on. Having recently read ...
0
votes
1answer
30 views

Referencing official documentation in source-code documentation

What are your preferences for referencing official documentation (like a white paper) for an algorithm from comments in the code that implements it? I'm trying to decide between two methods, as ...
1
vote
1answer
54 views

Adding new functionality to all of shelve.Shelf's subclasses in Python

In order to avoid the overhead associated with the shelve module's writeback option I'm interested in putting together a shelf class that only accepts hashable values, with hashability being a proxy ...
1
vote
2answers
42 views

Why does CFileDialog::DoModal() Hang?

I have developed a fairly large C++ program in VS 6.0 on a Win XP platform, and have now migrated to a new machine running Win 7 (still running VS 6.0). The code includes a function to instantiate and ...
2
votes
2answers
110 views

Why lifting of binary function into the list monads goes over all the element combinations?

Say, if I want to create a cartesian product of two lists, I could do (here in Haskell, but I can do the same e.g. in Scala or any other FP-able language) cartesianProd = liftM2 (,) then ...
1
vote
1answer
95 views

AJAX or web sockets for client-server communication?

I recently took a course on AngularJS, and quite frankly I loved the concepts of a website that fetches json to handle subsequent requests, however I still feel like Javascript is far too slow for ...
3
votes
4answers
198 views

Split work item into prototype and main work item?

During grooming, we usually have work items which get approved based upon the team understanding that what needs to be done? The product owner does not discuss the details of how it will be done and ...
-5
votes
0answers
53 views

how to learn c++ if you know nothing about programming? [on hold]

I have tried online tutorials and books but I can't find one that is fun or explains without that techy vocabulary, is there any book that is fun or is for beginers that don't know anyting.
29
votes
15answers
4k views

Best Development Methodology for One Person? [duplicate]

I spend a lot of time working on projects in which I am the sole developer, project manager, designer, QT person (Yes, I know... Bad!), and sometimes I'm even the client. I've tried just about ...
30
votes
17answers
3k views

Introducing Programming To a Mathematician [closed]

I currently am a programmer, I'm almost 16 years of age and have pretty much narrowed my careers down to something involving a Computer Science degree or Electrical Engineering degree (I know they are ...
-4
votes
0answers
52 views

How to start programming? [on hold]

I'm 14 years old and would like to know how to start programming. I have tried reading books and online tutorials but I get bored just reading. Is there a fun book, tutorial or general method you ...
5
votes
4answers
429 views
+50

Scripts to run Java programs - e.g. Ant

My team currently use an Ant script to execute various Java programs. Note that I am not asking about managing the build/deployment cycle for which we are already using Maven (quite happily). For ...
-7
votes
0answers
97 views

SOLVED! Error in result: 5^2 = 24 and 10^2 = 99? [on hold]

The compiler is GCC and the program Codelite. Using double or float works!

15 30 50 per page