instruction
stringlengths
34
19.9k
In a config file for a PHP project, I have some settings that should not go out in production. Can anybody offer some specific examples or help on how to automatically check these fields and make sure their values are not the development/demo settings before the files get committed into subversion? Our IDE is JetBrain...
I'm fairly new to programming (still a student), and I haven't had much experience with planning out my software development. Usually if it's a large project, the profs break it up into steps for me. If it's smaller, I usually just dive right in. This has worked so far, but I'd like a better process. I'm planning to do...
I found an easy system for uploading searchable MS Access databases to the web - it's called Caspio Online (http://www.caspio.com/). However, I would rather not pay a monthly fee just to upload databases to our website. Does anyone know of an open source alternative that will allow me to upload a MS Access 2007 Databas...
I understand that this might be a loaded question. For example, in Sql Server 2008, doing DECLARE @someNum NUMERIC(10); means that the range of the variable will be limited by 10 digits. In other languages such as C, Java, etc. the standards for representing whole and fractional numbers are different. The range of the ...
When I write high-level documentation about what an algorithm does, I use the term "array" to refer to the data structure on which the algorithm operates even though the actual data structure is an std::vector. I feel that using the term "vector" in this context does not (to me) best convey the meaning I'm after which ...
Currently I'm in the very beginnings of the planning stages of a project I was hired to take part in. It's fairly large, but small enough to be handled by 1 or 2 programmers and a handful of others (for design, marketing, etc.). Mostly the designers and marketers are working on their plans right now, but I have to star...
I've recently encountered this using TortoiseSVN, but I assume it will be the same for CVS based programs (correct me?). Out of pure curiosity, is there any reason why the CVS filesystem is case-sensitive? I.e. the following URLS are different: svn://repo/branches/PROJECT svn://repo/branches/project Is there some lega...
Is functional programming just different, or is it actually really tougher? Say someone who have never learned programming at all before, and is taught functional programming. vs someone who have never learned programming at all before, and is taught imperative programming. which will he find tougher? or the same? My q...
I have a friend who created a website with web.com which use to be called freewebs.com. He also has his domain name registered through them as well. Are theses one of those dangerous sites to stay away from or is he going to be okay for now?
I have a coworker who will likely be leaving the company soon. An msdn subscription (Premium I believe) was purchased for him - but I believe it was more than 1 year ago. Is this license transferrable to me when he leaves the company?
Obviously some old applications can't be or is extremely difficult to unit test because of the way it was written in the first place. But in places, like some helper methods which could probably be unit tested, should I bother writing unit tests for them? I mean, they could be written like a dog, but however complexly ...
So decorators wrap a base class recursively, right? And have a single super class object which is at the "core" class. Couldn't you just add an ArryList/LinkedList of decorations in the "core" class and achieve the same thing? This would avoid recursion (which is expensive), but allow the dynamic behavior of being able...
How to tackle 2-D and 3-D space in data ? lets say you are working on a power grid problem. You need to represent Towers; transmission lines; transformers and every thing else in a 2-D space. How would you design a Data Model for this 2-D space ? I can use a class tower { int x_cor; int y_cor; string power_properties...
How the encodings work? Which encodings can be used in XML? To avoid errors XML encoding while using PHP I heard about Character Encodings: Source Encodings: Target Encodings: May i know what is the Difference between them?
I'm about to start an open-source project which shall be licensed under Mozilla Public License (MPL). The problem is, I'm not sure what's this "Exhibit A" thing... Am I supposed to put that wordy "Exhibit A" in each and every source file contained in the project? And what about the MPL text proper; must I provide a com...
I am the only front-end developer in a team composed for 3 .Net devs, 1 QA and 1 PM. Although we have another team from another office halfway around the world, to whom would i do code review with? me + front end developer from another office. me + one of the .net developers in local office. other choices/course of ac...
After using mercurial daily for over a year, we are about to find a better workflow for our DVCS. Inspired by a successful Git branching model we are about to move away from our "push daily work into master repo and fork off release branches at regular intervals" workflow into "work on separate feature branches and mer...
So I have a website I would like to make that would essentially be selling files. For the sake of discussion let's say that these files are like the raw text of a book. If somebody buys a file from my site, there really isn't anything preventing them from sharing that unlimited amounts of times with their neighbor or w...
Lots of people in the open source community say they strongly consider a candidate's Github profile when hiring. I'm active on Github, with a few projects of my own and some contributions to others. But looking at my own profile as if I were an employer, I see a lot of noise: projects I cloned but never contributed to,...
We are a group that started working on a fairly big website with an existing codebase. We have a test and a production server. Our idea is to have a test repository with a number of devs having push access to; and a blessed repository that only a few can push to. The blessed repo is supposed to be always stable and re...
I read an article recently which said that mock objects are often misunderstood and misused. Are there any clear mocking anti-patterns which I can look out for?
I'm working at a company that has a strange policy. They can't stick to a single name for a software revision. For some reason they have branches, versions, releases and perhaps another term. They never explain what these mean. What is the standard way to separate out different revisions to be less confusing?
I have a problem with a senior director who doesn't understand iterative development (much less Agile). He is insistent that our software design specification (SDS) be complete before any line of code is written. Complete, to him, means all functional detail is there. Also, being a former Cobol programmer, he wants to ...
I have the impression that Delphi isn't very popular anymore. But now at work I had to make some changes to an old Delphi program that we are still using. I used Borland Developer Studio 2006 and it was very pleasant and intuitive to work with, even though I had practically no previous exposure to it. Is Delphi still w...
When creating a Security Token Service (STS) for a claims based security model, it seems appropriate that tokens are generated in such a way that they expire after some duration, as suggested here. Around this concept, I have a few specific questions, but am looking for any feedback regarding best practices in this are...
When the QA find an error like 'broken design in web programming', do you call it a bug and the corrections 'patches'? (Assume all this is before delivery.) I was of the feeling that the corrections for bugs found after delivery were called patches. Developers don't add bugs intentionally and it's QA's duty to find bug...
Ok, gang, next question: what do y'all think are the best processes to improve the quality of the code the (corporate) team produces? (The cult of quality question was good, but I'm looking for specific suggestions of things we can do.) Background: the team is diverse, in the usual way: There's the brilliant coder w...
I have come to use LINQ in my every day programming a lot. In fact, I rarely, if ever, use an explicit loop. I have, however, found that I don't use the SQL like syntax anymore. I just use the extension functions. So rather then saying: from x in y select datatransform where filter I use: x.Where(c => filter).Sele...
I am trying to write a joomla type system in PHP to improve my coding/programming skills i need guidelines/rules of thumb to do that. what i basically want to do is create a index.php file which will act as a front controller and will redirect to the request transparently to "extensions/plugins" (no need for them to fo...
I'm reading about application layers, and want to use this design in my next project (c#, .Net). Some questions: Is the separation of layers done through namespaces? Project.BLL.Whatever, Project.DAL.Whatever Is it more appropriate to separate by layers, then components (Project.BLL.Component1), or by components, th...
So I've been working at a job for the past year as a .NET developer/DBA. The job is my first DBA job. Traditionally, I'm a .NET developer and have about 5 years experience in it. Does it make sense for me to continue my certs to get the MCM (assuming I'm eligible)? I'm thinking it doesn't because I've been working w...
I'm just learning about dependency injection, and am stuck on something. Dependency Injection recommends sending dependent classes through the constructor, but I'm wondering if this is necessary for data objects. Since the Unit-Testability is one of the main benefits of DI, would a data object, that only stores data,...
Very frequently, I am stuck when choosing the best design decision. Even for small details, such as function definitions, control flow, and variable names, I spend unusually long periods perusing the benefits and trade-offs of my choices. I feel like I am losing a lot of efficiency by spending my hours on insignifican...
I'm planning on writing an open source HTML parsing library in .Net so that I have a project out in the wild when I start looking for developer jobs. Now, in my Masters program I started learning Java and found that I like it as well and was also thinking that I could also write the library in Java at the same time, to...
I have recently started my journey to learn programming, and got my self a book on Objective-C. The thing is though: I get stuck quite often, trying to figure out how to solve the different exercises. I am quite new, currently on chapter 5 and trying to figure out how to do the different exercises. I get stuck and can'...
If you deprecate something, are you guaranteeing you will get rid of it in the next major release? Is it reasonable to take two or three releases before you get rid of it completely? Update: Thanks for the answers. Java is a good standard for how to do this - any others? Any examples from Microsoft's APIs? Update...
Possible Duplicate: Frankly, do you prefer Cowboy coding? By cowboy programming, I mean a programmer just typing the code very fast without a semi-formal process. I have a programmer that codes fast by dismissing revision control, documentation, patterns, tests, and methodologies. We talked about that and she tells ...
It seems silly to compare these two servers considering that they're meant for very different things. But if you think about it, they can do lots of similar things: store configuration data, distributed locking, queueing, etc. I've got an instance of Redis that I'm using for some production-related things, but would ...
I am a front end programmer. I'm good with design, html, css, and jquery, but I want to learn javascript more than anything. I've taken a couple of courses, read books and tutorials online and feel like I have a good grasp of the core principles: variables, logic etc. This is where I see to differ from all the other "...
After yet another homework question on SO. It seems like that vast majority of students have no idea what a debugger is or how to use one. I feel that knowing how to use a debugger is almost as important as other fundamental of programming. The question is shouldn't debugging and how to use modern debugging tools ...
I'm an amateur programmer. I'd like to develop a software application (like Tradestation), to analyse real-time market data. Please teach me if the following approach is correct, ie the procedures, knowledge or software needed etc: Use a DB to read the real-time feed from data provider: what should be the right DB to ...
I started my career as a software developer about 6 months ago. This is my first job, and I am the only developer in this company. I gained .NET knowledge by self study and also by doing some university projects. Our systems have old foundations based on an earlier version of .NET, and I'm starting to feel that I am n...
Is it possible(expected) for an individual to figure out(having never seen it before) the algorithm if asked at an interview? What other problems have equally interesting solutions? Edit: Due to the confusion of the actual algorithm I am referring to, it is the Floyd's cycle-finding algorithm, aka, tortoise and hare a...
I'm involved in teaching mathematics to classes with requirements such as AS and A level Mathematics specification. Class books normally provide examples of computer software applied to mathematics tasks, but they are normally based on software applications like mathlab, mathematica or derive. Even when a real programm...
This question is about hardware and hosting, and how to "bootstrap" them. If you built a really great website, how could you have it hosted at low cost but so that it reassures customers that their data is safe and available. As an example, what if I have a web application I developed for small companies to use for the...
Many times I forget things about my application. I don't memorize the table names or what a query did and I search to get what I want. My team leader told me I'm supposed to memorize the table names that I use. Is the developer required to memorize the table names in the database, the classes names etc? And if the ans...
In the answers of What's the canonical retort to "it's open source, submit a patch"?, many people voiced the opinion that simply asking people to submit a patch is arrogant and rude. But it seems to me that as a developer on any open source project, you will see many more feature requests on the mailing list than you c...
I'm working on an investigation on the NLP field. Since software engineering and software documentation are not the primary concerns of my whole investigation I decided to do it using XP. My question is, can you recomend: Any tool you've used to manage XP projects Any recomendation/link on how to manage investigation ...
I've just been compiling some of my own code with the -std=c++0x flag in GCC, as I want to vaguely keep up with what all the young folks are doing (provided they stay of my lawn), and I ended up with a load of warnings about auto_ptr being deprecated. Of course, I knew that auto_ptr was deprecated in C++0x, but... Isn'...
I am a computer science student working on some mobile games. However, I am completely torn and keep going back and forth deciding whether to learn Windows Phone or iPhone development. I love developing for Windows Phone because C# and XNA are both great tools. However, it is unproven on the market and has a market sha...
I am trying to fork an application that is based on CodeIgniter. According to the GoogleCode page, the license is GPLv3. However, examining the license.txt file inside the root directory of the application is very clearly not GPL (it does not include the preamble etc.) and looks like a slightly modified version of the ...
I have checked pagination implementations on asp.net mvc specifically and i really feel that there is something less efficient in implementations. First of all all implementations use pagination values like below. public ActionResult MostPopulars(int pageIndex,int pageSize) { } The thing that i feel wrong is pageInde...
Can I use the new Xcode 4.2 to make apps for older version of the iOS? Will they work? I like the new features like the Storyboard and Automatic Reference Counting.
I have been noticing certain trends about writing research papers in India. They are written either by students or by academics. Do people working in day jobs (like me) in the software industry write research papers? I ask this question because, we are more likely to get interview calls from companies like Google and...
I always thought the largest scale of banks use Oracle. However, there is no proof they really use Oracle instead of Mysql or PostgreSQL, nobody knows the secret. Any idea what they really use? Can i build an ATM/Bank system where millions of transaction will happen using Mysql? Can I use PostgreSQL? Or must I use O...
How does Facebook calculate mutual friends? Does it cache all mutual friends for each user? Does it use MySQL to calculate mutual friends with a query?
I am considering going back to school for my masters and I've been looking at several avenues I can take. I've been considering either an MBA or an MSIS degree. Overall I know that an MBA is going to give me a solid skill set that can help me become an executive. However they seem to be a dime a dozen these days and...
I lived long time on static typed language world. All types were explicitly noted on each variables and arguments. Now I have to use some kind of dynamic typing language. (Smalltalk) The problem is there is no type noted on any message argument, and even on documentation. So, how can I know what should be passed to the...
I was wondering if there's a big, direct revenue in releasing a programming language such as Java or C#? Selling IDE's, licensing your brand for books or gaining enterprise prestige seem bit of a marginal benefit to my eyes compared with the effort that undoubtedly the development took (I could be wrong though, of cour...
Currently I do a lot of development on my free time to improve my productivity at work. I've got around 50 man hours of unpaid work into a few pieces of software, but I'd rather not have them end up on work computers until they're licensed to prevent redistribution without my permission. Of course, I'm not charging the...
I'm looking at UberSVN as a possible replacement to our existing source control package, VisualSVN Server. There are a lot of UI benefits for the decision, including having the integrated web UI, administration portal and collaboration features. The concern I have is what difficulties I'll face in migrating from Visual...
HTML, CSS, and JavaScript can be used to build beautiful (and useful) UI's (especially now we have HTML5 and CSS3), and lots of people already know them. Though it's still way beyond my reach, how difficult can it be to bring the whole web app thing to desktop apps? We already test apps on our local servers before host...
PNG is one of a family of container formats generally called FourCC or OSType. [A]IFF and WAV are two other common instances of the format. I want to develop a new format for a specialized data type. I modeled the format closely on PNG. PNG is unusual for the FourCC family in that each block ends with a checksum. In th...
I am building a software system for my masters project and was looking for advice on particular methodologies that would suit a "one man team"...
I'm close to the completion of a first set of features for a free application I'm developing on the Android platform and I'm starting to wonder about the best time to release it to the market. On one side I'm fond of the "ship as early as possible" model though considering that users can vote for applications I don't ...
I was absolutly sure that I need one (and some SO users too), but it turns out that my case was easily refactored with simple List<object>, and more I think about it I am no so sure anymore that one is needed and generics classes for collection managment are sufficient, I am just curious :) btw. there is a similar que...
I have a business partner who wants to do a deal where I will get a percentage of the profits from app sales. I like the deal and want to do it. In our business agreement I want to put some language that defines what happens as the project moves forward - for example, what if he wants app updates that I don't think are...
I'm finishing college for good tomorrow, then leaving my current programming job the next day. I'll be looking for opportunities, but I may end up with a month or two without a job, so with lots of free time to work on my Android development skills and improve my value for those jobs. I started thinking about what I'll...
Developing a website aiming to the Chinese market, I am wondering whether I should do compatibility tests with the 360 secure browser, which is based on the Trident layout engine (like Internet Explorer). Any developer experienced in designing websites for China? Did you test on this browser? Is it really different fro...
I'm new to web applications. I have developed a web application using ASP.net. After hearing about jquery and going through some examples, I changed the existing application and used jquery to do most of the ajax work. On the server side I used html handlers for db connections and data processing. Because I'm using jqu...
I refer to this excellent article http://www.thebuzzmedia.com/designing-a-secure-rest-api-without-oauth-authentication/ which speaks of amazon like security for web service. However I was asked a question in the team of why do we need it if we already use HTTPS. I was unable to answer as it really seems to me they may ...
I am creating a soap service where users will be able to interact with each other. They will have a contact list where people can be added. One of the security measures(others are in place, too) is to have a local ID assigned to a contact. To make the process clear, imagine the following scenario: $UserA prompts $UserB...
When working on a software project for a client, there are two ways in which this can be billed - fixed fee project, or per hour billing. Does the choice of payment terms effect the design methodology you would choose to use? For example, one of the benefits of Agile programming is that changes can be made very quickly...
Possible Duplicate: Is there a canonical book on Agile? I'm looking for a good book on learning Agile and Scrum for web application development. Can anyone suggest a good resource that guides one from the group up? We want to start implementing this into our business and web application development cycles.
I've finally begun to understand the complexity behind creating an interpreter and a compiler. I've built several versions of TinyBasic, 1964 (Dartmouth) Basic, and my own expansions on those languages before getting to this point. The most recent project is one I call Open Source Basic... because I could think of no o...
I'm just beginning to grasp the concept of factories, and want to use them in my next project (I'm using dependency injection, so using factories will make object instantiation easier). Some basic questions I have: Does it make sense to have one factory class per application layer (GUI, BLL, DAL), per class, or just o...
I work as a lone programmer on web-development projects(front and back-end) - I have completed a couple of projects, so I'm fairly new at this, I have read and tried a few approaches and reached a way of going about them. The question and my description is fairly long so please be patient. What I am looking for, is : 1...
I am now the owner of a Struts-1 application, and the Hibernate session management is all over the place. I have searched online documentation but have not found a clear explanation of the best way to manage Hibernate sessions in a Struts application. Presumably a Hibernate Session should be created (or fetched) at t...
Should we create a database structure with a minimum number of tables? Should it be designed in a way that everything stays in one place or is it okay to have more tables? Will it in anyway affect anything? I am asking this question because a friend of mine modified some database structure in mediaWiki. In the end, in...
I almost always format my code before I commit to make sure it's done properly. Most of my team don't really care and don't always format their code properly (minor things that don't affect the code but affect readability when trying to maintain it). I recently installed the VS power tools that has an option "Format...
I am somehow a bit good at coding algorithms for small projects, but when it comes to make an attempt for some biggies, I make a total hodge-podge and marshmallows of my project's structure. I have studied a lot of books on software engineering and SDLCs where they say that becoming a developer is what every nook and ...
Is it legal to put FSharp.Core.dll from FSharp Redist Package into my application package and redistribute it with my application? I couldn't find any information about this.
There are bad design decisions. On the same pitch, being a senior engineer can sometimes be hard. Youngsters have awesome and radical ideas, which a senior engineer wonders whether will work on the field, and if it is worth spending all that effort. Experience suggests that these are short-term solutions are very expen...
I'm designing a small application infrastructure library, aiming to simplify development of ASP.NET MVC based applications. Main goal is to enforce convention over configuration. Hovewer, I still want to make some parts "configurable" by developpers. I'm leaning towards the following design: public interface IConfigura...
In most languages, there is standard libraries. And this is foundation, common denominator of them. Applications can be written with guarantee of the denominator. What's the core of Smalltalk?
Other than the following, are there any helpful (to programmers) reasons to track hours/time on a project down to the "accurate number of hours per week" level? Reasons: Beneficial to see how estimates vs. actuals came out (to improve estimation) Management said so (for contractual or business reasons) This is a bit ...
There was a PC game released in 2001 called Black & White by Lionhead studios in which there was a lengthy statistics page which updated in real-time. There were stats such as how many people killed, how much money you've earned, etc... but the really puzzling one was Total lines of code executed, which was into the bi...
I'm starting to think that a lot of my tables could be replaced by only a graph db: For example: I have 4 tables: accounts, votes, posts, relationships but I can represent all these in a graph table with different edges, NODE1 -> type of relation -> NODE2 account -> vote_+1 -> post account -> wrote -> post account -> ...
I hold masters in CS and now I'm mobile apps developer (entry level), I always start to plan things when starting or doing any project both at work and projects I do at home (for passion) - as I can deliver the project on time but sometimes I am running out of time like 10 tasks a day vs my time forecast will take 2 on...
I am working on a project/application that I feel is not very well organized, and parts of it intertwine in different ways. Everything works, but I can see things are not very modular. Is it reasonable to split up an application into various libraries, even if they might not be reused by another application? Just the m...
A small team (3 or 4) are working on a fairly big project that might take 1 year to complete. We are basically re-designing an existing software (that had been developer over 5-6 years while being used without any direction). Currently we have a list of things we would like to have (features). We have about 25 of them....
I have an application object that needs to validate some data. The particular validation algorithm isn't known until runtime, so I pass a validation object to it, using the strategy pattern. The application might need to reuse the validation object; for example, it might need to perform two validations simultaneously. ...
I am stumped by a request from my manager. I work for a small startup and we developed a web application for a fixed rate with a maintenance agreement for a MUCH larger company. Knowing horror stories about how large companies will only pay their bills to the last second we decided that we would like to protect ourse...
I'm in what seems to me a very strange position. I'm "team lead" in role for a particular project, Sr. Software Engineer in job title. On my team I have 4 developers, one of whom serves a similar role on another project but now mine has been given priority so he's working on mine. I also have 2 testers, one of whom ...
Possible Duplicate: How Can I Know Whether I Am a Good Programmer? https://softwareengineering.stackexchange.com/questions/62218/how-to-learn-php-effectively I have a doubt about myself. I think I am not good enough in programming. I was really trying very very hard to learn programming and I am dedicated to it. Can...
my visually impaired sister uses a webcam with DIY stand as a digital magnifier to read printed texts. We wanted to initiate a project to create a software - in fact only a modified webcam viewer (like Cheese in Linux). Is it possible to have one SW for both platforms (Windows and Linux) = almost the same code, same fi...
I am having my own software service company, DIGICORP and I am leading a team of 10 developers. The total company size is of around 50 persons. We are four friends who have started this venture from 2004. During last year, we have read the Getting Real and Rework books from 37signals founders. We closely followed what ...
I'm looking for some examples of experiences from people who have made the move from programmer to team leader. I'm kind of wanting to know the reasons why people have done it. Specifically, these are some questions and concerns that are floating around in my head. Did you have a waning desire to write code but still ...
I've created my own iPhone app which is presently in the App Store. What is the maximum period that should pass without a new version update? What is the average time span between version releases? I'm asking this because I want to make sure that I'm giving the impression that my app is not being neglected. I'm current...
I tried VIM and liked it but something stopped from using it: I had to type ESC to often, very often, something like each 5 seconds, and it was highly uncomfortable, so I stopped using it as a primary text editor (now I use emacs, nice for programmer as I am). After my sad experience with VIM, I could get why some much...