instruction stringlengths 34 19.9k |
|---|
One of the reasons why programmers prefer SVN over CVS is the former allows atomic commits ? What does this mean ?
|
I'm a software developer who is willing to improve his software design skills. I think software should not only work but have a solid and elegant design too to be reusable and extensive to later purposes.
Now I'm in search of some help figuring out good practices for specific problems.
Actually, I'm trying to find out ... |
One of the advantages of SVN over CVS as given here is cheap copying and branching. What does "cheap copying and branching" mean in SVN parlance? How is it different from CVS copying and branching?
|
I am trying to solve a problem of finding a max repetitive sub-tree in an object tree.
By the object tree I mean a tree where each leaf and node has a name.
Each leaf has a type and a value of that type associated with that leaf.
Each node has a set of leaves / nodes in certain order.
Given an object tree that - we kno... |
Let's say you write an application that can be configured by the user. For storing this "configuration data" into a database, two patterns are commonly used.
The single-row table
CompanyName | StartFullScreen | RefreshSeconds | ...
---------------+-------------------+------------------+--------
ACME Inc. ... |
We have a development process which is completely manual. No unit tests, interface tests are manual, and merging and integration are as well. How could we go from this state to implementing continuous integration with full (or at least close to full) automation of build and test? We have a pretty intense development cy... |
I took a look in Stack Overflow most popular profiles, and then I did the same in several other sites, and then I took a look in job postings in several boards, mostly out of curiosity, because I noticed this:
If you work with Java, .NET or other managed languages, or you work with stuff that is popular for web develop... |
When I read about the LCC (Windows) compiler, I found out it has the implementation for operator overloading.
However, after a bit of Googling, I've confirmed that operator overloading isn't supported in standard C, although someone's comment mentioned LCC is ANSI-compliant.
Is LCC really standard C or is it just like... |
Our product is a web based course managemant system. We have 10+ clients and in future we may get more clients. (Asp.net,SQL Server)
Currently if one of our customers need extra functionality or customised business logic, we will change the db schema and code to meet the needs.
(we only have one branch code base and on... |
An old adage that many programmers stick to is "It takes a certain type of mind to learn programming, and not everyone can do it."
Now I'm sure that we all have our own trove of anecdotal evidence, but has this been studied scientifically?
|
My coworker and I have different opinions on the relationship between base classes and interfaces. I'm of the belief that a class should not implement an interface unless that class can be used when an implementation of the interface is required. In other words, I like to see code like this:
interface IFooWorker { vo... |
I'm currently working some testing for a particular area of an application. I had to write some automated tests for a particular feature but due to the circumstances, this was not easy to do. When I asked one of the other testers about it, he mentioned that the same features exist in a sister application our company pr... |
I am trying to understand how to design node.js applications, but it seems there is something I can't grasp about asynchronous programming.
Let's say my application needs to access a database. In a synchronous environment I would implement a data access class with a read() method, returning an associative array.
In nod... |
I have searched around but I don't seem to be able to get a clear answer on my questions that I understand.
I want to use the Xuggler library in my application, which is licensed either GPL or LGPL depending on whether I compile it myself. I don't intend to edit the library
If I compile it myself and thus get a LGPL ve... |
Since programming languages initially only used lines of code executed sequentially, and it evolved into including functions which were one of the first levels of abstraction, and then classes and objects were created to abstract it even further; what is the next level of abstraction?
What's even more abstract than cla... |
I'm making a 'Pokémon Storage System' with a Client/Server model and as part of that I was thinking of storing an inventory file on the users computer which I do not wish to be edited except by my program. An alternative to this would be to instead to store the inventory file on the server and control it's editing by s... |
is ok to open fifo with one FD and share it with multiple threads?
or is it better to have multiple fds opened for the same fifo and share these fds with the threads?
BTW, I'll be doing write and read.
The environment is linux, C, pthreads
|
First, this is not a homework assignment, but you can treat it as such ;). I found the following question in the published paper The Camel Has Two Humps. I was not a CS major going to college (I majored in MIS/Management), but I have a job where I find myself coding quite often.
For a non-trivial programming prob... |
Although this is a general question it is also specific to a problem I am currently experiencing. I currently have an interface specified in my solution called
public interface IContextProvider
{
IDataContext { get; set; }
IAreaContext { get; set; }
}
This interface is often used throughout the program and henc... |
It’s a well-known fact in software engineering that the cost of fixing a bug increases exponentially the later in development that bug is discovered. This is supported by data published in Code Complete and adapted in numerous other publications.
However, it turns out that this data never existed. The data cited by Cod... |
I have a very simple working console application written in C++ linked with a light static library. It is just for testing purposes. Now that the coding part is done, I would like to know the process of actually deploying the program. I wrote a very basic CMakeLists.txt that create makefiles or VS projects to build the... |
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... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.