instruction
stringlengths
34
36.1k
Possible Duplicate: Why to let / not let developers test their own work Developers develop the code and software. Ya that means they know very well of what they have done. But why there is always a separate department in IT companies called as Testing department? (Mainly for testing developers outcome) Why a develop...
Possible Duplicate: What would you consider best practice workflow tools for web application (PHP) development? I start my new job next week as a PHP Developer which is my dream job but it's going to be object-orientated which I've only done in Java whilst at university. My question is regarding PHP tools - what are...
Can anyone tell me how some css3 code (transitions/transformations) get hardware accelerated? In other words, what actually happens when the browser sees css3, what is the pipeline/process involved?
I am looking to query the main Google search however all references including stackoveflow point to the Google AJAX Search API. The odd thing is that it does not seem to exist any more not even a note to say it is depreciated? The old links point to main Google code site. If I look at the list of API's on that site th...
How is Visual Studio Lightswitch different from regular Visual Studio? In what sort of situations would you use this IDE over regular Visual Studio? I'm trying to decide if this is something that would be worthwhile for me to take the time learning since I am currently doing WPF/Silverlight development.
I'm getting a little annoyed of having to wrap primitive types in wrapper objects to store them in collection data structures (sets, maps, lists, etc.) in languages like Java and Objective C. I'd really like to have, say, a Map data structure that works the same way whether I'm mapping NSNumbers to Strings or integers ...
With dynamic scoping, a callee can access the variables of its caller. Pseudo C code: void foo() { print(x); } void bar() { int x = 42; foo(); } Since I have never programmed in a language that supports dynamic scoping, I wonder what some real world use cases for dynamic scoping would be.
I am part of a small software company that specializes in small to medium-sized business applications and my experience with distributed architectures/SOA is limited. Please let me know if I'm going about this all wrong. We often start development on small business applications, where a distributed architecture seems l...
Very commonly we have feature requests for fields that only one customer wants. This, at best, clutters the application's code. Often when we look in their database a few months after adding the fields, we can see that they are not actually even using the extra fields. Also, it's quite an old application so adding a si...
Say you've spent a significant amount of time (5 years) serially starting up companies, with enough success to keep going for 5 years, but not enough to retire rich. And now, with a mortgage and a serious relationship, burned out, you're trying to dust off your resume and get a regular, 9-5 job. How would you record/re...
I'm passionate about data mining, I have read some books like Programming Collective Intelligence, and I would like to know more good books, specially practical ones, about data mining in conjunction with AI. Any tips will be appreciated as well. Thanks.
I'm writing a Rails cookbook app as a learning exercise. I've created a table for Recipes which holds info for the recipe (name, author, etc...). I also have a table for Ingredients which will be a master ingredients list, and then a table in-between which holds info specific to that recipe/ingredient combo (for exampl...
Given that you have two identical methods (signatures, body, input/output) that you wanted to refactor into just one, what type of Work Item from the MS Agile template would be most appropriate? Task, Bug, Quality of Service, Risk? Why?
Quite simple, why would I want to write code that works for all cases and scalable data when all I need to do is repeat the same process a few times with a few minor tweaks? I'm unlikely to need to edit this again any time soon. It looks like a lot of less work to just go... function doStuff1(){/*.a.*/} function doStu...
I am an Electrical Engineering undergrad. I've reading many technical papers about Signal and Image processing algorithms (reconstruction, segmentation, filtering, etc). Most of the algorithms shown in these papers are defined over continuous time and continuous frequency, and often give the solutions in terms of compl...
I am working on a software project that is intended to replace the data entry done in Excel spreadsheets. We have a grid control that displays the data but it is edited in a form with tabs for different sections (over 60 columns in the spreadsheet). The users are complaining that it takes them longer with the tabbed f...
I'm starting with SCRUM and I have a problem understanding one thing. How does SCRUM handle backlog items that take longer than one sprint?
If yes, what precautions should I take?
As a team lead, how can you help your programmers to grow? The reason I ask this is because there are a few programmers working with me, and I really want to "turn them on the loose", to realize their maximum potential, and to keep them happy. But I don't quite know how to do this, do I have to Interact with them fre...
Possible Duplicates: How do managers know if a person is a good or a bad programmer? How to recognize a good programmer? For your record, I am a programmer myself, and I still do coding. We are not doing your-just-another-CRUD-app, instead we are working on CAD apps. The nature of software development makes it real...
I'm wondering what others use as a tool for creating the final package to hand over to the customer. For now, these are the tasks it should perform for our company: build a set of VS projects (C#,C++); which set depends on configuration on commandline of preferrably in a file copy some of the outputs (dll,exe) and hea...
I have been looking around for a book on designing and developing custom interfaces for iOS but I don't seem to be able to find any books on this topic and I was wondering if anyone here knew of any books on the design and development of custom iOS interfaces and applications. Also, I am not aware of any other questio...
Since I am developing iOS apps I'm trying to find stats on how many iOS devices there are out there. Preferably broken down into versions: Iphone 3G, Iphone 3Gs, Iphone 4 etc. Also I'd like to know the stats on different iOS versions. After an hour of googling I found out that it is not the easiest thing to find. Anyon...
I've been at my first job for about 2 months and I've started to notice that there is a delicate balance between workload and helping new-hires. Since there is a lot of pressure from management to fix bugs and resolve as many customer issues as possible everyone on the team seems to be very focused on their backlog of ...
As I get deeper into the area of ASP.NET MVC 3, I feel like I'm finding a lot of very nice technical nuggets as well as new ways of doing things versus classic ASP.NET. One of those "nuggets" is custom action filters. You can simply decorate your controller classes or methods with attributes that, by convention, poin...
I used to use Windows, SVN, Tortoise SVN, and Beyond Compare. It was a great combination for doing code reviews. Now I use OSX and Git. I've managed to kludge together a bash script along with Gitx and DiffMerge to come up with a barely acceptable solution. I've muddled along with this setup, and similar ones, for ov...
In a software startup, how can we deal with the main developers/programmers of the company who are good at design and communication, and also have entrepreneurial skills? How do we get them work for us and avoid any kind of competition from them to our business? How can we convince the lead programmer that our startup ...
I am currently working on a system that will generate product recommendations like those on Amazon: "People who bought this also bought this.." This is how I plan to do it: Process the data using Apache Mahout and generate recommendations(data is stored in MySQL), currently item based only. Apply a clustering algorith...
I have a couple of Python modules that are meant to be run as scripts. How should I write the docstrings at the module and function level to make it clear how to run and use the module?
I work with a code base that is over 500K lines of code. It is in serious need of refactoring. There have been refactoring efforts identified that will take longer than the normal two week sprint. These can't be broken up into smaller tasks as I have seen suggested in other answers on this site. The product needs to wo...
C#/ASP.net: /// <summary> /// Is a group in the basket already? /// </summary> public static bool isItemInBasket(List<BasketItem> BasketItems, int GroupID) { return BasketItems.Where(c => c.GroupID == GroupID).SingleOrDefault() != null; } public static bool isItemInBasket(List<BasketItem> BasketItems, int GroupID, ...
Our scrum teams are split geographically (not ideal I know!) due to specific knowledge only being available in certain countries. So one team of say 7 members, has the business person in one city, 2 devs in another, 2 other devs in another and 2 qa's in another. Any suggestions for how to manage this type of graphicall...
Providing support for outdated software is both unexciting and expensive. If people are still using the version which was sold ten years ago, it means that they will find bugs which do not exist in next versions, their software may not work as expected on a new hardware or operating system, etc. The support people must...
I am trying to pick up Rails, but there are a ton of things that it does that it's not under my control and that's scary (http://blog.zawodny.com/2011/06/13/i-actually-tried-learning-rails/). Is there a tutorial where it explains only the exact things you need to do in order to pick up the framework? (specs, controller...
There is a push in modern scripting frameworks to use RESTful request routing instead of a one-size-fits-all URL path routing. respond('GET', '/posts', callback); respond('POST', '/post/create', callback); respond('PUT', '/post/[i:id]', callback); respond('DELETE', '/post/[i:id]', callback); vs respond('...
I am a software engineer engaged in some extracurricular projects outside of my main gig. I was considering hiring a developer on Elance to assist me. Ideally, we would be a collaborative team where I can review their code and our "days" would overlap by a few hours. Ideally, when that persons day is over, I could d...
As my webapps increase in size, so does the complexity. In order to keep my classes & files structured and easy-to-access, I am starting to get more and more confused: I have some very clearly defined data objects in my application - orders, invoices, products for example. All of those have their own entity object that...
I'm building an web application is ASP.NET MVC 3 (.NET 4) and trying to unit test as much as possible. I have a controller action Details(int customerId) which should display a view who's model is a Customer public class Customer { public int? Id { get; set; } [Required] [Display(Name = "Customer Name")] ...
I have been thinking about this issue for a while and I would be curious to have opinions from other developers. I tend to have a very defensive style of programming. My typical block or method looks like this: T foo(par1, par2, par3, ...) { // Check that all parameters are correct, return undefined (null) // o...
I'm writing a single page web application that talks to a business layer via asynchronous RPC (encoded with json). I'm targeting fairly modern browsers, so I can at minimum control the URL after the hash. However, the URL won't really be what drives the application's state (that will be maintained by a javascript mod...
The iPhone app i have an idea for deals with processing of the data stored as part of Oracle database at work. It'll be an interface to a dynamic set of data that is updated tens of thousands of time a day. Each time you look, results are likely to be different. That being said, the company i work for does not have an ...
"Directories containing directories and files" seems to have been around forever, but there must have been a first.
I'm developing a site for a potential customer who will need a lot of features for members and the various roles they will have, but also wants to have confidence in the "database". It is this latter item that makes them want to purchase a canned system from someone "established", that is both rather expensive, and is...
I'll be working as a development lead for a startup and I've suggested that we use VMs for development. I'm not talking about each developer having a desktop with VMs for testing/development, I mean having a server rack where all VMs are managed and have the developers work from a microPC (ChromeOS anyone?) locally, o...
Today I've just seen this article which described the relevance of SOLID principle in F# development- F# and Design principles – SOLID And while addressing the last one - "Dependency inversion principle", the author said: From a functional point of view, these containers and injection concepts can be solved with a sim...
I am bit confused. Is there only one application domain for every single ASP.NET Web Application or there can be anywhere between 1 to 100 application domains present in a single application pool of a web application
I understand how to code. I know how to get around the basics of the languages I use regularly. I know how to write slightly-above-basic regular expressions, I can talk to databases, I can accept input, print output, handle files, etc. I'm more or less assured of my basic ability to spit out the source code for moderat...
I'm working on an e-business website to sell books and also want to display the number of available books in the category list. The category list contains the genre and the format (pocket, ebook, audiobook etc). In each element in genre and format I would like to display the number of available products from the stock ...
The title says it all. My company is reusing a legacy firmware project for a microcontroller device, written completely in plain C. There are parts which are obviously wrong and need changing, and coming from a C#/TDD background I don't like the idea of randomly refactoring stuff with no tests to assure us that functi...
We currently have a large Subversion repository, with a tree like: root /libraries /library1 /trunk /library2 /trunk /solutions /solution1 /trunk /solution2 /trunk There are 81 solutions and 22 libraries. The trunk subdirectories ...
This question is purely for learning and to step-up my technical understanding. I know there is no perfect solution and this question has possible never ending solution list but I think it's very important for every architect to understand the difference between demo and a live project. I created many demo solutions i...
I find myself repeatedly annoyed by having to teach freshmen about special language rules (like array-to-pointer decay) that have absolutely nothing to do with programming in itself. So I wondered: What is the programming language with the smallest number of special language rules, where everything is first class and c...
After a recent restructuring happened in our corporation - I have got a new line manager. He is generally ok and not as sneaky as the previous one. By "sneaky" I don't mean he was an evil manager - I just refer by this term to someone who keeps most of the information to himself and doesn't share with other team member...
When constructing prototypes, should we also create appropriate unit tests as if we were writing production code? Would it make a difference if we knew in advance that the code was or wasn't going to be re-used for the final solution?
I'm working on a project that requires a simple dictionary for checking spelling; it will be large, but will lack definitions. The solution we're currently working on has the base word list in a text file, and customizations (extra words, excluded words) in the DB. The entire list needs to be loaded (best cached I thi...
Is it possible to create a shared backend logic using .NET and have the respective GUI front ends in MonoTouch and MonoDroid?
Given that a program (under development) needs a scripting language, and that for various reasons it's not possible to use an off-the-shelf one as is, I'm considering basing it on the syntax and some of the semantics of JavaScript, being something pretty much everyone is familiar with, including using the .js file exte...
So I'm working in a modding project and they gave me the installing part as to do. We plan to publish it between 30 Aug. - 01 Sept. My question is; is it logical to use Dropbox to download files in the web installer? I saw Dropbox's public folder has 10 GB download bandwith limit daily, after reaching that; they lock t...
I am working on a team developing a client-side application. We work in a Linux environment, but the server we work with can only be run from a Windows environment. As such, each developer is being set up with a virtual machine, running on Oracle VM Virtual Box. Would it violate the terms of use or licensing for the de...
I am considering building an application, which, at its core, would consist of thousands of if...then...else statements. The purpose of the application is to be able to predict how cows move around in any landscape. They are affected by things like the sun, wind, food source, sudden events etc. How can such an applica...
I was just curious, it's something I think most people are aware of as a technique: You have some abominable data that simply must be parsed and you can do nothing to simplify the algorithm for doing it, so the best you can do is isolate the complexity of that algorithm to one place rather than having parts of the algo...
I am trying to understand things like linkers and loaders better. What area of computer science do they belong to? Compiler, Operating System, Computer Architecture? Where do linkers and loaders come into play during development?
I'm not so much looking for code (although if you want to link to tutorials it would be appreciated) as I am trying to get an idea of what people in the know are doing. Our system is written in PHP. As part of an Electronic Medical Record System, I need to be able to securely exchange documents (Word, PDF, etc.) with b...
Increasingly when developing sites I find myself utilising more client side technologies such as Javascript, jQuery and AJAX. For three different pages I measured the size of the HTML sent to the browser (excluding images and CSS). What I found was: A page that has normal ASP.NET controls + a little bit of jQuery: app...
In Java, the variance of parameterized types is indicated depending on how it's used: <A extends B,B> void store(ArrayList<B> list, A elem) { list.add(elem); } Whereas in Scala it is indicated in the class declaration with a + or -. What I want to know is, now that Scala has been around awhile, what has been peopl...
Following along with the principle of not optimizing too early, I'm wondering at what point in the design / development of a piece of software do you start thinking about the concurrency opportunities? I can well imagine that one strategy would be to write a single threaded application, and through profiling identify s...
It is always difficult for me to choose between singular and plural forms for classes names: CustomerRepository vs. CustomersRepository CustomerService vs. CustomersService CustomerController vs. CustomersController And for composite names it is even more difficult: OrderCustomerRepository vs. OrderCustomersReposit...
While I was reading The worst anti-patterns you have came across, I clicked on the link in this post to land on the web site about anti-patterns. And the http://sourcemaking.com/antipatterns/functional-decomposition page got me wondering. How bad this anti-pattern is, and is it an anti-pattern at all? Because, although...
I have heard of developers who work with code which is a complete mess because originally the code was quickly developed and the quality was not there in the first place. Its always good to get maintainable, reusable code but I was wondering if it was best to sacrifice some of this due to time constraints. A common pr...
I spend a fair amount of time reading programming blogs, and it seems to be a popular belief that having business knowledge adds value to a programmer. I can see the reasoning for this: Understanding the business helps programmers make wise decisions Might encourage less "taking too long making everything perfect" an...
I've recently been approached to do some development work for a start up. The fellow has requested my terms and conditions. Being new to the industry, what sort of information would/should I include in this? Obviously pay rate and maybe information about ownership of Intellectual Property perhaps. Is there anything I'm...
Awhile ago I tried reading about Google App Engine, from its site and from the Wikipedia article. What I realized was that not only did I not understand what it did, I didn't even know what problem it was solving. I am a competent programmer in a variety of languages, but I have little experience with large frameworks....
I've been trying to learn functional programming and most tutorials I have found use math as examples for the more complicated constructs (even the simple ones in some cases). Why is this? I would imagine something easier could be used. Its making it difficult to learn. Background Info: I have been writing software for...
Once upon a time it was common practice for both the business logic and database logic to be written in the same language (eg PL/SQL, Transact SQL, etc), more recently the practice is to separate the application into layers/tiers such as database, business logic, and presentation, with each tier written in a different ...
I notice that web related code uses setter methods to set class fields instead of setting them directly since they are in scope. I find this to be a bit odd. Using setters is certainly safer, but if unit tests are implemented then bugs will be found. And it's not worth the extra stack call, imo. Does any production ...
Question Is there a legitimate reason NOT to use SVN for production deploys, or is this merely a case of personal preference and there is no real case against SVN? Background My workplace has a culture of tagging release in SVN and then deploying those releases directly to the various web servers using svn co or svn sw...
Is there any solid evidence behind the reasons for decline in search volume for popular programming languages? Could this possibly be due to improvements in finding necessary information (no need to search 10 times to find something) and quality of information?
For an experience core Java programmer with no AJAX and very little Javascript experience, the GWT is attractive. But, what will I be missing if I just use GWT?
I was reading the Wikipedia article on Douglas McIlroy and found a quote that mentions "The real hero of programming is the one who writes negative code." What does that mean?
So I have an open source project that I would like to promote and I want to create a project-site for it where I will host the documentation, etc. (preferably something that integrates with github for handling downloads, issues, etc). The project-site should be just like a typical. Is there anything out-of-the-box for ...
I started coding WPF applications a several months ago and now I am asking myself if there are some style guides for XAML. I do not need to get explained the benefits of Binding, Converters, Styles, Templates etc. My question is more basically. Is there an official (or unofficial) „best practice“ about the order of att...
After reading the book The Pragmatic Programmer, one of the arguments I found most interesting was "write code that writes code". I tried searching over the net for some more explanations or articles about it, and while I found some good articles on the subject, I still haven't found any specific code implementation or...
There are a lot of posts on this but I'm kinda looking for specific help, I've typed many different queries into Google but the majority of page returns seem to be dominated by beginner tutorials, planning, generators, and lots of other rubbish related information, It may have something to do with that fact that I'm ru...
I'm writing a web application in which I need to analyze words (now just in English, but maybe in future in any language). I tried to write a framework to do the job, but it soon proved to be something really really hard. Finding stems, understanding part of speech, finding consonants, determining morphological pattern...
Consider these methods: public List<Employee> GetAllEmployees() { using (Entities entities = new Entities()) { return entities.Employees.ToList(); } } public List<Job> GetAllJobs() { using (Entities entities = new Entities()) { return entities.Jobs.ToList(); } } public List<Tas...
I am a C# programmer, and most of my development is for websites along with a few Windows applications. As far as C goes, I haven't used it in a long time, as there was no need to. It came to me as a surprise when one of my friends said that she needs to learn C for testing jobs, while I was helping her learn C#. I fig...
I'm suffering a crisis of confidence in my ability as a computer programmer. Yesterday I tried to come up with my own shortest path algorithm for a graph and after some hours I simply threw in the towel and learned Dijkstra's algorithm. Is this the kind of thing a good programmer should be able to "reinvent" in a coupl...
At the beginning of every iteration our whiteboard is covered with "not started" stories estimated in IDEAL HOURS. On a daily basis we update these estimates to keep track of each task's progress. I think we are doing it wrong. The original estimates are in ideal hours and our daily "re-assessment" in ELAPSED TIME. Thi...
I am looking for arguments to convince management to invest effort into refactoring. We log work using Jira and relate every svn-commit to a jira call. My idea is to do the following: manually spot an area of code which is extremely bad implemented, but often used: both from User-POV and of Developer-POV (bugfixes) ge...
The static keyword on a member in many languages mean that you shouldn't create an instance of that class to be able to have access to that member. However, I don't see any justification to make an entire class static. Why and when should I make a class static? What benefits do I get from making a class static? I mean,...
I am signing a contract with someone remote in another country in regards with creating a new style sheet for their website. In our agreement the client pays 1/3 of the money first as deposit and the rest will be paid when I show the completed project online to him. Now my question is, since I know CSS is viewable onli...
For my project I want to develop an web application with Windows Azure as the platform using C# language. The idea is to host the website of a University on the cloud. Whenever it announces the resutls online there is a spike and the cloud will handle the peak usage with its scalabilty and load balancing properties and...
I'm familiar with the basics of run-time analysis such as what makes certain types of code O(n) and O(n^2). But I'm having real trouble learning, understanding, and really remembering how to analyze pieces of code that run in other complexities such as O(n log n) or O(2^n). I'm looking for resources that explain in s...
I've worked in past on some of the workflow engines as programmer but never had a clarity on why we chose the work-flow engines in first place. And as programmer I know that there are at least 100 ways to do anything when you are writing code but only few of the ways are the best! I still don't understand which use cas...
Possible Duplicates: How do you share your craft with non programmers? https://softwareengineering.stackexchange.com/questions/1985/how-to-explain-programming-to-a-non-programmer https://softwareengineering.stackexchange.com/questions/8022/how-do-i-become-more-articulate I love programming and I like to learn everyth...
My professor keeps referring to this Java example when he speaks of "robust" code: if (var == true) { ... } else if (var == false) { ... } else { ... } He claims that "robust code" means that your program takes into account all possibilities, and that there is no such thing as an error - all situations are...
I have recently acquired a habit which I know many of you may frown upon, but which, in the end, helps me keeping an eye on global code structure rather than on the structure of a single, (sometimes) repetitive method: grouping a number of statements in a single line, like this: textBox1.Text = "Something!"; textBox2.T...
I am working in a private bank, a leading mid size bank in local market. We are going to create our core banking solution. Existing solution has been developed on Java using IBM Visual Age 4.0. It is very important to discuss architecture first, we have currently more than 350 branches working in standalone mode, and i...
After having watched this video I have to ask how a programmer can go about measuring themselves against other, better programmers much as a chess player would. How would you decide who is a role model to start with? I mean James Gosling is known by every Java programmer but he invented the language and there is almost...
Possible Duplicate: How should I charge for programming things which take two minutes to fix? On some systems I created, every now and then I get tiny change requests from clients that are very easy for me to do, but the client can not do it themselves. For example: Hey, we made a new logo, could you please upload ...