instruction stringlengths 34 36.1k |
|---|
In at least the web development field, web servers are everywhere but are backed by very few database servers. As web servers get hit with requests they execute large queries on the database, putting the server under heavy load. While web servers are very easy to scale, db servers are much harder (at least from what I ... |
I have been programming for 6 years and I am in high school (I prefer not to disclose my age). I have dabbled in many different languages. Just to list a few: Java, PHP, C++, Python, Autohotkey, Mathematica and many more. I have a very good understanding of the basics of general programming. The only problem is I still... |
Sometimes you need to write a constructor which can fail. For instance, say I want to instantiate an object with a file path, something like
obj = new Object("/home/user/foo_file")
As long as the path points to an appropriate file everything's fine. But if the string is not a valid path things should break. But how?
... |
I saw an interesting conversation on here about airline reservation systems and the services that connect them (like Sabre).
This is an almost identical analog to a problem I've been trying to figure out and I'm looking for the fundamental components required to build a service like Sabre (no this isn't a competing ser... |
I have seen a lot of different project organizations in different tertiary sector businesses, but I have never felt that IT R&D projects were well organized.
I understand that R&D projects need flexibility, and less time-constraints to give free rein to innovation.
My guess is R&D projects organization needs to be rev... |
Any and all advantages/disadvantages would be appreciated!
|
I am implementing a gossip based membership detection mechanism. Lets say we have a ring topology, i.e. node1 only knows about the 2 nodes (node4 and node2) around it.
node1
- -
- -
node4 node2
- -
- ... |
Programming languages are formal languages, but unlike many formalisms, they also have certain inherent meaning defined by their operational semantics, or, in the case of markup languages, presentation semantics. And programming languages, though indeed formal, are very similar to natural languages, in terms of the com... |
As the Haskell Wiki itself states:
There is a large number of GUI libraries for Haskell. Unfortunately there is no standard one and all are more or less incomplete. In general, low-level veneers are going well, but they are low level. High-level abstractions are pretty experimental. There is a need for a supported me... |
I'm in the job market and I have a set of priorities for my next job including salary, line of business, etc. One thing that is nowhere on my list of requirements however, is the development process methodology. I feel my job is to create software and I view the process structure as something I can adapt to whether it'... |
Does anyone have any tips, thoughts, warnings, or general wisdom for a application/database developer who is moving specifically from a start-up sized company to a large organization?
Examples thoughts would include things such as:
How might I interact differently with
the management chain?
Do you see trends in qualit... |
I have use github for a while, but my project is only one developer -- myself.
I want to get some contribute from others, and some of my friends said they can give me some patch, but we all don't know how to use github as a tool for us.
And I know that github will also help project get more contribute from the open sou... |
I am a project manager at my company. I work with a few teams of developers using a standard, well-known version control system known as CVS. I'd like to see continuous integration and automated builds implemented to help prevent problems with the build breaking and with bad deployments sneaking onto the production s... |
I've read somewhere that it's a bad idea to name classes after verbs (manager/browser/editor)
but what's the proper name for manager/browser/editor?
EDIT:
the problem is that system could turn in a big ball of "services" - tiny objects which does something specific and does not contain any data - which is bad (at least... |
I have a distributed data collection system where I have first layer as regional Databases where all collected data is initially stored and master database where all the data is consolidated, what are you thoughts on schema design of this situation, also important thing here is I could have overlapping Ids and dictiona... |
When I was studying in the university I often heard the idea that Fortran compilers produced faster code than C compilers for an equivalent program.
The key reasoning went like this: a Fortran compiler emits on average 1,1 processor instruction per line of code, while a C compiler emits on average 1,6 processor instruc... |
Is functional programming so related to mathematics because much of the functional programming is depicted with mathematical notions? Is it a MUST to have a strong base of
maths to learn & understand functional programming for a programmer with a imperative background?
|
We have a few interns here that have orders from college to integrate speaking, reading, and writing French into their internship.
All of them are working on developing their own web application, and I'm wondering how we can integrate French into their projects.
Here are some things I've come up with:
Translate the wh... |
we have multiple clients with different needs. Although our software is modularized to a degree, it's almost certain that we need to adjust every module's business logic here and there a little for each customer. The changes are probably too tiny to justify splitting the module into a distinct (physical) module for eac... |
I understand that whenever you upload a new app, you can set the copyright name for the app.
Where is this name displayed?
Is this name displayed underneath the name of the app when searching in the app store? Or is that the seller name that you specify when you upload your first app?
|
I'm busy working for my thesis about Web Development Frameworks. I want to write about frameworks that have been used in the past and frameworks that have a good chance of lasting in the future, such as JQuery and PrimeFaces for example. I also want to do a survey and I am looking for good questions to ask on this surv... |
The other day, in our PHP class, our teacher gave us a challenge used by a friend of his in job interviews. It works in every programming language, so it's not limited to PHP. He said that his friend uses this 'riddle' to weed out the people who can't think of a fast answer when it comes to logical challenges. The peop... |
Which programming language first introduced 'Hello World' as a first program to code for beginners?
|
Let's say you get stuck on an solution for a while. What do you do?
How do you get it solved?
What is the best way to not feel frustated?
|
I felt this is the best place to ask this, rather than Stackoverflow as it is not related to programming.
Ok. The thing is I need to draw an ERD of a leave management system. Suppose there are three level of user roles there - Level A, B and C.
Where A can manage both B and C; B can manage only C and C is normal users.... |
I've been experimenting recently with Android applications.
I've developed the convention (which I've seen used elsewhere) of placing my unit tests in a parallel source folder within an Eclipse project. This works well because the Eclipse JUnit runner can find the tests easily and the project with it's tests are nicely... |
Well, I have a certain dispute with a colleague of mine.
We have a software design where we build all of our widgets server side and send them client side as html.
Most of the time it's better and easier to control and add stuff to.
But sometimes it just is not that good; it makes the client side act "retarded" regardi... |
I have a project that requires me to control movement of SCARA robot using VC. I am a beginner in programming so I thought of using existing program as my reference. The SCARA robot that I am using is regarded as a valuable property of the department and must be operated with extra care. I cannot simply make a program ... |
...or are things getting more complicated?
It seems to me that you need to know a lot of stuff to 'properly' develop an MS web app these days. In the bad old days when we didn't know any better we had database tables, ASP.NET, ADO.NET and you constructed a web app using relatively simple concepts.
These days there see... |
I'm using Scrum and really liking it. However, my shop finds itself in projects where the duration of the development effort is two or four weeks. We've already modified the sprint length to two weeks, and everyone here says "it'll be Scrum, just with one and a half sprints."
I don't think we can get a lot of value f... |
I'm a consultant and I am going to introduce unit tests to all developers at my client site. My goal is to ensure that all new applications should have unit tests for all classes created.
The client has a problem with high maintenance costs from fixing bugs in their existing applications. Their applications have a life... |
Last year, my department developed web based gaming, and needed Flash. It was difficult to manage. The Flash guys didn't fit in regardless of skill or popularity in the office. Maybe it's prejudice from the AS 2.0 days, or C programmers do things differently in my department. I don't get it!
EXAMPLE
They hired a BAD F... |
I am currently building a small python CLI (Command Line Interface) application with ambition. In the first development phase I would concentrate on making it work through the CLI interface only, but in the second phase I will make it work through a GUI.
To avoid a lot of refactoring of the functionnalities and to kee... |
I come from the web application development and I try to make a small desktop application. I am looking for a good way to build the skeleton of my desktop application.
From the web design, the skeleton is mainly handled by the web browser combined with the web server which manage application states (each page could be... |
Is it that DirectX is easier or better than OpenGL, even if OpenGL is cross-platform? Why do we not see real powerful games for Linux like there are for Windows?
|
This is probably going to sound messed up, but here it goes.
I've been working on a project for a client for a while now. I wasn't given any details except for "It has to be an XYZ plugin and interface with ABC product". Which was fine, but now we're towards the end (I think) and it's just dragging out. I don't have an... |
A bit of background: As a team lead I use NDepend about once a week to check for the quality of our code. Especially the test-coverage, lines of code and cyclomatic complexity metrics are invaluable for me. But when it comes down to levelization and dependency cycles I am a bit ... well concerned. Patrick Smacchia has... |
I would like to try and implement some TDD in our web applications to reduce regressions and improve release quality, but I'm not convinced at how well automated testing can perform with something as fluffy as web applications.
I've read about and tried TDD and unit testing, but the examples are 'solid' and rather simp... |
I've been doing website programming for 15 years and PHP for the last 5 years or so. I've always written solid code. HOWEVER, I have a client that is insisting on 80% of the code being unit tested. Since the client is ALWAYS RIGHT, I am planning on using PHP_CodeSniffer to make sure my code looks right and PHPUnit t... |
Eval is a notoriously controversial language feature. Douglas Crockford flat out rejects it. I'm wondering what specific risks Eval brings about. According to this question, Improper use of eval opens up your code for injection attacks.
What are some improper uses of the Eval command, and what security holes do they ... |
This is neither a Holy War invocation nor is it https://stackoverflow.com/questions/661389/tfs-vs-svn - This question is much more specific and would potentially make a team of developers very happy:
I used an earlier version of TFS for two years but I have not used it for years. What advantages does it have over Torto... |
I've been interning at a place where my manager believes that if you are in a,
product company, then you generally spend time tweaking the product and sometimes adding some features, or
service company, then you keep doing repetitive things
which makes me feel industry is no place for someone who likes to do create n... |
You are conversant with the ZF?
How would you go about getting familiar with it in one week?
What would be your suggested schedule?
|
I am doing a project in my university where, for the first time in my life, I have to create a system architecture/design and I will be the head of a group of 4 students that are in the beginning of the course.
Basically, I will be able to do everything: I have almost complete independence to choose what exactly the so... |
I used to believe the practicing "good" software development methods tends to yield a better product in the long run. However, I've seen quite a few cases where "quick-and-dirty" \ "brute-force" \ "copy-paste" programming appeared to give decent results quicker, and cheaper. This appears especially in cases where time ... |
I want to ask you whether adding some "easter eggs" in the source documentation is unprofessional or not. Probably you have read the StackOverflow poll for funny comments in a source documentation, and I have personally stumbled at many such things during my work, including funny (or not) stuff in public API documentat... |
I have been looking at a number of document databases (RavenDB, CouchDB, MongoDB) and there are two things about them that I really like and makes me what to incorporate them as much as possible and that is the schema-less natural (not that they are schema-less per-say but that it is a very flexible schema that is much... |
I'm trying to get a good grasp of how to implement good decoupling between a UI and the model, but I'm having trouble figuring out exactly where to divide the lines.
I've been looking at Model-View-Presenter, but I'm not sure exactly how to go about implementing it. For example, my View has multiple dialogs..
Shoul... |
Imagine, there is a resource, for example event. User is able to get list of events in HTML format. He should be able to view that list in two ways: as a list and as a calendar. How the API should respond to this options?
The simplest approach, I think, is to pass some parameter to index action to determine which type ... |
I am trying to improve the speed of my coding and I was wondering what tips the pros have. Currently I tend to code about 5-10 lines of code then test and repeat. Is that typical? Or is it better to code larger blocks of code then test. I am always worried of coding a lot than realizing all the code I wrote was wrong a... |
I'm currently working with C++ MFC applications in Visual Studio 2008. I have spent most of my time up to this point working with Java Swing development which seems to be not quite as involved as win32 or MFC are. I've noticed that there seems to be a lot of little parameters and specifications that go into creating ... |
What are some good (or must have) ASP.NET development/debugging tools in addition to Visual Studio IDE?
So far the only trick in my pocket is .NET Reflector, that has come in handy before.
(I would limit browsers add-ons to IE if possible, since I'm working on a corporate intranet and using FF is not always an option).... |
I have a list of products. Each of them is offered by N providers.
Each providers quotes us a price for a specific date. That price is effective until that provider decides to set a new price. In that case, the provider will give the new price with a new date.
The MySQL table header currently looks like:
provider_id, ... |
Having used Google Chrome now for a couple of years, I've really gotten to like rolling/automatic updates. I know that most modern software has "automatic updates", but many large pieces of software only have "minor version automatic updates", leaving you to pay to for each major version. Obviously, these companies get... |
I've done some application out there, coding is not the problem. But when it comes to deploying / communicating / sharing with colleagues and friends, I'm like stuck. I feel I'm going to be humiliated because there are bugs, and people will not use it ...
I'm sure I'm not the only one in this situation. I can't describ... |
A good developer I work with told me recently about some difficulty he had in implementing a feature in some code we had inherited; he said the problem was that the code was difficult to follow. From that, I looked deeper into the product and realised how difficult it was to see the code path.
It used so many interface... |
I began my programming career in web development using PHP and MySQL. I got quite accustomed to utilizing db for storage of most dynamic data as well as some setting/parameter data. Sometimes there would be a lot of data while other times entries in the tables would be few. To me this just seemed natural and as far ... |
I'm a Unix programmer and I need to write a (hopefully simple) program for Windows that does the following:
(1) Installs from a USB drive
(2) Somehow integrates with the OS at a low-level in such a way that it can filter/shape all network traffic in/out of the machine (a la IPSec)
I can write in C, asm, Python, Java, b... |
When you have several programming tasks to do at once, do you prefer to go through them one at a time, or to vary them, perhaps based on subtasks or on time? Why?
For myself, I find that:
Pros for sticking:
If I lose my concentration or train of thought, it takes a while to get back into it. If I chug through one ta... |
I'm doing my research and stuck with a question:
I am having a minimum spanning tree (prim algorithm), now one node in my tree gets deleted, I wonder if there is a way i can re-organize my tree such that the optimality still maintains?
I'm looking for some suggestions here and I will appreciate your help.
Thank you!
No... |
I have seen few developers use a tool for designing their application where they simply dragged needed elements (classes, variables, objects) and just did magic work.
Then there was a button to generate a code where the design was generated into a C# code after what developer continued to work on software manually.
Any... |
I just tried integrating my website with facebook. I got a lot of copy-paste code from the facebook developers site. I just put the code and it works fine. Do you call this kind of programmers "code monkeys"?
If you say I am a code monkey, in the same case what would you expect me to do?
|
I'm in the 4th year at an IT university now, and when I talk with my professor about this topic he rejects my opinion and gives me a very heavy criticism (in my university, we were being taught C (ANSI) (in Procedural Programming class - in the 1st year at university ) before C++ (in OOP class in the 2nd year) and othe... |
If I am subcontracting from a company. Am I able to claim the work as if I were doing for the client themselves. In other words....
if Client A ask Company A to do some web development. and Company A sub contracts out to Company B. Can Company B claim they did work for Client A. Or must they say they did work for Compa... |
Possible Duplicate:
Why are software schedules so hard to define?
I often need to explain to senior management why software estimation is so hard, and why our preliminary estimates are often so far out. I suspect some want to know why it is not mathematically precise engineering, like building a bridge.
You can help... |
When I was reading a book for SCJP, I came across the following paragraph.
A LinkedList is ordered by index position, like ArrayList, except that
the elements are doubly-linked to one another. This linkage gives you
new methods (beyond what you get from the List interface) for adding
and removing from the beginn... |
This PGP library was bought up by Network Associates and then eventually Symantec Corporation.
The source code is available and is licensed under the GPL (it was linked to from here).
They have a source code license here:
http://www.pgp.com/developers/sourcecode/sourcecode_license.html
Even though this code is licens... |
Regarding pointers which are members of classes. Should they be of a smart pointer type or is it enough to simply deal with them in the destructor of the class they are contained in?
|
I work for a large enterprise (30K employees) in the financial/insurance industry. While "IT" isn't our main focus, let's be honest, these are information driven industries and the companies with the better technological advantage seem to get ahead faster.
There are many software development teams at my company. They a... |
For political reasons, management seems intent on keeping a project progressing, but stripping away the most senior developers to perform other higher-priority tasks. Instead one more junior developer will be working on the project while consulting periodically with senior devs. Ostensibly the project will keep progres... |
I know the title is a bit vague so I'll try to be more precise in explaining what's my actual question (I apologize in advance if this is a duplicate).
I work for a small company (8 people) that works with Linux / PHP / MySQL to deliver various solutions (CRM amongst everything) to several larger financial institutions... |
So, I have a couple of projects that I have been working on and I am trying to decide if I want to open source them or provide them for free as closed source.
I have never "owned" an open source project before and I would love to hear thoughts on the pros and cons of both options. Any horror stories of deciding on eit... |
Although I've been developing web applications for close on 6 years now I still do not know what happens when a request reaches the server. I am looking for book that works through what happens when a request reaches the server and how the server knows which code to call. I'm assuming that there is a old book from the ... |
I'm in a Scrum environment, and we get feedback from the PO that all stories should be closed that are currently in progress before bringing in more stories. The goal is reducing WIP and getting stories accepted, which is a good goal. But would it really be wise to have, for instance, a DBA run a manual test script in ... |
What are some questions I can ask myself about our design to identify if we should use DTOs or Self-Tracking Entities in our application?
Here's some things I know of to take into consideration:
We have a standard n-tier application with a WPF/MVVM client, WCF server, and MS SQL Database.
Users can define their own in... |
I'm managing a team of 10 software developers and I'm looking for a tool which can be used to schedule/assign tasks.
I envisage a fairly simple web-based tool which each developer signs into. Here they can see a list of tasks assigned to them. For each task it would be clear how long has been assigned (either the numbe... |
Say I have 2 controllers, OrderController and StatusController. OrderController has several CRUD actions for Orders and StatusController has several actions pertinent to changing the satus of Orders (from created to sent, cancelled, etc).
StatusController really only has one view where several actions can be performed,... |
In an hypothetic situation of a company that have infinite resources (time/budget) to develop a product.
can someone list me ALL possible steps that are required in my system development life cycle to reach the goal, in a state of the art software engineering view ?
The GOAL of this question is to get a detailed list ... |
I understand the purpose of XML, but I always hear people complain about how BAD it is? I don't really understand whats so bad about it? I usually hear the terms "bloated" and "slow" tossed around.
But I guess as programmers, what do you mainly use it for? And do you really consider it "bad"....because if it is, an awf... |
The generally accepted programming practices I've come across tend to advise against big, sprawling classes.
Does using Objective-C categories change the conventional wisdom somehow? Is it more acceptable to have bigger classes if each "subclass" or set of tasks is in its own category? In my own experience, I've foun... |
When writing software, what's the point of writing a formal, detailed dead-tree specification? To clarify, a somewhat informal, high-level specification for people who don't want to read the code makes sense to me. A reference implementation in well-commented, readable source code is about the most unambiguous specif... |
The Linux kernel is often listed as a code base which you are recommended to read and, even if it is poorly commented (or the files I have looked at have all been), it does have some really good code in it.
Now, putting the Linux kernel aside, which other operating system kernels do you recommend people interested in s... |
Currently I'm an IT student and I'm wondering what is still important in C++ today, what for is it used? I completed basic C++ course in my university but I can't imagine where can I use my knowledge and in which direction should I go learning C++.
In other words what should I learn to become a successful C++ programme... |
From your real life experience & executed work.
How to choose between starting a project as a Phone App or a Web App ?
From what I've read, it is a matter of : the need vs time & $ cash to solve it.
I am not sure for the long term & with a limited budget what path to take.
My main concerns and comparisons :
Phone App... |
I have a UI form written using model-view-presenter that has, among other things, a listbox containing a number of different domain objects. The form also contains an add/update button which pulls up a dialog allowing the user to add/update a domain object.
The domain-object form is general and is used to gather basic ... |
I've been discussing with my colleges about logging in by using your OpenID account, Google account etc. in our customers CMS and/or the internal systems we use, as we've had a few requests regarding this from both existing customers and new.
What are your approaches on this? Is this a bad idea? Especially for our cus... |
I'm often presented with these two options. From a design point of view, which of these is subjectively better, and why?
Option A
class foo {
private boolean bar() {
//Stuff
}
private void A() {
if(bar())
B();
}
private void B() {
// more stuff
}
}
Option B
class foo {
private bo... |
I want to get started writing extensions for Google Chrome. I am a long time C, C++, Delphi, etc. developer for many years with some Java skills. I believe Chrome extensions are written in C++ but perhaps some people have figured out how to do development in other languages via alternate methods.
[UPDATE: NPAPI plug-i... |
I've seen a number of questions since I've been here where, in the answer, someone has asserted that they would never use portfolios or code samples coded outside of the interview process to judge a candidate, because there is a possibility of that code having been written by someone else. I find myself surprised by th... |
Background: we have recently made a significant change to the UI of our software. All previous versions used a MDI interface (windows floating around inside a parent window.) The new version uses a docked interface (windows snap next to each other, fill all available space, and can be tabbed on top of each other, and... |
Let's say that:
You have created a FOSS project that other people find useful, perhaps useful enough to donate to or pay for modifications to be done.
It is a perfectly legitimate and innocuous software project. It has nothing to do with cryptography as munitions, p2p music, or anything likely to lead to a search warr... |
The distinction between block and inline elements always seemed strange to me. The whole difference is that a block element takes up the entire width thus forcing a line break before and after the element, and an inline element only takes up as much as the content. Why not just have one type of element- an inline eleme... |
We are currently writing unit test cases in our project . The implementations for database methods exist and is working fine . In this case why do we need to write mock objects ? Is there any specific reason ? Why can't I test the DAO implemntation directly?
|
I posted some open source code on soureforge, and someone got in contact with me stating they intended to use my algorithms for a commercial product. I don't want this to happen, what should I do? According to us copyright.gov site:
"Your work is under copyright protection the moment it is created and fixed in a tangi... |
I understand what composition is in OOP, but I am not able to get a clear idea of what Aggregation is. Can someone explain?
|
Some years ago (more precisely in 1998) the confusion english-speaking people start making with the term free when applied to software led some members of the free software foundation to create a new term: open source ( http://www.gnu.org/philosophy/free-software-for-freedom.html )
The great concern was that people was... |
A while ago I stumbled upon the concept of using spreadsheets (I mean cells and formulas not Macro code) as a way to specify programming logic.
The idea is:
create a spreadsheet with a cleanly defined flow of calculations (which sometimes are better suited to the "dataflow" paradigm of spreadsheets instead of procedur... |
I have a table which has the amount,entrydate and amtperday field , which is to decrease daily.
so what is better running the cron job daily to decrease amount.
or
or at the time of fetching data calculate the amount perday with the date field , i can get the no. of day
amount = amount- no.of day * amtperday
so whi... |
I'm a python monkey at heart. I eat drink sleep and dream in it, and have found that it's taught me much more about writing quality code than my degree in Computer Science ever did, however I've been asked to write an automated testing project in C# at work to link in with Team Foundation Server.
Having looked at the l... |
We are currently planning to create a 'preview' version for one of our asp.net mvc apps.
Is it allowed to use a company like Microsoft's contoso for such a case (Branding etc.)?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.