instruction stringlengths 34 19.9k |
|---|
Let us suppose we have a set of functions which characterise something: in the OO world methods characterising a type. In mathematics these are propositions and we have two kinds: axioms and lemmas. Axioms are assumptions, lemmas are easily derived from them. In C++ axioms are pure virtual functions.
Here's the proble... |
Possible Duplicate:
What to plan before starting development on a project?
I was wondering when you start developing a software what process should you generally go through to do it?
By this I mean after you get an idea, do you just sit down and start pushing out code directly, or is there some planning process that... |
I'm creating a simple MVC at the moment and am wondering if it's 'correct' to be able to call any model class directly from the controller to get the data to send to the view?
I have the following folder structure:
.htaccess
index.php
/controller
/model
/templates
I also have the needed model classes within the /model... |
We are thinking of doing Continuous Integration with nightly builds here. Some of our sticking points is when to do code reviews. Is anyone out there doing Continuous Integration with nightly builds AND doing code reviews? If you can give a brief outline of your process that would be great. For example, here's what... |
I keep getting the following question in interviews; and judging from the reactions I've gotten, I'm not giving the best answer. "What methodology do you use for developing user interfaces?" Which seems like a rather broad question.
Besides dividing work between markup, stylesheets, and javascript (control logic), what... |
Some context for thisi question: it is not about development time over the entire iteration of development, but just the stage of deploying changes from dev to prod environment. "LINQ" here really means LINQ, ORM, or C# where T-SQL would otherwise be used. And here "stored procs" is just a general term that encompasses... |
I am new to ASP.NET MVC and EF. I read about open source implementations of MVC pattern like Spring, FubuMVC, Castle etc.
I want to know how flexible these alternatives are when compared with ASP.NET MVC. Which one is widely used and whose help is easily available on the NET?
|
I'm VB.NET user and now learning LINQ. The book I'm reading now focus on LINQ 2008 VB.NET. I want to know whether there are changes/improvement in LINQ 2010?
p/s: I'm reading this book: Pro LINQ Language Integrated Query in VB 2008
|
For example, I've got a root object exposed in a SOA service, say Invoice (Invoice has line items as children).
Sometimes, I need to retrieve its detail line items. I'm thinking to make it lazy loading, because it's a traffic overhead to transfer line items every time Invoice is required. But in SOA fashion, it seems ... |
I am talking of stuff related to programming only and not system or network administration.
I am about to finish college and get a programming job, so I am interested to know about this. Although this may seem a subjective question, I think this is not quite and falls in the category of best practices.
I don't think a ... |
I'm looking at a programming language design decision that's difficult to make precisely because there seems to be no objective basis for choosing one option over the other. The question is, given that a language doesn't have a ++ operator, would the better choice for an increment operator be as in C:
a += 1
a += b
or... |
In OO programming, what's the preferred way of handling multiple instances (objects) of a single class? Say you want to write a program where a random number of circles get drawn on screen, where every circle is an instance of a Circle class, and when you click a button, every circle changes color.
How would you do tha... |
I'm a student and I've been programming for not very long.
Particularly, I'm learning CodeIgniter framework - The book I'm reading is "Professional CodeIgniter". In the book, the author mentioned Agile Methodologies ( and I find it somewhat little bit difficult to understand ).
I want to know if it is essential to lea... |
From a security perspective, the special characters like '&' or <b> are a big no no in URLs and query strings. I could find the articles that explained the ways to bypass this restriction, but could find something that explained with example how can this be a security risk.
Please explain the risks of these special cha... |
I am a Hobbyist Java programmer and I would like to further my programming skills by learning C or C++ and Python.
I have read many C vs C++ articles but none of them contain the information I'm looking for.
I would like to know if it is better to learn C or C++. In most articles I read most people recommend C++ sayin... |
I'm currently in the process of what I hope to be a career change into the programming field. Despite my wide range of knowledge in the field and additional exposure to concepts in college (which in the end left a lot to be desired), I feel I might be missing out on what really matters when appealing to employers.
I f... |
I'm creating a UI table component that returns an array of selected indices.
Some typical return values would be
var myRetVal1 = [0];//one value selected
var myRetVal2 = [0,1,2,3,8,11];//multiple value selected
as you can see I'm always returning an array.
I had an idea to return -1 when nothing is selected, but the... |
I have an environment that supports both dictionaries (json style) and databases (not relational or anything, just formatted data by row and column). My application doesn't really need database functionality, butI'm somewhat more comfortable with the database system than I am with dictionaries. Is there a major perform... |
There are several podcasts with lectures from universities. I am looking for "other" podcasts.
So are there any non-lecture podcasts about compiler development?
|
Using pseudocode, what would the code for an echo using recursion be?
UPDATE: Appears I should have been more clear. By echo I mean the pattern sound exhibits when it echos, not echo as in repeatly add one to self where self equals zero. Any thought on what the code would look like for a "real" echo? For example, I'd t... |
I have a member class which stores the IP, and ports used on that member.
Another class P2P stores a list of all the members currently in the network and provides join,leave functionality. What kind of relationship will exist between them in a class diagram?
|
I am trying to spend as much time as I can on GitHub nowadays (even I am the only person in team at work) to really feel how it is going to be like for a real world corporate application.
One question I am having is to controlling the version. Let's say we started a project. Then, team members created some branches and... |
Possible Duplicate:
When to use abstract classes instead of interfaces and extension methods in C#?
When I read and looked at codes using Abstract classes, I was able to justify it because it allows you to add common methods for any subclasses extending the abstract class. So for example, if objects behavior is simi... |
I work for a small company that has had a product development department for quite a while. What we haven't had, however, is a QA/testing group.
We are looking to add a testing group, but are struggling to determine where best to put them in the organizational structure of the company. Specifically, we are going to hir... |
My understanding is that one of the key features of a B-Tree (and a B+Tree) is that it is designed such that the size of its nodes are some multiple of the block size of whatever media the data is stored on.
Considering that, in a memory managed language like java/c#, we don't really have access to how, when and what o... |
I'd like to hear some ideas how to sync calendar events. Say I have two calendars having fields (id, title, start, end, updated, location and description). I'm struggling with starting point. Its easy if all events are new and not overlapping with each other. But say I already have events on calendars, some are suppose... |
I am reading the book The Elements of Computing Systems: Building a Modern Computer from First Principles, which contains projects encompassing the build of a computer from boolean gates all the way to high level applications (in that order). The current project I'm working on is writing an assembler using a high leve... |
Possible Duplicate:
Why does it matter that HTML and CSS are not programming languages?
As I understand a programming language is something that can be used to solve a problem/perform an alogrithm. Then someone just said to me "I programmed a website using HTML, JavaScript, and CSS", and my immediate reaction was HT... |
I am aware of several tools/services that provide DVCS browsing and management such as Bitbucket, Github, Kiln, SCM-Manager and Rhodecode.
However, the use case I am considering is one such that:
Any source code must reside on an employers internal servers.
The solution must be open source.
It should provide a Bitbuck... |
I have been working as software developer for past 4 years on a variety of software products (Financial ERP system, Online Web development, Trading software and now a Supply Chain mgmt software). Most of the work has been in Core Java. Lately, I do feel that I should start looking into specific technical "principles" a... |
I'm wondering if I should use acronyms or initialisms when I list technical qualifications or mention specific technologies on my résumé or CV.
For example:
Entity Framework vs. EF vs. EF (Entity Framework)
Graphical User Interface vs. GUI vs. GUI (Graphical User Interface)
Is there a reason to prefer one version ove... |
I think that it's safe for me to assume that many, if not most, programmers are quite enthusiastic about computers, and even electronics in general. Now, I realize that a programmer should first and foremost keep up with the programming world, which is a difficult task in and of itself: with new languages and methodolo... |
On my resume, I list myself as having "7 years of hands-on experience programming in C".
To clarify, I am a self-taught C programmer with some college courses thrown in the mix. I've worked on some small personal projects, and I consider myself to be more competent than a Computer Science grad with no actual real-world... |
In the process of adapting a "put on clipboard"-solution to new behavior I have found that I need a good programmers clipboard monitor for Windows.
I do not need to have a history of items on the clipboard, but I need to see the details of what is currently placed there, including - this is important - the various flav... |
The problem below appeared on the last Code Sprint 2 programming competition (it's over already). The base cases are clear, but developing an algorithm that solves all possible cases has been a challenge so far.
There are N cards on the table and each has a number between 0 and N
on it. Let us denote the number on t... |
My company has a client (in the US) that currently offers small businesses web-based payroll software. They want to offer small businesses a web-based accounting package that integrates well with their current web-based offerings. The company does have a CPA on staff which is a bonus. To this point they have said it ne... |
I've once heard a Microsoft architect say that, in Quebec, program output must be in French, including the custom log output that would be used by service technicians in other countries who don't speak French or are Quebecois.
Apparently, it's in Bill 101 Article 5. If you read the document correctly (thanks Matthieu),... |
I've come across a job posting that asks for experience with "Scalable Integrated Systems", but honestly that sounds like "generic buzzword," and I'm trying to figure out what the actual work behind "Scalable Integrated Systems" is. What does a "Scalable Integrated System" look like?
Is it making distributed computing ... |
A while ago I decided to learn Haskell to help with learning more "pure functional" ideas that I could apply to F#. Right off the bat it seems as if there's no real types in Haskell like the ones that F# has. I'm fine with that so I wanted to find a way to remove myself from the hybrid OO/Functional design I've used i... |
I am working on an application that I developed a security layer for. It uses the hardware ID of the hard drive, MAC address and another hardware serial key, to lock the software a particular piece of hardware.
I came across sites online, that said I should use fairly weird names for the procedures/functions/variables ... |
I really enjoy watching live code demos, especially when time is focused on what the code is doing instead of what the presenter is typing. Many seem to be using apps to manage their clipboard to paste code into the IDE. What apps are out there for skillfully managing your clipboard to seamlessly do a code demo?
UPDA... |
I realize this idea might seem really foreign but I started thinking about this a bit back.
Far as web sites go, at least in my experience, there is far more time spent retyping things to a String than the other way around. For instance:
Say you have a user model:
user
int UserId
And I wanted to log the user in:
V... |
Or more completely "What are the trade-offs and questions that should be raised when trying to decide the bundle structure of an OSGi application?"
Our existing OSGi bundles have tended to be quite fat: basically an API bundle and an implementation bundle, but with a lot of functionality. That has advantages in terms o... |
For me as python programmer having a formal definition for the term "pythonic" would be much more important and less subjective compared to asking more rhetoric (non-formal) questions. This may lead to better communication by argumentation being less subjective (as discussed in here).
PEP8 by Guido is assumed as a star... |
Does anyone know the difference between those two?
They are both created by iterative approach - giving successive revision after each iteration. They both have the initial idea->analysis->(outline)design phases.
|
I'm starting a new project and using SVN (with Tortoise) as my Version Control System. I was wondering if it was possible to also maintain a SQL Server Database using the same system.
I'd want to version my tables/functions/views/procs/triggers/etc. but not my data as it's all going to be test data anyway. I'm not real... |
I am looking for the right word to describe a function and its complement.
Here I am looking for the proper word to describe a couple of functions when applied in sequence the system reverts to its original state.
Marshalling and Unmarshalling would be a subset of this
Add and Remove
Idempotence comes to mind though ... |
What are the top reasons to write obfuscated code, in terms of a real benefit to the people developing the code, and the business that runs that code (if the code in question is in fact commericial code)? Are there documented cases (available online in some location) which describe when obfuscation did more good than b... |
Recently I was faced a question about whether a simple calculation should be put in the Entity layer, or should the Entity be pure for just storing the raw data and leave the calculation logics in the business layer.
So my question is whether it is sensible to encapsulate simple calculations in the properties in an ent... |
I have a non-binary tree.
I want to find all "sub-trees" that are connected to root.
Sub-tree is a a link group of tree nodes.
every group is colored in it's own color.
What would be be the best approach?
Run recursion down and up for every node?
The data structure of every treenode is a list of children, list ... |
I have been working as a software developer for many years now. It has been my experience that projects get more complex and unmaintainable as more developers get involved in the development of the product.
It seems that software at a certain stage of development has the tendency to get "hackier" and "hackier" especia... |
I'm currently working on a project where there is a requirement to dynamically composite multiple synchronised video sources onto a single canvas. The initial prototype I put together loaded the video into HTMLVideoElements and then used requestAnimFrame (via Paul Irish's shim) to draw these onto a single canvas and ma... |
As I write, we're 10 days into 2012. I bet many programmers are editing the copyright string at the top of their source files to something like:
// Copyright 2008, 2010-2012 Some Company Unlimited
Your version control system knows when files were modified so surely it can help write or rewrite these strings. So my q... |
Based on this question about alternatives to the agile philosophy and its answers and comments I thought it might be useful to discuss what goes into the decision of what "methodology" to use when at the start of the project.
Seems the consensus is that if what you are building requires exact specifications that water... |
Sure, we all heard of programming patterns such as MVVM, MVC and such.
But that isn't really what I'm looking into as Layout, Data and Logic is already pretty much split up (XML-Layout markup, Database, insert your language of choice here).
The platform I am developing for is hard to maintain over the updated versions ... |
This is a Purely Academic Question
Context:
I am working with some algorithms which are meant to arrive at a consensus in distributed systems. I intended to tackle Byzantine faults with these algorithms. For this I have implemented several algorithms published in IEEE papers and need a platform to test these algorithms... |
I have five applications residing on server(s). Some of these applications are socket (C/C++) based, others are web based (Java, PHP). I need to give licenses to these applications on the basis of the number of users that can access, the type of functionalities and type of users. What kind of business model should I us... |
I am a long time fan of TDD and after reading the RSpec book, would like to transistion to a BDD process. I like the idea of driving from the outside in, as it is presented in the book.
What I am having a hard time getting a handle on is how to structure the tests. I have tried SpecFlow, but it seems cumbersome to use ... |
Since the methods of the class will only work if the user is logged in, is it right or is there some problem that might make my code slow/inneficient?
|
What reasons are there for web browsers to not have a library of popular web frameworks.
For example if a web page included jQuery, why shouldn't the browser have it's own static version, which is separate from the normal cached items?
I would imagine if most libraries were preloaded into a browsers cache, before any r... |
I am reading about Dynamic Programming from Cormen.
In the beginning of the chapter it says (relating to the term Dynamic Programming):
"Programming” in this context refers to a tabular method, not to
writing computer code.
I can not really understand what this statement means.
I mean, I understand that the dynam... |
I'm a sole developer at my work and while I understand the benefits of VCS; I find it hard to stick to good practices. At the moment I'm using git to develop mostly web apps (which will never be open sourced due to my work).
My current workflow is make lots of changes to the development site, test, revise, test, be ... |
The team I currently am part of experiences fairly high turnover, with members typically moving to different projects within the same company.
Currently our "training" for new members is to pair them with a primary contact (usually the most recent person to complete their training) who will provide them with hands-on ... |
Specifically, programming without inheritance is distinctly not
object-oriented; we call it programming with abstract data types.
I found this great line from Grady Booch's "Object-Oriented Analysis and Design With Applications" book. So in order for a program to be an OO one, are inheritance, abstraction, encapsul... |
This is sort of the opposite of https://softwareengineering.stackexchange.com/questions/121571/is-there-an-open-source-project-that-can-be-an-example-of-well-written-code.
I am teaching software engineering to undergraduates and I would like a blob of object oriented code that demonstrates tight coupling, bad abstracti... |
If I were to make a site with a mutable language like C# and use NHibernate, I would normally approach sessions with the idea of making them as create only when needed and dispose at request end. This has helped with keeping a session for multiple transactions by a user but keep it from staying open too long where the... |
I was checking out a video tutorial on HTML5 using Dreamweaver to do Android and iOS apps (using Phonegap) and it clearly mentioned that you need a Mac to debug and simulate for iPhone, iPod, etc. Is there any way around this?
I really want to develop apps for iOS and android (more iOS) using HTML5 but what I need to ... |
Going by the general principle of data abstraction, I normally abstract data in a serialized format(JSON) and pass it as a parameter to the Business Logic(BL) modules such that the BL module always see a consistent format of the data irrespective of the underlying data storage layer. Even if I use a ORM, I use the seri... |
Currently our web application uses server-sided sessions. Because of the large amount of memory usage, we want to switch to cookie-based sessions. I have been thinking about several ways:
Idea 1
My first idea was to give the client two cookies: SessionID (a hash) and SessionData (the encrypted data). The SessionID will... |
Possible Duplicate:
What is the difference between Static code analysis and code review?
What is the difference between static testing and code review?
I found some information on wikipedia that in both cases the programmer checks the syntax and code logic for bugs.
|
Or in other words, what specific problems did automated garbage collection solve? I've never done low-level programming, so I don't know how complicated can freeing resources get.
The kind of bugs that GC addresses seem (at least to an external observer) the kind of things that a programmer that knows well his language... |
I follow a very raw approach while updating my website on server. The approach I follow doesn't seem right, so I am interested in knowing a recommended way of updating a LIVE project, be it on shared host or dedicated server.
Right now, for any changes in View, I simply upload and overwrite the view files on server. S... |
Lately I've begun to think that having lots of manager classes in your design is a bad thing. The idea hasn't matured enough for me to make a compelling argument, but here's a few general points:
I found it's a lot harder for me to understand systems that rely heavily on "managers". This is because, in addition to the... |
In an interview, I was asked about about my experiences in developing in team settings. However, I've been self taught and have only worked on projects on my own. How would you go about answering this question? I just brought up school clubs and how I was able to play well with others, but this isn't really developer r... |
In a general sense, for long term projects that may have multiple releases during the products life cycle and require support of previous products, what is the best way to handle product versions and branching of the code base?
In a more specific sense, assume that proper distributed version control is in place (i.e. ... |
I have done Java SE and want to start JAVA EE. But i am very confused, from where i have to start .So please tell me the roadmap from where to start Java EE ?
|
We use JSF over Tomcat along with a backing proprietary DB.
I want to know how the addition of new database fields or/and stored procedures should be handled when we deploy a new version of the application.
We deploy by sending a WAR file to the hosting Team, as such our WAR should be able to
setup the stored procedur... |
Today I have held my first interview with potential interns.
While this has been mostly open questions, I have had some trivial programming tasks for them:
Write a function that returns true if triangle sides (all integers) a, b and c can represent a right triangle.
FizzBuzz.
Calculate the Nth element of Fibonacci usi... |
Is there any Change Management Standard which is widely accepted in software and other industries? I worked at several companies with absolutely different target domains (investment banking and telecommunications). Companies had very similar Global Change Management (GCM) organization and processes. More specifically:
... |
I work on a new venture at a large enterprise software company (3000+ programmers). In my group, we have a bunch of projects and people usually work on several projects over the course of a year.
I just started work on a project that has been previously maintained by a buddy of mine (consultant who's been with us for 3... |
Reading this site and SO I've seen many stories of interview questions and answers saying a candidate had to implement a linked list from scratch. Usually this is a "gimme" exercise for programming role candidates like writing FizzBuzz. The idea is that if the candidate can't do this, they can't program and should be r... |
I am looking to implement membership card functionality inside a mobile application for a local coffee shop. The idea is to make payments at the point of sale, and deduct the amount from the client's prepaid account.
I was looking into NFC functionality, but only a few devices support them (and most are not available i... |
Let's take CodeReview page as an example. If you go here, you will see the list of the questions with their vote numbers and comment numbers
Now, I am wondering if these numbers are calculated on the fly (e.g. count the total comments in db for this question), or is there an actual field in the questions table called v... |
I wrote a web cam viewer where the javascript source basically sources the image according to an "active" class in a list.
I was wondering what are good modern techniques to make images load faster in the background, so a user can get a better experience flicking through images.
Obviously it doesn't make sense to downl... |
When designing a class should consistency in behaviour be favoured over common programming practice? To give a specific example:
A common convention is this: If a class owns an object (e.g. it created it) it is responsible of cleaning it up once it's done. A specific example would be in .NET that if your class owns an ... |
I have been tasked with using coded UI to measure performance on a proprietary windows desktop application. The need is to measure how long it takes for the next page/screen to display after a user clicks on a control.
For example - a user enters their ID and PW and clicks sign-in. The need is to measure how long it ... |
On page 839 of the second edition, Steve McConnell is discussing all the ways that programmers can "conquer complexity" in big programs. His tips culminate with this statement:
"Object-oriented programming provides a level of abstraction that applies to algorithms and data at the same time, a kind of abstraction that f... |
I'm currently developing a Spring-based web-application, in which almost every operation create/update/delete something in the database. The logic mostly about checking condition so as to we should create/update records in the database or not.
The reason I want to try unit test is that we often meets regression errors ... |
I'm new to github, and am looking for advice on how to manage issues. I'm used to having priority and other ordering options but see that none exist.
How do others manages issues during the lifecycle of a bug/feature?
Thanks in advance.
|
Recently I saw some possibilities of some IDEs (via plugins) to sort members of their classes/modules based on some criteria, sou you could have everything sorted automaticaly no matter where you would put the elements in time of writing it to editor.
Do you think that this kind of sorting in class/module may have posi... |
For example, a system where the developer does not need to write source code any more, instead they can using XML or some defined text to construct the application-level logic.
|
I have a web application developed using Python, HTML, CSS & JavaScript.
The customer installs it in any of their own Machine and uses it through their LAN.
In short the customer sets up the webserver in any of their own machine.
Since its a web application, all the source code is open for the customer in the document ... |
I have been tasked with becoming the Administrator for a large enterprise software system that consists of several shrink wrapped applications and some home grown 'glue' and has a couple of hundered users across three continents.
What do you think are the aspects / points I need to address?
At the moment the best I can... |
I'm using SVN and I'm wondering about which part of the code base the users should test. The trunk (after the new feature branch has been merged in) or the branch?
If using the branch, how do you deal with the scenario where two developers are working on two different feature sets (so two branches), and need to releas... |
I was thinking about how would a paint software works. Firstly I thought that it might not use any database but when I started thinking about the undo function I realized that it might be that the data is somehow stored in the database. Can anyone please help me out by telling me how the images are stored in a normal p... |
I would like to ask which is the best strategy for creating an application that will be developed both on Mac and iPad, so to make minumum effort to port it from one platform to the other, starting from iPad, for example, but rather trying to make both at the same time. The application, in fact, would be an iPad-style ... |
I have just joined a company where the major projects, including the one i have landed on, use Guice. I have never used Guice. I am familiar with dependency injection, in the shape of CDI (a bit) and the obscure but decent Nucleus (part of ATG).
We just completed a successful iteration, so tomorrow (friday the 13th!) i... |
I want to find out how easy or hard the transition to C / C++ is for a mid-experienced Java programmer.
I've already read the questions about "C++ for Java Programmers" and "Is it necessary for Java programmers to learn some C/System programming?".
Everything sounds very interesting, but I want to specifically add th... |
In order to get experience as a team lead, I was recently given the task of supervising a programmer.
What I found out is that he is having a problem in writing a simple if condition. He has issues with string. And he doesn't know how to pass a variable in the addClass function of jQuery with an if condition.
And he d... |
I am new to Pivotal Tracker and trying to learn how best to use it for our business. We are an app development consulting services firm. As you guys know, clients want to have an idea of total time and cost before they sign any contract.
How are you guys mapping your project on Pivotal to total hours and timelines? Any... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.