instruction
stringlengths
34
36.1k
Please help me identify and understand this visual pattern, what's the common name used for such mindmap / constellation visualisations? http://asterisq.com/products/constellation/roamer/demo http://apps.asterisq.com/mentionmap/#user-scobleizer I am also looking a for a framework, library or math formula that will help...
Is Entity Framework 4 with MySQL or Oracle mature enough to be used on production level web application? Can it provide high level of performance, or should we stick with just plain data access with SqlCommand?
I am trying to create a small CMS with ASP.NET MVC3, but I got confused in designing the administrator section. I decided to create two areas, one for users and another for admin. In my CMS I have a Post and a News object, and I want to put create/edit/delete functions in the admin area and other function that related...
I want something that I haven't so far been able to find in anything but theoretical papers and books. If it doesn't exist I'm rather dumbfounded because it sounds like a lot of people use these kinds of systems and that they work very well. Maybe what I need is some sort of combination of things, I'm not sure. Here...
Background I do game development as a hobby, and am looking for a better way to design them. Currently, I am using a standard OOP approach (I have been doing enterprise development for 8 years so it comes nartually). Take for example a "baddie" public class Baddie:AnimatedSprite //(or StaticSprite if needed, which inhe...
Normally when creating new global variables I do not define its access modifier. So as per java it will adopt property default access modifier. When I'm need to access that variable in out of default scope I change its access modifier else leave it as it is. So my question is "Am I doing it right way? Is it normal to h...
I need to use a long text as sample. Afterwards with an algorithm I will take a substring of it whose length is fixed (passed as parameter), but the startIndex is random, therefore each time it should take a different portion of that text. However I would take, if possible, a standard text as sample for my application....
I am just finishing my masters degree (in computing) and applying for jobs. I've noticed many companies specifically ask for an understanding of object orientation. Popular interview questions are about inheritance, polymorphism, accessors etc. Is OO really that crucial? I even had an interview for a programming job ...
This is a question of about design decisions. I find that there are so many different things I work on where reading a _kbhit() is amazingly useful but I can't find (read: there isn't) any functionality like that in the C++ standard. Example: Have a camera continuously running (and updating an on-screen window) until ...
What is the most appropriate definition of a Real time system? Is online railway reservation a real time system ? Is Aircraft control system a real time system? Is Process control system a real time system?
I currently use a Mac Pro for Xcode development, but am considering buying a MacBook Air when the newer models are released. How should I collaborate with myself when using both machines on the same project? Should I use Git, or should I just acess the Mac Pro as a networked drive from the MacBook, or something else?...
Gathering that map-reduce is being used to process huge amounts of data, I set out to understand it. My queries were: What class of problems does it aim to solve? How does it help breaking down of complex problems? Can I write a sample app, (locally!) to get started? After a lot of googling, blogs and wikipedia, I k...
I've been reading about hadoop and multi-node setups, and it says in the documentation that you must have a JVM and hadoop software already running on those nodes. My question is, do people install this software on each of these computers individually? or is there a software solution that automates this process? I've a...
What I have is business WinForms application written in C#. What I would like to do is to redesign it to meet multi-platform approach. I was thinking about architecture involving application server (executing all the logic and performing database operations) and thin client side running on Windows and Mac OS as well a...
I am very curious to hear input from others on a problem I've been contemplating for some time now. Essentially I would like to present a user with a text document and allow him/her to make selections of text and annotate it. Specific to the annotations i aim to achieve the following: Allow users to make a text selec...
Some people swear by closing their PHP files with ?>, some say it's more optimized to leave it off. I know that it's not essential to have it on there, I'm just wondering what the pros and cons are of doing this, and what best practice is.
I came across this term recently in a mail chain. Google tells me there is a term zero-day bug and that Microsoft and Adobe are the frontrunners :) Is there such a term as day one bug? What might that mean?
I have be developing in c# for the last about the last 8 years. I feel that i am quite experienced and knowledgeable in the whole .net platform. I have got to the point where i want to start learning objective-c. I have been watching dev videos, reading books and researching online. So far i am getting a good idea of...
Imagine a C++ framework as a business layer, but with controlling logic as well. E.g. user rights, state of the webflow etc. With some plain C code to access DB2. The whole framework is host based. We are looking for a way to replace the existing framework gradually with a java framework. The main challenges are: the a...
We have an app that is used for data mining on our client database. Typical uses include getting a list of clients and their email addresses, running reports about user transactions between certain dates and returning clients that live in a specific area. High level functional requirements are: Each data mining quer...
I've tried to read this series of books many times. I recently bought Vol. 4 to add to my shelf. I do actually hope to one day read and understand it. I only seem to be able to get the most surface understanding of any of it though. When I was in college I did one of those design your own courses. I decided for mys...
When I write code I always try to make my code as clean and readable as possible. Every now and then there comes a time when you need to cross the line and go from nice clean code to slightly uglier code to make it faster. When is it OK to cross that line?
I'm a programmer who's still in his teens. I've been doing some programming for a couple of years now, I started on Ruby, and later switched to Python due to the massive amount of learning resources there. I never really built anything worthwhile with Python, but feel like I learned a fair amount of programming funda...
I am developing a CAD - drawings to CNC machine code software. These CNC's have sort of a Instruction set which receive parameters,etc to do some blah blah job. I am quite comfortable with the CNC side; but am suddenly being asked to make a software which would let you "draw" plus will convert the drawing to the machin...
I'm considering using a project from http://www.codeproject.com that uses the CPOL license. Section 5e says: "You may distribute the Executable Files and Source Code only under the terms of this License, and You must include a copy of, or the Uniform Resource Identifier for, this License with every copy of the Executab...
My employer is looking to purchase an enterprise account in the belief that it will enable us to develop and distribute apps for large clients of ours - however online it clearly states that the Enterprise account should only be used to distribute apps to the employees of the company that own the account. So my questio...
When I'm coming to home after the work, there left about 2-3 hours to work on my own projects. Some good programmers/developers also write books/articles/etc. I'm getting angry of to little time and interested how others can do so much - work in their main job, work on own projects and write articles/books? Do you kno...
While going through RFC1321, I came across the following paragraph: This step uses a 64-element table T[1 ... 64] constructed from the sine function. Let T[i] denote the i-th element of the table, which is equal to the integer part of 4294967296 times abs(sin(i)), where i is in radians. The elements of the...
My manager asked me to write a estimation of work hours and a risk estimation of source code changes for a defined task. While the first is no problem for me and there are many resources on the web, I cannot get my head around the latter one. I already asked for a clearer description of risk estimation and got the answ...
I am interested in taking the IEEE CSDA exam. What are some of the better, individual strategies for learning software engineering practices in preparation for the exam?
I'm a student but I am hopefully moving into the software industry soon. There seems to be a lot of hype about the MVC software pattern. I noticed that PHP frameworks are often MVC, what about non-web languages.. is it the same with them? For my masters dissertation (C++), I chose the MVC pattern because it nicely s...
I'm looking for hints and suggestions on a design for a multi-threaded URL fetcher in java. Specific requirements are: To fetch each one of around 1,000 URLs periodically The interval between each fetch will be URL specific Intervals are likely to be 2 mins to 1 hour I'm imagining I will need a bunch of fetchers each...
The most common approach used for authorization which I know is role based authorization. Instead of directly storing the access rights against the user ids you create roles and store the access rights against them. Then assign the users the roles. Though I find the role based method quite flexible and easy to maintain...
I inherited an existing code base for a product that is reprehensibly sloppy. The fundamental design is woefully inadequate which unfortunately I can do little about without a complete refactor (HIGH coupling, LOW cohesion, rampant duplication of code, no technical design documentation, integration tests instead of un...
I'm placing my first steps in the Business Intelligence sector and I'm looking for good ways to test BI systems. I'm going to try to explain what my system consists of so that people unfamiliar with BI systems could also pitch in some advice. For those of you who are rather unfamiliar with BI systems, here's how a BI s...
I know it seems odd to say, but a fellow programmer at work deliberately used a couple of bad programming practices on purpose! I'll explain. First let me say that he's an intelligent guy and for the most part he writes intelligible code. He was asked to implement licensing on a web application project written in J...
I have a commercial Android project that I have created a client-specific version for (mainly UI tweaks). Since the bulk of the tweaks are in the res/ folder in XML files, we have the changes currently in a branch but I really don't want to have to port changes back and forth between branches in perpetuity. I'm curious...
Working on a major enhancement for legacy code, I have been wrestling with myself over whether this is a good case to use the Proxy pattern, and more specifically whether a good case to use the Java Dynamic Proxy API. BACKGROUND We have a "FIXConnection" class used to send orders to a destination. The application maint...
I'm a big proponent of unit testing (I'd love to be involved in test driven development). The company I work for seems rather reluctant to spend much effort beyond largely manual end user testing towards the end of development cycles. We have a fairly large solution that has been under development for a couple of yea...
Has anyone defined a standard for reading code out loud, for any language? I imagine this is important to software like screen readers for the vision-impaired. This sort of thing also comes up when you are discussing code with someone, reviewing it in a group, or teaching a class. In the C family of languages, there ar...
Given any arbitrarily double-recursive function, how would one calculate its run time? For Example (in pseudocode): int a(int x){ if (x < = 0) return 1010; else return b(x-1) + a(x-1); } int b(int y){ if (y <= -5) return -2; else return b(a(y-1)); } Or something along those lines. What methods ...
Whats the difference between the two procedures? When should I be using a recursive function instead of a normal for-loop?
I am given the charge of finding a version control + project management setup, and also training and maintenance, in addition to my regular jobs; I will be known as "the git guy" (or whatever) from now on. We develop PHP (in netbeans), C# (in VisStudio) and Python in windows XP and Fedora. The system is to be hosted on...
For example, company that uses our software suddenly has found a serious bug and can't continue to work. The bug has exposed a big problem in software design and fixing it will take few days. What is the best approach to solve such problems? What developers should do: start to rewrite code to fix the bug, writing a qui...
I always loved this article on JoelOnSoftware called "Getting Things Done When You're Only a Grunt" . I could especially relate when I was newbie (and still feel like I will ALWAYS be one). About #4, neutralizing the bozo's. What advice do you have for actually implementing this in real situations at work? It doesn't s...
I'm working on an application written in PHP using OOP principles. The classes in my application usually represent a table in the database; for instance, 'student', 'teacher', 'class', 'schedule', etc. As the application gets more and more complex, I start running into situations where it feels like writing a new query...
I'm only a junior developer but my job forces me to work with really terrible PHP code (think about the worst PHP code you've seen; then think about code twice as bad). I usually try to fix bugs and fight with the codebase to add new features. Sometimes I'm ordered to get things working ASAP which more often than not i...
Just like the title says, are there any PHP web application frameworks that don't use a front controller? The Front Controller Pattern is a software design pattern listed in several pattern catalogs. The pattern relates to the design of web applications. It "provides a centralized entry point for handling requests." T...
Most programmers have their own personal preferences for syntax-highlighting color schemes, but I've been wondering, has anyone ever done an actual scientific study on what the best color scheme would be? I imagine such a study would look at things like the readability of the code, whether the programmer's eyes are dra...
I am planning to develop an enterprise application using .NET Framework. I will sell that application to other companies. Do I have to make any payment to Microsoft, like royalties or something else?
I'd like to have my database schema synchronized with my Visual Studio .dbproj database project. Right now, I'm using SSMS for most of my database development work, and I've to manually use the schema compare tool of visual studio when I need the db schema and the .dbproj to be synchronized. Why would I want this? beca...
I'm tempted to create a final class CaseInsensitiveString implements CharSequence. This would allow us to define variables and fields of this type, instead of using a regular String. We can also have e.g. a Map<CaseInsensitiveString, ?>, a Set<CaseInsensitiveString>, etc. What are some of the pros and cons of this appr...
In a recent blog post by Roy Osherove, it is pointed out that his switch from primarily .Net development to ruby development has seen a huge difference in community involvement and really enjoys it. The quote that spawns this question is : there is no master overlord that dictates what you will or won’t work with. I...
I am a programmer, I am developing software expected to be between 50k to 100k line of code. I'd like to hire a company to develop an interface to my tool with other software by writing a plugin. This company has done it successfully in the past and I was recommended to use them. However I have never negotiated before ...
I hope this isn't so general a question as to be thought a "discussion." I'm writing a simulation of an old (ca. 1960) computer, and I'm thinking about how to queue events from the GUI to the CPU "model." The GUI consists of momentary-on buttons (pushbuttons and typewriter keys) and toggle switches. Of course, I don...
I'm working on a Silverlight application. I've split it up in several assemblies: Domain Repositories (everything with persisting to the Sterling database) UI ... This is how I've learned it, but I wondered. If you know the DLLs are not going to be reused, is it necessary to split them up? Or could you put everything...
My company just (5th July 2011) received the following email from Apple: Starting in the first week of July, apps that meet the following criteria are required to comply with French Encryption Laws/Regulations if you intend to distribute your app in France. This requirement applies to apps that use, access...
I know its not possible to 'know' or 'learn' Java fully in a couple of days but I really need some help on this guys. I have just graduated from university with a degree in computer science. The languages I would say I am 'proficient' at are: HTML/CSS/PHP. I have a job interview on friday and I have to prepare a presen...
Over the years I've used various naming conventions for services in my applications for example: [ClassName]Service [ClassName]Manager [ClassName]Factory [ClassName]Provider [ClassName]Helper I generally only use the "Helper" suffix for utility classes that have no external dependencies. However I find that ...
To start I don't think this is a repeat of other questions on unit testing. What I'm looking for help with is articulating its value to a team of programmers, analysts, managers and testers. By automated tests, I don't think I need to make a distinction between unit tests (e.g. JUnit), BDD (e.g. JBehave, Fitness) and U...
Completing my Computing A-level in 2003 and getting a degree in Computing in 2007, and learning my trade in a company with a lot of SQL usage, I was brought up on the idea of Relational Databases being used for storage. So, despite being relatively new to development, I was taken-aback to read a comment (on https://sof...
Does anyone know of a template / checklist that can be used to conduct a software health check. My team supports a number of legacy applications and we have been asked to present a score card to senior management on the health of the applications. The template would be used to: Identify you have performance or stabil...
Would you include an XML schema for a new file format in a software specification document or would you consider this too specific? Or would it be already too specific to require XML at this point?
Why is there so much buzz about closures among developers? In my career I never intentionally used them, though don't clearly understand what they are. UPD: just to clarify. The question is about why the closure concept became so talky these days.
It seems to me that, despite being one of the world's most used languages, even some of the leading experts of JavaScript like Doug Crockford think JavaScript suffers from some pretty big design flaws (JavaScript: The World's Most Misunderstood Programming Language) that make development confusing and ambigious. Progra...
I've been told that I am to be a team lead of an upcoming project. I've not ever been team lead before but the responsibilities are what you would typically expect, with revolving door of 3 to 4 other developers through the 8 or 9 months it takes to complete the project. My problem is this: one of the developers who wi...
Let's say I have a class that just stores data: ClassData Field1 Field2 Field3 Now let's say I have a function that uses Field1 and Field2: public void DoStuff(string field1, string field2){ if(field1 == "something"){ //Do something } if(field2 == "somethingElse"){ //Do somethi...
This question requires a bit of setup, please bear with me. Last week my company rolled out a new change management procedure. Any change destined for production requires a change control record; this policy was already in place and I don't disagree with it. The new procedure, however, involves a highly convoluted, s...
It is questionable whether this question really belongs here, but, in any case, it does not fit in Stack Overflow or any other Stack Exchange site. So here I go. The purpose My current pet project consists in developing a software tool to generate code from business process specifications. The program's inputs are... ...
If we only work with one branch in Subversion, should we even bother? Can't we just work on the trunk to speed things up? This is how we develop with Subversion: There is a trunk We make a new development branch We develop a new feature on that branch When the feature is done, it is merged in the trunk, the branch is ...
I'm working on a project and I've found that I've modeled the two largest components as trees. My main uses so far are: Generically model physical containers (and sub containers, sub sub containers etc) Model liquid samples (and sub samples, and sample derivatives - and subs of those, etc) I now need to model some ev...
Have you ever seen, met, or worked with a smart/intellectual search library/framework/algorithm during your career? I need a very nice mechanism to search among text, I don't need a "Personal Google", just thought that programmers' community have met with such problem and know/can provide a good solution. Is it possi...
I am writing up a description/guide/wiki of an "open source software framework for the easy integration and utilization of datasets, algorithms, tools, and computing resources". I feel like software integration framework sounds concise and to the point, but I want to emphasize that it can also independently integrate a...
I just graduated from college with a degree in CS, so I would like to find a job where I can learn more about the field and build up some professional experience. I've interviewed at a company that uses their own in-house programming language, and I don't think any others use it. They have not mentioned using any ot...
Does anyone know if there are any IDE's that can hit breakpoints on a condition? For example, if I'm looking through a large list or iterating through a map or something, I may want to only suspend execution when an ID == "foo" 1.) Is this even possible to implement for IDE's 2.) Are there any plugins available for Ecl...
I just started working at a company and we're currently in a fairly intensive (full-days most work days) training program to bring us up to speed on the way the company does things, and train us in VB.NET, along with some C#. They're beginning to migrate towards a modified Model-View-Presenter architecture, with server...
Single-programmer project. I'm constantly having to rewrite my own code on an on-going project. It's not buggy, but every time I expand my program (which previously-planned features), I keep having to expand previous classes, which cause me to re-write code that worked fine before. I have unit-tests, so bugs aren't...
I currently work for a company that has recently downsized. I do all in-house work, client installs, builds, QA, and, well, basically all the in-house work. My direct boss is VERY nontechnical and lately I have found it VERY hard to deal with his lack of knowledge. The biggest issues I have had are as follows: I am on...
I work in a small development group with 3 developers. We are loosely managed and have no structure to the team. There is no designated team leader and the manager is fairly hands off. The Senior developer has been with the company for 4 years, in that time he has had a huge hand in setting up systems and keeping th...
I'm a small company needing to outsource software development. I've written both functional and technical specifications for GUI developers and back-end (C or PHP) developers to implement my software application. I'm a little nervous handing over copies of these documents to request bids from numerous companies. Looki...
Everybody keeps saying that one of JavaScript's problems is using + [example] for string concatenation. Some say the problem is not using +, it's type coercion [see the comments from the previous example]. But strongly-typed languages use + for concatenation and coerce types without any problem. For example, in C#: int...
If I have an application that is using a less secure method for storing passwords, such as SHA-1, how would I go about converting to SHA-256 or SHA-512?
I've been going through phpunit's docs and came accross the following quote: You can always write more tests. However, you will quickly find that only a fraction of the tests you can imagine are actually useful. What you want is to write tests that fail even though you think they should work, or tests that succeed eve...
I have limited experience when it comes to build and version control systems. I feel like I've run into a common problem but I'm having trouble uncovering how it is typically handled. Say you have four source code projects: fooLib - Shared library fizzLib - Shared library buzzApp - Application that depends on fooLib ...
I'm working on a software project where so far I'm the sole developer. As of right now the code is unlicensed, but the copyright of whatever I've written belongs to me (this is true at least in North America AFAIK). Before I release the software to the public, I'm going to license its distribution, probably under somet...
I'm looking for some ideas on how to improve our current Quality Assurance process. There is no official QA method in place right now, but we basically just get some requirements using a ticket system and we go back and forth until all the requirements are covered. The problem right now is some requirements change and ...
I am delving into the science of UML. The tool I am using is ArgoUML. I feel very confident portraying OO designs through this tool. But what still vexes me is the incorporation of the database. What does one do in UML to show table structure? Stored procedures? So on and so forth.
By time sensitive I mean for example a script that only runs once a month or a script that runs continuously but gives a certain output only once a month. Obviously you can unit test for a lot of cases but there are exceptions ( in my understanding). A recent example I ran into was setting up a cron job to run on th...
Suppose I'm building a blog that I want to have posts and comments. So I create two tables, a 'posts' table with an autoincrementing integer 'id' column, and a 'comments' table that has a foreign key 'post_id'. Then I want to run what will probably be my most common query, which is to retrieve a post and all of its com...
For code review technique training, I have to cover various topics. One of them is premature optimization. I found 3 traits of it as: It's generally evil; causing inverse effects. It's an unnecessary pain, causing no gain. It demands lot of effort to achieve little benefits Is there any other trait which am I missing...
We have a huge legacy C project which runs in VC++6. And I hope this will be ported to later versions of visual studio. But I think it will be a huge work. Actually, I just tried to recompile the project with VS2005 and got so many errors. So, do you have any experience of this type of porting? Any recommendations?
I need to allow some of my users to design and upload blank forms, to be downloaded, completed, and uploaded by other users. It would be nice if I could verify the completeness of the uploaded forms, but it is not absolutely necessary. The respondents are motivated to complete the forms, but it would be nice if I cou...
How would you store text information - in a relational database or maybe using NoSQL? The problem is that the text should be divided into various parts, each of which satisfies to some requirement, e.g. the same text should be contained in several "places". Is there another way to organize this? I have several books (...
I work for a fairly small consulting company, roughly 100 employees, and I've been with them for about a year currently. This is my first job out of college. As a company we do not specialize in any specific technology, but my day-to-day usually consists of some sort of .NET programming, whether it be ASP.NET, custom...
I don't know if I should be very irritated or what. I single handedly built over 300 queries for a large database, and developed a naming convention so I could find them later. No one else in my office even knows how to build a query, but I came in yesterday to find that all of them had been renamed. I am now having a ...
Can I license different parts of my code (different classes) under different licenses? E.g. I have downloaded and modified a class which licensed under the BSD 3 point. Can I then say, file AObject.class is BSD, and BObject.class is LGPL (or MIT, or MPL, or PD, etc etc)
This is a simple question but a design consideration that I often run across in my day to day development work. Lets say that you have a class that represents some kinds of collection. Public Class ModifiedCustomerOrders Public Property Orders as List(Of ModifiedOrders) End Class Within this class you do all k...
I am writing a desktop application in Java, which has all of the Airband radio frequencies for the UK in it. I would like to make this frequency database downloadable so people can print it. Would it be best to create the database in XML or use PDF for the download to print? Or perhaps there is another, better option?
Both these syntaxes are correct and equivalent: With brackets: foreach ($listOfThings as $thing) { echo $thing; } Without brackets: foreach ($listOfThings as $thing): echo $thing; endforeach; Two questions come up in mind: Is there any real difference between them or are they totally identical (performence, for ...
I'm trying to come up with a good version strategy to fit our specific needs. We've proposed settling on this and I wanted to ask the question to see if anyone's experience would suggest avoiding this or altering it in any way. Here's our proposal: Versions are released in this format: MAJOR.MINOR.YMDD.BN. Here it is b...