instruction stringlengths 34 36.1k |
|---|
I think this question related not only to agile but to teamwork in general.
When we are working in a team and each member is working a user story to complete how to avoid creation of duplicate classes and conflict?
I mean if my user story require the creation of class A and also my team member need the same class and ... |
Suppose I was writing an address book application where the details of each contact were stored in an SQL database.
A user wants to know all the details for a person whose name is "Bob [Someone]".
In such a case, would writing a query like this be okay?
SELECT *
FROM contacts
WHERE name LIKE 'Bob %';
I'm confused beca... |
I've been reading some papers recently on domain specific languages (DSL), but none of them appear to address the advantages of a DSL over a rich internet application (RIA). In an RIA, instead of learning the domain language, the user is provided with domain objects as form fields, which abstracts the lexical definitio... |
I have the project for work that requires me to send e-mails to people using our work mail server. The server doesn't require authentication. Part of my project is using a Java-Helper I'm developing on GitHub. I don't know if I completely understand how it all works, but I'm guessing it would be a bad idea to have the ... |
I'm starting a new project, and trying very very hard to use TDD to drive the design. I've been pushing for years, and finally got approval to spend the extra time on this project to use it while I learn how to do it properly.
This is a new module, to tie into an existing system. Currently, all data access happens th... |
I'm getting a new computer and would like to minimize the time spent configuring and maintaining dev environments on my various machines.
To that end, I'm thinking that creating a vm with my preferred ide and configuration and using that vm for development on all my machines.
I'd like to use Windows 7 as the vm's os.
F... |
I am wondering which license the current JDK 7 (NOT the OpenJDK) is using as I know it was once under GNU GPL but with the change of the Distributor License for Java I would like to know whether they changed the allover license, too.
|
This is a related Q:
Is use of finally clause for doing work after return bad style/dangerous?
In the referenced Q, the finally code is related to the structure used and the necessity of pre-fetching. My question is a little different, and I believe it's germane to the broader audience. My particular example is a C# ... |
I've never noticed this quirk until now, and it's screwing with my mind. Why was HTML 4.01 numbered with a leading zero, rather than as 4.1?
|
I have a very simple program in Ruby that opens a dictionary file, sorted-words.txt and prints out all the words in pig-latin. I tested its speed, and the first time I ran it, the program finished in about 1.6 seconds. The second time I ran the program, it took about 2.1 seconds. Between the two runs, there was maybe a... |
Facing a situation where I can't possibly get all the features that are requested into each version of the LOB I support, I've evolved a number SQL query templates that users have and send to me, which I then execute.
This then led to a password protected SQL execution dialog which users with write access can execute f... |
I am working with a project in VC++ which involves co-ordinate system having x,y,z axis.
I am trying to check for if a variable(Point with x,y,z values) is assigned on the coordinate system or its a default point(uninitialized) .
Since a coordinate system I cannot assign a default value to the variable to be either neg... |
I'm writing a database interface in PHP and I have a base dbTables class, as well as a base dbTableFields class.
dbTables has a function, getFields(), that instantiates dbTableFields objects, each of which carries essential data on each table field, and puts it into dbTableFields->fields=array();
dbTables has several c... |
I am very confused about this programming language, Objective-C, which I heard is used to develop iOS applications.
I know that it uses the principles of OOP. Would it be easier to learn if I already knew C++?
What about it's name? is it a combination between the C programming language and the OOP principles I use in C... |
I'm developing small Java Web Applications on Tomcat server and I'm using MySQL as my database.
Up until now I was using a connection singleton for accessing the database but I found out that this will ensure just on connection per Application and there will be problems if multiple users want to access the database in ... |
In many projects these days most of the novel code consists of glue code that helps combine dozens of different libraries, plugins and helpers that are licensed under a variety of open source licenses.
In many cases the licenses are fairly obvious as they carry the name of the license in the license file or comment. In... |
I am contemplating a direction to take an application. The application is written in PHP which implements a MVC framework.
Some of my clients will require web services. I was thinking even building the basic PHP web interface on top of these web services (SOAP) and stopping the PHP application from accessing the datab... |
I am relatively new to web development and haven't had to provide estimates for many large projects yet (my last large project was just paid for by the hour without a strict deadline or budget).
A client is asking me to provide a cost and time estimate for providing a myriad of changes to another developers code for a ... |
I come from an ASP.NET forms background and have found server side coding very powerful in the past. More recently, however, I have been wanting to phase out the server side code of the front-end and replace it with pure HTML/JavaScript, which accesses the data through JSON webservices. I have no real experience in thi... |
I've been wanting to try out VS2011 and .NET 4.5 beta, but the upgrade path is confusing at best. If I understand what I've read, the .NET 4.5 framework overwrites the .NET 4.0 libraries on your local machine, so libraries such as mscorlib.dll and System.dll will be replaced with the 4.5 version - fully backward compat... |
Google is well known for the ridiculous amount of C++ they've coded over the years. Correct me if I'm wrong, but a large part of Google's core search engine is written in C++, isn't it? How does one take a program written in C++ and interface it with a website?
Note: I'm not looking for how Google in particular does th... |
I keep hearing people (Crockford in particular) saying the DOM is a terrible API, but not really justifying this statement. Apart from cross-browser inconsistencies, what are some reasons why the DOM is considered to be so bad?
|
When you build an application, is it better to design the UI first (in Photoshop or whatever), then implement the functionality following the UI you just designed, or do the programming and build the design as you go?
Advantages I see using UI as reference:
the app will end up very UI-friendly :)
like pdr mentioned, i... |
Last week, we had a heated argument about handling nulls in our application's service layer. The question is in the .NET context, but it will be the same in Java and many other technologies.
The question was: should you always check for nulls and make your code work no matter what, or let an exception bubble up when a ... |
Is it logical to estimate cost of project depends on source lines of code?
Like those calculated reports from tools such as
sloccount
ohloh estimating
*
How to convince [somebody|employer|client] to pay depends on those reports ?
The weird things come to scene when I see something like $83,862 based on my project.
So... |
Using spring mvc to create a restful api, Maven is build tool and tomcat with spring jars is deployment .
Plan A: each webservice will be its own separate war file/project ? if required I would supply dependices as jar(s) (such as any dao's/dto's/service layer classes used in different webservices? I would share the s... |
I'm 16. I started programming about a year ago when I was about to start high-school. I'm going for a career in programming, and I'm doing my best to learn as much as I can. When I first started, I learned the basics of C++ from a book and I started to learn things by myself from there on. Nowadays I'm much more experi... |
Should the developers who creates programs with Delphi, FPC, Lazarus agree with the name of the language? This struck me since every possible variation not only adds confusion for new programmers, also when I write or name each of them, I feel that it's not fully correct.
Pascal. We know how Wirth dislikes OOP, so thi... |
I am working on a project (which includes JavaEE web apps and JavaSE apps) that has grown from a single developer to a team of three, and issues of readability and robustness are starting to emerge.
One glaring omission from the Java language has been fine tuned contracts, and how easily these are exposed to other deve... |
So I have a factored polynomial of the form (z-a)(z-b)(z-c)...(z-n) for n an even positive integer. Thus the coefficient of z^k for 0 <= k < n will be the sum of all distinct n-k element products taken from the set {a,b,...,n} multiplied by (-1)^k, I hope that makes sense, please ask if you need more clarification.
... |
I've heard of probabilistic data structures like Skip Lists and Bloom Filters being immensely useful and I'd like to learn more about them in general. Is there a canonical reference on the subject on the level of Cormen et al.?
|
I'm a bit confused about if and when I should use typedef in C++. I feel it's a balancing act between readability and clarity.
Here's a code sample without any typedefs:
int sum(std::vector<int>::const_iterator first,
std::vector<int>::const_iterator last)
{
static std::map<std::tuple<std::vector<int>::con... |
I'm surprised to find that it might be possible to use Pascal with the Cocoa and Cocoa Touch frameworks. This is an interesting turn of events, as Pascal was the favored language for Mac development for a short while early in the history of Macintosh.
It looks like someone has gone to a lot of trouble to make Pascal wo... |
My apologies in advance if this is not a good forum for this question; pointers to others happily accepted.
On the off chance it matters, I'm not going to commercialize this idea or anything; if anything in here is interesting to you, use it as you see fit.
My basic problem is this: My favorite place to do non-code wri... |
As a C++-programmer in interviews I repeatedly found myself in situations were the interviewer wanted to probe my knowledge of good programming style. These typically were centered around basic knowledge of OOP.
I know OOP is useful to encapsulate concepts and I use it daily. However, since a language like C++ allows m... |
I'm currently working with a professor at my university to develop new curricula for the Software Engineering and Capstone Design courses offered in my college.
Up until recently, both courses used the waterfall model exclusively, and thus students spent a majority of their time writing lengthy reports. After much pres... |
I'm trying to find a better solution for making a parser to some of the famous file formats out there such as: EDIFACT and TRADACOMS.
If you aren't familiar with these standards then check out this example from Wikipedia:
See below for an example of an EDIFACT message used to answer to a
product availability request... |
Today, the Internet Explorer Box Model problem is mostly a non-issue. Most web developers place a <!DOCTYPE> tag to enforce standards compliance, and nobody really cares about supporting Internet Explorer 5.5 anymore.
However, some developers have come up with subjective, conceptual arguments in defense of the IE box ... |
I have my Python source structured as follows:
+-branchname/
+-dst/
+-src/
| +-library/
| | +-cleese/
| | | +-test/
| | | | +-__init__.py
| | | | +-test_cleese.py
| | | +-__init__.py
| | | +-cleese.py
| | +-palin/
| | +-test/
| | | +-__init__.py
| | | +-test_palin.py
| | +-__init__... |
I'm developing a Killer Sudoku solver for a school project. I've programmed 10 human strategies showing what they are doing in order to be the most educational possible.
It can solve hard Killer Sudokus right now but my teacher proposed that I use backtracking to solve every possible grid.
I've been trying for one week... |
I have loaded a .RAW file into a 2x2 array in my class. The way I am rendering it works fine but I am struggling to get the camera to move on top of the terrain. The terrain renders from 0,0,0 (x,y,z) as that is where I put my camera. My camera class allows to the "camera" to move through the scene.
I want to be able ... |
Are there any eye-tracking case studies, or similar research done to verify what code format is easiest to read, maintain and work with?
I always format my code the following way:
function thing()
{
if(something)
{
// do something
}
else
{
// do something else
}
}
However, I never s... |
Going through some old Hacker News items, I came across a post from a user that said
Aguri trees, which marry a bounded-size radix trie (like you'd use in a software routing table) to an LRU list, and automatically synthesize aggregates (like, 10.0.0.0/16 from 1,000 observations across all IPs) from the pattern of ins... |
In Java, why are nextInt() and nextDouble() instance methods of Random objects?
I feel that these methods should be static methods of the Random class. What is the purpose of having to instantiate a Random object to generate random integers or double values?
|
Time to time, I have to work on a website that involves a huge background in size and resolution (1920 x 1080 in resolution, over 2mb in size). I've been using preloaders and it worked very well, except that users have to wait a little bit.
I noticed that google map splits a big image into many pieces. I researched abo... |
According to Wikipedia, a stack:
is a last in, first out (LIFO) abstract data type and linear data structure.
While an array:
is a data structure consisting of a collection of elements (values or variables), each identified by at least one array index or key.
As far as I understand, they are fairly similar. So, wha... |
There are benefits to each and I understand the differences, but what is considered best / standard practice? And why?
For example :
"myString".equals(myStringVar)
Avoids a potential NPE and does not require a null check. (Good thing?)
Cleaner to read since a null check is not required.
If null is not an expected va... |
I'm a little new to Java Web Development. JSF, JSP, Servlets, Hibernate etc... I have really a good understanding of OOP and C++. I have years of PHP and MySQL web development experience. I also have experience with C# and ASP.NET and I'm a software engineering student.
I don't want to continue my career with PHP, sinc... |
I've heard swarming mentioned in the context of Agile or Extreme Programming. It seems to be a complement to pairing.
What exactly is it? When should it be applied? How do you do it well?
|
I'm fairly familiar with where to use Stacks, Queues, and Trees in software applications but I've never used a Deque (Double Ended Queue) before. Where would I typically encounter them in the wild? Would it be in the same places as a Queue but with extra gribbilies?
|
Is there a Cormen-like reference on Hashes and Hashing? This particular structure has seen little attention in my CS education for some reason but I'd like to learn more as they seem to be everywhere. I know Cormen covers it but I'm looking for something more specialized and in-depth.
|
Why does the add method of a Linkedlist return true in Java?
http://docs.oracle.com/javase/1.5.0/docs/api/java/util/LinkedList.html#add(E)
Why not just make it a void method? I know it says "per the general contract of Collection.add", but why doesn't this contract/interface make add a void method?
|
I am studying OOP in C++ and, even though I am aware of the definitions of these 3 concepts, I cannot really realize when or how to use it.
Let's use this class for the example:
class Person{
private:
string name;
int age;
public:
Person(string p1, int p2){this->name=p1; t... |
Over the past week, I've been struggling to adapt a Grails application to use the REST architecture. Problem is, I've had nothing but trouble throughout.
For this application, the choice between using XML and JSON literally came down to a coin flip. Neither format offered much over the other, so I went with XML.
Writ... |
When we design applications, we generally end up with the same tiered sets of data structures:
A persistent data structure that is described using DDL and implemented as RDBMS tables and columns.
A set of domain objects that consist primarily of data structures, usually combined with business-rule level logic, that ar... |
I sometimes prefer to work in a terminal. I use git, and sometimes have merge conflicts. Are there any merge-conflict-resolution tools that work in a command-line only environment?
|
Often when configuring settings, applications have both an "Apply" and an "Ok" button. Should the "Ok" button always perform the "Apply" before closing the window out? Are there pros and cons to doing this?
|
I'm currently looking into API documentation generation tools and I noticed that apparently there are no efforts going on in standardization.
Javadoc style is kind of an ubiquitous convention... it is used for Java (duh), PHP (PHPDocumentor, doxygen, Stubbles), C/C++ (doxygen again)... and there is even IDE support fo... |
I have read different opinions about the singleton pattern.
Some maintain that it should be avoided at all costs and others
that it can be be useful in certain situations.
One situation in which I use singletons is when I need a factory
(let's say an object f of type F) to create objects of a certain class A.
The facto... |
The Ecma-334 (ISO/IEC 23270:2006) standard corresponds to the version 2.0 of the language.
Specification of version 4.0 is freely available from Microsoft, but Microsoft's open specifications list only lists the Ecma (version 2.0) version.
So what about all the good features added in the later versions (LINQ, lambda fu... |
Usually, tree data structures are organised in a way that each node contains pointers to all its children.
+-----------------------------------------+
| root |
| child1 child2 child3 |
+--+------------------+----------------+--+
... |
I am maintaining a WinForms application, which talks to a SQL Server database. Sometimes I have to change database schema (for example to alter a sql procedure or add new one). For this purpose I have a SchemaChange.sql file, where I put the corresponding sql code.
When I create an installer for my project, the msi pac... |
I want to learn about null values or null references.
For example I have a class called Apple and I created an instance of it.
Apple myApple = new Apple("yummy"); // The data is stored in memory
Then I ate that apple and now it needs to be null, so I set it as null.
myApple = null;
After this call, I forgot that I at... |
We have a requirement in our project to generate a big CSV file every 2 hours using a Java program.
This file will have around 60,000 lines (around 120 characters per line). I am not sure about the size yet.
I would like to know if I would run into any memory issues because I will open the file using FileWriter and the... |
I found two techniques for estimating user stories:
by the size of the story, which is unit-less
by the time estimate, which is measured by days
The first uses relative comparison between stories to infer time, and it should be independent on developer experience, while the second depends on developer experience.
I ... |
We want to store some genomic variant data but there are some problems, more important ones like problem of the data's immense size and variability.
Variant data can be huge. For example, a single individuals variant data could feasibly some day require a million rows of data in a table, or require of a gigabyte of r... |
I'm creating a web app using web.py (although I may later rewrite it for Tornado) which involves a lot of file manipulation. One example, the app will have a git-style 'commit' operation, in which some files are sent to the server and placed in a new folder along with the unchanged files from the last version. This wil... |
Sites like webpagetest allow users to enter a website url and a test location, to run a speed test on the site from multiple locations using real browsers. Can anyone give me a basic idea of how sites like this work? You also have plugin's like Aptimize latency simulator or charles web debugging proxy app, that simula... |
Well, I started using some CSS3 animations a couple of days ago. After hardcoding I've started trying different tools like Adobe Edge Preview version.
I made a short animation to get the functionality of the tool
http://things.eyemade.ch/css3edge/
After that someone at Twitter took a look at it and said that it is wron... |
I have a fairly large software project written in c++.
In there, there is a class foo which represents a structure (by which i don't mean the programmers struct) in which foo-objects can be part of a foo-object.
Here's class foo in simplest form:
class Foo
{
private:
std::vector<unsigned int> indices;
p... |
I'm a fresh grad, and I just started workingin real world projects. I'm basically using PHP most of the time. I just figured out that most of the solutions I came out with for most of the problems, is involving using an array in somehow. What Am I doing wrong here? How could I unlearn this and always think of something... |
I have found a major security hole in one of my company's public facing site. This is our first public facing site that was converted from an intranet site. I brought this issue up to my boss and they essentially shrugged it off, saying that it would take a good deal of work to re-architecture the site to make it secur... |
I'm trying to get a better understanding of Dependency.
In Martin Fowler's explanation of the Data Mapper pattern, http://martinfowler.com/eaaCatalog/dataMapper.html, the UML diagram shows the Mapper being dependent on both the Domain Object and the Database.
It seems to me, however, that the Domain Object is dependent... |
Wikipedia says
"software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification"
The word functions caught my eyes, and I now wonder if we can assume that creating an overload for a method can be regarded as an example of the Open/closed principle or not?
Let me explain... |
I'm looking for good practices or any advice regarding file access transaction mechanisms. We will have multiple instances of an application spread over a redundant network (cloud) watching a directory on a 100% available NAS. I'm also looking for any alternative architecture that may be more appropriate.
We will have... |
I am developing a series of webservices (based on spring and spring mvc).
For the first time in my dev career I do plan on replacing the dao layer in the future(I have always seen it mentioned but never had to do it).
Currently I'm using spring annotations, so I could simply change the qualifier name of the injected da... |
I am designing a programming language, and I would like to provide a complete documentation for it.
So far, I have planned to write the following documents:
An initial design outline, mostly as a reminder of the design and proposed changes to it, as well as an aid to construct all the other documents when the design p... |
I recently read a blog post (which I lost the link) that really make me think. The writer said that the one of the biggest problem in software projects is actaully completing it, and most people will end up abandoning the work.
I have been self-learning programming for over 15 years now, at this stage I actually feel p... |
I was reading JDOM's website.
Why is the JDOM API defined in terms of concrete classes rather than interfaces?
Jason Hunter summarizes the arguments against an interface-based API for JDOM:
With interfaces everything becomes a factory, elements have to be 'imported' into new documents instead of just added, features ... |
My goal is to include modules sources files into War file.
I read this explanation on the maven official site:
http://maven.apache.org/plugins/maven-assembly-plugin/examples/multimodule/module-source-inclusion-simple.html
I wonder if it's the only way to include all sources files contained within all modules.
Can't the... |
I am aware of the C++ Virtual Table which allows dynamic dispatch for doing things at runtime (although if I am honest I am not completely sure of the full list of things it achieves).
I am wondering what other "low level" aspects of C++ are there, which one doesnt usually come across when learning the C++ language?
Th... |
Ive been building a website with 2 pages and 1 master page. The master master page works as a "Menu". The two pages inherits from the master page and have some content on them.
On Page1 I have a link to Page2. Once I click on the link Page2 (and master page) loads.
Pretty straight forward I guess. But my question is no... |
I've got a senior developer with eight years of .NET experience starting tomorrow to work on a 11,000-lines-of-code application. In the team there's myself and another programmer. We've both got about three years experience each.
It's my first project as a manager (I'm also a developer on the project) and this is the f... |
When programmers talk about "data structures", are they only talking about abstract data types like lists, trees, hashes, graphs, etc.?
Or does that term include any structure that holds data, such as composite types (class objects, structs, enums, etc.) and primitive types (boolean, int, char, etc.)?
I've only ever h... |
A few months ago we found a library licensed under GPL that fit the bill for what we were looking to do at that time. We included it in our codebase and all was fine. Now, a few frantic months of coding later, we've refactored the hell out of the library: it's more feature complete, more stable, fully unit tested, PSR-... |
I need to process 2 million messages per second (perhaps in a scale out configuration) and route each message to a N delegates or multicast delegates.
Question
How should I structure my application in C# so that I can achieve the
best performance when receiving the message, and routing it to the
correct delegate?
Addit... |
Does the structured programming definition only consider imperative programming? By this I mean does the definition of structured programming automatically exclude functional programming (in the most common usage, by which I mean not necessarily pure-functional programming, but something like Clojure).
Structured prog... |
The biggest drawback of agile development I have experienced is that people not involved in development focus on the mantra that a user story (3-10 ideal person days) should not contain more than 1-3 sentences like:
As a customer, I can use free-text search so that I can find the products I'm looking for.
Giving this... |
I used to write C++ extensively between 8 and 10 years ago. I have since moved on to C# for professional reasons. However, from time to time I see statements like
"If you're still manually tracking pointer references, you're doing it wrong"
or
"C++ is perfectly safe as long as you're using modern concepts like R... |
My boss wants to introduce new guidelines for the computers in our company. This means that the software environments will be completely standardized with a predefined set of tools. The goal is that all machines are completely reproducable and exchangable.
I'm wondering what the guidelines for developer's computers are... |
The small website I built a long time ago is starting to pick up a little and I'm starting to run into problems with making changes. Originally, all the pages were .html and I would edit and test them offline to make sure everything worked. Then I realized how helpful php includes were, so I changed everything to .php ... |
I'm coming back to C++ after a month. I still didn't start practicing but seeing my old code gives me nauseous feeling like I'm seeing something new even with simple small code.
Is this normal? Will I retain everything as I'll start writing code back?
|
I went through a line somewhat like this "PHP has no native support for Unicode". Also i read that Python has native support for Unicode. Now you can call a function utf8_encode() in PHP to encode a string into Unicode and you can use a function unicode() in Python to convert a string to unicode. So what does it mean t... |
I have seen a practice from time to time that "feels" wrong, but I can't quite articulate what is wrong about it. Or maybe it's just my prejudice. Here goes:
A developer defines a method with a boolean as one of its parameters, and that method calls another, and so on, and eventually that boolean is used, solely to det... |
This may very well be nothing new and probably exists, but I've never learned about it and would like to.
The simplest way to be more specific is just to give an example.
I was on the bus and downloaded a Text to Speech appliation onto my Android phone.
I know that the speech synthesizer might run on my phone but pro... |
I've asked this question before and I got a few answers/idea, but I'm not sure how to implement them.
I'm building a telecom messaging solution. Currently, I'm using a database to save my transaction/messages for the network stack I've built, and as you know it's slower than using a data structure (hash, linkedlist, et... |
Note: I asked a very similar question on StackOverflow but did not get much attention, so was directed to http://programmers.stackexchange.com as licensing issues seem to have more interest here...
I am not an expert in Google Maps policies although I am aware that downloading / caching map tiles is not encouraged at a... |
I am not sure if this would be the right forum to ask the question (Please let me know and I will move the question to appropriate forum).
I would like to know what can be the best way for elders (in my case, my parents) to learn how to program. I was looking at Qimo 4 kids as a possible platform so that my parents ca... |
I'm new to the social coding community and don't know how to proceed properly in this situation:
I've created a GitHub Repository a couple weeks ago. Someone forked the project and has made some small changes that have been on my to-do. I'm thrilled someone forked my project and took the time to add to it. I'd like to ... |
Over the past year or two, I've been playing with newer technologies in my side projects. As a web developer, I've gone from the following (and still the following, at work):
The 'classic' technology stack
Web browser POSTs forms to...
a C#-coded web application server-side, communicating to...
external services via X... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.