instruction stringlengths 34 36.1k |
|---|
I have notes about various methods of prototyping, and I found several definitions on the Internet, but I would like to confirm what I learned.
I understand that throwaway prototyping is developed from an outline of a specification, an various prototypes are delivered and modified until the client is satisfied with its... |
In my line of work I deal with very large files, hundreds of Gigabytes in size. The nature of the data in these files is such that compression would greatly reduce their size. The problem is, the records/data packets within the file must be individually accessible.
Is there a way to apply some home-grown techniques t... |
The problem with trying to use Google to find tutorials or answers for the C programming language is that C is not an expressive enough name to narrow down the searches. Even coupled with keywords like "Programming" and/or "Language" yields results mostly for C++, C#, and Objective-C.
Is there a way to more effectivel... |
Let's say version 2.4.x of Software Package X was released 2 years ago, and was sold up until about 6 months ago. Version 3.1.0 is now out (which fixes a lot of the issues with version 2.4.x), and is the only version actively being sold.
In this case, the software is being sold to large businesses, not individuals, so ... |
I have an array of floats, sorted from smallest to largest, and need to be able to pick out the nearest float greater than or less than a passed input value. This input value is not necessarily present as a value in the array.
A naive approach would be to do a simple linear search through the array. That might look l... |
How could I draw the database transaction commit in the sequence diagram?
EDIT
I want to draw in sequence diagram database transaction commit/rollback process
|
Possible Duplicate:
Why isn't the line count in Visual Studio zero-based?
Why isn't the top line in a source code file labelled line number 0?
i.e. in a source file which was 10 lines long, I would expect line numbers would be 0-9, but they're not! Now grep, awk, sed etc all seem to number from 1, so I'm assuming... |
Are there any major differences when we talk about "socket programming" compared to "network programming"?
Are there some topics that cover "network programming" but not "socket programming"?
|
Usually microoptimization is considered not worth it with the following explanation: it might speed up the program by less that one percent, but noone cares of that minor boost - that's just too little of a change to be noticed.
Furthermore, there might be some event handler that fires one thousand times per second and... |
So I recently came across this question - Make a function that converts a in-level-order binary tree into a doubly linked list. Apparently, it's a common interview question.
This is the strategy I had - Simply do a pre-order traversal of the tree, and instead of returning a node, return a list of nodes, in the order in... |
We will be starting a new project which will involve training all the .net developers in Java (frameworks/ECO system etc). We have a lot of code written in C# and it seems that all of this will be wasted as we have to re-write it all in Java. The problem I see is that the first year or so (probably 2 years) we will hav... |
I'm writing an API for an open source network monitoring system which is licensed under the GPLv2. I also intend to open source this API but would like to license it under the BSD License.
I don't re-use or link to any of the code in this system and I don't use any header files.
I will not be re-distributing any part... |
I have an ASP.NET MVC application, that uses a query service to get data and a command service to send commands. My question is about the command part.
If a request comes in, the command service uses a command dispatcher that will route the command to its designated command handler. This command handler validates the c... |
I wanted to get your opinion on best practices for getting user input while doing something in a controller. I am inside a Action method in my controller and I am processing some data. The data may force me to ask the user for further input, based on that input I will then do something with that data.
What is the bes... |
I have been trying to get my hands dirty with ASP.NET MVC which looks pretty good (I am not certain, but some users say that even StackOverflow and other StackExchange websites made use of it). The tutorial I am following is from asp.net, named MVC Music Store. It's a pretty fast paced tutorial and a good one too. The ... |
I've been following these organizations (institutes, entities, whatever) for near 3 months now, and both of them claim that they're trying to make the Internet a better place. They're creating documents under the name of RFC (for IETF) and Recommendation (for W3C) to guide others.
Yet another organization called WHATW... |
I know that Subversion (what we're using at work) can be configured to require comments on commits, however I'm not in a position of power to simply turn this on. I know that my reason for commenting my commits is because it is useful, if only as a memory-jogger, to quickly understand the reason behind the commit. Ho... |
I'm currently working on a project that uses a Webserver running in Windows CE 6.0. Since this server only supports classic ASP (i.e, no PHP, ASP.NET, etc.)/ I plan to use XML as the database.
Is this the best approach, or there is an easier way to do this, taking in consideration that I'm used to work in C and not hig... |
I'm working on a project where multiple (several hundred perhaps) users will need to run an application remotely. We thought that running a web app would be the best course of action to go. (Note: when I say web app I mean a program where a user can type in a URL that will then allow the user to run the application w... |
We are using Cucumber in our application after we previously used Selenium. Cucumber is far better than Selenium, but it may seem to be complicated since has to write gherkin, step definitions may be page objects.
We are using Celerity with JRuby. The flow is: 'gherkin' calls 'Step definition' calls 'Page objects'. ... |
Its a general title for the question but I have a couple of questions for the Sprint in a SCRUM methodology.
What happens if a HOTFIX comes in the middle of a sprint. e.g - The website crashes or some part of the site that hasnt been worked on for quite some time crashes (like creditcard authorize or webservices etc).... |
Possible Duplicate:
Why are interfaces useful?
In our company we have a service oriented architecture in our asp.net application. We use interfaces for every crap class. Its a huge overhead. The service classes, dataprovider classes etc... they all use interfaces but practically we could also go without those interf... |
It's not entirely uncommon in IT that programmers are added to an existing project somewhere in the middle, or closer to finish.
Unfortunately, I've seen that people quickly get disillusioned and leave the job.
So, is there an actual problem? If there is a problem, is there some research in or are there best practices ... |
I'm on a project right now that is using the scrum methodology with 2 week sprints. Here's what our team looks like:
1 business analyst
1 tester
1 user experience designer
2 developers (1 for the UI and 1 for the back-end processes)
1 project manager
In a single sprint, we'll have 1 product backlog item (PBI) to des... |
I have a relatively simple web application that is written in Python using the Flask microframework. I've really enjoyed Flask's ease of use, however, as the app has grown larger it has started to become unwieldy having all of my actions (and utility functions) in a single file. My views.py is about 700 lines of code a... |
What are the typical challenges that arise when converting a single-tenant app into a multitenant app? Security and data isolation strike me as the most significant. What are some others?
I'm one of the architects for a fairly significant automation effort, and historically it's just been our company using it. We want ... |
So, I've finally gotten myself to a point where I'm comfortable enough with Python (using Pyramid as my framework of choice) to undertake a rather large personal project. As it's a personal project, I have the luxury of taking my time having absolutely no deadlines other than self-imposed ones.
I love learning new fram... |
Does anyone know what the collective term for shaking a device to achieve something or using the accelerometer of a device to do something is? Is it haptic technology?
|
Recently I've finished learning about multithreaded programming on single shared objects, but was curious about how different things would be in order to successfully program on multiple shared objects?
|
I've been tasked to create a mobile application as well as an accompanying website. Both the application and website will interact with the same database. To make things easy, I figure creating an API would be best that way I can separate it out from the mobile application and website.
Would this be the preferable met... |
During development, should developers each have their own copy of the database to work on ? Or should there be a common shared development database ?
The former will give developers more flexibility. For ex., they can run their own regression tests during development and unit testing without worrying about corrupting t... |
In my opinion, the unit test cases itself serve as a documentation for the code. My company wants me to write detailed java doc comments on top of unit test cases. Is it necessary to do so? Do you write comments like that ?
|
I have been watching answers to many questions on this site, and have come to the conclusion that commercial pragmatism does not factor into many software development discussions. As a result, I seriously wonder at the commercial skills within the industry, specifically the ability to deliver projects on time and to a ... |
Today with the modern hardware and memory coming cheap, how much sense does it make to spend effort to analyze algoriths or data structure complexity?
Wouldn't it be better instead, to focus on clean, maintainable code, readable code than on optimizations for complexity?
Note:I not talking about embedded systems or sys... |
We have written close to 3,000 tests -- data has been hard coded, very little reuse of code. This methodology has began to bite us. As the system changes we find ourselves spending more time fixing broken tests. We have unit, integration and functional tests.
What I'm looking for is a definitive way to write manageable... |
I have been asked by my local Association for Computing Machinery chapter to give a lecture on Android development, and while I already have some topics to cover, I was curious if the community of SO had any suggestions of things that would be interesting to hear about.
Thus selected:
OpenGL
Using hardware features (c... |
Do people develop websites from scratch when there are no particular requirements or they just pick up an existing web framework like Drupal, Joomla, WordPress, etc.
The requirements are almost similar in most cases; if personal, it will be a blog or image gallery; if corporate, it will be information pages that can be... |
I was just pondering about php rand() function, and thinking about how I could remake it, and I came up completely stupified.
How do random number generators work?
|
I'm a bit confused with the performance guarantee and complexity of selection sort.
I checked through internet and the complexity of selection sort is O(n^2). This O(n^2) is in terms of time complexity, am i right?
So how about performance guarantee? Is the performance guarantee in my case measured in terms of swappin... |
In the 5/15 minute scrum meeting the 3 questions are asked.
For the last question
"what impediments are getting in your way"
If a dev has problems - the xyz is going to have problems, this is likely going to draw the meeting out past 15 mins and could go into a hour long discussion.
Is it the scrum masters job to help ... |
I've been thinking recently about how and where I keep my code - I work across multiple locations, with at least three different computers and I'm considering how I manage my code across these machines.
I've got a dropbox account, which I use. For non sensitive files this is fine, and I do keep some sensitive files i... |
Browsing through some code I've written, I came across the following construct which got me thinking. At a first glance, it seems clean enough. Yes, in the actual code the getLocation() method has a slightly more specific name which better describes exactly which location it gets.
service.setLocation(this.configuration... |
I'm new to MVC and I'm not using a framework (and I'm not going to).
I'm designing my new web application using MVC.
I have the user input received in Controller. Suppose I have form data and an action to do with it, which can be "insert", "delete" or "update".
Must I have process that action in Controller or in the Mo... |
Is it beneficial for a developer to become a 'scrum master'?
Is this an official certification or just someone who specializes?
What are the steps towards becoming one?
|
re: Applications Architecture, that is, "the science and art of ensuring the suite of applications being used by an organization to create the composite application is scalable, reliable, available and manageable."
When looking at a range of applications in an organisation, I can see various reasons for merging apps to... |
How should I document my designing of the app better so that I avoid programming by coincidence? How can I structure notes so that it is clear how an app works so that when I refer to it a year later I'm not lost for the first 3 days?
|
Long and short is really in the question title. For a language which compiles to an intermediate language like MSIL or Java byte-code, if there's concern about something like reverse engineering or hacking to disable security features, should AOT (ahead of time) compilation be considered rather than just obfuscation? ... |
I'm working on a program where part of it will be working as a chat between different people. I'm trying to figure out the best way to send and receive messages.
A PrintWriter or something similar won't work because the process will stop at the read() method while waiting for a message to be sent to it. I'd like to che... |
Say you are given a mock-up of 25 screens of the visual states of your application. The expectation is that this is enough for us to be confident we can develop and hand it to the original stakeholder or customer as a finished application, and they will be satisfied. Naturally, you're going to end up asking the stakeho... |
I've heard that you shouldn't let search engines index your development server. The reasons given were:
Duplicate content penalties
Customers making purchases from an unsecured domain (if eCommerce)
These issues may seem relatively minor and I'm not sure it would be enough to convince someone to put in the effort to... |
I hear the usage of manifests in various ways but never have had the need—to my knowledge—to use one. What are they and how are they used?
EDIT: I'm curious about manifests in general with any language.
|
In a typical scenario, an object that needs to be persisted in the database will be created in application code without an identifier, and later saved to a table in the database. Some database construct, such as an identity column, will generate a new identifier, typically an integer that's unique for all of the rows ... |
JavaScript libraries such as jQuery, combine 'getters' and 'setters' in the programming interface for example:
$('element').css({'color','blue'});
will set the color or
$('element').css();
will get the css for an element.
Is there a name for such a pattern and is it a good practice to use in applications?
|
I'm adding a click-tracking feature on my website to track click-thrus for my advertisers.
So, on my site, instead of having a direct link, I link to my re-direct page passing the destination url as an argument. This re-direct page then tracks the click thru and then 301 re-directs the user to the correct external url.... |
A quick and dirty definition of User Story:
"As a <role>, I want <goal/desire> so that <benefit>"
In this commonly accepted definition there is little space for defining business rules, constraints or user input.
Trivial example just to illustrate:
"As a <librarian>, I want to <register new books> so that
<students c... |
I want to develop a 3d environment to be used for meetings and other such functions.
Each attendee could log in with a customized avatar and could collaborate and discuss via voice and text chat. I would like to add in multimedia content features as well into the environment.
I need help regarding platform selection pr... |
Basically, I have an application that does searches and requests results from a backend via long polling. It connects to the backend which collects results for 500 ms then sends them back to the client (I'm simplifying things here a bit of course). As we've optimized this, we've noticed a growing divide between users... |
I program in a style that everything it's expensive or I really do hate repeating anything, mostly because I develop for embedded systems. So I get very annoyed when I have to do something that causes repetition.
An example would be that in my current project, I am creating a Layout Manager. I had this huge function th... |
Are there any testing-related methodologies except TDD/BDD? I see a lot of people who practice their own testing approaches (e. g., see Ayende post), but I don't see any formalization for it, no naming for these approaches.
|
I'm curious what is considered the standard today for use as the Collation of MySQL Tables?
I was told that Latin-1 was the best choice when I was beginning with MySQL, but came across this post from 2009.
It states that US-ASCII and LATIN-1 Character Sets are on the way out, and that UTF-8 is on the way in and should ... |
I currently have a distributed application that runs on multiple embedded PCs. The whole application is composed of one master server and several nodes. Each node is an embedded PC that runs Windows 7 Embedded and has a dual core CPU with 2GB of RAM.
The application (by definition) only works if the master is up and ru... |
Let's say there's a successful open source application (written in PHP if it matters), which provides its users with multiple ways to extend it (think about something like Drupal or Wordpress, lots of custom plugins, etc.). Now let's say unfortunately there's no formal definition what constitutes the public API for thi... |
Today we were training TDD and found the following point of misunderstanding.
The task is for the input "1,2" return sum of numbers which is 3. What I have written (in C#) was:
numbers = input.Split(',');
return int.Parse(numbers[0]) + int.Parse(numbers[1]); //task said we have two numbers and input is correct
But oth... |
I'm developing a CRUD application on command line for a non-tech client. What's a simple (for both parties) way for me to demo the application remotely? A middle-ground between SSH (easy for me) and setting it up as a webapp (easy for the client) would be great.
|
I'm developing a website using Joomla and many other 3rd party plugins and also I want to make some custom components so I'm hiring some freelancer developers and few are an online companies they say located in UK or somewhere.
After explaining them about the component's functionality and layouts they are requesting ac... |
I'm not asking where to learn. I've found lots of good resources online, and books etc.
But how the heck do I tackle them. Where is the start of it, the end? When does the regexp processor advance on the text, when does it hold its stand and tries another match? etc.
I feel like trying to figure out hieroglyphs on the ... |
Till now, I have had the experience of developing either a desktop application or a Website. But, with this Hotel reservation system, I am interfacing a problem that needs both.
The application needs to be fulfil the following requirements :
Manager can do the bookings/checkout of the incoming customers at the recept... |
In the CustomerTransactions entity, I have the following field to record what the customer bought:
@ManyToMany
private List<Item> listOfItemsBought;
When I think more about this field, there's a chance it may not work because merchants are allowed to change item's information (e.g. price, discount, etc...). Hence, thi... |
My team is composed of 4 developers; all seasoned and skilled. One of them is a wordy, well intended chap who insists on defining the technical solution to our stories before we put down our estimates with Planning Poker. He refuses to estimate if he doesn't have a rough idea of the agreed technical solution (which sou... |
When one writes an open-source project and uses Google Code or GitHub, and wants to use a library like Lua, how should one do this?
Should the dependency be included in the repository?
Should the dependency be built from within the same build script as the rest of the project, or from a separate build script?
Given t... |
My Android Activity contains multiple buttons that all need an OnClickListener. I've seen lots of different ways of doing this such as::
Implementing the interface in activity class
Creating a separate class that implements the interface
Defining an anonymous inner class for each button.
I've seen many examples of e... |
I'm looking for an open source license that lets people do whatever they want - just like the MIT license - just as long as they attribute the original author, i.e. me.
Does a common license exist for this? If so, what is it?
|
A core part of Domain Driven Design is the consistent use of a ubiquitous language across the system - in conversations, code, database schema, UI, tests, etc.
I'm involved in a project in which there is a well-established domain language already, defined by an international standards organisation.
However, the work we... |
And then to automatically re-indent after that? I've tried copying code from one terminal screen to the other, but the tabulation got all messed up.
I didn't know what to call this functionality, so it was hard for me to find it on google (which generally returned things related to how to set tab size, which wasn't wha... |
I am writing a multiple-filed program right now, and apparently running only 'make' (as one would intuitively think needs to be done in most situations) for some reason causes my program to fail. I guess I can provide more detail of the problem, but the important thing is that it does run when using 'make clean'. So I ... |
I am writing an iPad application. The main view of the application will be a PDF. I have made considerable progress in parsing out the contents of the PDF.
The application will also have at least two "side views". These side views may or may not themselves be driven by PDF files. That is part of what I am trying to... |
Are there are any specific rules and regulation to follow while developing a custom membership provider. Like, implementing a particular Interface or Abstract class. Or a definite model architecture to follow.
If yes, then what are the rules or I am free to design, model and code anything ?
|
I'm curious after reading today about a minor code leakage from a large project to some blogs & forums (to say it short: the guys forgot to anonymize the code before asking for help), all detected and (angrily) complained by the customer who reasonably wanted to protect the IP they paid for.
First of all, I know it's a... |
During TDD training based on medical software case we are implementing the following story: "When user presses Save button, system should add patient, add device and add device data records".
The final implementation will look something like this:
if (_importDialog.Show() == ImportDialogResult.SaveButtonIsPressed)
{
... |
I have a class with one public method Send() and a few private methods. It calls a couple of webservices and processes the reponse. The processing is done in private methods.
I want to unit test the code. My understanding is that unit tests should test my code in isolation (ie mock up supplier responses).
I also believ... |
Alan Cox once said "A Computer is a state machine. Threads are for people who can't program state machines".
Since asking Alan directly is not an option for humble me, I'd rather ask here: how does one achieve multi-threading functionality in high-level language, such as Java, using only one thread and state machine? ... |
From a .Net programmer perspective, what are the consequences of still sticking with Windows XP despite there are Windows Vista, 7 and very soon 8? How does having windows XP limit programmers development in .Net platform?
|
Some of the hottest topics in the software world atm are:
Domain-Driven Design
SOLID principles
Agile methodologies
ORM
Now assuming that you are not currently using all of these in your team, if you were to go and ask your team (individually, not as a group) what they knew about the topics they were not applying ... |
How do you guys know that you are writing the most robust code possible without overengineering?
I find myself thinking too much about every possible path that my code can take, and it feels like a waste of time sometimes. I guess it depends on the kind of program you are writing, but I don't want to use too much of m... |
Possible Duplicate:
Is it essential to learn algorithms to be a real programmer?
This question is, perhaps, related mostly to web developers who, like myself, code enterprise applications and use high level languages like Java, C# mostly.
Due to nature of enterprise web-apps, which essentially do CRUD operations, an... |
For the past few months I've been looking into developing a Kinect based multitouch interface for a variety of software music synthesizers.
The overall strategy I've come up with is to create objects, either programatically or (if possible) algorithmically to represent various controls of the soft synth. These should h... |
Should database files(scripts etc.) be on source control?
If so, what is the best method to keep it and update it there?
Is there even a need for database files to be on source control since we can put it on a development server where everyone can use it and make changes to it if needed. But, then we can't get it back ... |
My organization finally upgraded to MS Visual Studio 2010 this year. One of the big new features that Visual Studio 2010 offers is the F# programming language.
I understand that F# offers a functional programming paradigm, similar to Lisp. Unlike Lisp though, F# is compiled into managed code for the .net framework.
R... |
Could anybody help me to find a good tutorial about how can I implement DAO pattern and also tools that help me to create this classes in automated way.
|
I am trying to create a site that will allow you to type a sentence or passage of text, then click on words to bring up a list of synonyms (from an online API) and possibly authorized abbreviations from a list that I provide. Once clicked, it would replace that word with the word that was clicked on. It would function ... |
I've recently worked on a Java class that generates permutations per list of objects. In any case, I would like to have this library offered to the public, so I have several questions:
Most libraries I see have this complicated package naming, specifically including com/org. Is there a convention for these or is a per... |
I regularly come across situations where I need to Add or Edit an item, and sometimes I use separate methods for Add and Edit, and other times I combine them into a single method.
Is one method preferred over the other? If so, why?
public void AddItem()
{
ShowEditingPopup(new Item(), "Add Item");
}
public void Edi... |
The SQL92 and SQL99 standards define CREATE DOMAIN DDL constructs. Not all databases support this, or have a different name for it (SQL Server has User Defined Types, for example).
These allow one to define a constrained data-type to be used in their database, to simplify and enforce rules pertaining to the allowed val... |
Lets say you have to write some code to fix a bug that on first glance by another engineer would seem weird or unnecessary.
Would it be good or bad form to put the code in a method named for example "preventWindowFromJumpingWhenKeyboardAppears" or just name it "forceSpecifiedWindowPosition" and then add a comment about... |
Does anyone have any advice for making an "attractive" software architecture diagram? My manager told me to make my current architecture diagram (which was built just using Visio and basic icons) more "attractive" for a presentation I have to give to executive level types who are non-technical. I'm guessing he meant to... |
I am about to enter the world of consulting for the first time and am having to write my first contract. One problem I have is regarding open source work and intellectual property. I love working on open source projects, whether it's an existing project or a project that I start on my own.
The question is: how can I wr... |
I'm wondering is JSP a safe alternative to PHP? Some things I'm concerned about are cpu usage, memory usage, and security.
|
I'm a solo iOS developer - mostly self taught, but have made several successful apps so far and potentially starting some slightly bigger projects.
What I want to do:
As I'm working on some bigger and more complex apps now, there's some things that I want to do - which from what I gather, repositories are what I should... |
Soon, I'll be starting Android development, as I know a bit of Java. I'll also be getting an Android phone. My two options are the Nexus S and the Atrix 4G. I've heard the Nexus series is ideal for developers - can someone tell me why? Why is getting the Atrix bad as a developer?
|
I have built a number of websites for friends, family, etc. and I have put them all on a single shared web hosting account. Now that they are built, I want to get out of business of supporting them and paying for them (my friends are reimbursing me but I am paying for the actual bill) so I was thinking of having them c... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.