instruction stringlengths 34 19.9k |
|---|
I am learning about Scrum and currently have a basic knowledge. I have a few questions about the role of the Product Owner in the Scrum process:
What is role of Product Owner in daily Scrum, if he/she is part of this meeting?
Product Owner is the person who is customer. A team member can be nominated as a proxy of p... |
The organisation I work for is very application rich i.e. there are lots of SQL and Oracle databases. We are thinking about a data warehouse.
I believe there is a difference between an Enterprise Resource Planning system and a Data Warehouse. An ERP would involve integrating all the systems together and having one da... |
Is it generally possible while using source code management to figure out in what version of a file a specific line was added? If so, what SCM systems support this?
|
I have read the documentation on the apple's developer website which refer following guidelines
A view class shouldn't depend on a model class (although this may be unavoidable with some custom views).
A view class shouldn't have to depend on a mediating controller class.
A model class shouldn't depend on anything ot... |
In my project I am dynamically creating table by giving table name (ex. student) and adding fields to that table and then save table. Now, my table is created in SQL Server database.
Assume table has data and I want to show the data of table (ex student) on WebGrid. But, the problem is I have no model for that table (... |
In the wake of the heartbleed bug, OpenSSL has been rightly critizised for using its own freelist. With plain-old malloc, the bug would have almost certainly been found long ago.
However, some kind of malloc wrapping is actually very common. For example when I have a big object that owns many small, fixed sized obje... |
My team does 2-week sprints, and the trend we've identified (which we want to move away from) is that our daily standup scrums are relatively straightforward early in the sprint, but then transform into a more frantic scramble toward the end.
The first week developers are heads down in coding, analysts are developing t... |
Recently I wrote an interpreter for operations on sparse matrices (a "sparse matrix calculator") in lex/yacc. The language is still very bare bones and doesn't even include control structures or parameterized subroutines, yet it is already at several thousand lines of code, and that's not including the matrix classes.... |
Should you delete the old Nuget package files/folders under the packages directory after you upgrade a package?
Maybe I'm just being overly picky, but seeing files/folder for older package versions it bothering me. Is there a good reason NOT to delete the package folders for previous package versions?
|
The problem is to solve it in n+logn−2 (base 2) no of comparisons.
My algorithm is taking some extra space less then (O(n*n)). How can i reduce this extra space without increasing the complexity.
comparisionarray=[][] (2D array )
//a function to find the largest.
findlargest(a,b)
if(len(a)==1 and l... |
I am working on a project that now needs business rules. One design discussed is to make API calls (based on the form we are on) which responds with business rules for form input. I am unsure if this is the best way. The business rules are in JSON, but the business rules server actually has a business rules engine (so ... |
At my company, we are considering rewriting our business logic and database to have a better architecture after years of organic and unforeseen growth, leading to the inevitable maintenance nightmare.
The business model is one where a, let's say, cookie flows through multiple steps, changing states along the way. It is... |
So, pretty straight forward question. Somebody told me that all shopping carts should be secure. I can see in some instances where this would be beneficial... but all instances?
I realize that typically carts are stored on the server via a session, but in the end the details of the cart have to be sent to the user so t... |
I have a java.util.Map<String, Object> object which different types of values in it. I don't want to cast whereever I do a get operation over this. To do this, I created different classes wrapping this map and these classes provide different get methods which return values for different keys.
There are two options for ... |
In my current code I have felt the desire multuple times to have helper methods that generate a collection of objects and return them as a map of string to object, with the string being some unique id like the objects label. Many of my objects have gaurenteed unique labels since these labels are used via restful inter... |
For a project at work, I was tasked to create a WCF service that will receive email messages from client and queue them on a database, while at the same time the service will check the DB every 30 minutes or so to check if there are any new email messages queued, and send them automatically with the appropriate credent... |
In Java, there are four available access modifiers for methods:
public - any class can use this method.
protected - classes in the same package and subclasses in any package can use this method.
private - only this class can use this method.
no modifier ("package private") - only classes in the same package can use thi... |
Whenever I am defining my own events, I use a pattern such as the following (which I believe is how the MSDN recommends doing it):
public class MyEventClass
{
private bool _value; // Backing variable
public bool Value
{
get { return _value; }
set
{
if (value != _value) //... |
I have been studying scala for the past week or so and the ideologies associated with it and functional programming in general. As expected, the leap from imperative to functional programming is not as easy as I had hoped. For example, I converted a programming exercise that I did in Java into Scala. What I found was t... |
I have recently taken a job finishing the development of a .Net application. The delivery of the application is two years behind schedule. The previous developer died before I had a chance to meet him.
I have been given copies of directories from the deceased's laptops. There are many directories of code (including see... |
Web applications (.jsp / Java) have the advantage that they can be run from any client browser by putting a single URL into the address bar, and off you go.
However, the average web application is slow, clunky, and maintaining the code behind it is hell on earth.
Conversely, a typical desktop application (Java / c#) ca... |
For SQL and C# app dev jobs, the interviewers usually ask questions about tree,graph and linked list traversals using pure C and pointers. In the 3 years I've spent in my job, I've never had to actually
find the path to the 1st node to the right of a given node which is a multiple of
the given node
for example
I ... |
I'm a hobbyist programmer working on my own projects. I use Java.
Until recently my average project was only 1000 LoC. My latest project however is bigger and is starting to exceed 1500 LoC. I estimate it will reach about 2000.
I've never organized my classes into packages. All of them were always in the default packag... |
We develop a closed source product and customers want to add two parts:
Calendar
Contacts
Tine 2.0 would provide this, but we want to use it as a library.
Since Tine 2.0 uses the AGPL licence, we need to open source our code, if we would use some kind of linking.
How can we use Tine 2.0 in our closed source software... |
So I think I'm in the right place to ask this question. Its fairly conceptual.
I love web development, I work in ASP.NET MVC 3/4/5 C# and have created industry standard applications such as CRM's and Test Case Documenting.
I'm very aware of the limited capabilities of Web Application over Desktop Applications. Desktop... |
What does the word Representational State Transfer (REST) mean actually ? Now I don seem to find any relation between its naming and its working, I have understood that it is a architectural style for programming web service and I've read all the hush hush stuff but can't find a reason behind its naming.
What is Repre... |
I should preface this by saying that I'm mostly a front end web developer, trained as a musician, but over the past few years I've been getting more and more into computer science.
So one idea I have as a fun toy project to learn about data structures and C programming was to design and implement my own very simple dat... |
I have three simple classes. LoginController, UsersCatalog and User. UsersCatalog has an array of User. I have to represent a simple process of login.
LoginController has a method login(username, password) that simply calls a method authenticate(username, password) with the same parameters.
Now, it's obvious that the ... |
I'm in the process of building a .NET MVC website where a requirement is that admin users should be able to lock accounts to not only prevent future log-ins but to also immediately revoke access to the site for a given authenticated user.
Locking the account is easy, but is there an established method of preventing acc... |
This was more a discussion for what peoples thoughts are these days on how to split a web application.
I am used to creating an MVC application with all its views and controllers. I would normally create a full view and pass this back to the browser on a full page request, unless there were specific areas that I did no... |
Is there a design pattern or well known algorithm to build a simple map with roads and city blocks?
To have an idea of what's my target i describe some of the constraints and the context:
a matrix which represents a (rectangular) map
few possible city blocks represented as rectangles (eg, 4x3, 5x2, 1x6)
few possible r... |
I'm hoping to write a spellchecker for search queries in a web application - not unlike Google's "Did you mean?" The algorithm will be loosely based on this: http://catalog.ldc.upenn.edu/LDC2006T13
In short, it generates correction candidates and scores them on how often they appear (along with adjacent words in the se... |
Given a set of images on a webpage, what's a good way to pick a compelling image that is also representative of the webpage? The use case is displaying an image along with a description of a URL to a page, after a user includes it in a status update.
I've found some techniques to find the most interesting part of a sin... |
We have a Django-based website for which we wanted to make some of the content (text, and business logic such as pricing plans) easily editable in-house, and so we decided to store it outside the codebase. Usually the reason is one of the following:
It's something that non-technical people want to edit. One example is... |
You are writing a videogame about trading beans. Red beans, black beans, pinto beans, you name it. As everybody knows all beans are the same. You write the "Inventory" class for a trader in that videogame as follows (skipping all the null checks):
class BeansInventory{
HashMap<BeanType,Integer> amountsOwned;
publi... |
I have a situation where I have several text documents and I want to create a list that contains the words in those documents. But I also need to record several properties of each word. These properties are
The index of the word within all the words in the documents (Integer)
The word itself (String)
The document th... |
Given a two dimensional matrix of alphabets, search the given word in all directions. Below is an example to search for the word "TEAM":
No of occurrences is 4 in matrix below.
What is the best approach to solve this?
Its not a dictionary word. Its simply sequence searching in all the directions.
|
Say I have 9 jobs with estimates of how long they will take to complete, and 3 queues that process these jobs - this constitutes one batch. Note that all the jobs are allocated to a queue beforehand and not at run-time. So with poor-scheduling, some queues may remain idle while others continue to process a job.
All t... |
I am working on an application that uses Google Cloud storage to serve my app images. The images are submitted from an android app to google app engine code that is supposed to upload the images to GCS then create a link and update in my db. This works fine.
The challenge am facing is I need different devices to serve ... |
It's my first time using sql server, I usually go with MySQL, so I'm unsure how to do this.
The project I'm assigned will be deployed to multiple platforms particularly PC's with different SQL server ranging from 2008 to 2014, some of them are express edition, some are standard edition and in Windows ranging from XP, 7... |
Following is a question that I had posted at the incubator-storm-user mailing list (verbatim). I had decided to open up the question here as well, because it also contains a conceptual side to it, which might be answered by non-storm users.
I am no python expert and am also a newbie to storm.
I have gone over the
st... |
I started coding a chart library on top of d3js: My chart library.
I read Javascript API reusability and Towards reusable charts. However, I am NOT really following the suggestions because I am not really convinced about them.
This is how my library can be used to create a bubble chart:
var chart = new XYBubbleChar... |
All products seem to be released with a license, I'm curious to know how one would go about finding out the license of technologies like HTML, CSS and JavaScript?
|
Say, I am using a simple recursive algo for fibonacci , which would be executed as:
fib(5) -> fib(4)+fib(3)
| |
fib(3)+fib(2)|
fib(2)+fib(1)
and so on
Now, the execution will still be sequential. Instead of that, how would I code this so that fib(4) and fib(3) are calculated by s... |
Maybe I miss something, but do the so called markup languages have the equivalent concept of semantics that you can find in C or C++?
Judging from how you parse the language, you don't really have too many options, there isn't too much context, you just parse your tokens and apply them to the source code.
I'm tempted t... |
Is there an organization similar to W3C that creates standards for programming languages?
If so, are there any programming languages, like browsers would using W3C standards, that implement these standards?
I have done my own research and I have been unsuccessful thus far hence the question. The answers and most of th... |
If I write a library that is released under the terms of the GPL v2 (or higher, at option); may that library depend on another library released under the LGPL v3 (or higher), without implicitly enforcing GPL v3. That is, I am purely linking to that library.
Reading this and this, I understand that the LGPL v3 and GPL v... |
I've been recently assigned for a new high-performance C++ project (finance) together with 3 other guys who, like, me, refer to themselves as "primarily C/C++ programmers", meaning, all of us have also done Java & other stuff, we all have comparable experience (8 to 10 years) and have successfully collaborated for the ... |
Say you have a project that is a tangled mess. No code structure and breaking one area breaks the entire thing. Fixing one area breaks another area. The closest you can fix things is writing the code that's almost like redoing the entire thing. But then, the release is in the next week.
Here's some facts that actually ... |
Usually event listeners shouldn't outlive object that registered them.
Does it mean that event listeners should be held by weak references by default (stored in weak collections by the object listeners are registered on)?
Are there valid cases when listener should outlive its creator?
Or maybe situation like that is a... |
Recently I started same projects to improve my programming skills, so I tried to develop a point of sale software. I started to bay the required hardware (ticket printer, Barcode Scanner….) to make my personal lab, but I’m unable to find how to implement the payment process using an ATM terminal.
Is there any possibi... |
I have been in the web development industry for around 5 years now, always working in an open source environment. Mostly apache, mysql, and php with a little bit of ruby, using git for version control. But recently took up a job where development is entirely C# ASP.NET MVC.
While I was able to pick up the language etc ... |
The title is very bad so let me explain what I need to know. I have a server with let's say different images. What I want to achieve is be able to embed a frame, into any HTML site, and be the server the one that determines what image to show on that remote frame.
Imagine the situation where you want to add a piece of... |
This question is about whether to make a nested class in Java to be a static nested class or an inner nested class. I searched around here and on Stack Overflow, but couldn't really find any questions regarding the design implications of this decision.
The questions I found are asking about the difference between stati... |
While reading about strict mode on MDN I really was surprised to read the following near the end of the page, quote:
Browsers don't reliably implement strict mode yet, so don't blindly
depend on it. Strict mode changes semantics. Relying on those changes
will cause mistakes and errors in browsers which don't imple... |
Will the code
int a = ((1 + 2) + 3); // Easy to read
run slower than
int a = 1 + 2 + 3; // (Barely) Not quite so easy to read
or are modern compilers clever enough to remove/optimize "useless" parentheses.
It might seems like a very tiny optimization concern, but choosing C++ over C#/Java/... is all about optimizati... |
I have a SQLite Database in my Android app with a "Question" table, among others. That table contains "default" or "pre-loaded" data (in this case the questions asked by the app).
Some of its columns are "technical" or "internal" data to be used behind the scenes - like the number of points the question is worth, the t... |
I am currently creating something that has been inspired by another library. It is a complete rewrite on another platform - yet, has the same purpose and functionality and is written in the same language. As far as I understand it, this is still considered a derivative work.
The original piece is licensed under the Apa... |
I understand the intent of the open-closed principle. It's meant to reduce the risk of breaking something that already works while modifying it, by telling you to try to extend without modifying.
However, I had some trouble understanding how this principle is applied in practice. To my understanding, there are two ways... |
How can I test (what tools do I use) if my reference graph is correct and if objects are released at appropriate times (and there are no memory leaks)?
In my case I'm using Java, but answers related to another languages are welcome too...
|
I am Elvis, trying very hard to learn to be Einstein. I work for Mort.
What the hell is this crazy idiot talking about!?!? (You only need to read the first few paragraphs)
If you don't feel like reading that link, basically, I am a professional programmer, and my boss is (this is scarily accurate):
the professional li... |
I recently came across a Java construct I have never seen before and was wondering whether I should use it. It seems to be called initializer blocks.
public class Test {
public Test() { /* first constructor */ }
public Test(String s) { /* second constructor */ }
// Non-static initializer block - copied into ever... |
I'm designing/building a web application that will be available in two languages: French/English. I placed i18n mechanisms to extract every text from the application. But what about the user's input?
I have some "system settings" that currently ask for both lang for their labels...
But I can't obviously ask a translati... |
Note: this is mostly a technical question but I have to explain the business background first.
THE BUSINESS PART
I have a really interesting situation on my hands, at least interesting for me.
For the last 3.5 years I've been building a business/application called Snip Salon Software. It's scheduling software for hair ... |
I'm a strong advocate for Software Engineering, but even I must admit that we do not have many of the same tools, priniciples, and laws as other engineering disciplines. Why is this? And, what should we do to get there?
|
My understanding of Akka is that it allows you to define groups of mini-threads ("Actors") and then have them communicate with each other (and do work) using events.
My understanding of ZeroMQ is that its a TCP socket library that allows threads to communicate with each other over TCP/ports.
My question: these seem lik... |
I have a lot of calls to NSLog(...). I need to change all of these calls to CLSNSLog(...).
So I added this to my precompiled header (.pch):
#import <CrashlyticsFramework/Crashlytics.h>
#define NSLog(...) CLSNSLog(__VA_ARGS__);
Everything works. I don't see any drawbacks to this -- the team can continue to use NSLog(..... |
Some of the legacy code I've inherited uses the fact that C# supports multiple assignment to write code like:
void DisableControls()
{
ddlStore.Enabled =
ddlProgram.Enabled =
ddlCat.Enabled =
btnSaveProxy.Enabled =
btnCancelProxy.Enabled ... |
Consider the following situation:
She uses Django (BSD) for a website.
She uses Haystack (BSD) for textual search in the website.
She uses the backend of haystack, xapian-haystack (GPL), to use Xapian (GPL) as the search engine of Haystack.
Question: must she distribute the source code of her website under GPL (or eq... |
Java allows this:
class X{
int i,j[]; // j is an array, i is not
}
and even worse, it allows this:
class X{
int foo(String bar)[][][] // foo actually returns int[][][]
{ return null; }
}
Okay, the reason for this might be that it was lent from C/C++. However, Java meant to be easier than C/C++. Why did t... |
I have written a library that is quite extensive and has taken up a lot of my time, so I would like to license it properly. The LGPL seems to have many of the things I want, but does not work with Javascript or other interpreted languages.
Here are the things I want my license to say:
My library can be used in commerc... |
Sometimes we have code like this:
private static final List<Goat> INEDIBLE_GOATS = [GOAT_A, GOAT_B, GOAT_C]
void eatGoat(Goat goat) {
if(INEDIBLE_GOATS.contains(goat)) {
throw new CantEatGoatException();
}
...
}
Should it best tested (along with whatever tests for the actual eating) as:
for(Goat goat... |
I read somewhere that the chain of inheritance breaks when you alter a behavior from derived class. What does "altering a behavior" mean here? Is overriding an already implemented method in base class considered as "altering behavior"? Or, does the author mean altering method signatures and the output?
Also, I ready Du... |
I am using the XNA Framework to make a learning project. It has a Point struct which exposes an X and Y value; for the purpose of optimization, it breaks the rules for proper struct design, since its a mutable struct.
As Marc Gravell, John Skeet, and Eric Lippert point out in their respective posts about GetHashCode() ... |
I've the following Interface.
public interface ValueInterface
{
long getValue();
}
And the class:
public class ValueCreator implements ValueInterface
{
private static long value = 0;
public void setValue(long valueInDollar)
{
value= valueInDollar;
}
@Override
public long getValue()
{
return... |
I was just googling around to find a good definition of front-end developer and the definitions that I found were pretty much "a guy that does HTML/CSS/JavaScript (jQuery)".
But I think this is no longer the case. Today we have very complex interfaces, say a single page BackboneJS app that require a lot more than just ... |
Should you throw an exception if a method's input values are out of range? eg
//no imaginary numbers
public int MySquareRoot(int x)
{
if (x<0)
{
throw new ArgumentOutOfBoundsException("Must be a non-negative integer");
}
//our implementation here
}
Now this method should never be called with a ... |
I considering making my application open source on github. I don't intend to sell it (neither in binary form nor source code form). It probably isn't even useful to a lot of people except maybe for learning purposes.
The application is developed in .NET 4.5 (WPF). It doesn't use any external libraries. Only pure .NET l... |
Let assume we have the following service whose responsibility is to generate Excel reports:
class ExcelReportService{
public String generateReport(String fileFormatFilePath, ResultSet data){
ReportFormat reportFormat = new ReportFormat(fileFormatFilePath);
ExcelDataFormatterService excelDataFormatterSer... |
I am working on a project where there will be plenty of static options being stored in the database. I looked at using Enums for this, but do not see how they could be useful.
They do not create any kind of look-up table, just reference a number in the table which can be used in code as an enum option. The number is me... |
I'm currently checking a older piece of C# code used to maintain a login session.
public static ZRWebserviceSession CurrentSession { get { return _currSession; } set { _currSession = value; } }
private static ZRWebserviceSession _currSession;
public static bool IsSessionActive()
{
if (_currentSession == null || !... |
I'm facing the following situation:
There are 2 different teams working on the same project using Scrum, and every now and then, bugs related to user stories developed by team "A" are being assigned to team "B". We're used to fixing bugs made by other people when they belong to the same team, but things get a bit mor... |
I am using a tree view in c# and i am creating custom icons for the nodes.
Let say this is my hierarchy with a node that satisfies a certain condition:
Root1
|_Ax
|_Bx1
|_Bx2
|_Cx1
|_Cx2(condition true)
|_Bx3
|_Bx4
|_Ay
|_By1
|_By2
|_Cy1
when the tree it's collapsed I don't know if some inner child satisfi... |
I have a number of operations that need to be performed, in series, on the same set of data. As the operations progress, later operations require information from the prior operations. So the initial object passed in to the first method snowballs as it collects results and metadata.
At first I was passing around both... |
When running a site that has a CRM with a logging facility that logs users interactions (someone changing a name, address or user permission etc), is it better to log system interactions (automated tasks and alike) as a fake user set up as a constant either in a "users" object, or as part of the application settings so... |
Eric Lippert has written about cargo cult programming, and Steve McConnell has tackled the subject from a Software Engineering point of view.
Eric provides a fairly succinct description:
They understood the form but not the content. There are lots of cargo cult programmers -- programmers who understand what the code ... |
I've two C++ classes with a relation: a container class which has a list of items. For example a library has got many books. The classes are the library and the book.
Now from the external world I have to create, update and delete books. In addition there other classes that are interested to know when an event on a bo... |
Take the (unprecedented and groundbreaking) example of the calculator:
public class Calculator
{
public double Add(double augend, double addend)
{
return augend + addend;
}
}
When I write calculator.Add(val1, val2) which of the following am I doing?
Telling the calculator to add the inputs
Adding... |
In some languages (C++, Java, Ruby, etc.) an assignment returns a value and can be used in an expression:
x = (y = z); // ok, 'x' gets the value of 'z'
In other languages (Ada, VHDL), an assignment is a proper statement and cannot be used in as expression:
x := (y := z); -- error!
However, in both cases, it is p... |
With Java 8, I've seen more and more articles about the use of Option/Optional. I understand what they trying to represent, and I see many examples of them being used as returns. However what I don't see is them being used as method/function arguments in languages that don't have the syntax for default/optional paramet... |
Say for example I've got a RESTful webservice, and I need to support creating a widget via a POSTed http request. I need to
Deserialize the POSTed widget.
Validate the deserialized widget.
Persist the widget to a backing service.
Send a success response back to the client.
Now, the problem is that my SLA does not all... |
I'm working on a Web app that uses node.js on the server and AngularJS on the client. I'm new to Angular, but enables writing client-side applications that can be more self-contained than some other approaches.
Here is the scenario. On the server, I query a DB and then transform the results into a list of nodes and edg... |
What is a good method of storing JSON data/objects for development and unit testing with angular and jasmine?
I have seen some ways of accomplishing this. However, since I am new to unit testing with JavaScript, I fear going in a bad direction.
Here are some examples of what I'd like to accomplish:
Let's say I want t... |
I was reading a question and one of the comments mentioned that "The binary flag is only relevant on Windows". Given the context of the question and answer, I interpret this statement as on non-windows machines, we don't need to specify text or binary mode when doing file IO
The context of the question is to read all b... |
Coupling mean "dependency". It is the case of "Class A" dependent on "Class B" to get the job done.
Tight Coupling is when "Class A" Use the implementation of "Class B".
Loose Coupling is when "Class A" Use the abstraction on "Class B".
Is this the correct understanding or is it oversimplify ?
|
A brief background on this specific question:
After meeting with a client and hearing all of their requests,
requirements, and other comments about a specific software job,
planning out the software functionality, design, and basic user experience,
the client comes back with a comment regarding, "That is not wha... |
How does Lexer/Parser work in a 2D programming language like Funciton in order to transform such an unusual source-code to the correct AST?
|
Suppose we have the following class hierarchy:
class Object {
public:
virtual void update() {
// Update position
}
};
class Rocket : public Object {
public:
virtual void update() {
Object::update();
// Orientate towards target
}
};
class SparklingRocket : public Rocket {
public... |
In my company, we have had a policy of tagging every release. Someone new joined, and he suggested that instead of formally using a Tag, we could just leave a comment for the release build when it is checked in. I like using a Tag, but, obviously, we can also get to the source code for a build also by looking for the c... |
Assume you have two classes, a Manager who holds a set of Clients and the Client holds a backreference to the Manager.
class Manager {
public:
void addClient(Client* client) {
m_clients.push_back(client);
client->setManager(this);
}
private:
std::list<Client*> m_clients;
};
class Client {
p... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.