I have a question regarding good design in C++. I have a class A, and all objects of this class use an integer array of constant values (they should share the same array, as their values are constant). The array needs to be computed (just once) before any object A.
I thought about having another class B which contains the integer array as a…
I am working on a web application in PHP. I have a singleton class called registry. This class will hold all the objects i need throughout my application, such as loader classes, template classes, database, classes, etc.
When an object of the registry class is created I send it an array with the classes it need to load:
// Create the…
OK, so I've read through various posts about teaching beginner's to program, and there were some helpful things I will look at more closely. But what I want to know is whether there are any effective tools out there to teach a kid Java specifically?
I want to teach him Java specifically because (a) with my strong background in C I…
Yes, this is not programming related but please bear with me =). I run a small niche SaaS business. Lately I've been thinking of traveling and experiencing life in other places. Would really appreciate suggestions for good places a developer could relocate to.
In particular I'm looking for a place that:
Has good internet connection…
I'm working on a Civilization-like game and I'm looking for a good algorithm for generating Earth-like world maps. I've experimented with a few alternatives, but haven't hit on a real winner yet.
One option is to generate a heightmap using perlin noise and add water at a level so that about 30% of the world is land. While perlin…
Hi
There are some major issues in my company regarding practices, procedures and methodologies.
First of all, we're a small firm and there are only 3-4 developers, one of which is our boss who isn't really a programmer, he just chimes in now and then and tries to do code some simple things.
The biggest problems are:
Major…
I have a struct called Point. Point is pretty simple:
struct Point
{
Row row;
Column column;
// some other code for addition and subtraction of points is there too
}
Row and Column are basically glorified ints, but I got sick of accidentally transposing the input arguments to functions and gave them each a…
Hi
I know this must be asked a millions times and can't be easy to answer as there is o definitive method, but any help would be appreciated, thanks.
I have been playing around with all sorts of things in Xcode and with Objective-C, however I can't seem to find a good way of learning things in an efficient way.
I have…
I'm looking for guidance on good practices when it comes to return errors from a REST API. I'm working on a new API so I can take it any direction right now. My content type is XML at the moment, but I plan to support JSON in future.
I am now adding some error cases, like for instance a client attempts to add a new…
I've been developing a travel planning site - tripgrep.com - which is built on appengine, GWT and smartgwt, among other technologies. It is still early days, and the site is now working well on my development environment, which is either a windows or mac computer.
However, I am frequently talking up the website…
Hello, I'm looking for suitable PHP Editor or IDE with syntax auto-completion. I've tried trial versions of programs like Zend Studio, PHPDesigner, NetBeans PHP, NuSphere PhpED, and similar -- but none of them fully satisfied me.
I quite liked hint window with detailed info about what function does and what it…
Hi SO's
I have a question on good database design practices and I would like to leverage you guys for pointers. The project started out simple.
Hey we have a bunch of questions we want answered for every project (no problem)
Which turned into...
Hey we have so many questions can we group them…
I'm looking for any good tutorials on vectorizing (loops) in MATLAB.
I have quite simple algorithm, but it uses two for loops. I know that it should be simple to vectorize it and I would like to learn how to do it instead of asking you for the solution.
But to let you know what problem I have, so you…
Hello
I have thought for a while over an issue with the loading of images on a website-solution that I have programmed (For fun and the experience)
The programming language used is PHP with MYSQL as the database language
It also uses javascript, but not extensively
I have recently realized that the…
I found user controls to be incredibly useful when working with ASP.NET webforms. By encapsulating the code required for displaying a control with the markup, creation of reusable components was very straightforward and very, very useful.
While MVC provides convenient separation of concerns, this…
Hi all,
I need to parse html for a project and looking for a good html parser or an API providing conversion from html to xml.
Waiting for suggestions...
Thanks All...
What is a good profiler for .NET 4.0? I'm willing to spend some money, but not too much (say up to £50)
I'm developing games for windows phone and xbox using XNA, which means that the projects are commercial. I mention it because I've seen several which are free for non commercial use.
Extra…
Hi,
I'm currently reaching the end of working through the K&R book "The C Programming Language", and I'm looking for things to read next.
Any recommendations of:
blogs
more detailed / advanced books
(I've already stuck Advanced
Programming in a Unix Environment on
my Safari bookshelf)…
Is anyone aware of a good tutorial/book which describes the FIX protocol? I need to connect to a FIX server. It supports a limited number of messages and I'd like to write my own FIX engine.
Hi everybody
I am developing an application to process geophysical signals; Right now I have done everything in octave and its digital signal processing toolbox, speed is not bad, however the application specifications say I need to port to the final algorithm to C; I am doing lots of…
Hi All,
Well it looks like Dreamweaver CS5 will try to smoother the HTML5 thing for a few more years (weeks actually). Seems like the next rung down is right to Notepad!
Anyone know a good HTML5 editor with a visual/preview/style leaning?
Eclispe with some pluggin?
(Seems like the…