instruction
stringlengths
34
19.9k
What is the best way to explain floating point rounding issue to customers? I know http://download.oracle.com/docs/cd/E19957-01/806-3568/ncg_goldberg.html as well as the entries in the C++ FAQ and various other pages aimed at developers and scientists, but is there a web page, article or explanation, aimed at "regular"...
I was wondering who owns the copyright of the sourcecode if you port an opensource project from one language to another. Is there a clear answer, or does it 'depend'? edit: I'm aware that a license choice is bound to the license the original sourcecode is released under, but I'm strictly wondering about the IP/copyrigh...
Random.org provides 200k free random bits (only 6250 32-bit integers!) from the analog world (cf.) per IP per day. Does anyone know of an alternative web service that provides more on-demand random bits per day? (paying is OK as long as the price is "within expectations" of 1000×1024bits per usd cent) (random.org's pa...
Do you find writing dead code useful? Some says "If you have 2 logic to do some operation then instead of making other logic code commented or removing code make it dead code as it will not affect the operation." Example:- if(true){ // logic - 1 } else { // logic - 2 // dead code } Is it true? I usually do n...
I'm a student (yet to go to uni) and I've been programming for about 5 years now. Over that time, I've flitted around from language to language, from API to API, and project to project. I've tried setting myself on one thing, but I lose interest. My entire PC is full of half finished projects (and at least four times a...
One of my colleagues has suggested timing how much time each team member spends on each user story. This seems to me likely confusing for the dev team during the iteration, and misleading as a metric for story estimation in future planning meetings. Do any of you have experience with such a system and any thoughts on ...
I just noticed something and I wonder if there is any reason for that. Except for C++ (std::priority_queue is a max heap), I don't know any other language that offers a max heap. Python's heapq module implements a binary min-heap on top of a list. Java's library contains a PriorityQueue class, which implements a...
What would you do in a situation where a team member tries to take responsibilities are not initially assigned to him but to the Scrum Master?
I am in the process of trying to identify a suitable project for my final year at university. How important is it that the project be unique? I really want to do a project with the Kinect and am eagerly awaiting the official SDK. As yet I am struggling for an idea. However, I have looked at kinecthacks.com to see wha...
I work at a bank and I developed an in-house web application that helps keep track of past due loans and all the interaction between the bank and the customers. I was recently told by an outside consultant, who frequents many different banks, that each one of these banks would die to have a loss mitigation system like ...
There are many sites on the Internet that require login information, and the only way to protect against password reusing is the "promise" that the passwords are hashed on the server, which is not always true. So I wonder, how hard is to make a webpage that hashes passwords in the client computer (with Javascript), bef...
What do you think? Is "Visual Studio Lightswitch" becoming the "Oracle APEX" for SQL Server in the futrure? Are these two technologies comparable?
The Java Community Process is meant to be just that. A process where the Java community can have its say on the future of the language. What is the best way to get involved in the JCP? A JSR (Java Specification Request) goes through various stages in its life cycle. Obviously if you are domain expert with deep knowledg...
I was recently approached by a software firm that specializes in Quality Assurance and Testing. Up until this point, the developers at our (small) company have been responsible for their own QA for the most part and we've had mixed results. We're at the point where we are ready to hire a full time QA guy, but I was cur...
Having "completed" my task, I have recently been assigned by my PM to work on a maintenance project by another PM. In this other project, the client wants to add new features and I'm assigned to do a feature. I'm finding my job over my head for various reasons: code is difficult to understand/read as not well-documen...
Why don't some open source libraries provide binaries? I have noticed that some projects defer to third-parties who maintain current builds of the software, especially for Windows builds. I ask because it seems like a barrier for adoption of a library. It's more work for the developer since he must set up his environme...
I have written a bunch of fun for me projects and have shown them to friends and such. Is there any value in doing the work and making these projects open source since the interest and usefulness limited.
The codebase I work with daily has no automated tests, inconsistent naming and tons of comments like "Why is this here?", "Not sure if this is needed" or "This method isn't named right" and the code is littered with "Changelogs" despite the fact we use source control. Suffice it to say, our codebase could use refactori...
I thought LGPL was a permissive license, just like MIT, BSD or Apache. But today I read, that only linking to LGPL (libraries etc) is allowed from closed-source code - other than that, it's copyleft - so I have to publish code that is based on an LGPL program. I created a program for my employer that is based on an LGP...
I'm wondering if it is worth reading language specifications/standard documents (e.g. The Java Language Specification) if you aren't going to write a compiler/interpreter for the language or something similar? I understand that reading such a book shouldn't be anyone's first exposure to the language, but it could be a ...
For my Semester project I have to go for any Adaptative Interface Design. My language is C# and I have to Use OpenTK (wrapper for OpenGL). I have an idea that I should show two points and some obstacles and my subject (user) would drag an object from one place to the final place avoiding the Obstacles. Also (s)he can p...
In many langauges, super() lets you call the parent method which you have overridden. I've been using super in my Javascript (with fake object oriented implementation) to run common code for a long time without problems. Now I've finally hit a case where calling a protected base class method would have been better than...
My customer recently discovered what is URL Rewriting, without completely understanding what it is, how it works and the pros and cons of it. Now, he asks for lots of strange changes in actual requirements of current projects and changes in old projects in order to implement what he believes is URL Rewriting. On one ha...
I'm still at Microsoft TechEd, and the response to my question about how to effectively use my time at software conferences was overwhelmingly "networking is the most useful part of software conferences". Problem: I have no idea how to even approach that task. I've always been kind of an introvert. At school and at wor...
I have three incoming projects that share a common problem: they need to have the logic on a web system and they need a local application (e.g. point of sale) that communicates with such system through a RESTful web service. My Solution The solution I managed to come up with is to implement in the desktop application...
Data persistency has recently become a really grip for me, especially how long to maintain database connectivity and how many connections are feasible for a given request. I've been using .NET; however, this is a generic question related to any lanaguage. From a .NET perspective, I'm connecting to database using EF4 an...
I work on Debian and before Debian I was on Ubuntu. In my previous job, we simply ignored IE6, but at my present job a page must work flawlessly for IE6 onwards. The one wayout for me is to set up a Windows VM but that doesn't help every time. Consider this, if I was a freelance consultant and didn't want to or have en...
I've been thinking about this problem recently and it really doesn't seem like it's possible, but I figured that I'd ask just in case. Assume a simple program, in pseudocode: run hash on an executable we think is mimicing the true executable check the value against the hash that's hard coded into this executable if it ...
I want to gather some arguments as to why letting a developer testing his/her own work as the last step before the product goes into production is a bad idea, because unfortunately, my place of work sometimes does this (the last time this came up, the argument boiled down to most people being too busy with other things...
I heard about a tool named FitNesse, which is supposed to promote better collaboration between development, testing, and product groups. What are your experiences with it? Does it really improve program quality? Are there any drawbacks to using it?
I am reading "The Pragmatic Programmer" . The book has the following paragraph Dave once worked on an international telex switch. Quite understandably, the client demanded an exhaustive test specification and required that the software pass all tests on each delivery. To ensure that the tests accurately...
I am about to take plunge into PHP frameworks and my weapon of choice is kohona. I have a reasonable amount of OO experince with java. And my javaScript, jQuery, PhP and html/CSS skills are passable. Now to the question. Is this a reasonable choice? As ZEND looks like a steeper learning curve and CakePHP commandline c...
I was thinking about this for quite some time. Is function memoization really only for primitives? I currently have this piece of code: Public Shared Function Mize(Of TArg1 As Structure, TResult)(ByVal input_f As System.Func(Of TArg1, TResult)) As System.Func(Of TArg1, TResult) Dim map = New System.Collections.Gene...
At most of my corporate clients they have very complex systems with multiple entities to be deployed and tested. (e.g. client software, user database, system, database, identity manager application, etc). They usually don't have an easy way to deploy all this. Neither in production nor for development. I wonder how ope...
I saw a job opening where the requirement was for a developer to develop CAD tools using C++ and OpenGl libraries. I am a civil engineer and want to be part of such a projects so I thought to learn C++ and some libraries which could help me to move forward for such job opportunities. I know a bit of C++ but I am quite...
We are currently using an old legacy ERP system (Thoroughbred) that we have been bolting on functionality by means of web apps we design in house. I interact with the legacy system via ODBC and have to pay on a per connection base via Licenses. I would like to build in intermediate system that would take the sql reques...
I would be interested to get the SO community's opinions on the best application versioning strategy. My questions: How do you keep track of your application's version number? Do you have a formal definition of what each number/character in that version represents? What do the different numbers/strings in the applicat...
We all get them. What do you do when you are supposed to write a functional spec from a woolly proposal? You can write a ton of questions about the proposal but answers are not always forthcoming. Sometimes for political reasons you cannot make someone firm them up. How do you deal with a vague software proposal, when ...
For the 4 jobs that I have worked at, I dressed formal twice, business casual once and more casual once. How important is the dressing code to programming interviews these days? Will the employer or interviewer not take you seriously if you come in casually: plain shirt and khaki pants with casual walking shoes(non-s...
I'm planning to provide a little service with which you can control your computer from anywere. It exists out of a server (which I will be providing), and two clients (a controlled one and a controlling one). Now I want to provide that service for a little fee. However, the server is actually a small old Dell laptop wi...
Usually I just throw my unit tests together using copy and paste and all kind of other bad practices. The unit tests usually end up looking quite ugly, they're full of "code smell," but does this really matter? I always tell myself as long as the "real" code is "good" that's all that matters. Plus, unit testing usua...
I am trying to understand dealing with immutable data in FP (specifically in F#, but other FP’s are ok as well) and break the old habit of state-full thinking (OOP style). A part of the selected answer to the question here reiterated my search for any write-ups around problems that are solved by stateful representation...
I would like to know with the restrictions of GAE listed below, is it even possible to build a great social app (like Facebook) by hosting that app on GAE? In other words is GAE an infrastructure capable of hosting an app used by 600 million active users? Restrictions I've dugged out from a couple of forums / blogs (pl...
I'm creating a simple "find one of our locations" app for iOS 4, for which I have a list of >70 places, complete with addresses, business hours, etc. Is it better to put all of this data in one large plist or many small ones?
Awhile back I discussed the possibility of moving to a startup that is going to be using Java, more specifically the Play! Framework; well, I'm going to go for it! I have been a .NET guy for a long time now and haven't really been in the Java game except for the occasional Android tinkering or messing around with Scala...
The library that I'm working on has a parameter which defines priority of a certain process. I want the interface to be as clear as possible, but it seems that different people have opposite interpretations of priority values. 1. Lowest number has highest priority (1 - highest priority, 10 - lowest priority) 2. Highest...
Now that I've done a few trivial things with Scala (which I love for "hello world" and contrived applications!) I am left wondering.. part about maturity of the tools to support development, and part about general applicability. Are the toolsets ready? Is Scala appropriate for use on enterprise / business application...
I find myself talking about computers with a lot of non-tech people, who often use the word "glitch" to describe an undesirable outcome of a program or operating system(of course, never Linux!). I have never heard another programmer use the word "glitch" and hearing it makes me think the user has no idea what they are...
I heard about 3D canvas. It's strange for me. Because I know there's already a industrial standard 3D API WebGL. What's that? How is it different with WebGL?
I often find myself in situations where objects need to communicate between each other. For example, a button might need to talk to various textboxes. Would it be proper to simply construct each widget with a pointer to the container for all of them? Would it be better to give it a pointer to a resource container map w...
For a programmer/cs student that wishes to dive into web development and freelancing... what are some good books/publications/portals/blogs? Please take into consideration also that I'm used to developing websites by googling my each step to find an example. I'm interested in technologies like php, javascript, jquery, ...
This is a little vague. But I've tried to put the things to the point. As much as the handhelds (smartphones, tablets) are becoming extremely popular every passing day, What I wonder is, why there are no great programming tools for them? With great processing power of these devices, I don't think there's any problem in...
I'm creating a website for a friend of mine, and the plan is to eventually solicit outside sources to take care of the overall design. So it's got me wondering, how much design should I be covering now? I'm primarily driven to just code the logic for the website and get everything functional before I care too much ab...
I found the "Extension method" concept of C# just wonderful. It enables us to do things like: More flexible alternative to Abstract Classes. Provide missing Java-like functionalities to C# enum. And The coolest thing about it IMHO is that adding a method doesn't break backward compatibility. However, I found almost n...
I'm reading Ralph Kimball's books and I'm currently exploring the following data warehouse schema. Are both dimension & fact tables populated during the data warehouse creation/update? How often? What about the DimDate table? Do we populate it with all possible dates or only with date used by facts tables? What is the...
this page http://golang.org/doc/go_faq.html writes: although Go has static types the language attempts to make types feel lighter weight than in typical OO languages So my question is exactly is it safely typed with generics (like C#) or loosely typed (like javascript) or optional (like option strict in Vb.Net...
I am developing a small web application in CakePHP which allows user to create contents using tools I provide. Once user is done creating the contents, I want to give an option to embed that in her own website. There are 2 ways I can think of right now to do this Using iFrame embed code Giving unique link to that con...
Our client has a CRM application (let's call it A) and a custom built Windows application (VB.NET) (let's call it B) that directly writes to and reads from the CRM database. Application A is used (mainly) to manage clients and their orders. Application B is used to manage all the products our client sells. Our client w...
Many of you out there work for large companies that ship well-known software. I was wondering, how much of original code (basically, code that was "v1.0" release) is left in modern massive applications, such as, say, Firefox, Photoshop, Windows, Linux, etc? I'd really prefer first-hand experience and real-world war sto...
I need some advice on collaborative software environments. More specifically, I am looking for books and reference materials that can aid me in understanding team and code structures and the interactions thereof. In other words books, blogs or white papers explaining: Different strategies for structuring teams that s...
as GWT is supposed to abstract all the browsers implementations (for widgets, etc) is it worth doing cross-browser testing? I was just thinking to test only the styling related stuff (CSS related) in different browsers. Any opinion on that?
I just started a new job a couple months ago at a small company where I am currently leading all development efforts present and future. I personally have years of experience in software design and development from mostly Java but also a .NET perspective. I picked up .NET later in my career with great ease and requir...
I just read Flinging Fish for Fun and Profit, a short little essay on how Pike Place Market in Seattle turned to dwindling business into a success by making it fun. Obviously having fun at work is largely attitude, but I'm wondering what practical things can be done to have more fun with programming and related tasks? ...
At my current job (we're in a MS environment), we have multiple deployed web applications, both inter/intra net. The internal apps generally use an Active Diretory sign in, the forward facing sites each have their own membership implementation. Some use a custom provider we wrote, some use Asp.Net membership. Yes, we h...
I name my variables using the .Net conventions: camelCase for variables and fields (I tend to use _camelCase for private fields in a class) PascalCase for methods, properties and classes The only place I deviate is on constants and Enums where I actually prefer the Java SCREAMING_CAPS style. My company's codebase is ...
Stack Overflow has an awesome set of badges that recognizes a persons contribution to the community and allows an individual's capabilities to grow the more he contributes. What techniques can I use for open-source or coding projects? For example, a person's contribution to the code base earns them badges along with e...
I need to extract very particular data from log files(of different types and formats). Since I am a recent college passout; my mind ran to using Lex and Yacc for the purpose. Now I have the following Questions 1. Will it be legal to do so ? (This product I am working for belongs to one of the biggest tech companies in...
It's stable and has a time complexity of O(n). It should be faster than algorithms like Quicksort and Mergesort, yet I hardly ever see it used.
A co-worker and myself are having a debate on whats best. Both concepts work and work well but is there a general consensus on not making a call to exit? Whats better? To call exit within a procedure to avoid doing the rest of the code as in ... if Staging.Current = nil then exit DoSomethingA(FileNameA); DoSometh...
My ideal programming language would let me define a custom css that would lay out code according to my specifications of columns/space/brackets placement etc. and check in only content. Everybody gets their own layouts - and hence we avoid all the long winded discussions about styles. A language that could do refactori...
I'm just about done writing an iPhone application and submit it to the App Store for approval. I'm going to sell the app for a price, but I'd like to be able to give out a few free copies on occasion, kind of like a promotional offer. I know when you go to one particular coffee establishment, they have gift cards avail...
Possible Duplicate: How many developers before continuous integration becomes effective? When does continuous integration (such as CruiseControl) add value to a project? Do factors such as Number of Unit Tests How often changes are made Branch development Team Size make a difference in the value added by continuou...
I've seen a lot of information on best practices for dealing with lost password on websites, but what about usernames? Is there a standard way of dealing with this? My basic idea is to ask for the users email and send the username to that email. I'm wondering if something more secure along the lines of password recove...
What is the best practice and software you use to document change related document. lso, how you prefer to document the changes in the project. Let say, you got a requirement to make some changes in the project. How do you proceed? Do you take the complete backup before processing. Will this backup be documented. If ...
I have been programming python and web apps awhile now but never delved very deep into OOP. I use classes all the time but I am pretty sure i am not fully getting what I could get from OOP. So today I popped open Learn Python (mark lutz) which i had read awhile ago, flipped through the oop section in about 5 minutes an...
Possible Duplicate: What “version naming convention” do you use? I am currently debating between the traditional versioning convention [major].[minor].[revision] and my own, almost whimsical, [YYYY].[MM].[DD].[hh][mm] for a new project I am starting. I understand that [major].[minor].[revision] is probably the most ...
So I started working for a large corp., one of those with 3 letters in the name, and they are trying to become Agile, but have tons of processes, which I don't feel are Agile. The one that has me the most wound up are code reviews. My last job was with a startup that I would say is the most Agile development team I ha...
Previously, I wanted to learn Python quickly: https://softwareengineering.stackexchange.com/questions/49755/resource-to-start-with-python-quickly and I was quite successful (enough to write a simplified LISP interpreter). Now I need to learn JavaScript for some web programming using Prototype and Scriptaculous with Ru...
So I've got a solution that contains a few big projects, which I'm trying to break down into smaller projects with more isolated responsibilities. This is a game I'm tinkering with -- I'm mainly a LOB developer and I think the principles are universal, so I'm hoping to learn something here. The dependencies in some of ...
I've had a few software ideas before that could probably be patented.(decided not to pursue any of them, however). Basically, I don't want these ideas patented though. I don't care if someone else implements them, I just don't want to get sued later by some patent troll who patented the idea I had and implemented 5 yea...
For example, is it better to do: Pdf pdf = new Pdf(); pdf.Print(); or: Pdf pdf = new Pdf(); PdfPrinter printer = new PdfPrinter(); printer.Print(pdf); Another example: Country m = new Country("Mexico"); double ratio = m.GetDebtToGDPRatio(); or: Country m = new Country("Mexico"); Country us = new Country("US"); DebtS...
We have some pretty old, clunky .Net 1.1 apps in our business that - rather than be forcably upgraded - just get an iFrame added so that new functions can be dropped in. It's become such a well-known option that many management staff who don't really have a great deal of technical knowledge or experience suggest just t...
Recently I found one of my Maven project have 100+ jar dependencies. FWIK a zip archive doesn't have index at all, so it should scan the whole zip to determine if it contains a specific path. But I found Java resolve class names against so many jars rather fast, why?
FWIK Java can run on 64-bit system, no problem. I'd like to know how Java support 64-bit features, e.g., System.identityHashCode() returns a 32-bit int, it's common to see the object pointer (memory address) is returned. Should 64-bit Java returns long instead? If not, how would Java scale to 64-bit systems?
Technically, Is there a difference between these two words or can we use them interchangeably? Both of them more or less describe the logical sequence of steps that follow in solving a problem. ain't it? SO why do we actually use two such words if they are meant to talk of the same? Or, In case if they aren't synonymou...
I thought Unicode was designed to get around the whole issue of having lots of different encoding due to a small address space (8 bits) in most of the prior attempts (ASCII, etc.). Why then are there so many Unicode encodings? Even multiple versions of the (essentially) same one, like UTF-8, UTF-16, etc.
Highly related https://stackoverflow.com/questions/6021938/nodejs-many-clients-requests-through-one-socket I'm investigating a robust message passing system for this application of mine. The easyest solution would be Redis pub/sub (it's simple, effective and I'd also use Redis for caching) but as I understand it, pub...
I'v been working on sorting for a while now but I can't figure these two questions apart, I'm kind of getting mixed up somewhere ... Somebody help a) Which sorting algorithms have a different worst case complexity than their average case? b) Which sorting algorithms have a different best case complexity than their av...
Do you have any kind of update process? Let's assume you are an "in-house" development shop for php inside your company. You are creating an bunch of applications for other units. Do you have something like "Support ends in 2 years" ? What happens if you develop an app for php 5.3, and this app can't run with php "6",...
I may be violating some StackOverflow terms by asking a question which is more likely to yield discussion than a clean answer. Here goes, however. I've developed some software for a small company that isn't a software house (so we don't already have a lot of processes in place). It is in Turbo Pascal (Delphi 2009) an...
We have a large (1200+ hours) website that has a lot of technical debt. This is mainly caused by the following (usual) reasons. Multiple programmers who come and go during development. Change of specifications during development. Numerous added functionalities added (in a short time). The customer wants alot of new f...
Just finished merging seven scripts into one, but got me thinking that I really don't have a formal logic for breaking scripts into pages, or why I'd merge them. Suggestions?
I was deciding whether to start a Windows Phone application, but it seems like it might be better to wait until Mango is released. Is Mango a new platform, or is it an upgrade to Windows Phone 7 (i.e. Windows Phone 8)? Is it expected to arrive in the near future? That is, should a project starting today worry about it?...
I am totally into Scala as a language ... and still I struggle with why any company should switch from Java to Scala. Is Scala just syntatic sugar on top of the JVM or are there fundamental improvements in Scala over Java that would improve real world applications?
I have never been very clear on this concept. Please help: At the end of the day, we should want to identify useful problems for which we don't have polynomial solution so far and only have exponential solutions.We want to keep finding if we can find a polynomial solution to these problems and the use of reductions is ...
I have been working for 5 years at the same company now. I want to go and find a new job. Finding jobs or getting interview calls has been difficult, there are have far and few. And to compound the problem I need work permit(H1b) to work. My question is how do network with other programmers and increase my chances of g...
During my first implementation extending the Java collection framework, I was quite surprised to see that the collection interface contains methods declared as optional. The implementer is expected to throw UnsupportedOperationExceptions if unsupported. This immediately struck me as a poor API design choice. After re...
I have read and used many good Linq to . I have also read that some of the Linq to __ are not worth learning as there are better techniques. I was just wondering which of the bunch should I concentrate on and which have more suitable alternatives. Thanks
Background: I am thinking of trying to introduce the concept of unit tests to my co-workers by creating some for a module I have been working on; the requirements of it recently changed and require some more abstractions/interactions so it seems like a good way to develop a suite of tests that will "prove" it works wit...
After reading Jeff Atwood's article "Working with the Chaos Monkey" and considering the implications of "Fallacies of Distributed Computing" it made me wonder if the first task of developers creating a cloud-based application should be to create a Chaos Monkey. Actually, given that even an entire data center can be los...