instruction stringlengths 34 19.9k |
|---|
Working on a large and multi-tiered software project, I just found a recurring anti-pattern to be occurring in the code. I coulnd't find its definition in Wikipedia or other sources after a quick search, so I would like to ask you if there is a known anti-pattern for our current situation. I'll explain it both in the g... |
This might seems like a silly question to ask, but I can't really figure out the answer. The title pretty much says it all.
Let's say you have an open source music player, along comes someone, copies it, adds features, modifies the interface, etc and sells it. Nobody would find out. So how does it work?
Related: I'm wo... |
Today, Windows applications can be developed in numerous languages and frameworks. But in the upcoming Windows 8, with the introduction of WinRT, the development model is going change at a large scale. So, where do other programming languages fit in this model?
|
Possible Duplicate:
When are Getters and Setters Justified
In an Object oriented framework, one believes there must be strict encapsulation. Hence, internal variables are not to be exposed to outside applications.
But in many codebases, we see tons of get/set methods which essentially open a formal window to modify... |
I am new to web development and trying to study various types of websites as case study. Right now my focus is on how search engines works for an eCommerce website.
I know basic functioning for a search engine, i.e. crawl web pages, index them and the display the results using those indexes.
But I got little confuse i... |
When I'm doing design for a task, I keep fighting this nagging feeling that aside from being a general outline it's going to be more or less ignored in the end. I'll give you an example:
I was writing a frontend for a device that has read/write operations. It made perfect sense in the class diagram to give it a read a... |
I have recently moved to the dark side: I am now a CUSTOMER of software development -- mainly websites. With this new role comes new concerns.
As a programmer i know how solid an application becomes when it is properly layered, and I want to use this knowledge in my new job. I don't want business logic in my presenta... |
For single-threaded applications I like to use class diagrams to get an overview of the architecture of that application. This type of diagram, however, hasn’t been very helpful when trying to understand heavily multi-threaded/concurrent applications, for instance because different instances of a class "live" on differ... |
Here's the problem I'm facing:
Quote From Project Manager:
Hey Spark, I'm assigning you the task of developing a framework that could be used for many different iOS applications. Here are the requirements:
It should be able to detect the thickness of the thumb or fingers being used to manipulate the UI.
With this inf... |
I'm interested in learning Scala. I've been reading a lot about it, but a lot of people value it because it has an actor model which is better for concurrency, it handles xml in a much better way, solves the problem of first class functions.
My question is do you need to know Java to understand/appreciate the way thing... |
As much as I understand both concepts, I can't see how can I take advantage of JavaScript's closures and prototypes aside from using them for creating instantiable and/or encapsulated class-like blocks (which seems more of a workaround than an asset to me)
Other JS features such as functions-as-values or logical evalua... |
I'm trying to wrap my head around some details about how floating point math is performed on the CPU, trying to better understand what data types to use etc.
I think I have a fairly good understanding of how integer math is performed. If I've understood correctly, and disregarding SIMD, a 32-bit CPU will generally perf... |
I'm not sure I understand the role of jQuery/JavaScript in MVC. I've found an article about it on A List Apart, but it doesn't clear anything up for me.
Does it bridge the communication between the View and the Controller, or does it do something else?
|
Firstly I should explain the background. I am interested in high frequency trading programming roles. After looking at many job specs it is very clear that there is a big demand for programmers who have programmed Java and C++ on Unix as opposed to Windows.
My question is what are the differences a High Freq programmer... |
I'm on the way developing a Java application where user can provide a class diagram and get the corresponding Java code.
I don't know how can I let the user interactively draw a class diagram in Java. I am currently getting the required parameters like attributes, functions directly from the user, and then I render a c... |
When I was in college and as a programming language learner I wrote program for finding out prime numbers but then I never mind the program performance in terms of speed. Now after long time just started solving the problems from projecteuler.net.
Now I wonder is there any best and most used algorithm for finding the ... |
I have been working on a piece of software for a company, that they wish to resell.
There was an mail-based agreement upon a flat hourly rate for my work, and eager me chose to accept a rather low fee.
Due to the stress and tempo of the task, a direct contract was never formed or signed.
The software was developed loca... |
In the coming months we're going to begin a project where we take a system we've built for a client (v1) and rebuild it from scratch. Our goal with v2 is to make it modular, so that this specific client will have their own set of modules they use, then another client may use a different set of modules altogether. The... |
We have several highly complex ASP.NET web applications that are used internally by hundreds of users. We are trying to figure out which areas of the applications to invest in to improve functionality, but we aren't sure which screens/features are more heavily used. So, ideally, I'd like to find a way to add a layer ... |
Currently I am in the process of developing an importer of any existing, arbitrary (static) HTML website into the upcoming release of our CMS.
While the downloading the files is solved successfully, I'm pulling my hair off when it comes to detect a site structure (pages and subpages) purely from the HTML files, without... |
The process used at a certain company consists of:
Create a layout according to some designs made in a web page design tool. (CSS, html)
Requirements come in with "functional requirements". These consist of 100's of lines of business directions. E.G. Create a Table on page X. Column1 has numeric data. Column1 is... |
I've come across two pointer declarations that I'm having trouble understanding. My understanding of precedence rules goes something like this:
Operator Precedence Associativity
(), [ ] 1 Left to Right
*, identifier 2 Right to Left
Da... |
I find that I start projects and, due to my lack of experience, find that old database structures and huge blocks of code are inefficient and memory-costly. However, by the time I realize a re-design of the entire project is needed, the project has grown to such a size that it is simply too late to go back and modify t... |
Code Retreat is an all-day training event that focuses on the fundamentals of software development. There's a "global" code retreat day coming up, and I'm looking forward to it. That said, I've been to one before and have to say there was a huge amount of chaos... which is fine.
One thing that I still don't get is why ... |
I have created a program that restricts the mouse to a certain region based on a black/white bitmap. The program is 100% functional as-is, but uses an inaccurate, albeit fast, algorithm for repositioning the mouse when it strays outside the area.
Currently, when the mouse moves outside the area, basically what happens... |
I would like to explain CQRS to my team of developers. I just can't figure out how to explain it in the simplest way so they can implement the pattern rapidly without any others frameworks. I've read a lot of resources including video and articles but I don't find how to implement CQRS without using others patterns lik... |
I am just getting started with unit testing but I am not sure if I really understand the point of it all. I read tutorials and books on it all, but I just have two quick questions:
I thought the purpose of unit testing is to test code we actually wrote. However, to me it seems that in order to just be able to run the... |
Given two interface definitions ...
IOmniWorkItem = interface ['{3CE2762F-B7A3-4490-BF22-2109C042EAD1}']
function GetData: TOmniValue;
function GetResult: TOmniValue;
function GetUniqueID: int64;
procedure SetResult(const value: TOmniValue);
//
procedure Cancel;
function DetachException: Exception;
fu... |
Are there any 100% pure languages (as I describe in the Stack Overflow post) out there already and if so, could they feasibly be used to actually do stuff? i.e. do they have an implementation? I'm not looking for raw maths on paper/Pure lambda calculus. However Pure lambda calculus with a compiler or a runtime system a... |
Typically, computer memory is always linear. So is the term non linear used for a data structure in a logical sense? If so, to logically achieve non linearity in a linear computer memory, we use pointers. Is that right?
In that case, if pointers are virtual implementations for achieving non linearity, why would a data ... |
May be someone has a piece of code, that would work as a test for debugging abilities? We will give ability to use Visual Studio, so it should be hardly solvable by doing manual tracing and show us, that candidate is really good at debugging.
|
I run a middle size community and some time ago I started to develop social capabilities such as follow, status update, wall etc.
For some reason i thought that Cassandra was the right tool for the job so I looked online for a Cassandra developer and I found a very talented one.
Unluckily in the midst of the developmen... |
which is the best way to correlate and group similar articles?
I mean something like Google News, which groups under a single topic different articles from different sources.
I'm not interested in something much sophisticated, it is just important to be efficient in terms of speed and resources needed. I can live with... |
I am sure everybody has had his/her share of regex woes.
We have a big application with around 30 developers working on a mvc3 web application , and the two fold regex validations (front-end and server side) is becoming a nightmare to maintain.
Is there a way to keep all the regexes in one place ? so that they can be u... |
Someday, my leader told me that don't reinvent the wheels, use framework built-in classes. (with a serious mood) when I implement some algorithm has been supported by .NET fx. And seriously, I didn't know about these support before, cause this is the first time I work with .NET).
So I have this questions.
For example, ... |
I have read that Node.js is a server-side javascript enviroment. This has put few thought and tinkers in my mind.
Can we develop a complete data-drivent web application utilizing just JavaScript (along with node.js), HTML5 and CSS? Do we still need to use some server-side scripting language (e.g. C#, PHP)?
In case we ... |
I have the need to create a table with a unique id as the PK. The ID is a surrogate key. Originally, I had a natural key, but requirement changes have undermined this idea. Then, I considered adding an auto incrementing identity. But, this presents problems.
A. I can't specify my own ID.
B. The ID's are difficu... |
Possible Duplicate:
When do I need to use a framework?
I feel fairly competent at creating a number of applications in PHP and thus far have not seen the need to use one of the popular frameworks (CakePHP, Zend, etc).
As a programmer it gives me comfort to know exactly what my code is doing and I suppose before now ... |
I'm just wondering what would be the best strategy to publish an application on the Android Market.
If you have a free and paid version you have two codes to update (I know it will be 99% the same but still) and besides all the popular paid apps are quite easy to find for "free" in "alternative" markets. Also if you ha... |
I just had a discussion with a colleague about the Product Owner role: In a project where a customer organization has brought in a sofware developing organization (supplier), can the role of Product Owner be successfully held by the customer organization, or should it always be held by the supplier?
I always imagined,... |
I'm currently at a contract position and am looking to add to the documentation of the projects I worked on, to assist the next hiree taking over my projects.
The documentation I received was overly technical (i.e. references code right away, references replacing certain values on certain lines, no high level descripti... |
I would like to develop an application for a group of people to use. I have decided to develop using python, but I am thinking of using python 2.X or python 3.X. If I use python 2.X, I need to upgrade it for the future... But it is more mature, and has many tools and libraries. If I develop using 3.X, I don't need to t... |
How effective are automated round-trip tools for UML modeling? Do they help in coding quick, clean, efficient code? In what ways do these tools fit into the Agile methodology?
|
Let's say I have a method:
public void DoSomething(ISomeInterface someObject)
{
if(someObject == null) throw new ArgumentNullException("someObject");
someObject.DoThisOrThat();
}
I've been trained to believe that throwing the ArgumentNullException is "correct" but an "Object reference not set to an instance o... |
I am interested in learning concurrent programming, focusing on the application/user level (not system programming). I am looking for a modern high level programming language that provides intuitive abstractions for writing concurrent applications. I want to focus on languages that increase productivity and hide the co... |
I have been programming ROR for about a year now, and I think I am ready to start working on a project for someone else. The problem is that job postings for contractors don't really tell you which specific tasks you should be able to do at different experience levels (in rails and other technologies), so I don't know ... |
If I'm writing a web application that uses the model 2 architecture, is it possible to use the Google Guice framework (or really any IoC container)? The reason I ask this question is because everything I've researched about DI, IoC, et cetera always uses Spring, Hibernate or some other framework/container in their exam... |
I'm at the tail end of a large project (around 5 months of my time, > 60,000 lines of code) on which I was the only developer. The specification documents for the project were designed well early on, but as always happens during development, some things have changed. For example:
Bugs were discovered and fixed in wa... |
I've written a function that asks a user for input until user enters a positive integer (a natural number). Somebody said I shouldn't throw and catch exceptions in my function and should let the caller of my function handle them.
I wonder what other developers think about this. I'm also probably misusing exceptions in ... |
Many, but not all, HTML layout problems can be solved with CSS alone.
For those that can't, JQuery (on document load) has become very popular.*
As a result of its ease, many developers are quick to use JQuery or Javascript for layout and style — even without understanding whether or not the problem can be solved with C... |
I have a pet project that I am planning to release as open source at some point in the not-too-distant future. A couple of the files use or are mostly code that was taken from a project released under the New BSD License. While I have changed it to fit my needs and added some small stuff, the algorithm and the function... |
Maybe I'm alone in this, but few things annoy me like people indenting using spaces rather than tabs. How is typing SpaceSpaceSpaceSpace easier and more intuitive than typing Tab? Sure, tab width is variable, but it's much more indicative of indentation space than spaces. The same thing goes for backspacing; backspace ... |
To get off my noob status i am following the Learn python the hard way course.
I really like it but at one point it says make a bin directory. In all games and other programs i saw to a bin directory but what does it do?
|
We're trying to move data from our bloated Service layer into our Domain layer using a DDD approach. We currently have a lot of business logic in our services, which is spread out all over the place and doesn't benefit from inheritance.
We have a central Domain class which is the focus of most of our work - a Trade. Th... |
Is there any cons of making your employees use open-source programs in your company?
I am planning to start a bussiness and I wonder why companies usually work with proprietary software, as Microsoft Word to quote the most famous one. Why do not they use Open Office (or Libre Office) etc.?
From my point of view, you ... |
I'm currently developing a web application, that provides some 'service' to the user. The user will have to select a 'plan' according to which she/he will be allowed to perform application specific actions but up to a limit defined by the plan.
A Plan will also limit access to certain features, which will not be availa... |
I have a couple of FOSS projects. They can be a bit of a pain to get running unless you've got dependencies in place already, which I figure is par for the course for FOSS projects.
We know that each free operating system out there has its own package management systems. A few of them, such as homebrew on Mac OS or AUR... |
I've been reading a bit about CI servers like Jenkins and I'm wondering: at which point is it useful?
Because surely for a tiny project where you'd have only 5 classes and 10 unit tests, there's no real need.
Here we've got about 1500 unit tests and they pass (on old Core 2 Duo workstations) in about 90 seconds (becaus... |
I have an already existing application in Silverlight 4.0 with WCF services. Now what I want is a workflow to be integrated along with the above application. The workflow will be a simple approval workflow i.e sequential workflow. Can any one suggest some links or a solution?
|
I work in a Web Application where users are allowed to upload files. They can retrieve and view those files at a later point in time. A solution that user works with can have multiple attachments but the click to view only one at a time. No version maintenance. Users can delete those files. No soft delete. The files ar... |
I often fight with myself on whether to put certain keys in my web.config or in a Constants.cs class or something like this.
For example if I wanted to store application specific keys for whatever the case may be..I could store it and grab it from my web config via custom keys or consume it by referencing a constant i... |
I see very often people using term binaries in different context. What are binaries? Collection on binary files, installation files, .dll files or what? Or is it just an general term for some collection of files on disk?
|
I have two classes (named MyFoo1 and MyFoo2) that share some common functionality. So far, it does not seem like I need any polymorphic inheritance but, at this point, I am considering the following options:
Have the common functionality in a utility class. Both of these classes call these methods from that utility cl... |
We have the following SVN structure.
Projects: Our work
Clients: Projects for clients, needs to be different
Shared: Shared libraries we created
Docs: Documents explaining how software development flows within the company (has nothing to do with my question anyway)
Where should we put the external libraries? Let's sa... |
I just started learning Python, and I'd like to get some more context on the language.
I realize that, in many cases, Python is a slow language relative to C or C++. Thus, Python is probably not the best choice for applications that need to run as quickly as possible.
Outside of this, it seems like Python is a great... |
I have found an open source library that can work fine with my project,
but I have noted that It's not frequently updated and I'm afraid of not having the necessary support.
Is the frequency of updates a proper criterion for choosing an open source library rather than another?
|
In my application requests are processed by objects of Processor-derived classes, something like CreateItemProcessor or MoveItemToGroupProcessor. Base Processor class implements most of common processing logic, and derived ones make some specific business logic related tasks.
An object of a certain processor type is cr... |
When our application doesn't work the way we expect it to (e.g. throws exceptions etc.), I usually insert a lot of debug code at certain points in the application in order to get a better overview of what exactly is going on, what the values for certain objects are, to better trace where this error is triggered from. T... |
Is it possible to develop a functional language based on PHP opcode?
Similar to Scala/bytecode or F#/CIL
Has somebody done this already?
|
I've been tasked with developing requirements and specifications for a project our group is starting.
I realized that I don't know the difference; a Google search just confused me more -- it seems some people say that specifications are requirements, but at a lower level.
|
For the sake of argument here's a sample function that prints contents of a given file line-by-line.
Version 1:
void printFile(const string & filePath) {
fstream file(filePath, ios::in);
string line;
while (std::getline(file, line)) {
cout << line << endl;
}
}
I know it is recommended that functions do one... |
I was looking on the internet for common interview questions. I came upon one that was about finding the occurrences of certain characters in an array. The solution written right below it was in my opinion very elegant. But then another thought came to my mind that, this solution is way better than what came to my mind... |
I do not understand the "bridge" design pattern at all. I have gone through various web sites, but they haven't helped.
Can anybody help me in understanding this?
|
I read some code of a colleague and found that he often catches various exceptions and then always throws a 'RuntimeException' instead. I always thought this is very bad practice. Am I wrong?
|
I don't like issue tracking systems because:
It takes too much time to describe issues in it. This discourage its usage.
You create a place to keep your bugs. And if there is a place for them, people usually don't care too much about fixing a bug cause they can put it there so that someday someone can fix it (or not).... |
We have a Java-based application that, to date, we've been distributing as a tarball with instructions for deploying. It's mostly self-contained so deployment is fairly straight-forward:
Untar on the disk you'd like it to live on;
Make sure Java is in your path and a suitable distro and version;
Verify ownership and g... |
In C# projects, we frequently group small and tightly related classes into the same .cs file. This practice reduces the friction of dealing with a myriad of files containing close to no actual code. Yet, is there an established practice to name the file that contains multiple classes?
|
I'm getting into scrum and TDD and I think I have some confusion which I'd like to get your feedback about. Let's assume I have a user-story in my backlog, in order for me to start developing it as part of TDD I need to have requirements, right so far?
Is it true to say that the product manager and the QA should be r... |
Is there anyone out there who has mastered to retrieve some data programmatically from Eloqua?
First of all, I'm more or less a newbie, as far as JAVA. I can follow tutorials, take directions and will Google till my fingers bleed. I understand the basics and am slightly familiar with OOP. My main problem is that I have... |
First, I am using the TFS 2010 SCRUM template.
I am wondering if this is a bad idea...
I started defining a PBI for User Interface Elements. Basically, this will hold all the tasks that developers will be assigned when developing UI elements for a web application. Since this has to do with user interaction and usabil... |
I'm reading es5 these days and find that [[configurable]] attribute in some built-in properties of global object is set to true which means we can delete these properties.
For example:
the join method of Array.prototype object have attributes
{[[Writable]]:true, [[Enumerable]]: false, [[Configurable]]: true}
So we ca... |
I asked this question on SO but was suggested to try here. So here it goes:
My understanding of Javascript so far has been that it is a client-side language that capture events and makes a web-page dynamic.
But on reading the comparison between MongoDB and CouchDB I noticed that both are using Javascript. This makes me... |
Occasionally there is the 1% of code that is computationally intensive enough that needs the heaviest kind of low-level optimization. Examples are video processing, image processing, and all kinds of signal processing, in general.
The goals are to document, and to teach the optimization techniques, so that the code do... |
First, a little background. I'm a .Net developer (C#) and have over 5 years experience in both web development and desktop applications. I've been wanting to look into iPhone development for some time now, but for one reason or another always got side tracked. I finally have a potential project on the horizon, and I'm ... |
I have a project which uses a large number of LGPL, Artistic and other open-source licensed libraries. What's the canonical (i.e. the "standard") way of acknowledging multiple sources in a single project download?
Also, some of the sources I've used are from sites where using the code is okay, but publishing the source... |
I'm in the process of refactoring a fairly large web app. One of the major issues is inconsistent error handling and I'm trying to come up with a sensible strategy.
I've created a custom error handler, via set_error_handler that essentially turns PHP errors in ErrorExceptions and a custom base exception class, that di... |
I'm on the way developing an application which requires a kind of dynamic database,
So this is what I want,
This is the for reading the details of a class, the number of variables and methods will only be known at run-time, and I have to create a number of classes like this.
In the above scenario,how can I design a da... |
Background
I'm working on an ongoing C# project. I'm not a C# programmer, primarily a C++ programmer. So I was assigned basically easy and refactoring tasks.
The code is a mess. It's a huge project. As our customer demanded frequent releases with new features and bug fixes, all other developers were forced to take brut... |
EDIT:
Maybe I should ask the question in a different way.
in light of ammoQ's comment, I realize that I've done something like suggested which is kind of a fix and it is fine by me.
But I still want to learn for the future, so that if I develop new code for operations similar to this, I can design it correctly from the... |
I've recently quit my full time developing job at mega-corp, and I decided that I'll look for a part time job. Since then I've talked to half a dozen potential employers, and every one of them had the same reaction when I said the magic words "part-time" - they all closed up and became suspicious. Now, I understand tha... |
I wanted to ask you people, in which cases it makes sense to unit test statically typed functional code, as written in haskell, scala, ocaml, nemerle, f# or haXe (the last is what I am really interested in, but I wanted to tap into the knowledge of the bigger communities).
I ask this because from my understanding:
One... |
Are there any resources out there on how to architect large, industrial strength Python projects? I'd like to start on an ambitious personal project, but I'm not really sure how to architect it and what practices to put into place to make the project successful.
Are there any resources out there discussing how to make... |
I read this thread on programmers today and thought that looked like a really elegant way of coding. I would like to discover more neat methods of coding.
What are the best ways of discovering new elegant ways of coding? (Im already aware of the standard design patterns)
|
I'm in a bit of a disagreement with a more experienced developer on this issue, and wondering what others think about it; our environment is Java, EJB 3, services, etc.
The code I wrote calls a service to get things and to create things. The problem I ran into was that I got null pointer exceptions that didn't make sen... |
I am a programmer that can code. But I find that I can get thing done, but not get thing do well or like most of the open source communities do. Well, I use some of the library from git hub. I find most of the programme is well structure. Also, a read me.
My question are:
Is that any common file structure or naming c... |
We have unfinished tasks which are part of stories in sprint. They are not accepted by the PO.
They must be included for the next planning of sprint.
Obviously the stories must be moved, but what about the tasks? Shall they be reopened and moved for the next sprint within the stories or not?
|
When one business acquires another, they use a Memorandum of Understanding, which is basically an agreement outlining the duties of each party, etc.
I am about to begin a massive web development project for a client - What is the equivalent agreement I would use with them?
|
I am asking this because I have seen places where, whoever coded initially had provided proper comments, but later on modifications were made to the code but the comments were left untouched. I remember reading somewhere " Don't get suckered in by the comments, debug only code".
So is it a good/ relevant/ practical id... |
I'm currently evaluating license management solutions for our customized and project-based applications, which are supported by a single server in the intranet of the customer. The applications use common functionality provided by the server (session handling, data synchronization, management capabilities, etc) and are... |
As you develop as a programmer, software developer, or coder, IMHO, you begin to see different (best or worst) practices, different algorithms, and "more than one way to do it". Seeing this code can be a great learning experience for you, even though you did not write the code. But is doing this only going to confuse y... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.