instruction stringlengths 34 19.9k |
|---|
I'm developing some application with clojure(lisp) alone in my team. It starts as small application. No problem. But as it's having features and extending the area, it's becoming important program.
I worried about maintenance or something. No one in my team knows clojure or lisp nor is interested in languages such as t... |
In C#, with an inherited class set -- when calling a method should we use keywords 'base.methodname and this.methodname'... irrespective of whether it is a overridden method or not?
The code is likely to undergo changes in terms of logic and maybe some IF-ELSE like conditions may come in at a later date. So at that tim... |
I am pretty comfortable with dependency injection using NInject in MVC3. While working in an MVC3 application, I developed a custom Controller Creation Factory using NInject, so any controller that is created will have dependencies injected in it through this Controller Factory.
Now I am starting to develop a windows a... |
I need to create some Java interfaces to query some database tables and some web services for new framework I'm building. In a previous Java Spring web application, I used Java Beans to handle the results of the query.
In this case, I need to write some interfaces to publish the methods that will be available to end us... |
I am working on Application which goes and get's market data from different sources, I am using polling mechanism where vendor/broker put his data file and my application would go and hit that ftp location multiple times during the day to get data.
Right now, we hit location every 5 mins and if data is not there then ... |
I recently designed a time series module where my time series is essentially a SortedDictionnary<DateTime, double>.
Now I would like to create unit tests to make sure that this module is always working and producing the expected result.
A common operation is to compute the performance between the points in the time ser... |
I am going to build a Windows Communication Foundation (WCF) service using Microsoft Enterprise Library for caching. I am wondering whether or not I should put the cache in the service layer. If I do this, do I have to use InstanceContextMode = Single for this to work? Are there better alternatives, because I prefer us... |
Every few years someone proposes tighter regulation for the software industry.
This IEEE article has been getting some attention lately on the subject.
If software engineers who write programs for systems that expose the public to physical or financial risk knew they would be tested on their competence, the thinking ... |
I want to write something that takes a sentence and identifies each word it contains and defines what part of speech each word is.
For example
Hello World, I am a sentence
would return this
verb noun, pronoun verb adjective noun
Ideally, I'd like to eventually take it one step further and take a sentence and progra... |
Possible Duplicates:
Are there advantages to using a DVCS for a solo developer?
As a sole developer (for now), how should I be using Git?
I'm a solo developer, and I've been quite comfortable with SVN for a number of years.
My workflow has been the following
create a project on dev workstation and make changes
commi... |
I'm designing a programming language which has three kinds of quoted entities: strings and characters as in C, and symbols (interned strings intended for use as lookup keys and such) which I consider one of the most endearing features of Lisp. Currently I have the following syntax for these:
"*" // String
'*' // Charac... |
A UserControl cannot be dragged-dropped onto a winform. Instead, I must compile the assembly add it to my toolbox, then I can drag it onto a Form.
Doing this toolbox approach just to test out a control and then "tweak" it repeatedly is quite cumbersome.
Right now, I plan to simply have this toolbox item pointing to ... |
This was previously posted in StackOverflow, I just moved to here...
I am using VS2008, MVVM, WPF, Prism to make a mutiple window CRM Application.
I am using MidWinow in my MainWindow, I want
Any ViewModel would able to make request to MainWindow to create/add/close MidChildWindow, ChildWindow(from WPF Toolkit), Wind... |
We've been building a CRM for a client. Now that the first major phase has been finished, and a second one agreed upon, the client would like to pick up some of the work, making minor amendments to the database schema and business processes the first phase while we build the second.
I'm undecided whether this is at all... |
I know sessions are in PHP, ASP, ASP.NET and probably in many other languages. In most cases session solve a problem which the language itself fails to solve. I am wondering
Who created sessions and when were they first introduced?
Was it a feature of a particular language first?
Is the use of sessions limited to web ... |
This is more of mathematical question than an algorithmic one; nevertheless it will be implemented in php.
I have an array of N tasks. Each task has taken t time to complete(e.g. task 1 has taken 5 hours to complete.) Now, in order to review that these tasks were completed correctly, I have to assign a certain number o... |
A website I'm making has been growing larger and larger feature wise. Which means there's more URL parameters that get passed from page A to B or B to C, etc.
Does anyone have any tips for how to keep track of and use parameter keys and expected values?
Ex. Say a url I need to build is www.example.com?type=this&mode=a
... |
In a blog post by Andrew Hay, the following axiom was posited:
It costs significantly more to fix a bug at the end of the project that it does to fix the same bug earlier in the project.
However, this doesn't seem certain, especially after reading a blog post on Less Wrong, and the data I've seen to back it up is ext... |
I only have a verbal hosting agreement in place with a customer. Unfortunately the relationship has deteriorated to the point of no return, and I'd like to end the hosting agreement and hand them over the root password. This is a virtual dedicated server I pay for, and then they pay me.
They are fine with this, but t... |
I'm a professional C programmer and a hobbyist Obj-C programmer (OS X). Recently I've been tempted to expand into C++, because of its very rich syntax.
So far coding I haven't dealt much with exceptions. Objective-C has them, but Apple's policy is quite strict:
Important You should reserve the use of exceptions for pro... |
Both Windows Phone/Xbox and Android lack support for generational garbage collection. This is frustrating for a lot of programmers. There seems to be a legitimate engineering reason to it, but I can't figure it out.
Current phones have more memory and probably better CPUs than the desktops/laptops running .NET 1.1 with... |
I think our company can create challenges designed to find software engineer candidates who are:
Good at solving problems, not at wowing recruiters.
More likely to be afraid to come up to us at a career fair.
More likely to be underutilized in their current programming job but are too introverted to do anything about ... |
I have been taking Advanced Placement Computer Science for this past year in high school. It seems as though we are taught simply to memorize code and functions and not how to be resourceful and efficient in using documentation and the like.
Practically, I imagine many (if not all) programming jobs would allow you to f... |
I'm building an app and the end user will be using an Admin screen to schedule content on the front page. They will be choosing two dates, a start date and an end date.
Obviously I don't want to cycle through the entire collection to see if todays date is between any of the start or end dates every time the front page... |
Suppose I have a PHP object, let's say: companyObj.
class companyObj
{
private company_name;
private company_address;
public function print_contact()
{
//logic
}
}
This is the object I wrote, and shared with the teammates. Now I would like to make it more powerful, like this:
class companyObj
{
privat... |
I'm working on an application and I need to use some existing components such as libraries and JavaScript frameworks that are covered by licenses. My application will be paid (not free) and closed-source.
Can I use components in my app that are under one of following licenses:
MIT
Apache
BSD
|
I was reading this transcript of an interview with a GitHub developer and he was describing how they use Redis:
Q: You mentioned using Redis. How do you use that?
A: We use Redis for
exception handling and for our queue. We tried a lot of Ruby-based
queuing mechanisms. Chris wrote an abstraction to the queuing
... |
What is the best practice to manage the case where two customers add in the same time a product whose the stock was only 1 ?
Must there be a check in the code of the basket to avoid one of these 2 customers to add the same product ?
Or does this check must be carried out in the payment phase in doing for instance a se... |
I'm writing a Java framework to manipulate a large amount of data in-memory, where many "cells" that are near each other will have the same value.
I'm looking for algorithms and/or techniques specially designed to eliminate those duplication while maintaining fast in-memory read access speed. That is, techniques that k... |
Possible Duplicates:
How to approach refactoring an existing web application?
Starting a coherent architecture in a legacy application
We have a fidelity system running on the company I work for.
It is written in C# and Flex and my boss want to change it to HTML5 and PHP to serve more customers and he is worried abo... |
I am writing a non-web application (written in java) which will allocate cloud resources. I want to make it compatible with as many providers as possible. Is it wise to use OCCI interface? Will it be too complicated?
|
Today I found what looked to be my supervisor's password in some code in version control. The password is to a database. He is very experienced and has explained before how to avoid having passwords in the source code.
How should I handle this situation? Is there a best practice about preserving evidence of a security ... |
Comparing WPF and Asp.Net Razor/HtmlHelper I find WPF/Xaml to be somewhat lacking in creating views.
With HtmlHelpers you could define in one place how you wan't to represent specific type of data and include elements set from the DataAnnotations of the property.
In WPF you can also define DataTemplates for data but it... |
I am new to programming, and at an interview I got a question on regular expressions; needless to say I couldn't answer. So I was wondering whether I should learn regular expression? Is it a must for every programmer of all fields? Or it is a must for programming for some particular fields?
Related questions:
Why are ... |
I'm working on a client library to interface with my company's api, and we generate a user ticket when the user logs in using the api.
Obviously I don't want to send the user ticket to the client for resubmission on subsequent requests - is it (relatively) safe for me to cache this value in $_SESSION for later calls?... |
We're learning that most languages are classified as either of the two, "relation based" or "high level". I've never used SQL before, but from reading its syntax it seems more like the imperative/high-level syntax than functional/relation-based (Lisp, Haskell)??
Or it could just be that my interpretation of my professo... |
Every time I start a project, I decide at crucial moments to completely change the core classes and get caught up in obscure errors. I try planning in advanced and usually start off on a good foot but then I go to it another day and decide I would like to do it 'another way'.
Is there a standard, of sorts, when startin... |
As a grad student, I find it more and more common for prestigious companies (like Google, Facebook, Microsoft,...) to put algorithm questions in their test and interviews. A few startups I applied to also asked about algorithms. I wonder if algorithms fluency is the most important thing for software developer in those ... |
When working with annotations on entities in JPA, do these entities belong to the model layer or the persistence layer?
Does there have to be some kind of clone of the entities (simple JavaBeans) in the model layer so it could be decoupled entirely from JPA?
What is the best practice here?
|
By default, any file that PHP touches is usually suffixed with .php. It's universally understood by Apache / Nginx as the default for PHP files and most setups expect PHP files to end in this extension. In short, .php is the standard for everything PHP.
However, I'm wondering if perhaps view files should have a differe... |
So I'm curious:
I've implemented Lua within C++ a few times before, and while it was relatively simple, it still didn't harness the power that I would have liked.
I love how eclipse works, including javadoc locations, etc. and I was wondering if there was a way to integrate Java into a native application (that is cros... |
One of my friends has been laid off. When I talked to him, he said they didn't let him take a copy of anything he worked on. When he asked how to show what he worked on to another employer in an interview, he was told that he will have some explaining to do.
Should we, as programmers, be allowed to take samples of our ... |
While researching Metro and WinRT I haven't been able to find anything regarding enterprise apps and database access. All I hear about is the front end development.
Does anyone have any idea of how a Metro app will access a database server? Will this still be done through ASP.Net and ADO.Net? If not, then does anyone ... |
I'm working on a view model for a view that presents a dialog with export options. The user selects options then clicks Export. When the view model completes the Export, the calling view model receives notification.
I'm curious which is the better practice for implementing the notification: a traditional event or an Ac... |
I am building a Java applet for a client. Yes, we have gone over all the options, and for the client's requirements and environment, this is the Right Choice.
I am a big believer in using Apache Commons whenever possible to simplify my code and avoid reinventing the wheel. One part of the functionality I need for this... |
Sometimes I find in the source code files comments have quotation marks like these ,notice the ` :
`help'
``help"
For example, these are comments from GNU cat source code file, cat.c:
/* Plain cat. Copies the file behind `input_desc' to STDOUT_FILENO. */
>
/* Select which version of `cat' to use. If any options... |
Correct me if I'm wrong but I've heard that communicating with a database in Windows 8 will more than likely be done with WCF when working with C#/XAML.
If this is true then will this also be the case when working with HTML5/JS?
|
I've seen this code referenced in two different places, yet I haven't seen anybody bring this up, but it seems that on line 00339 there is an empty if block and I just copied the code to compile try it out but it won't even compile cause of that.
if (frame_count >= STREAM_NB_FRAMES) {
/* no more frame to compress. Th... |
I would like to create a budget app for Android. Obviously, to be competitive, I would need to allow users to get data from their bank. For [huge] security reasons, this stuff is not just freely given to any would be developer, but I know it can be done. There are budget apps that connected to users banks.
My question ... |
Where can I find the x86 instructions execution time? How to find out which instruction is faster or smaller?
|
Almost every public CMS out there uses a .php configuration file for the database settings and so on. For example WordPress automatically creates a .php config file when you install it.
Why don't they just use a .ini file? PHP already has parse_ini_file() and I'm sure other languages have similar functions.
|
I always read that composition is to be preferred over inheritance. A blog post on unlike kinds, for example, advocates using composition over inheritance, but I can't see how polymorphism is achieved.
But I have a feeling that when people say prefer composition, they really mean prefer a combination of composition and... |
With a distributed cache, a subset of the cache is kept locally while the rest is held remotely.
In a get operation, if the entry is not available locally, the remote cache will be used and and the entry is added to local cache.
In a put operation, both the local cache and remote cache are updated. Other nodes in the ... |
I work as an analyst for a financial institution, which, due to data sensitivity, will not store any data in the cloud. However, I'm having some success getting my team to use Git for code management. I was wondering whether there was any way to implement Github-like pull requests in our own server. The specific featur... |
My workplace will soon be shifting to the concept of 'activity based working', which moves from the idea of IT teams, BA teams, PM teams, etc to project-based work where people from across all facets of IT and the business involved on a project sit and work together. As a result, you wouldn't be sitting with your norma... |
I'm working in a team where each member is working on an user story. How can we avoid creating duplicate or conflicting functionality?
For example, if my user story requires the creation of class A and my team member needs the same functionality and creates a similar class (maybe with a slightly different name), how sh... |
I have an issue with Roles.IsUserInRole function. It take hell amount of time to just check if the logged-in user is in particular role(typ 3-9 sec). I searched to find a solution and arrived on this but I am not sure If I have fully grasped it.
What I got from the above, A new derived class is created. Inside that cla... |
I have no idea what these are actually called, but I see them all the time. The Python implementation is something like:
x += 5 as a shorthand notation for x = x + 5.
But why is this considered good practice? I've run across it in nearly every book or programming tutorial I've read for Python, C, R so on and so forth. ... |
I have recently developed an application in C# which is supposed to run within the environment of the company i work for.
I could technically generate a Setup or use ClickOnce to handle the deployment of the application, but I am considering basically copying the EXE file into a public directory and have everybody exec... |
For a while I have been trying to learn to write unit tests for my code.
Initially I started out doing true TDD, where I wouldn't write any code until I'd written a failing test first.
However, I recently had a thorny problem to solve which involved a lot of code. After spending a good couple of weeks writing tests a... |
I've been tasked with improving the software development process through the implementation of process improvements, of which we will most likely be using CMMI for Development, Version 1.3 as a guideline and adopting the best practices in whole or in part. What is the best way to introduce standards and process improve... |
I am not so familiar with databases and now I am trying to understand the indexing mechanism.
From what I know, in a RDBMS, indexing on a column makes searching by that column faster. This is also true for the triple stores, only there indices assume you will search(for example) mostly by the subject, then by object an... |
Where previously there was only relational databases, the data store world is now rife with options like Key-Value, Document, and Graph datastores. Unfortunately, every datastore likes to show how it can be used for anything, but none of them really help people figure out when to use one model over another.
So, the que... |
I am currently creating an API and implemented a few basic REST actions such as get, update, search etc. Another program that collects data needs to synchronize these to this API. My current thought is: What would be good practice to synchronize this data?
A few informations:
The amount of data that needs to be synchro... |
I would like to know if it's a good practice or legal to use non-standard tags in an HTML page for certain custom purposes.
For example:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam
consequat, felis sit amet suscipit laoreet, nisi arcu accumsan arcu,
vel pulvinar odio magna suscipit mi.
I want ... |
I'm looking at creating a site where a user could see our product and configure the options or look of it and see an image that represents that.
The way I'm doing it now is if you have Piece A selected and then you choose Texture X, I have an image on the filesystem that is A with X applied to it. I just swap out my de... |
With us moving continually closer to HTML5 in terms of adoption, is writing HTML for validity something the web is rejecting, allowing us to straddle standards as the web continues to be in a perpetual state of transition to the "next" thing?
Is validation important?
If so, what is the net gain?
If not, why not?
|
My top level state machine has some states and edges. I will call this the parent state machine.
A ----> B ----> C
Any state within the parent state machine can be a state machine too. I will call these children state machines.
___________
/ \
A ----> | B0->B1->B2 | ----> C
\_... |
I'm an academic guy, who is now venturing into the software engineering world, puzzled by the fact that many terms seem to overlap each other. I'm reading some books and cannot quite distinguish/correlate a software process model from software engineering methods.
For instance, in Software Engineering Ian Sommerville d... |
I'm looking for a programming judge system which supports putting contestants programs against each other in "matches". The format could be either for example a tournament style or chess ranking, but this isn't that important. A good example would be Google's AI challenge (http://aichallenge.org/)
The only systems I've... |
Alright people. Finally with the help of stackoverflow community i have gathered 20 commercial product selling websites product pages with the following features
Product URL
Product Price
Product Name
Product Category
Product Page Title
Product Page Description
Product Page Keywords
Now with using these features of th... |
My application needs to model of and perform operations on a network with 40 - 50 nodes and typically less than 6 edges per node. Both nodes and edges are objects with around 1K data each. During execution the mapping of the network is frequently changed - nodes added and deleted, edges added and deleted, in addition t... |
Is it a good practice to call the variable a method returns with a variable name result?
For instance:
public Zorglub calculate() {
Zorglub result = [...]
[...]
return result;
}
Or should I name it by its type?
public Zorglub calculate() {
Zorglub zorglub = [...]
[...]
return zorglub;
}
I have... |
I was trying to optimize my Linux server to handle 10,000 threads per process while it does just 382 right now. As per this article the following formula is used to find out total possible threads:
number of threads = total virtual memory / (stack size*1024*1024)
This means threads store all their data in virtual memo... |
Our application is having 2 parts a web app running ROR and a web service running Sinatra. The application communicates with the mobile device for which we use different constants depending on the message we need to the send to the device.
We are currently using integer constants saved up in a module. Eg:
SEND_HI="122... |
From what I know, the session information is usually saved on the server.
In Java the data is handled as a Map which I guess contains the a String identifier and an object reference which points to a memory zone from the server.
Considering that, is it safe to assume that storing a Properties file on the session will n... |
It's a generally considered a bad practice to use the Hungarian notation, but is common to find GUI controls named userNameTextBox and userNameLabel.
Do you put the control type in it's name? Isn't this a kind of Hungarian notation?
|
In an upcoming project I need to create a Twitter like web application where the basic idea is to read / write short messages and status updates (similar to tweets) and group these messages (just like hashtags)
Also users can have followers and can see their status updates.
I'm estimating between 10 - 50 million messa... |
We have a family of apps, all having the same base. Until now I've been developing this base, and the Git workflow was very simple:
Development is done in develop branch
New features are developed in name-of-the-feature branch
Releases are made in release-** branch
Until now, the code was the same for every app of th... |
I've been looking at a few lexers in various higher level langauges (Python, PHP, Javascript among others) and they all seem to use regular expressions in one form or another. While I'm sure regex's are probably the best way to do this, I was wondering if there was any way to achieve basic lexing without regular expres... |
Most of the C# programmers I know embrace one of the common coding standards. However being aware of the standards is one thing, telling the differences is another.
Browsing the common coding standards documents our there on C#, my first reaction was it's more of the same. Admittedly I didn't bother reading everything.... |
I am doing a research paper on programming, and I need to somehow explain assembly... I've never learned the language, but I understand what it is used for and kinda what it looks like...
MOV A,47
ADD A,B
HALT
And from what I understand, it is used for writing some compilers, small bits of code that need to be really... |
I have a web search interface that can compare products in a table. This data set changes a few times a week.
I have been storing a "DISTINCT" list (used for parametric selection) in a cache table. The query is computationally expensive because it involves table joins and thousands of records, hence the reason to cach... |
A manager recently announced that were were spending far too much time fixing bugs. I guess he thinks we should write perfect code all the time (whilst still hitting those impossible deadlines of course!) and it made me wonder what the industry average of time spent bug fixing v writing new code was.
So does anyone hav... |
We have a major problem where I work, and it's name is "customization". We have an old (10+ years) vendor software system that our IT and accounting departments previously loved to customize. Somewhere along the line this software started getting very buggy. Then, I was hired after the bulk of the customization.
Nearly... |
What is the best choice LINQ TO SQL (.DBML) or using ADO.NET with procedures for a database with 29 tables and about 30 concurrent users that will run the system that I am going to build?
I know that ADO.NET is faster than LINQ TO SQL but it is so much simpler to work with LINQ TO SQL. Will LINQ TO SQL handle all the c... |
What does the word domain mean regarding driven design/development?
Not in terms of semantics or a scholarly definition but in terms of how it modifies processes or philosophies?
I was reading a post: https://softwareengineering.stackexchange.com/questions/57828/your-software-problem-solution-approach
I came across t... |
I wont say what "community" because I want a non-biased explanation, but let's say you're building a reusable module and that module requires 3+ dependent modules and removing 1 of them causes a breaking error not only in your app as a whole which uses this module, but the module itself.
From my understanding (which mu... |
In most of the multi-tasking CRM applications I've seen, MdiWindow is used to allow users to open multiple windows at the same time.
But MdiWindow doesn't seem to be commonly used in WPF. Looking through Codeplex, I only found one abandoned MdiWindow project.
In some of the WPF-based CRM applications I've seen, they cr... |
Can someone provide me with a canonical answer on the differences between an Observer and a Mediator, and a summary of when you should use one pattern over the other?
I am unsure of what kind of situation would require an Observer and what kind would require a Mediator
|
This may sound silly or obvious but this is my case; I work at a company that recently implemented SAP and I was the responsible to generate/migrate the master data of the company which let me learn a lot from this system. SAP comes with its own language known as ABAP and since the system went live I've been learning a... |
I'm planning to setup an scalable architecture capable of providing web services on a REST interface where JSON will be sent as a result.
The web services will be quite simple for a CRUD web 2.0 app.
I think javascript (nodejs + mongodb) is a good choice for the following reasons:
Easy to find javascript developers
G... |
I think I understand the actual limitations of compile-time polymorphism and run-time polymorphism. But what are the conceptual differences between explicit interfaces (run-time polymorphism. ie virtual functions and pointers/references) and implicit interfaces (compile-time polymorphism. ie. templates).
My thoughts ar... |
I am working on a C++ project where I have a bunch of math functions that I initially wrote to use as part of a class. As I've been writing more code, though, I've realized I need these math functions everywhere.
Where is the best place to put them? Let's say I have this:
class A{
public:
int math_function1... |
There are a few new HTML5 features that have made it into recent browsers that allow sharing state among tabs, browser windows, same domain windows, etc. So it's probably gotten a little easier to write a web application that keeps a lot of state on the client and also manages state intelligently between tabs and/or wi... |
So we write:
Customer c = new Customer();
Why is the design not such that we write:
c = new Customer();
c.CreditLimit = 1000;
The compiler can work out c points to a Customer and allow Customer's members to be invoked on c?
I know we may want to write:
IPerson c = new Customer();
IPerson e = new Employee();
so as to... |
I know this is more of a lawyer question, however I figure someone here has probably done this and can give me a quick answer.
Lets take a moderately extreme case. I build an adapter for a website that translates the requests and markup into a more formal API. I then take this API I developed and build a mobile app on ... |
Is there any website, like SPOJ and Project Euler, with the test data files available for specific algorithms/data structures?
I know it's a fun challenge to solve those problems on your own, but I am looking for test data files where the algorithm/data structure to use are explicitly mentioned.
"Implement a linked l... |
I'm struggling with a client-server project where I have Java apps out on the Internet that store data to a backend server. The format of this data is well-defined, but the project is constantly evolving, so the definition keeps changing! To cope with the change I defined a simple REST interface on the server that offe... |
Sometimes I hear people say that because of the speed of processors and the amount of memory available, algorithm efficiency and runtime aren't, in practice, of major concern.
But I imagine there are still areas where such considerations do remain of paramount importance. Two that come to mind are in algorithmic tra... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.