instruction stringlengths 34 36.1k |
|---|
it seems that most of the programming exercises that I am currently doing, are a little bit ambiguous when it comes to specifying what should I do.
When programmers work with clients, are the clients ambiguous as well about what they want and I should learn to guess?
|
I see this a lot in frameworks.
You have a master class which other classes register with.
The master class then decides which of the registered classes to delegate the request to. An example based passed in class may be something this.
public interface Processor {
public boolean canHandle(Object objectToHandle);
p... |
In agile process, the product owner put the unformal ideas/user story/backlog items to the sprint/iteration. Sprint/iteration is like a plan for a short term and it is drived by daily meeting. Planning is made in both processes. So what's the difference between agile and the old plan based developing?
|
I'm at the beginning of a development project in a large organization.
The Functional Requirements are currently being worked out and documented with our business stakeholders by our Enterprise Design department.
I'm required to produce Technical Design Documents and manage the team to actually build the solution.
I'm ... |
We would like to implement the Agile/ Scrum process in our daily software management, so as to provide better progress visibility and feature managements, here are some of the activities that we want to do:
Daily stand-up
Release cycles of 6 weeks with 3 2-week iterations.
Having a product back-log of tasks (integrat... |
Can some one explain to me the concept of Continious Integration, how it works in an easy to understand way? And why should a company adopt CI in their code delivery workflow? I am a developer and my company (mainly the build team ) uses Team City. As a developer I always checkout, update and commit code to SVN but n... |
NOTE: I am self studying UML so I have nobody to verify my diagrams and hence I am posting here, so please bear with me. This is the problem I got from some PDF available on Google that simply had the following problem statement:
Problem Statement:
A library contains books and journals. The task is to develop a
comput... |
I'm getting ready for my first "bigger" .NET project (ASP.NET MVC 3/4) on which I'm going to lead another 2 programmers and right now I'm choosing the right version control system for the job (plus I'm gonna use it for my future development too).
My problem is that I did't use any version control system before, so I wo... |
NOTE: I am self studying UML so I have nobody to verify my diagrams and hence I am posting here, so please bear with me. This is the problem I got from some PDF available on Google that simply had the following problem statement:
Problem Statement:
A library contains books and journals. The task is to develop a comput... |
My employer (Not a Developer) thinks that CASE tools will help us improve our development process and documentation. I am not sure about that, we are a small team of 5 developers building mobile banking solutions for local clients. I think CASE tools will be a waste of time and money as they need to be purchased and we... |
I was nominated as scrum master in a new formed scrum team. We have already done some sprints. In the beginning I tried to make my team to work on one story at a time. But it didn't work.
My team had difficulties to distribute the tasks in a way that they can work simultaneously on one story. Maybe we are doing somethi... |
What are the advantages and disadvantages of externalising SQL queries in Java (or similar general-purpose object-oriented programming language. Externalizing means storing all SQL in a separate non-java file or files. Several good examples are here.
Does it make debugging harder or easier?
|
I'm in the process of setting up a build server for personal projects. This server will handle all the normal CI stuff, including running large suites of tests (unit, integration, automated UI). While I'm working out the kinks for including code coverage output with MSTest, it occurs to me that there may be lots of t... |
I've been dabbling with the idea of creating my own CMS for the experience and because it would be fun to run my website off my own code base.
One of the decisions I keep coming back to is how best to validate incoming parameters for functions.
This is mostly in reference to simple data types since object validation wo... |
I'm writing a little program in C that I want to use to output some system stats to my HD44780 16x2 character display. The system I'll be working with is a Debian ARM system and, although irrelevant, the display is on the GPIO header.(The system is a Raspberry Pi).
As an initial (somewhat unambitious) attempt, I'd like... |
I have two questions to ask.
If I want to code in ARB, what are the prerequisites I need to write the code?
I have been using OpenGL and DirectX lately. I want to compile and run the ARB code. What compiler should I use to compile and run the code?
|
In general it's good to avoid words like "handle" or "process" as part of routine names and class names, unless you are dealing with (e.g.) file handles or (e.g.) unix processes. However abstract classes often don't really know what they're going to do with something besides, say, process it. In my current situation ... |
I am planning to standardize our way of creating project for our new projects.
Currently we are using 3tier architecture where we have our ClassLibrary Project where it includes our Data Access Layer and Business Layer
Something like:
Solution ClassLibrary
>ClassLibrary Project :
>DAL(folder)
... |
Chidamber & Kemerer proposed several metrics for object oriented code. Among them, depth of inheritance tree, weighted number of methods, number of member functions, number of children, and coupling between objects. Using a base of code, they tried to correlated these metrics to the defect density and maintenance eff... |
Two years ago it was thought a single object with functions such as $database->get_user_from_id($ID) would be a good idea. The functions return objects (not arrays), and the front-end code never worries about the database.
This was great, until we started growing the database. There's now 30+ tables, and around 150 fu... |
I'm working on an app which acts as a client for our web service. We sell this service to businesses, and we want to distribute the app to their employees for free. The app will be customised for each client.
If we were in the US, my understanding is that we'd ask them to enrol in the volume purchasing program, and ... |
All our (my company) currently applications pull information from that database, is their a way to get the following types of databses to either push data or push an event to allow the application to pull data.
Access
SQL
Oracle
File systems (Files and folders)
The issue today is that most of our application spend a ... |
I have several situations where I need to control timeouts in a technical application. Either in a loop or as a simple check. Of course – handling this is really easy, but none of these is looking cute.
To clarify, here is some C# (Pseudo) code:
private DateTime girlWentIntoBathroom;
girlWentIntoBathroom = DateTime.N... |
I'm making an app that will be used in multiple hospitals in the US. As per HIPAA compliance requirement, every hospital will have its own server that complies with these requirements of ensuring patient data security, etc.
Now the task is that the app should communicate with a particular server based on the login inf... |
I am lead developer and team lead in a small RAD team. Deadlines are tight and we have to release often, which we do, and this is what keep the business happy.
While we (the development team) are trying to maintain the quality of the code (clean and short methods), I can't help but notice that the overall quality of t... |
I got a bunch of C++ sources files and headers. They may use external libraries such as Boost e.g. I am interested in the process of building binaries for Windows and *nix.
Makefiles (*nix) and .vcproj (Windows) call compilers with some specifications such as the order of compilation, compilation options and stuff.
CM... |
I've spent the last year as a one-man team developing a rich-client application (35,000+ LoC, for what it's worth). It's currently stable and in production. However, I know that my skills were rusty at the beginning of the project, so without a doubt there are major issues in the code. At this point, most of the issues... |
When I discovered that python has parallel assignment I thought is pretty cool.
Recently I discovered parallel assignment works also in ruby.
For people that don't know it: x,y = y,x in ruby, python this swaps x and y values .
Which language came first with parallel assignment, python? or was it other language?
|
We have an enterprise application with a front end written in Microsoft Access 2003 that has evolved over the past 6 years. The back end data, and a fair amount of back-end logic is contained within several Microsoft SQL Server databases. This front end app consists of around 180 forms, and over 120,000 lines of code... |
I recently implemented incoming emails for an application and boy, did I open the gates of hell? Since then every other day an email arrives that makes the app fail in a different way.
One of those things is emails encoded as UTF-7. Most emails come as ASCII, some of the Latin encodings, or thankfully, UTF-8.
Hotmail e... |
I use buffer for quite a long time when I need to copy a stream or read a file.
And every time I set my buffer size to 2048 or 1024, but from my point of view a buffer is like a "bucket" which carries my "sand" (stream) from one part of my land (memory) to an other part.
So, increase my bucket capacity will in theory a... |
Whenever I ask a question about game development in an online forum I always get suggestions like learning line drawing algorithms, bit level image manipulation and video decompression etc.
However looking at games like God of War 3, I find it hard to believe that these games could be developed using such low level tec... |
I just joined a small start-up as a software engineer after graduation. The start-up is 4 year old, and I am working with the CEO and the COO, even if there are some people abroad. Basically they both used to do almost everything. I am currently on some kind of training phase. I have at my disposition architecture, set... |
I have no code here, as this is more of a design question (I assume this is still the best place to ask it).
I have a very simple server in java which stores a mapping between certain values and UUID which are to be used by many systems across multiple platforms. It accepts a connection from a client and creates a c... |
Email messages are sent in plain text which means that the messages I send to Derpina are visible to anyone who somehow gets access to them while they are in transit.
To overcome this, various encryption mechanisms were developed: PEM and PGP are two of them.
PEM canonically converts, adds digital signature, encrypts... |
I'm starting with MVC and have a newbie question. What would be the logic criteria to define what a controller should encompass? For example, say a website has a 'help' section. In there, there are several options like: 'about us', 'return instructions', 'contact us', 'employment opportunities'. Each would then be a... |
Imagine you'll have always a button labeled "Continue" in the same position in your app's GUI.
Would you rather make a single button instance that takes different actions depending on the current state?
private State currentState = State.Step1;
private ContinueButton_Click()
{
switch(currentState)
{
ca... |
I want to be able to call javac <class file name>, and then automatically run java on the compiled .class file.
I thought initially to use a x86 disassembler to hack it (javac.exe) but bumped that idea; I then found the open source code for JDK, and concluded that maybe a batch file would be easier. How can I do this?
|
It seems lazy evaluation of expressions can cause a programmer to lose control over the order in which their code is executed. I am having trouble understanding why this would be acceptable or desired by a programmer.
How can this paradigm be used to build predictable software that works as intended, when we have no gu... |
I've been asking a lot of people where to start learning java web development, I already know core java (Threading,Generics,Collections, a little experience with (JDBC)) but I do not know JSPs and servlets. I did my fair share of development with several web based applications using PHP for server-side and HTML,CSS,J... |
Was reading through some articles on the advantages of creating Generic Repositories for a new app (example). The idea seems nice because it lets me use the same repository to do several things for several different entity types at once:
IRepository repo = new EfRepository(); // Would normally pass through IOC into con... |
Looking for best-practice structure for setting up a wiki for developers?
I'll be managing a team that has not had the best track record for documentation, communication and knowledge-sharing. I'd like to have a framework set up to make it easier for the team to get started in this area.
|
When is it okay to delete?
...destroy?
When should you never delete/destroy no matter how old (ie. health-management software?)
|
I have read many posts and articles on this topic but still cant connect the dots. I want to make a Rails app that is strictly a JSON API maybe using Sinatra or the rails-api gem. I also want to make both a web client app and an iPhone app which consumes the API. No plans on letting third party dev's use it.
So I could... |
I'm used to search for the Landau (Big O, Theta...) notation of my algorithms by hand to make sure they are as optimized as they can be, but when the functions are getting really big and complex, it's taking way too much time to do it by hand. it's also prone to human errors.
I spent some time on Codility (coding/algo ... |
A few months ago, we started developing an app to control an in-house developed test equipment and record a set of measurements. It should have a simple UI, and would likely require threads due to the continuous recording that must take place. This application will be used for a few years, and shall be maintained by a ... |
We have to write an administration panel for many customers. But we want to have just one administration panel, and use it in various projects.
This admin panel will have basic components such as access control logic, maker-checker system in changes, user logging and etc.
It will also have reporting for the customer,... |
What is a zombie process or thread, and what creates them? Do I just kill them, or can I do something to get diagnostics about how they died?
|
I know this is kind of a subjective question, but I'm curious if there's any good reason to place (or not place) editor settings inside code files. I'm thinking in vi modelines, but it is possible that this applies to other editors.
In short, a vi modeline is a line inside a file that tells vi how to behave (indent wit... |
We have a large website running that offers a JsonRpc web service.
For offline demonstration purposes, I want to realize a portable, locally running webserver with a minimalistic feature replication of the live webservice, and bundle this together with Html files which do Ajax requests to it.
This local server executab... |
We have a Staging Branch. Then we came out with a Beta branch for users to move whenever they wanted to from old Production branch to the new features.
Our plan seemed simple, we test on Staging, when items get QA'd, they get cherry-picked and deploy to Beta.
Here's the problem! A bug will discreetly make its way on to... |
Traditionally we performed code review before commit, I had an argument with my colleague today, who preferred code review after commit.
First, here's some background,
We have some experienced developers and we also have new hires with almost zero programming experience.
We'd like to perform fast and short iteration... |
I've inherited a pretty interesting project where there is a good opportunity to take an existing piece of software and turn it into a SaaS web app. As the project is inherited, the code base/ framework is already defined as C++ and MySQL. The app itself is compiled and run as an EXE on Windows Server. The UI is web ba... |
I am writing a new application that allows users to enter requests.
Once a request is entered, it must follow an approval workflow to be finally approved by a user the highest security level.
So, let's say a user at Security Level 1 enters a request. This request must be approved by his superior - a user at Security L... |
I'm just wondering about "stringify" vs "serialize". To me they're the same thing (though I could be wrong), but in my past experience (mostly with asp.net) I use Serialize() and never use Stringify().
I know I can create a simple alias in Javascript,
// either
JSON.serialize = function(input) {
return JSON.stringi... |
What should I name a variable that has units with a fixed point?
int herpLimitLo_psig2 = 6000; // 60.00 psig
int derpLimitLoPsigwithtwodigits;
int herpLimitHiPsigfixedtwo;
int herpLimitHi_psig_timesOneHundred;
Apparently I suck at naming things.
|
I am trying to take data that I request from an access database and put it into and excel file on the client computer.
I usually use ajax to request a summary of the data I need. It is formatted into an html table.
I need that table to be in an excel format for the user to download.
What I have tried already is t... |
I'm working with a SQL Server database with 1000+ tables, another few hundred views, and several thousand stored procedures. We are looking to start using Entity Framework for our newer projects, and we are working on our strategy for doing so. The thing I'm hung up on is how best to split the tables into different m... |
I'm writing tests for a component that takes very complex objects as input. These tests are mixes of tests against already existing components, and test-first tests for new features.
Instead of re-creating my input objects (this would be a large chunk of code) or reading one from our data store, I had the thought to se... |
When you are creating an ad on Facebook, you are provided with a "suggested bid" range (e.g., $0.90 - $2.15 USD). According to this page:
The suggested bid range is there to help you pick a maximum bid so your ad will be successful. It’s based on how many other advertisers are competing to show their ad to the same au... |
I have been going over YouTube watching videos on eMail encryption and everyone seems to explain it from a different perspective. Some do it for a CompTIA exam while others just provide a primer.
Here is what I understood:
Step1: You compose an email that you want to send. Without encryption, it will be simple ASCII ... |
My first question here. Appologize if it is in the wrong forum but this seems pretty conceptual. I am looking at doing something that goes against conventional wisdom and want to get some feedback as to whether this is totally insane or will result in problems, so critique away! I am on PostgreSQL 9.1 but may be mov... |
As an exercise, I'm implementing HashLife in Go.
In brief, HashLife works by memoizing nodes in a quadtree so that once a given node's value in the future has been calculated, it can just be looked up instead of being re-calculated. So eg. if you have a node at the 8x8 level, you remember it by its four children (each ... |
I have a two-dimensional vector field, i.e., for each point (x, y) I have a vector (u, v), whereas u and v are functions of x and y.
This vector field canonically defines a set of trajectories, i.e. a set of paths a particle would take if it follows along the vector field. In the following image, the vector field is de... |
A couple of months ago I was hired in a new job. (I'm fresh out of my Masters in software engineering)
The company mainly consists of ERP consultants, but I was hired in their fairly small web department (6 developers), our main task is ERP/ecom integration (ERP-integrated web shops).
The department is growing, and rec... |
I have been programming for decades but I have not been used to object oriented programming. But for recenet years, I had a great opportunity to learn OOP, its principles, and a lot of patterns that are great.
Since I've learned OOP, I tried to apply them to a couple of projects and found those projects successful. Unf... |
When I was in college I learned how to program in C, C++, and Java. Currently, I'm a web developer using front end and back end technologies (HTML/CSS/JS, PHP, MYSQL). While the sorting algorithms and OOP concepts that I learned in college can be applied to web development, I'm looking for ways to keep up my knowledge ... |
Visual Studio 2012 has a new feature where it automatically runs your unit tests after every build.
I would like to use this feature, but I have a number of tests that should not be run after every build (long running performance tests, etc).
Is there a way to define which categories are run automatically? Or some oth... |
What is the best way to write and run small scripts and tasks that are specific to a particular .Net project?
Such things as configuring a database or confirming proper connections to servers.
In Ruby, I would build rake tasks for this sort of thing.
I am currently using unit tests for these tasks as they are easy to r... |
When I represent a number in the decimal system, I have an intuitive knowledge of what it amounts to. For example take the number '10': I understand that it means 10 apples or 10 people... i.e I can count in the real world.
But as soon as the number is converted to any other system, this understanding no longer appli... |
I want to know what purpose does console solve in sublime text 2. This is invoked by pressing Ctrl+Shift+`
Is this a kind of debugger, or It just helps you to install packages.
|
I am referring here to the design patterns found in the GOF book. First, how I see it, there are a few peculiarities to design pattern and knowing multiple languages, for example in Java you really need a singleton but in Python you can do without it you write a module, I saw somewhere a wiki trying to write all GOF pa... |
I'm working on a Twitter application in Ruby on Rails. One of the biggest arguments that I have with other people on the project is the method of calling the Twitter API. Before, everything was done on the server: OAuth login, updating the user's Twitter data, and retrieving tweets.
Retrieving tweets was the heaviest t... |
I am currently working on CUDA, DirectX. I want to know the data flow architecture of GPUs. The one presented for CUDA and DirectX are parallel programming model and graphics pipelines respectively. But, I want to know the data flow architecture (like, the data flow architecture of 8086 processors).
|
I've been trying to design an interface for a data class I'm writing. This class stores styles for characters, for example whether the character is bold, italic or underlined. But also the font-size and the font-family. So it has different types of member variables. The easiest way to implement this would be to add get... |
I have an application where I have the 'core' code in one folder for which there is a virtual directory in the root, such that I can include any core files using /myApp/core/bla.asp. I then have two folders outside of this with a default.asp which currently use the querystring to define what page should be displayed. O... |
I typically agree with most code analysis warnings, and I try to adhere to them. However, I'm having a harder time with this one:
CA1031: Do not catch general exception types
I understand the rationale for this rule. But, in practice, if I want to take the same action regardless of the exception thrown, why would I h... |
How can I implement a TableView like thing in C++?
I want to emulating a tiny relation database like thing in C++. I have data tables, and I want to transform it somehow, so I need a TableView like class. I want filtering, sorting, freely add and remove items and transforming (ex. view as UPPERCASE and so on). The whol... |
I'm involved in a project that requires to mobile-enable some previously developed Portlets. The Portlets are deployed in WebSphere Portal, and the container offers a technology called IBM Mobile Portal Accelerator that uses XDIME to render mobile pages according to the device.
I'm trying to document myself in the tech... |
Of the three
BufferedReader/Writer
Binary Streams
Channels
which is more preferred in real life for file I/O in Java and why?
I prefer channels for binary data to be put into file or read from and BufferedReader/Writer for String data
|
http://www.dartlang.org/
I've checked out the site very briefly, and got curious. Is there any advantages of using Dart? Is it just a replacement for JavaScript?
It looks like simpler Java. Writing quite a lot of C# at work, the language feels very much like what I'm used to, so learning the syntax looks like a breeze... |
I'm developing a software that contain many modules/Daemon running in parallel manner, what i'm looking for is how to implement that, i cannot use Thread because some of those modules/Daemon are perhaps implemented in other languages (C,java,C#...).
For example I'm using C for Hooking Messages exchanged between Windows... |
I have recently seen a .NET MVC solution in which the markup in the .aspx views which appear to have a Controller as their model i.e the controller seems to be providing the data for the view, and the .ascx user controls they contain use a separate model. I'm new to MVC and I wanted to find out about a few things I'm n... |
I've been programming professionally in C, and only C, for around 10 years in a variety of roles.
As would be normal to expect, I understand the idioms of the language fairly well and beyond that also some of the design nuances - which APIs to make public, who calls what, who does what, what is supposed to reentrant an... |
Introduction
Preamble
I was hesitant to post this, since it's an application whose intricate details are defined elsewhere, and answers may not be helpful to others. Within the past few weeks (I was actually going to write a blog post about this after I finished) I've discovered that the barrier I'm encountering is one... |
In several of my programming courses in the University, my teachers always told me the following:
A function and a procedure are basically the same thing: the only difference is that a function returns a value, and the procedure doesn't.
That means that this:
function sum($a, $b) {
return $a + $b;
}
... is a fun... |
Having e.g. a system for booking flights, during UAT it is not being tested by real users (customers who will buy tickets) rather than people from the client side who will just simulate this. Are there any more specific terms to distinquish between real users (like end user) and users doing the UAT?
|
What practices do you apply when working with large teams on multiple versions of a software or multiple competing projects? What are best practices that can be used to still get the right things done first?
Is there information available how big IT companies do development and management of some of their large project... |
I am a software developer having an experience of 3 yrs. I want to play with latest technologies always. But this is not practical. Because say, I developed a web application in .Net 3.5, now its 30% done. After the release of .Net 4.0, my mind is always goes with .Net 4.0. I think like this, lot of features are in new... |
I get confused when people try to make a distinction between compiled languages and managed languages. From experience, I understand that most consider compiled languages to be C,C++ while managed languages are Java,C# (There are obviously more, but these are just few examples). But what exactly is the core difference ... |
Thomas Erl defines SOA as follows in his site:
Service-oriented computing represents a new generation distributed
computing platform. As such, it encompasses many things, including its
own design paradigm and design principles, design pattern catalogs,
pattern languages, a distinct architectural model, and related
con... |
We are starting a new project and implementing on our corporations's instantiation of an openstack cloud (see http://www.openstack.org/). The project is security tooling for our corporation. We currently run many hundreds of dedicated servers for security tools and are moving them to our corporations instantiation of o... |
I think the title "Method flags as arguments or as member variables?" may be suboptimal, but as I'm missing any better terminology atm., here goes:
I'm currently trying to get my head around the problem of whether flags for a given class (private) method should be passed as function arguments or via member variable and... |
What's the difference between overloading a method and overriding it in Java?
Is there a difference in method signature, access specifier, return type, etc.?
|
Having read a lot about this topic --- such as on this Software Testing Fundamentals site on verification and validation and Software Testing and Quality Assurance: Theory and Practice by Naik and Tripathy --- I still do not get it. Verification should prove that you are building the product right, while validation pro... |
I took the example from this question modified a bit:
What is the point of the prototype method?
function employee(name,jobtitle,born)
{
this.name=name;
this.jobtitle=jobtitle;
this.born=born;
this.status="single"
}
employee.prototype.salary=10000000;
var fred=new employee("Fred Flintstone","Caveman",1970);
console.lo... |
Should a child window have it's own data context (View-Model) or use the data context of the parent? More broadly, should each View have its own View-Model? Are there are any rules to guide making that decision? What if the various View-Models will be accessing the same Model?
I haven't been able to find any consi... |
Disclaimer: The intent of this question isn't to discern what is better for the individual developer, but for the system as a whole.
I've worked in environments where small teams managed certain areas. For example, there would be a small team for every one of these functions:
UI
Framework code
Business/application log... |
Context: I'm taking several classes this semester in which I'll be coding. Here is a list of possible languages I'll be using:
Java
C (system and embedded level)
C++ (contest programming)
VHDL (for FPGA work)
Python
Scheme
Is it possible to keep all these languages floating around in one's head? How can one code with... |
My boss wants to recruit testers based on their testing efficiency (number of bugs identified). So, he's shortlisted 5 people and I need to give them an app full of bugs and see how they fare in reporting obvious bugs, and hidden bugs. I know.... it kind of sounds weird. I guess, this is just like the coding world, whe... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.