instruction stringlengths 34 19.9k |
|---|
We currently have the following stack :
VS 2005
Web forms
SQL Server 2005
IIS 6
We are planning on transitioning to this :
VS 2010
MVC and Web Forms
SQL Server 2008
IIS 7
My question is, when we move to MVC with VS 2010, should we use Entity Framework( or another ORM), a micro ORM (like Massive), or just plain SQL?... |
I am very familiar with the concept of object pooling and I always try to use it as much as possible.
Additionally I always thought that object pooling is the standard norm as I have observed that Java itself as well as the other frameworks use pooling as much as possible.
Recently though I read something that was ... |
During last year, several of the projects of the company where I work failed.
We develop web software, that are not especially complicated (the most are CRUDS and search form about this data).
One of the problems that management has identified is the test phase.
Putting simple, our protocol is:
Analysis of the reque... |
I find the encapsulation concept a bit confusing. So far I have read that the members of the class should be private and any access to private members must be through getter and setter methods, which are public. Are these the only properties which define a properly encapsulated class?
If yes, what about protected class... |
Are there any general guidelines to understand when I should consider using (as a eat-your-own-dogfood) and providing web services, and when I shouldn't worry about them? Or, any reading materials you can point me to?
My project is in PHP but I don't mind if it's language agnostic.
|
I am a freelance worker taking on a new project with a company I'm already familiar with. My boss (the company owner) previously gave me a website project to work at while he also assigns a project manager to review the progress. But with my latest project, the setup here is a little different.
My boss assigned to me t... |
I have an app in Django that expects to get a record with the fields email, first_name, and last_name.
However, sometimes I want to be able to send it something that isn't actually a record but behaves like one (in that it has the necessary fields as attributes), like so:
class FakeRecord(object):
def __init__(self... |
Let's say I really like Ruby and I know Java. What's the deal behind these J* and Iron* languages that allow you to use the syntax of a foreign language to compile them into JVM or .NET bytecode?
Basically, what's the advantage? Is it just because you like the runtime of one language, but not the syntax?
Please advise!... |
HTML5+Javascript is not viable as the client-side code will be visible and, thus, stealable. Flash is not viable since it's not supported on ipads and thus not cross-platform. Said that, what are the available tools for creating cross-platform, cross-browser multiplayer online commercial games?
|
I am working on a server-client app in c# and need to send an object from the client to the server via WCF. For simplicity I will call it WorkingClass as it is what does the work.
public class WorkingClass
{
public WorkingClass (FileInfo uncompressedFile, FileInfo compressedFile)
{
... |
I'm having trouble understanding, what were the exact purposes of creating the short, int, and long data types in C?
The reason I ask is, it doesn't seem like their sizes are bounded -- they could be of any size, so long as short is smaller than an int, for example.
In which situations, then, should you use an unsigned... |
I have read that a number of new programming languages are created each year, however I have never seen a single one. Where exactly are these things published? Is there some site out there that keeps track of them?
(I don't have any intention to learn such languages - I am only interested)
|
I am not sure if this is the right place to ask this but I wrote an app that shows all the movies in one's computer with the appropriate info such as genre, director, rating, etc.
I am wondering how can I make it so that the user can filter them based on criteria such as genre, rating, etc?
Most of them are enums, and ... |
I hear about C, C++, Java every day whenever people starting talking about computer science, but in my first computer science class we are asked to write in Scheme (DrRacket).
Why is that?
What differences will this make to my future understanding of programming?
UPDATE: I have finished my first term, but not complete... |
Some companies have discovered, to their surprise and profit, that programmers are very creative people. I think of Google and Atlassian, for example, who allow regular (monthly, I believe) "free days" where programmers get to work on whatever they want (with approval) and the company reaps the rewards.
Examples cited ... |
Ok, so here is my problem:
I work for a big company, some how landed a job (frankly because the interview was easy). It's not that I don't know my stuff, I am pretty good at understanding java, it's libraries etc.
But, when ever I try to solve some logic problem, I find it really hard to come up with a solution.
For ex... |
I had to a incorporate several legacy applications and services in a network-distributed application. The existing services and applications are written using different languages and technologies, including: java, C#.Net and C++; all running on MS Windows machines. Now I'm wondering about the communication mechanism be... |
I'm interning at a new startup, and I've been tasked with designing the front-end of the site.
I really, really want to use the new Twitter Bootstrap (http://twitter.github.com/bootstrap/). It's all CSS, looks amazing, works great, and lets me get to designing and not worrying about the little stuff.
However, is this a... |
I have never worked with a professional software development team. As such, analyzing and thinking about each and every aspect of my software does not come naturally to me.
Whenever I strike an idea that excites me I just start a new project in my IDE (after finishing the previous one) and I start designing the interfa... |
I'm looking for historical statistics showing approximately how many developers of some language X switch to language Y. It should be the kind of data that answers question such as:
Are former VB6 developers using mainly C# or VB.NET now?
Have many Java developers switched their main development language to Scala so f... |
I am working on a Java project that uses a dependency injection framework built by the company itself. The framework enforces the following naming convention: suppose you have a class Foo that depends on an interface called org.company.IBar:
class Foo {
@Injection
private IBar bar;
...
}
then the framework w... |
I am currently working on FLEX and have to call a web services. once I have the result, I have to call the web service again, with the previous result as the input.
A compounding problem, is that the service might return multiple results, and I have to call the service again with each of the results as the input. Last... |
in this question OP has presented a site where some puzzle are available. He described the problem about solving them. I was curious is that really so problematic. The first one was really easy, so I tried next one this time from the end that should be the hardest one (puzzle).
And here I have some problem with unders... |
Possible Duplicate:
Is there a list of common usernames to reserve in a new system?
I'm working on a site where users will have a custom URL e.g.: http://domain.com/username
I want to avoid the situation where a user registers and creates a username that I later need, e.g. if I want a page at domain.com/about and so... |
I would like to keep my application relatively REST-pure for the sake of consistency, but I'm struggling philosophically with the relatively few views (maybe just one) that I'll need to build that don't relate to resources directly, and therefore do not fit into a REST style.
As an example, take the home page. Ruby on... |
Before you whip out your snarky comments, I know -- this is a nooby question. This is my first time using a C based language.
I'm an undergrad student learning Objective C for a computer science course on mobile development. I know that, in an academic setting, a lot of real-world considerations aren't necessary since ... |
When programming in ASP.NET, you can get very quick, effective functionality out of using DataBound controls (GridView, FormView, etc) with an SQLDataSource control on the page (In my opinion, anyway - I could be alone on that one). For instance, I often use these types of controls to create basic search functionality... |
We are currently developing a new email deployment system. We have the system currently configured so that it reads a record from the database and loads the email content and deploys it to the target. Now we want to move this over to multiple threads. That is easily done, except we then hit the email providers retur... |
I have been reviewing several resumes we have for a new position. I noticed that a few of them had many old programming language versions and old applications on their resume (e.g. SQL 4.2, VB5, Lotus 123, Novell). This left their list of computer experience very long. Do you keep it fresh? Do you show your depth o... |
I've read a few times that when storing passwords, it's good practice to 'double hash' the strings (eg. with md5 then sha1, both with salts, obviously).
I guess the first question is, "is this actually correct?" If not, then please, dismiss the rest of this question :)
The reason I ask is that on the face of it, I woul... |
Are there any object-oriented programming languages that are not based on the class paradigm?
|
I'm working for a company with very large databases which all refresh overnight, ready for users to interrogate in the morning. These over night loads essentially truncate all the tables, and reload again using pretty complicated business logic.
This is all fine and good, but occasionally, rather than going through th... |
I need to reserve usernames in my new website.
These generally fall into three categories
1) usernames no-one should have (eg: admin, user, service, help, root, etc)
2) names of super famous people or companies we may want to reserve in the event that they show up
3) other names specified by us directly.
It would be re... |
I'm curious to here the opinions of people working in large enterprise organisation whether AOP is widely (or even modestly) used when they are developing? Is AOP something which is inherent in the design. Because from everything I managed to find on the Internet (including by reading the AspectJ in Action, 2nd ed. boo... |
Arrays and pointers are not the same thing in C, although they are related and can be used similarly. So far we all agree.
However, I don't see why arrays were included in C, when pointers could have done their job perfectly.
I am not saying to remove the array notation (e.g, a[5] or int a[4] = {0,1,2,3};), which is q... |
I am a Junior Web Programmer who is tasked with redesigning our website. Right now the website is made in ActionScript using the FLEX API(so its Flash based).
I am looking for advice on what technologies I can use to create interactive websites.
The website requirements I have been given are:
- must work & look the s... |
In my current project, I am having a hard time coming up with a good solution to create scalable integration tests that have no side effects. A little clarification on the side effect free property: it is mostly about the database; there shouldn't be any changes in the database after the tests are completed (state shou... |
Short Question
Is there a typical way to name 'public' and 'private' members of an OO C project?
Background
I fully understand that public and private members do not really exist in the C language. However, like most C programmers, I still treat members as public or private to maintain the OO design. In addition to... |
I have seen some languages that change quickly (I mean they are improved every year for example) and some others that are improved slowly.
My question, if a language changes quickly is this a good thing or a bad thing for the programmer? Do programmers like to learn new thing in the language or do they prefer to stick ... |
Concurrent programming is quite difficult to me: even looking at a basic slide seems challenging to me. It seems so abstract.
What are the benefits to knowing Concurrent programming concepts well? Will it help me in regular, sequential programming? I know there is a satisfaction to understanding how our programs work,... |
I feel like it's critical to use an event driven architecture with a lot of application types that aren't web sites. However, when coding web sites(which are stateless at the most basic level) it seems like it isn't really necessary to use an event driven architecture.
Is this true? Do most web frameworks not use event... |
When creating a system like an AI, which can take many different paths very quickly, or really any algorithm that has several different inputs, the possible result set can contain a large number of permutations.
What approach should one take to use TDD when creating a system that outputs many, many different permutatio... |
I am making a UML diagram. Im wondering if im using the extends feature correctly.
I have a marketer that can search contacts but only if they have created them in the first place....
Have i got the right idea. Or should there be an association between the marketer and the update/delete contact too? Should the update/d... |
Should I reuse variables?
I know that many best practices say you should not do it, however, later, when different developer is debugging the code and have 3 variables that look alike and the only difference is that they are created in different places in the code, he might be confused. Unit-testing is a great example ... |
I have been programming quite a lot now and still can't decide which of these packages hierachies was the best:
package1
Class1Controller
Class1Model
Class1View
package2
Class2Controller
Class2Model
Class2View
or
controller
Class1Controller
Class2Contoller
model
Class1Model
Class2Model
view
Clas... |
When creating a new startup related to a web application, how to choose a hosting provider ?
Assuming the code of the web application is oriented DDDD (Distributed Domain Driven Development) to handle large deployment scenario, the idea is to avoid too much cost for hosting.
Basically, the launch of the web app, with i... |
How would you implement an extendable web application? What I'm thinking about is a web application similar to Jenkins or Hudson which provides plug-in support. While it's obvious to me how plug-ins can be located and loaded, I don't know how they can be integrated within the overall architecture. I'm especially uncer... |
We're having a problem at work: we're trying to schedule work so that we can assess time scales and get deadline dates.
The problem is that it's difficult to plan for a project without knowing everything that's going to happen.
For instance, right now we've planned all our projects through the start of December, howeve... |
I'm new to VC++, and so am not very familiar with COM, ActiveX, IDL etc. When I mentioned this to my tech-lead, he assigned me the task of doing the code review of files he felt were important, in terms of the code that I'll soon be working with.
The actual code-base is approx. 10000 files.
I'm a bit skeptical that d... |
I am learning Coldfusion, however when I try to open CFM and CFC files they appear to be unreadable.
Some of the data look like java code, but other data looks like this: "¸ aº*3¶ H**´ !½ zY¼S¶".
I thought that this might be compiled with Java, but http://java.decompiler.free.fr does not seem to be able to decompile i... |
Recently started Android programming. Developed 3 apps using threads, UI API, telephony API.
My quesion is if someone says Android message API what it related to? What classes it consists in?
"Actually I have seen this in an Android job post"
Thanks
|
I'm doing a small assignment in C++ where I have to use concepts like virtual functions and inheritance in a domain of my choice. I'm implementing the prototype for a package manager in Linux.
I have the base class Package, this has attributes like package_id, name, version, dependencies etc.
There are two types of pa... |
According to Wikipepdia,
A software bug is the common term used to describe an error, flaw, mistake, failure, or fault in a computer program or system that
produces an incorrect or unexpected result, or causes it to behave in
unintended ways.
Recently I've found a "bug" in StarCraft 2 which produces an unexpected... |
I work for a small company (less than 200 employees) whose software group only makes up a small part of our staff (4 employees, occasionally with a few contractors). The four of us have been making strides in transitioning to better practices, and one of the next logical steps is to improve our testing.
As anyone who ... |
I am fairly new to PHP and OOP. Having said that, I wanted to know how independent functions should be within a class. I know that each function should be responsible for doing just one thing. However, as you can see in my class below, I occasionally find myself creating functions that build upon one another in a "c... |
I am a firmware engineer moved from Electrical background to Embedded Systems. I was till now programming in C and never bothered to apply OO principles in my design. Recently I was forced to implement design in C++. I started liking the OO principles like SOLID, design patterns, etc. I wanted to know more about applyi... |
I am looking for a good Java Graph Library which is thread safe for concurrent access. JGraphT, JUNG, JTS are very good but again for concurrent access I will have to synchronize it externally which is becoming a pain. It is a pain because say If thread A have to access 50 vertices, Thread B for another 50 with the int... |
I work in a bunch of tools that do things to customer's computers. Some of these tools allow scripting, which allows someone to run a script to nuke files, registry keys, or the like. Of course, if the script is bad, or if there's a serious bug in the tool, it could cause damage to the person's system. I'm concerned th... |
I am working on a webapp project using flask framework and sqlalchemy orm in python. Its the first time I am working on a project like this and I am having trouble in how to divide work properly among my teammates. We are 5 guys, one is handling designing, two front end and 2 on backend. I am on the backend. Flask foll... |
In minecraft, before creating a world you have an option to input a seed. The algorithm takes the seed and creates a completely unique world. How does this work?
|
I am looking for some advices, resources or articles about how to expose a Platform API to outside developers.
My main concern is what is the standards or best approach to do that, basically I have a set of REST API services of the platform and need to understand how to address the following issus :
API Hosting and Ma... |
I am new to Django. I have found the official topic guides https://docs.djangoproject.com/en/1.3/ an excellent place to learn from. But now I am in a place where I need quick reference to see what methods an object has, what arguments it takes, what it returns etc, kind of like the Python docs or Java docs. More of a r... |
I have seen and read quite a few books about software design (using UML, etc.), and others about user experience, GUIs, etc. but I'm looking for books that describe the process that happens before all of that.
I'm looking for the pre-development stuff. How to develop a cohesive and comprehensive plan for what the appli... |
A little overview about what my group does ...
I work in a development team in a fairly large insurance company. My group's responsibility consists mostly of building applications for our employees. Stuff like tracking systems, scheduling applications, contact directories, etc.
Of course we have a decent amount of "s... |
What document types could be used when describing software testing automation (on any phase, automation planning, test design, implementation, reporting)? Is there any standard types of documents?
If someone could provide any examples and templates for different types of documents?
What is the difference between manual... |
I'm curious how other development teams (especially those that work in moderate to large development groups) track "future" features/wishlists for functionality for internally developed frameworks or components.
I know the standard advice is that a development team should find one good tool for tracking bugs/features a... |
Very short introduction (this is quite a context-heavy question):
I'm a 17 year old programmer, doing some projects, usually netting around 20 files of 200 lines each. I usually don't program very low-level, more high-level with battery included API's like Python + pygame and Lua + WoW API. Nevertheless I've written qu... |
Python has a nice function in the standard library random.choice which returns a random element from a sequence. But none of the other languages I've developed in have thought to include such a feature. Do other languages provide such a feature? Why not?
|
So, I've been tasked to work on an integration project where we will ask customers for credit card information and send it over to our integration partners, who will process the payment/cc info and process the rest of the order. So, one the tasks for become PCI compliant. However, the partner is also looking to get PC... |
Studying some classes of Android, I realized that most of the variables of methods
are declared as final.
Example code taken from the class android.widget.ListView:
/**
* @return Whether the list needs to show the top fading edge
*/
private boolean showingTopFadingEdge() {
final int listTop = mScrollY + mListPaddin... |
I wonder why are weakly-typed languages still being actively developed. For example, what benefit can one draw from being able to write
$someVar = 1;
(...) // Some piece of code
$someVar = 'SomeText';
instead of using the much different, stongly-typed version
int someInt = 1;
(...)
string SomeString = 'SomeText';
It... |
We currently use a system called AsciiDoc which allows us to create documentation in a simple text markup. From that we can generate multiple output formats. We only make use of the pdf output and chm output formats.
I was wondering if there was an alternative to chm? What I am looking for is something that can be used... |
I need 2 capabilities:
calculating mutual friends distinguishing between different types of edges, (e.g. FRIEND, ENEMY and other)
getting relationships distinguishing between different types of edges as over
My problem is speed: If I use a database as MySQL, I can get thousands of relationships in few moments, but if... |
Let's say you're looking at breaking up your applications into services. Are there any good reasons to adopt a SOA approach vs. just creating a library API that can be loaded by the applications that need it.
|
I am designing an WPF app shell using MEF. I would like to have the app start a "view" upon startup. I also would like the option of having another add-in have a "startup" attribute and then the app would load that one instead. I've made an interface:
[InheritedExport]
public interface IStartupParams
{
/// <summary... |
I've been using the MVC pattern in my applications for years (with full separation of the controller from its views).
Having to implement several hundred views to represent a little over 100 model's for a potential contract, this time around I'd like to reduce the development time of my UI tasks and also add a few addi... |
I haven't touched algorithm complexity stuff in quite a while, so I am trying to do a refresher.
I am trying to figure out the number of steps in the following for loop.
for(i = 0; i < n; i++){
//code
for(j = i + 1; j < n; j++){
//code
}
}
The inner loop will be executed times
I mean t ti... |
My team has been using Scrum for years with a goal to deliver a potentially releasable build each sprint. We recently started using a Kanban board moving away from time-boxed delivery to feature-boxed delivery. So far, this seems to better fit the teams natural way of working. With feature-boxed delivery, stories ar... |
I have some problems in my hand and would like to resolve them by myself (rather than hiring some professional, obviously due to cash problem!):
build a really good website (planning to set-up my own start-up).
build some good software (preferrably with exe installation files) on many mathematical and statistical tech... |
I am just about to start my Java journey, ( I've already dabbled in C++) but I am getting really confused about all the different versions of Java:
JavaSE
JavaEE
JavaFX
etc.
Can someone explain these in detail?
|
TLDR: Are models supposed to be application-dependant and totally worthless when starting a new application, or are you supposed to design models independently so that they act as stand-alone classes/libraries? (This would make little sense with a framework such as CodeIgniter where you extend the CI_Model which obviou... |
I'm in the very early stages of writing an application to mine through Twitter data looking for certain types of information. I've been using Twitterizer, which I have found effective in downloading the information (it provides interfaces to the "old" REST based API, and the newer streaming one).
This would only be fo... |
Possible Duplicate:
I don't know C. And why should I learn it?
I start my programming from Java, and learned PHP. Also, because of the work, I learned Objective-C. But most of the programmer learn from C. So, is this necessary for a programmer to learn C? If yes, how important it is? Please drop your comments, thank... |
I'm confused about the PO's responsibility here. I was a developer on a Game Feature Team, but also a PO. The daily work of the developer is almost full time, so I have to work over time to take care my PO duty, and the responsibility of PO seems to be against developer's thoughts.
As a PO, I will chose more features ... |
My goal is to learn how to program a website with Python/Django in the next year. From what I've understood, I also have to learn HTML, CSS, JavaScript.
I understand in order to build a website, I will need to find a co-founder whose skills far exceed mine. But still, the situation will be way different if I'm a person... |
I'd like to draw (pen and pencils) threads interaction in a UML(-like) notation. I don't insist on UML, anything that is obvious to the reader should do.
I started with sequence diagrams, but I don't feel this is the best way to do that. All the time, there would be "action initiators" coming from off-screen which kind... |
I'm the lead designer in our team, which means I'm responsible for the quality of the code; functionality, maintainability and readability.
How clean should I require my team members' code to be if we are not short on time?
In my view, we should clean up old code we modify; adding a line to a method means you clean up ... |
I know it may have been asked before, but here goes nothing...
Is Perl still something that would be considered useful? If someone was a new programmer (either completely new to programming or just a few month/years of experience) would Perl be something to be considered worthwhile to learn?
Is Perl still used with fre... |
There are some great libraries for Python that have cousins in the .NET world, but some are unmatched.
Realizing that Python is a dynamic language, which makes it difficult to mix with a (largely) statically typed language like C# (though this is seemingly getting easier with .NET 4.0), there are options like IronPyt... |
I'm planning to buy a book to learn C Language. Many say K&R is a must-have book for C programmers so I chose it. I see that there are two editions. What are the differences between them?
|
A professional full-time programmer can do a great job by continuously learning from their work. How can an amateur programmer train to become a good programmer?
** If you like to play music or sing, you can do it because it is your hobby and you are interested, and you can become a good singer or music player. But yo... |
I'm talking about unit tests in the TDD sense. (Not automated "integration", or what you like to call it tests.)
Legacy code as in: (C++) code without tests. (see: Michael Feathers' Working Effectively with Legacy Code)
But also legacy code as in: Code that our team has been working with for the last 10-5 years, so we... |
We're in the business of automated trading and our team consists of two bigger groups, I call them data producers and data consumers.
The producers' primary task is to maintain a chain of smaller tools that push some real-time data through an indicator system and out comes an order. All the data that was needed or pro... |
Possible Duplicate:
How do I create my own programming language and a compiler for it
Note: This is not a possible duplicate; it is more specified.
What is the first step into making your own programming language? Is it something you jump into, or are there steps you must take? Thanks!
|
I'm creating an object whose sole purpose is to read in a file of one format and create another of a different format.
Is it best to create the output file implicitly during object initialization or to have a public method that gives the user the choice when this file will be created?
|
We have implemented Scrum quite successfully for the past 5 months. Though, we are 3 weeks away from PROD without ever doing any end-to-end integration test. OUCH! I need help. Without tackling the causes of this (at THIS point), we need now to plan the current iteration, which consists of minor improvements and MANY s... |
I started using Github now that I'm working on a project with some guys. And I started to wonder if I should use it in my personal projects too. I'm not sure if this will help me in some way or if it is unnecesary?
|
Possible Duplicate:
What should every programmer know about web development?
Where do I start if I want to build a web based application?
Books, tutorials, online resources.
From a quick look at the web I can see that Html, Css and JavaScript should be the subjects to learn. Do you agree? What would you recommend ... |
I have recently been reading Hohpe and Woolf's Enterprise Integration Patterns, some of Thomas Erl's books on SOA and watching various videos and podcasts by Udi Dahan et al. on CQRS and Event Driven systems.
Systems in my place of work suffer from high coupling. Although each system theoretically has its own database,... |
I am reading the following in a book on algorithms (Cormen's to be specific):
That is, we are concerned with how the running time of an algorithm
increases with the size of the input in the limit, as the size of the
input increases without bound.
I can not understand what is the meaning of the phrase: with the... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.