instruction
stringlengths
34
19.9k
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...
Go is one of the few languages that are supposed to run 'close to the metal', i. e. it's compiled, statically typed and executes code natively, without a VM. This should give it a speed advantage over Java, C# and the like. It seems, however, that it's behind Java (see the Programming Language Shootout) I'm assuming th...
I was under the impression that a version control system eliminated the need to have "change logs" plastered everywhere in the code. I've often seen the continued use of change logs, including big long blocks at the start of stored procedures with a big section blocked out for changes to the file and littering the cod...
I have an interesting, fairly common I guess, issue with one of the developers in my team. The guy is a great developer, work fast and productive, produces fairly good quality code and all. Good engineer. But there is a problem with him - very often he fails to address edge cases in his code. We spoke with him about it...
I went to a "job fair" recently and I was surprised to see how much emphasis workplaces seem to put on the programming languages candidates are familiar with. From my (admittedly limited) experience, while truly mastering a programming language may take years, learning it to a reasonable level is a fairly simple affair...
I keep coming across the word "proxy" used as a verb in tutorials, etc. Usually something will "proxy to" something else. What does this mean? Having spent some time googling for what it means in a programming context, I mostly found "proxy server" or some other noun use. I understand the word proxy generally means "a ...
When working on a project, the code may be developed reasonably fast in a single day or bit by bit for a prolonged period of few weeks/months/years. As code commits are becoming to be considered as a measure of project development, it doesn't really mean it has more code written than a project that has lesser commits. ...
What are some good ideas, common approaches and appropriate questions that you would bring when interviewing a software development intern to join your team? I really don't have expectations of any kind for this person, I understand that as an intern with no prior work experience that he won't have much to bring to the...
I was just curious if anyone knew why the lightning bolt was selected to represent events in various IDEs? or when it was first used? From the top of my head the lightning bolt is used in visual studio, delphi and axure prototyping.
Let's suppose you're the lead of a team of developers that needs to build a big information system such as an ERP or Human Resources software, or whatever system that is composed by multiple business modules. The system must delivered quickly, be scalable and have good evolution and maintenance capabilities. Your team ...
I started my first professional project recently and have hired a web designer to do the layout. My question is how can I sync the work with the designer? Currently our process goes like this: the designer creates a template sends it to me by mail I view, edit & agree the designer codes the html and sends it to me bac...
Suppose there is system for gathering info about system activities. There is a client part with an interface and there are agent parts that are installed on each machine. I estimate that there could be max 20 computers now. Later could be more like 50. My solutions: Agent stores data into local database e.g. sqlite. T...
I need to implement flexible AND simple (if such thing exist) and at the same time utilize built-on means if possible So far I have MembershipProvider and RoleProviders implemented. This is cool but where do I go next? I feel like I need to add term "Priviledge" and than hardcode those inside application. Users will c...
A lot of time for decent tech jobs you have to go through a phone screening process. If you suck over the phone you generally don't get a chance to show how bad ass you are in person. These interviews, even for experienced and advanced positions, very often involve trivia style questions over basics. Unfortunately fo...
For our company needs, we need to sell one of our software on *nix-like system. How can we distribute and protect our software ? I know that almost every program on linux is open-source, so how can we protect source code ? Do we need distribute part of source code in object files ? Software written in C.
If you were tasked with performing due diligence for a software product/IP you/your company was considering buying. What would be your steps to make sure the purchase was acceptable from a technical risk level? The scenario is one company has a product you or your company is interested in buying in it's entirety (IP ...
I'm currently facing a dilemma with an upcoming performance review. When I started with my company around 1 year ago I tried to be as honest as possible in my perception of my programming skill set and knowledge. I based my perceived skills on my coding ability relative to those I consider to be good programmers and ...
I am bound and determined to setup CI at work. I have played with Jenkins, and will download TeamCity when I get home (damn you work enforced download filters!) I have no IT support, and only so much spare time. My main question: Can Jenkins or TeamCity integrate with git or mercurial repositories that exist only on a ...
Any news whether the official Mango release will allow sideloading of apps? I mean ability to deploy apps without going through the MarketPlace? I would like to see the ability to deploy my own apps on my own device without using third party services and paying extra fees. I don't plan to publish apps publicly. (I trie...
Is it worth Learning XML as a web developer when JSON is better for AJAX? or is it better to concentrate on JSON/Javascript for AJAX?
What is the difference between .net and asp.net? Which role does PHP more closely fill? If someone was developing a website using asp.net and C#, how would you communicate that idea to a colleague, i.e. what's the language you would use?
There is a common practice in TDD to write a test before fix to avoid regression and simplify fixing. I just wonder what if the test and fix will be written by different people, total spent time will be almost the same but as now three people will think about possible failures (+tester) we increase probability that fix...
I'm new to web development and I'm a bit confused about the different languages and technologies in the web. I understand the basic is Html, Javascript, and Css. Then there's jQuery, ASP.net, Html5. I'm confused where I should use each technology and which should I use. For example, here is a video of a WPF application...
so OCL is supposed to extend UML when we as a designer/analyst cannot express something with a diagram, is has a full blown specification still, there is not (at least not that i know) any production-ready compiler supported by any major company (Oracle, MS, IBM, Apple, Google for example) that can translate OCL to any...
In languages that distinguish between a "source" and "header" file (mainly C and C++), is it better to document functions in the header file: (pilfered from CCAN) /** * time_now - return the current time * * Example: * printf("Now is %lu seconds since epoch\n", (long)time_now().tv_sec); */ struct timeval time_now...
Like the title says, I would like some advice from knowledgable web developers on figuring out security issues for my e-commerce site. I am designing the database as well as the code that communicates with the database to make changes, etc. I have a few questions, but in general a good checklist on what to do to make t...
I'm looking forward to develop a desktop application using Python. I'm a beginner and I don't have sufficient expertise in Python. I'm also a Java programmer. Although I have some experience in building UIs using Swing, I see that apps developed on Swing are too damn slow. Well this might be one reason why many of the ...
I have a question regarding software licenses. I plan to put a license to a framework that I have written. My intention is that the license should be open, in order to maintain a community. To be clear I will explain how I expect things to work. The framework will define some common API for certain functionality as we...
I've recently been asked to design a video player for the iPad. I've never done one before and I'm wondering if I could get some caveats in terms of it's development and design. Are there areas of building a video player that are particularly buggy or troublesome? What part of building one takes the most time? Generall...
This is a bit "one megabyte should be enough for anyone", but... A 64-bit flat address space allows up to 4.3ish billion times more space than a 32-bit address space. That's 17,179,869,184 GiB. Obviously, the transition from 8 bits to 16 bits was pretty quick (I'm viewing things in a teen-during-the-80s way, ignoring a...
I am currently working on a money tracking/invoice creation app that I intend to release for free. The app can be broken down to three parts: The Framework, a generic, all-purpose collection of classes (php/mySQL) The app itself (php/javascript) The design (images) I am trying to find licenses that fit three differen...
For quite some time I've been searching for a web-based, open-source project management program that I can run on my rented space at Dreamhost to track client projects. dotProject seems nice, but I've never figured out how to create projects that only certain people can access. I'm usually working on two or three proje...
I have a history of web development using LAMP + html/css (though I admit the LAMP aspect isn't in great depth) and would like to follow the career path of software developer, so I'm currently learning C, after which I'll look at C++. I was wondering if anybody could give me a list of subject area's within computer pro...
I am thinking about a career in software engineering, but before I look for work I wanted to get an idea of what to expect particularly with pressure. This will be my first programming job (so I am looking for entry level), so I am not yet mature as a programmer yet. My question is what is the pressure like in these j...
This summer I'd like to develop a number of applications, all of them relatively small, yet risky -they're complex, I'm inexperienced-. I'm gonna work on my own because my classmates or other IT people I know really don't have a genuine interest in programming (I swear!). Besides from making good code, I'd like to anal...
I was presented with a new problem recently, to provide an estimate for a project in which I must use a framework (and potentially bits of another framework) that I am unfamiliar with. It's much easier for me to provide estimates when I'm at liberty to use what I'm familiar with, but it was as though a crippling paraly...
I hope this question isn't too broad. In the future I may need to add some accounting and financial-tracking systems to some applications (mostly web-based applications, but my questions pertains to desktop apps as well). Now, creating a simple record of financial transactions is theoretically easy. One database table...
I need to run to work soon, so this will be brief. I've only been with the company for a couple weeks. It is a good company, this is a contractor who just happens to be twice my age. I am new to the professional programming field. This database does exactly what Wikipedia says not to do for 1NF. It repeats telephone...
I just read this article on iCloud's use of Azure: http://www.zdnet.com/blog/microsoft/is-apple-really-using-windows-azure-to-power-icloud/9687 Anyone know if there is any truth in it?
I mostly understand the theory of TDD, but I can't figure out how to get started. I sit down to write a unit test for a personal project and realize . . . I have no idea what I am testing. What objects, what functionality, etc. E.g., let's say I want to write an app to help our family manage chore assignments. Here ...
I am interested in patenting a piece of software that I have created with a group of people. I live in europe. I have no idea how to go about it, but I have multiple users tell me that I should have it patented for safety. So I was wondering where do I start? There are so many links online giving me a whole load of inf...
Is it normal/just for a software company to ask for power of attorney to ensure they obtain patents on anything you invent while you are employed as a programmer? Update: In my case, I went back the the employer. They told me they have no interest in using my inventions which are not related the domain that were not ...
I am thorough with programming and have come across languages including BASIC, FORTRAN, COBOL, LISP, LOGO, Java, C++, C, MATLAB, Mathematica, Python, Ruby, Perl, JavaScript, Assembly and so on. I can't understand how people create programming languages and devise compilers for it. I also couldn't understand how people ...
I have a large system in OpenEdge ABL that could use some documentation-love. Currently a team member is working on a utility that can find methods and functions and make some "Javadoc-esque" html pages out of it. It's pretty rough around the edges. Okay, it's like sawblades around the edges. I'm trying to find somethi...
Back on my theme of late: interview questions. Was recently asked to describe a time I'd used logging. My first instinct was to respond with compiler warnings set to full and error-out. What he was interested in was the use of logging as a debugging tool. Unfortunately I couldn't think of one at the time except the o...
We have a software product has a lot of usability features, and we're constantly changing it. We have issues with things like persisting scroll position which seem to get fixed, but then are broken again when we release. We have good testers, but we seem to miss things like this because there are just so many features ...
I'm creating a software application where up until now, the majority of code and assets have been produced by me. There are smaller bits of code that I've taken from other places; these have all been licensed as "do what you want with it". I've gotten to a point however, where I want to incorporate fairly large parts o...
I have developed some PHP and HTML code for a freelance project, I want to make my contractor able to use my code commercially, since they will sell my project to their own client (an enterprise), but I want to disallow them from recycling my code for further projects, could this be achieved by some GNU license? Also I...
Is it considered bad practice to use a flat file when doing unit tests? If an application reads in flat files and parses them, would this be a better approach than hard coding strings into the unit tests themselves?
I am wondering about which programming languages people see fit to create a program idea that I had. I am looking to create a fairly simple program whose main functions are adding to, managing, and searching through a database of people, all through a polished GUI. It will be for use in the business world, so I think...
First I firmly believe in the code review process and always want someone else to review my code. My question really centers around how can I do a better job at performing a code review for someone else? I know that to perform a code review you need to have knowledge of the how the existing code works and a knowledg...
I'm slightly confused about how AJAX works. I mostly understand the PHP/MySQL model of retrieving database information for the user, but how does AJAX do it? From what I understand the AJAX engine sends an HTTP request to the backend which does some magic and returns XML data to the AJAX engine which translates it to H...
Do Android/iPhone Apps use AJAX to interact with the backend? If yes, is this common? Or do most apps use a different method for fetching database information. And if so, what other methods are there? Are server-side languages ever involved, and if so, is that more common to see with app development?
So, I just started an internship, and I'm worried that I'm asking too many questions. My mentor assigns me projects and helps me learn all the company's technologies and methodologies. However, there's so much new material for me to learn while doing this project that I have a lot of questions. I generally ask quest...
I am researching programming languages used for AI programming. I know that LISP is taught as an AI programming language in my university, but Prolog rarely is. I am kind of fond of Prolog, but I'm not an AI programmer so I don't think I'm qualified to judge for myself why Prolog is better than LISP/Scheme. I was wonde...
I've been asked to give a quote to extend a piece of software i'm currently giving away for free for use by a company. They tell me they are using it in-house at the moment in conjunction with some "post processing" steps, which they would like to incorporate into the application proper. What should I keep in mind when...
This includes everything that contributes to the success of the app and is non-programming. Some points to consider: How do you make people notice your app when there are hundreds released every week? How to get an article published in a mobile app blog about your app? Should you buy ads? What about a press release? ...
A friend of mine is considering using FreeBASIC in a critical production environment. They currently use GWBasic, and they want to make a soft transition towards more modern languages. I am just worried that there might be undetected bugs in the software. I see that their version number is 0.22.0, which indicates, that...
So given the Separation of Concerns, how coupled should the View and ViewModel be? For example, I want the visibility of a Control in the View to be databound (databinded?) to a flag in the ViewModel. My first hunch would be to use a boolean value, IsControlVisible that returns true/false. However, in the View, visibil...
Could you please tell me which tools are used in python to build projects, as well as which continuous integration servers are used and how to deploy projects to the server? What I mean is web projects, but will still be happy to know more of this information not only around the web.
Does AJAX need to use a server-side language such as PHP/ASP.NET/Java to access a database? Or some sort of web service tied to these languages? Or is AJAX able to communicate directly with the database?
Just read these lines- If your data is object in nature, then use object stores ("NoSQL"). They'll be much faster than a relational database. If your data is relational in nature, the overhead of a relational database is worth it. from- http://seldo.com/weblog/2011/06/15/orm_is_an_antipattern So, how do I know wh...
What is an Enterprise/Automated Deployment tool, and how would it be used? Examples would be a plus, but please don't turn this into a list. What are the key factors that should be evaluated when looking at such a tool?
We are in the process of building a stock market simulation game. The frontend design is ready but we are clueless about how exactly the back-end algorithms are to be designed. What algorithms should we be looking at implementing in order to get this working? We're coding in PHP/RoR/Python. If there's an open source sy...
When I have to implement a new feature or fix a bug, I usually try to recreate the situation with a test. I sometime spend around 3 hours coming up with fixtures and writing the test. The actual feature implementation or bug fixing takes less than 1 hour. Does anyone else out there spend at least 3 times longer to wr...
Almost everyone will now say the blessing: performance! Okay, C does allow to write athletic code. But there are other languages that can do so, after all! And the optimising power of modern compilers is awesome. Does C have some advantages that no other language has? Or there's simply no need for more flexible instrum...
You know that C# is a compiled language. But when we develop web applications we use ASP.NET + C#, in this case can we say that ASP.NET is compiled? If ASP.NET is not compiled does it affect the performance of C# when ASP.NET and C# works beside each other to develop web applications?
I want to find a freelance job, but I've never done any freelance work before. I want to know what the process involves. Can you please answer the following questions? If the programmer finds a suitable freelance job, how can they apply, and how will the future employer evaluate the programmer's abilities? How does th...
I've worked fairly extensively with the MVC framework cakephp, however I'm finding that I would rather have my pages driven by the multiple MVC than by just one MVC. My reason is primarily to maintain an a more DRY principle. In CakePHP MVC: you call a URL which calls a single MVC, which then calls the layout. What I w...
I'm a very ambitious university student who wishes to learn pretty much everything there is to know about computers (bash me if you want, I love learning). Recently I thought it would be a fun project (albeit a lengthy one) to design and build my own kernel. I got some basic info and I've gathered that I need to master...
I am primarily a web designer, and a very rookie web developer. Say I have a comprehensive web app I want developed through a freelancer on Odesk.com What is the best way to effectively communicate the entire project, goals and requirements? Wireframes, spec sheets? Any examples/templates on this would be greatly appre...
Perhaps this is an esoteric question, since I will never distribute the code in question and I can fairly easily avoid using GPL code, but I'm curious and it's bugging me--but not enough to consult a lawyer. What is more, I think I am more interested in the morality of this issue than the legality. I have a program th...