instruction stringlengths 34 19.9k |
|---|
I am currently architecting and designing an exciting new web application that will be entering into some areas that I have very little experience in, game development.
The application is not necessarily a game, but there are some very time sensitive tasks and scheduled jobs that a server will need to run to perform ga... |
I am considering outsourcing the development of an iOS app to various independent developers. I will have have various testers of the app. We all work for separate companies. Some of these testers will be customers, who I would like feedback from. As there are multiple developers involved I expect there to be a new rel... |
The company I work for uses vb.net since there are many programmers who moved up from vb6 to vb.net. Basically more vb.net resources in the company for support/maintenance vs c#. I am a c# coder and was wondering if I could just continue coding in c# and just use the many online free c# to vb.net code convertors. That ... |
Why Browsers do not resolve simple known issues such as:
(in the context of CSS)
Do NOT start a class name with a number! This is only supported in Internet Explorer
and
Do NOT start an ID name with a number! It will not work in Mozilla/Firefox.
|
I'm currently working on an application that does a lot of time-bound operations. That is, based on long now = System.currentTimeMillis();, and combined with an scheduler, it will calculate periods of time that parametrize the execution of some operations. e.g.:
public void execute(...) { // executed by an scheduler ea... |
We are designing a differencing algorithm (based on Longest Common Subsequence) that compares a source text and a modified copy to extract the new content (i.e. content that is only in the modified copy). I'm currently compiling a library of test case data.
We need to be able to run automated tests that verify the test... |
This comes from a closed thread at stack overflow, where there are already some useful answers, though a commenter suggested I post here. I hope this is ok!
I'm trying my best to write good readable, code, but often have doubts in my work!
I'm creating some code to check the status of some protected software, and have... |
I am looking into making a correctly laid out MVC Auth/ACL system. I think I want the authentication of a user (and the session handling) to be separate from the ACL system. (I don't know why but this seems a good idea from the things I've read.)
What does MVC have to do with this question you ask? Because I wish for t... |
I know what the JIT compiler is but how about why is it called that, it obviously catches exceptions Just in Time, but how and why should it be called this?
Sorry if this sounds a bit vague.
|
Does it make sense to use an ORM in Android development or is the framework optimized for a tighter coupling between the UI and the DB layer?
Background: I've just started with Android development, and my first instinct (coming from a .net background) was to look for a small object-relational mapper and other tools th... |
What is the best way to allow for dynamic fields/database columns? For example, let's say we have a payroll system that allows a user to create unique salary structures for each employee. How could/should one handle this scenario? I thought of using a "salary" table that hold the salary component fields and joining the... |
Is varchar just a remnant from before text came around, or are there use cases where you would want to use a varchar? (Or char for that matter..)
(I use Postgres and MySQL (MyISAM) daily, so those are what I'm most interested in, but answers for other databases are of course welcome. ^_-)
|
Are there any Java open source projects that Pays the developers?
I came across this from a book : Programming Interviews Exposed. Page #25
Are open-source projects preferable?
The vast majority of programming jobs have usually involved
proprietary, closed-source projects, which some programmers find
objectiona... |
So let's say I have a DB table with 8 columns, one is a unique auto-incrementing used as ID. So I have a page that pulls in the info for each row based on query string ID. I want to give my users the ability to propose changes. Kinda like a wiki setup. So I was thinking I should just have another duplicate table or... |
There is this data structure that trades performance of array access against the need to iterate over it when clearing it. You keep a generation counter with each entry, and also a global generation counter. The "clear" operation increases the generation counter. On each access, you compare local vs. global generation ... |
I've got a value that many objects need. For example, a financial application with different investments as objects, and most of them need the current interest rate.
I was hoping to encapsulate my "financial environment" as an object, with the interest rate as a property. But, sibling objects that need that value can't... |
I have a system where data is stored in a persistent store and read by a server application. Some of this data is only ever seen by the server, but some of it is passed through unaltered to clients.
So, there is a big temptation to persist data - whether whole rows/documents or individual fields/sub-documents - in the ... |
What are ways to allow the versioning of database entries (data)?
Think of the content-managment-systems abilities to revert back changes of articles.
What are their pros/cons?
|
For a two player game where, your opponent could be on the network, CPU itself or near you where you would play turn by turn on the same machine.
How do people design classes for re-use ?
I am in a similar situation and have no experience in making such complex games.
But here is what I have thought,
If I am a player ... |
I am NOT doing test driven development and I write my test classes after the actual code is written. In my current project I have a test coverage (Line coverage) of 70% for 3000 lines of Java code. I am using JUnit, Mockito and Sonar for testing. But I feel that I am not actually covering and catching 70% of the proble... |
I was reading this article on MathWorks about improving MATLAB performance and you will notice that one of the first suggestions is to preallocate arrays, which makes sense. But it also says that preallocating Cell arrays (that is arrays which may contain different, unknown datatypes) will improve performance.
But how ... |
I'm in the process of writing my own programming language which, thus far, has been going great in terms of what I set out to accomplish. However, now, I'd like to bootstrap some pre-existing data structures and/or objects. My problem is that I'm not really sure on how to begin.
When the compiler begins do I splice in... |
Is it possible to have a Java standalone application (no application server attached) that exposes some operations that a client can call and be the one to manage the transactions?
I was thinking this application to expose JNDI resources and get a hold of a java:comp/UserTransaction from there, get also a bean from the... |
I have a bunch (thousands) of resources in an RDF/XML file. I am writing a certain subset of the resources to files -- one file for each, and I'm using the resource's title property as the file name. However, the titles are every day article, website, and blog post titles, so they contain characters unsafe for a URI ... |
If I come across a non-critical typo in code (say, an errant apostrophe in a print(error) statement), is it worth making a commit to resolve that error, or should it simply be left alone?
Specifically, I'm curious about weighing the gumming-up of the commit log against the value of resolving these non-critical typos. I... |
My company's head of software development just "resigned" (i.e. fired) and we are now looking into improving the development practices at our company. We want to implement unit testing in all software created from here on out.
Feedback from the developers is this:
We know testing is valuable
But, you are always cha... |
I have a weird situation where a client would like a script that automatically sets up thousands of appointments over several days. The tricky part is the appointments are for a variety of US time zones, and I need to take the consumer's local time zone into account when generating appointment dates and times for each ... |
It has been a few months since I started my position as an entry level software developer. Now that I am past some learning curves (e.g. the language, jargon, syntax of VB and C#) I'm starting to focus on more esoteric topics, as to write better software.
A simple question I presented to a fellow coworker was responded... |
I work at a web design/development shop. Everything we do is centered around the Joomla! CMS. I'm a bit worried-if anything goes wrong with Joomla (major security flaw revealed, Joomla folds and ceases development) we're sunk.
I'm meeting with the CEO to plan the next few steps for our company. Should I recommend ... |
F# comes out of the box with an interactive REPL. C# has nothing of the sort and is in fact kinda difficult to play around without setting up a full project (though LINQpad works and its also possible to do via powershell).
Is there something fundamentally different about the languages that allows F# to have the intera... |
Imagine you're writing some sort of Web Analytics system - you're recording raw page hits along with some extra things like tagging cookies etc and then producing stats such as
Which pages got most traffic over a time period
Which referers sent most traffic
Goals completed (goal being a view of a particular page)
And ... |
This may sound a bit strange, but I'm wondering about a good way to work in Git from multiple machines networked together in some way. It looks to me like I have two options, and I can see benefits on both sides:
Use git itself for sharing, each machine has its own repo and you have to fetch between them.
You can wor... |
I'm a bit disappointed there is almost no discussion of this no matter where I look so I guess I'll have to ask.
I'm writing a cross platform memory bench marking application which requires direct physical address mapping rather than virtual addressing.
EDIT
The solution would look something like the Linux/Unix syste... |
I’m Looking for a definitive answer from a primary or secondary source for why (notably) Java and C# decided to have a static method as their entry point, rather than representing an application instance by an instance of an Application class (with the entry point being an appropriate constructor).
Background and deta... |
Methods:
1. getDistance(CityA,CityB) // Returns distance between two cities
2. getCitiesInRadius(CityA,integer) // Returns cities within a given distance of another city
3. getCitiesBeyondRadius(CityA,integer) //Returns cities beyond a given distance of another city
4. getRemoteDestinations(integer) // Returns all... |
I'm designing a flexible Wizard system that presents a number of screens to complete a task. Some screens may need to be skipped based on answers to prompts on one or more previous screens.
The conditions to skip a given screen need to be editable by a non-technical user via a UI. Multiple conditions need only be com... |
I have a basic understanding of programming and I currently learning C++. I'm in the beginning phases of building my own CLI program for ubuntu. However, I have hit a few snags and I was wondering if I could get some clarification. The program I am working on is called "sat" and will be available via command line only.... |
I have made a program using Java that is an implementation of this project: http://nifty.stanford.edu/2009/stone-random-art/sml/index.html. Essentially, you create a mathematical expression and, using the pixel coordinate as input, make a picture. After I initially implemented this in serial, I then implemented it in... |
I was just wondering if there are any major advantages or disadvantages to using either XAML/C# or HTML5/JavaScript for Metro Apps.
|
I'm a pretty big fan of Sublime. One of my favorite features is the ability to scroll through your file by using the compressed image of your text on the upper right hand corner (minimap). My gut feeling is this does positive things for productivity:
Does having this minimap to scroll through actually improve produc... |
I've been writing in Java and C# for a while, but I'm having a hard time identifying places where using a custom annotation would be advantageous.
I can see that JUnit uses annotations in test classes to identify the order it should run the methods in the test classes, which obviates the need for a configuration of som... |
In a large project you only get to use the technology necessary for that project; smaller projects come and go, and you need to learn more technologies.
On the other hand large projects are usually complex and thus hard; if you are used to hard projects then you should manage to perform well on smaller projects.
So, in... |
The more SQL fields I add to my tables and the more primary/foreign keys I add the more I lose the overview for specific fields for certain scenarios like Get/Add/Delete/Update data.
I use SQL Management Studio (SQL Server) to design my database in the database diagram designer.
Maybe there is a better tool or good app... |
I am newly learning C Programming.
When we have a C Program with lot of functions, parameter passing, calling and all - It becomes a great problem as to which variable must be declared where.
My question is: If I declare all the variables (or atleast the variables that are confusing me) as Global Variables - my proble... |
I have created a small C# project to help me learn how to write good unit tests. I know that one important rule of unit testing is to test the smallest 'unit' of code possible so that if it fails you know exactly what part of the code needs to fixed. I need help with the following before I continue to implement more un... |
I'm reading "Professional Team Foundation Server 2010" by Wrox, and in an advantages/disadvantages list, the said:
"Like CVS, SVN makes use of .svn directories inside the source folders to store state of the local working copy, and to allow synchronization with the server. However, it can have the affect of polluting t... |
I'm new to unit testing and I need some help with the following.
I have created a small project to help me learn how to make Unit Tests. The functionality for one of the forms in my application deletes a user from the User table (and other rows in mapping tables).
Currently, the unit test I have created to test this s... |
I need to perform large amounts of computations on data storerd in a busy Microsoft SQL server. Would it be faster if I retrieve the data from the server, perform the computations locally in C++, and possibly later update the tables on the server, all through an API?
Many thanks.
|
A good example of someone who fits that description might be a project manager.
I was asked by my boss the other day, "what this Github thing is and why it's important?" He has some proprietary projects so he would need private hosting and I found myself struggling to explain beyond the usual: VCSs make collaboration ... |
We are starting a project where we will need to write parsers for a bunch of binary file formats, each of them representing very similar data (time-value series from different measurement devices).
Since we are starting from scratch, I would like to get it right, and I see two possible approaches:
write dedicated, hom... |
I have something that works like a fixed size list - it's actually called FixedSizeStack<T> in my program. I will use it to represent the X last occured events. This event list will then be examined by different observers, and if they detect patterns they will trigger some action.
Naturally, I see no reason for them to... |
I have to perform 3 tasks:
an insert, a delete, and a write
I'm not sure what the best way to do this is. My mainframe program design skills aren't too tight, so I was looking for advice.
Could I avoid doing a COBOL program for this?
The way I see it, I just need JCL that executes SQL statements. If I design my stateme... |
What's the best way to optimize a Rails app where you need to pull info from the database for a collection of items?
For example, if I am building an online forum system... I would have a number of Posts and the posts would have_many :recommendations and :comments and :favorites. When I display the posts in my view, I ... |
What are some examples of good class structures used to manage database access? I am a fan of class encapsulation and would prefer the containers (e.g. car) not to perform database tasks.
I would also like the ability to easily drop in things like a database cache in future.
I often take the pattern of container classe... |
I'm having a bit of a design dilemma here. I'm writing a library that consists of a bunch of template classes that are designed to be used as a base for creating content. For example:
public class Template
{
public string Name {get; set;}
public string Description {get; set;}
public string Attribute1 {get; ... |
I have a job as an intern at a technology company, I was given the unfortunate job of performing some data entry into our web management system. The information entered into the web form is stored in a MySQL DB. Upon receiving the data I realized I would have to submit this online form about 1000 different times all co... |
How do I separate words in a string?
In the following I have a random sample of words in a string extracted from text file with over a million words.
Here's the string:
"intervene Pockets Jerusalemand tissues powerful days gadgets rate invention heated Stewartis find communal working lots internal They caused noise of... |
I've used both Liferay and Alfresco trying to use them as the Document Management System for an intranet.
I noticed the following:
They use the file system and the database to store files
They use a GUID to name the file on the filesystem and that GUID is
used as an Id in the database.
The GUID-named file is a binary ... |
I have a c++/cli tcp client application sending a data in a specific format like L,20100930033425093,-5.929958,13.164021
to a main application on port 9000.The main application is actually done by the other vendor and I dont have the source code for that.
Now,I can communicate to the desired application using the IP an... |
We have the following scenario:
Changeset #1 is some unfinished buildable checkin
Changeset #2 is a completed small task
..
Changset #5 completes the work done at CS#1
They all affect the same output dll.
How do we deploy changes done at CS#2 without the other work? Also how can we avoid this situation happening again... |
I'm very new to GIT/GitHub (as new as starting yesterday). I would like to know what is the best way to manage multiple people working on the same project with Github. Currently I'm managing one project with four developers.
How do I go about the workflow and making sure everything is in sync?
(Note: All developers wi... |
I'm looking to develop a one page app, and will likely be using node.js for my server side coding.
I'm trying to get some advice regards the client-side coding. While i realise that something like backbone.js would really help me, since im very new to development the learning curve is very high for me.
So i'm going to ... |
As a long time PHP developer, I am now starting to explore the Python world.
I have narrowed the choice of framework down to Django and Pyramid, probably no big surprise there. I have played a bit both both frameworks.
I really like Djangos admin, and the fact that everything is already integrated. My concern with Djan... |
I have very little knowledge in application security. I have often seen to protect your application from csrf attacks developers use tokens and pass these tokens with request to validate. I want to know if i just validate the request is coming from my server and rejects all requests coming from any other server how can... |
I'm a junior C# developer, I learned at home and now I got my first job :)
I want to buy these books. But what is the correct order to read these books?
Code Complete: A Practical Handbook of Software Construction
Clean Code: A Handbook of Agile Software Craftsmanship
Pragmatic Programmer
|
I've been having a discussion lately with some colleagues about the best way to approach a new project, and thought it'd be interesting to get some external thoughts thrown into the mix.
Basically, we're redeveloping a fairly large site (written in PHP) and have differing opinions on how the platform should be setup.
R... |
In CSS, what is the difference between visibility:hidden and visibility:collapse
They are given to be separate in W3Schools, but I see no difference in their output.
I have tried it in Google Crome.
|
I have this idea for a database: it would hold everything I "need to remember", and allow future coding projects to access the information. These future projects include a day-planner and historical analysis of what I've been up to.
The things I need to remember break down in to two main categories: Events and Tasks. ... |
When I (re-)build large systems on a desktop/laptop computer, I tell make to use more than one thread to speed up the compilation speed, like this:
$ make -j$[ $K * $C ]
Where $C is supposed to indicate the number of cores (which we can assume to be a number with one digit) the machine has, while $K is something I var... |
Given that mobile app analytics reporting can cost a customer data traffic that, unlike a web app, use of the mobile app may otherwise not require, should a mobile app provide a user accessible setting to allow customers to opt out of app analytics collection or reporting?
If and where should a customer be notified tha... |
Persistence Ignorance is an application of single responsibility principle, which in practice means that Domain Objects (DO) shouldn't contain code related to persistence, instead they should only contain domain logic.
a) I assume this means that the code which contacts lower layers ( ie persistence layers ) lives out... |
Here's what is given:
public interface Request {}
// there are 20 subclasses of Request
public class CreateUserRequest implements Request {
@NotEmpty
public String userName;
}
// request processor is a thing that aimed to process requests
public interface RequestProcessor<TRequest extends Request> {
boolean pro... |
I'm building some software for OS X that isn't distributed through the Mac App Store. My software allows users to download different modules uploaded by various people too.
How can I create a software patcher to patch my software, as well as update modules that users might be uploading when necessary? I've looked a bit... |
I'm developing a simple website for a client.
I have read about phpDocumentor and DocBlocks, and I thought that documenting my classes and functions will be very useful.
I'm almost sure I will not generate any documentation for the site, since it's a pretty simple website, and guess what? It doesn't have an API...
But ... |
The scenario:
A system needs to produce a variety of artifacts to present to end-users during the normal course of business. Examples of these artifacts would be permits, invoices, or receipts -- imagine any online app that gives you one of those "print this page for your records" pages. I'm working on a system that ... |
In my childhood I used to program on an MK-61 Soviet calculator. It had four operating registers (X, Y, Z, T) and 15 storage registers. A program could have 105 steps.
As I recall it, it had commands like:
Swap X and Y registers
Shift registers (Z to T, Y to Z, X to Y)
Copy from storage register (1..15) to X
Copy from... |
My goal is to check commit data that don't meet certain requirements and then reject either the commit being created or pushed to the remote repository.
The problem of doing a pre-commit hook is that it's hard to deploy to many people who have to manually update their pre-commit hook file. As well, Git does not allow y... |
So I found this very interesting library in Google Code site. It turns out it is advertised as "LGPL", which is good enough for me. However, in the README file of the library the author contradicts himself saying it is not available for commercial purposes.
I'm guessing that when you sign up to create your project in G... |
When drawing up a backlog, I have several requirements that apply to a great many user stories, i.e. aspects of the application like error handling and feedback. How do I include these (without using an #include directive in each user story )? Should I treat error presentation as a feature, then have user stories for t... |
I am building an API platform.
I have already ensured that the platform always returns JSON responses.
My question is
Should my API platform enforce the rule that all requests must be JSON?
What are the benefits of making all requests to be JSON?
I understand the benefits of making all responses to be JSON as this me... |
I am a C++ coder by tradition. Over the last 12 months or so I have been doing a lot of C# coding, and have been pleasantly surprised by C#'s pragmatic approach (once I stopped trying to code it as if it was "C++ with garbage collection").
We have recently had some graduates in and when helping one of them I realised ... |
I'm developing a Roleplaying character viewer/manager programme for a locap LARP system. The Characters have access to skills that are layed out in a tree-like structure. There are a lot of skills, and potentially a lot per character.
I know I can just import the Java swing library to get access to a tree, but I feel l... |
I know that Senior Developer doesn't use only one language and only one platform or IDE.
Can you advise how to mix different styles of programming to make efficient code?
For example, best mixing is Perl + Objective-C.
$ObjectiveCLongNameOfVariablesAndMethods are worst for Perl-style, but good for iOS-team.
[self meth... |
When the company I work in hired new managers, they offered us to overview someone's code on every meeting. We have meetings every two weeks, so each time one of developers was to show his/her code on the projector, and others were going to discuss it.
I thought this would be great: each developer would be more careful... |
I am learning LINQ to SQL (and planning to learn Entity Framework). Initially I used a abstraction layer to convert LINQ to SQL entities into a domain objects. Later I discovered the “Inheritance Mapping” option and removed the abstraction layer and started to use ORM entities directly as domain objects.
After some t... |
I have been working with Silverlight 5 application for a while. I liked this technology and I was captivated to the point to get certified in Silverligt development.
However, Html5 gained momentum this point, a new wave of thinking about new applications. Now, i am considering whether to develop in Sl or html5.
I have... |
Is it better to check for allowed domain values on the frond end or let the database engine handle the domain integrity. For example If you have a data entry form for employee, is it better to check for allowed values on the data entry form before submitting the data to the database assuming network IO is not a big iss... |
Part of one of my applications has contracts and contract_types tables, wherein a type may have many contracts but a contract may only be of one type. Now a new wrinkle has been introduced: a contract may change type over time (although it can, thankfully, still only be of one type at any one time).
The simplest soluti... |
I wonder is it possible or is there a tool to generate annotated POJOs from a table.To make it clear,for example,Person table has fields like ,id,name,surname etc and i wanna to generate a POJO named Person with mappings made with annotations.
|
I knew double or float value can be not only normal value(-1.3, 0, 1.0, 2.3) but also NAN and INFINITY in Objective-C.
Is there other special values except for NAN and INFINITY for double/float value in Objective-C?
|
I have been programming in higher level languages (Python, C#, VBA, VB.NET) for around 10 years and I have completely zero understanding on what's going on, "under the hood."
I am wondering what are the benefits of learning assembly, and how will it aid me as a programmer? Can you please provide me with a resource that... |
Background: Currently an intern at a company and working on repurposing older programs (still in use, but for different departments) for use in testing new hardware. The new hardware is different in terms of register layout and firmware interface from the older iterations of hardware. I have been given free reign on ho... |
Is there anything that can be done for a single general purpose application to affect the power consumption of the device it is running on?
I am not familiar with how optimizations to individual applications may affect power consumption in a general way, can someone explain if different approaches to writing applicatio... |
I have an embedded database (SQLite), it stores information about events and page views, its purpose is to track the user journey inside my application. I need to provide support for optional custom properties on my events and page views.
In code this is not a problem, however I am torn between two solutions for stori... |
I have been using an agile methodology (SCRUM) for about three years now and I see certain advantages to it, especially in the short-term feedback at many levels (from customers having early access to implemented features, from testers that can test features as soon as they are implemented, from other developers that c... |
I'm facing problem in gsoap , if two user go to register
at a same time then database is
locked, i think its threading problem ,
how to handle it, please insist me. I am running multiple threads in background. every 5 seconds sending data to server.
|
I was reading Agile Manifesto Principles. Everything seems clear and reasonable except for one point:
Simplicity--the art of maximizing the amount of work not done--is
essential.
I dont understand this. Does this mean that the work that wasn't done should be somehow exaggerated? If so, it doesn't really make sence... |
I've been working on software to modify a game's resource files, and I'm planning on releasing it in open source. I'm perfectly fine with releasing my code under gpl v3. However, I'm afraid that that would deter others from writing extensions for my software, as I have had others offer to do so - the community which ... |
Ok, I understand the normal conventions of using verbs with functions and nouns with classes. What about interfaces? Is there any methodology when coming up with interface names that may not be that obvious?
Just to make it clear, I'm not talking about whether to put an "I" in front of the name or if to use camelCase o... |
Hi and thanks for looking!
Background
I have a project wherein I need to abstract meaning from a passage of text to determine what the text is seeking and then match that text to a list of search results.
Now, I have some context with this and the following scenario is very close, but doesn't violate my NDA with the cl... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.