instruction stringlengths 34 36.1k |
|---|
It seems everyone doing web applications nowadays wants to use MVC for everything. I find it hard to convince myself to use this pattern, however. I understand the general idea is to separate the backend logic from the frontend that represents the program. Generally, it seems that the views always depend on the control... |
I've been trying to figure out how to use HBase/Cassandra for a token system we're re-implementing. I can probably squeeze quite a lot more from MySQL, but it just seems it has come to clinging on to the wrong tool for the task just because we know it well. Eventually will hit a wall (like happened to us in other areas... |
Are there any major architectural differences when designing applications that will be built on static languages (such as C# or Java) and dynamic languages (such as Ruby or Python)?
Which are the design possibilities that might be a good choice for one type that's a bad one for the other? Are there any useful features ... |
The context:
it's an internal project (that I don't think a lot of people use)
it's old
we're updating it
The issues:
it abuses the mvc framework (no use of models, business logic in views, etc)
what we're being asked to do is small, but because of the low cohesion we have two options:
continue to botch things
move... |
My company is introducing SCRUM for new software development. I'm currently both Product Owner and a product manager responsible for the technical aspects of the software. The technical manager role is not part of the scrum team.
I'm finding there is some desire within the scrum team to treat the software developmen... |
With a team of 3 other web developers i have the title as lead web developer for a year now. This is my first job as a lead.
I'm pretty set on what my roles are from management. I'm curious what other senior level developers do. I primarily curious as to what others people responsibilities are as the lead/senior develo... |
I have tried DNN and nopCommerce. After going through their source-code, I realized they are not that easy to customize and need a fair amount of time to their documentation before any changes can be made. Also, they are pretty huge, as they cover up every single aspect of a CMS, from Page to Catalogue to Menu to SEO a... |
Say I find this great snippet of code on Bitbucket. I really, really like it but there's a small bug I want to fix. On the other hand, I have all of my code on GitHub.
Is it ok to start a new repo on Github and refer to the original by a comment or on the wiki?
|
Also on stackoverflow.com:
I understand that STL concepts had to exist, and that it would be silly to call them "classes" or "interfaces" when in fact they're only documented (human) concepts and couldn't be translated into C++ code at the time, but when given the opportunity to extend the language to accomodate concep... |
We've hit an application issue with an Oracle table Primary Key exceeding the limits used by a Java Integer (2 ^ 32) and one of the suggestions is to reset this to 1000 and let it start again.
OR change the code to use Java Long (2 ^ 64) instead.
This has a ripple effect since this key is used as ID by a lot of other s... |
I am quite new to the S.O.L.I.D. design principles. I understand their cause and benefits, but yet i fail to apply them to a smaller project which I want to refactor as a practical exercise to use the SOLID principles. I know there is no need to change an application that works perfectly, but I want to refactor it anyw... |
I find the term "protocol" confusing (in the terms of computer science that is). If the protocol is just a set of rules, wouldn't it be easier if we used the term "standard" instead (like in "HTTP standard")?
|
We're looking into our processes and client relationships at work and part of this is creating a standardised template for our development proposals that we send to clients.
The development areas we cover are mainly web development and design and mobile application development. On top of this we also offer native softw... |
I have been asked to go for a technical test/evaluation for a job as a junior developer, mainly using C++. This is my first test/evaluation, and it is 2 hours long.
My C++ is a bit rusty as I have been doing projects recently on PHP.
This is a UK company, however im guessing technical testing of candidates will be pre... |
What books have you read that helped you, as a programmer, learn to estimate time for completing small-to-medium programming tasks, such as bug fixes or implementing new features? Which have you the most helpful?
Please describe how it helped you, citing its strengths and weaknesses.
|
Sangdol asked: Why can’t I edit and SVN commit message? There are good reasons to maintain individual records ‘as is’ for historical purposes. However, there is an arguably objective hazard in not limiting the spread and use of misleading, and dangerous data.
Aside: Certainly, sometimes, one should just suck up they’ve... |
I happened to read an interesting article the other day that talked about building mobile applications using Javascript and HTML5. One interesting point they brought out was how this approach worked across multiple platforms, different hardware (ex. screen size) and software (ex. iPhone, WP7, Mac, Windows).
I also not... |
The idea is to make use of HTML5 local storage to store frequently accessed CSS and JavaScript.
For example (pseudo-code):
var load_from_cdn = true;
if (detect local storage)
{
if (cache of css, js found)
{
load the local storage cache
load_from_cdn = false;
}
}
if (load_from_cdn)
{
document.write... |
I see different sources that say the number of transistors will double every 24 months or every 18 months.
Does anyone have a credible source?
|
I made an algorithm that has a good potential use for a commercial application. I'm thinking of making a GUI, and since it's computationally expensive, I'm thinking of putting it "on the cloud" to offer the numerical part as a service. What I'm thinking is making a GUI, and then the users submit the work to the server.... |
I'm using an ORM which doesn't allow me to inject dependencies in the constructor. Let's say I'm using DDD for the business logic, and the MVC pattern for the UI.
Now one of my domain objects needs to access an external service. I'm very opposed to the service locator anti-pattern (wouldn't touch it with a ten foot po... |
How should I pick a web application software engineer?
The (permanent) position is to rewrite the client of an existing desktop client server application. The pages will not be generated dynamically on a server, but the server will expose a full API in whatever way is needed, for example JSON RPC calls, and can make... |
I'm struggling to phrase this question correctly, hence the poor title.
Basically I have a simple Chrome extension that I am developing for work. It is in use at the moment and as I am using it regularly I am constantly thinking of improvements or extra features it could have.
My file structure is like this (I'm on a m... |
I'm pretty new to image processing, and I am currently working on a paint-like application that will feature a bucket-fill. However, I have no idea what the best algorithm for a bucket-fill is.
I implemented an example I found from this site, however, it ran into infinite loop problems when a user tried to bucket-fill... |
When dealing with data, one finds that, essentially, the same code is repeated in various incarnations:
-- MySQL:
CREATE TABLE users (
id int NOT NULL auto_increment PRIMARY KEY,
name varchar(255) NOT NULL,
email varchar(255) NOT NULL,
UNIQUE KEY akUser (email)
)
// PHP
class User extends DBModel {
... |
You know them, those errors that make NO sense. Where it seems like a gremlin just jumped deep inside your chips and messed up something. Do you take a walk, write stuff, call an uncle?
|
I want to create a simple web app where I can drag an image in, and watermark the corner with the given text. Where should I start for something like this?
I have knowledge in Java and Ruby.
|
Does Microsoft require third party .NET applications to meet any minimum standards for things like application security or code quality?
|
If "Anything can go wrong will go wrong" is true, we need to test all the conditionals and exceptional cases in my code.
But sometimes it's hard to find all of them since many of them are corner cases, which are hard to test. How can I go about finding corner cases better or avoiding the issue?
|
I created a card game in Silverlight a year ago, in order to learn a bit about Silverlight. I am now wanting to make a HTML5 version of the game in an effort to learn a little bit more about that. I am thinking I'd like to take advantage of stuff like Knockout.js and WebSockets and the canvas element.
Now what I'm conf... |
Is it possible for the author to register a logo or the name of his/her application when it is open-source because it uses a gpl library (for example)? The application uses the library but it has its own features, that is it's not a modification of the library.
So everyone can see the source code, downloading an "anony... |
Currently developing a web app in a team of two maybe three in the near future. Tech stack is at the moment : flask, mongodb, and extjs for the fontend. I currently have the project under version control using mercurial and bitbucket.
Question
What is exactly the best way to work as a team on a we app peoject? I ussual... |
How can I study C# from Stack Overflow?
I have only the basics of the C# language with some simple exercises; now I want to go to the highest level C# through Stack Overflow, reading any questions tagged "c#". The questions are not ordered from easiest to hardest.
Do you have any idea on how to learn C# from Stack Over... |
I just started an AI & Data Mining class, and the book. AI Application Programming, starts off with an overview of the history of AI. The first chapter deals with the history of AI from the 1940s to present. One particular statement stuck out at me:
[In the 60s] AI engineers overpromised and underdelivered...
What ... |
Map/Reduce is a great concept for sorting large quantities of data at once. What to do if you have small parts of data and you need to reduce it all the time?
Simple example - choosing a service for request.
Imagine we have 10 services. Each provides services host with sets of request headers and post/get arguments. Ea... |
I am working on a project that requires that I understand different techniques used by search engines for the web.
I have a strong scientific and development background, so I am not afraid of highly technical information.
I am looking for all forms of technical information including information on web crawlers, other t... |
One thing that I've never quite come to terms with in Haskell is how you can have polymorphic constants and functions whose return type cannot be determined by their input type, like
class Foo a where
foo::Int -> a
Some of the reasons that I do not like this:
Referential transparency:
"In Haskell, given the same i... |
At work, we have a software written in PL/SQL - Oracle Forms 10g, which runs the software as a Java Applet.
My Company bought the software and we have to develop the software, but we feel that Oracle Forms 10g Technology with Java applet is out of date. It's a technology from the past decade and we must move the softw... |
I've been studying OOP in conjunction with Zend's MVC implementation for the past few months. I'm pretty new to programming, generally, but I feel strongly that I should learn things the 'right' way, which for me means to make sure I understand why things are done the way they are. I.e., I have found that in learning h... |
We're developing a hosted CMS, something like WordPress.com. When we were creating the Image Gallery module, we examined many jQuery libraries like easySlider, jCarousel, and Nivo Slider. But each of them had some kind'of weird bug across browsers. We almost put 2 days into finding where the bug was from. But we couldn... |
I have an object oriented programming with c++ course this semester at college and we were learning about friend functions.
I instinctively dislike them for their ability to bypass the security that Encapsulation and Data hiding provide, I read a few articles on the internet and some people thought that it was a good i... |
My company has problem A, lets say, face recognition. We find a nice algorithm like this one. We implement it and go home happy. Problem is, once home I cant sleep because I wonder if we should make the implementation public. After all the algorithm was public. Someone did intensive research and did half ( or more ) th... |
I have read about linear programming and its content and I wonder if this way of programming is common to use in the market? I often hear about object oriented programming but not linear programming.
I would like to hear a discussion about it.
|
I need to add an EULA to my (commercial) software but I cannot afford a lawyer. Also I had a look at various EULA examples on the internet but they are all for specific software or countries, and are probably copied from other commercial software.
So I'm thinking about using a short custom EULA which would just mention... |
I have multiple applications some that use data from the same sources.
Is it best practice (or what are the pros/cons) to:
leave the data in databases shared by multiple applications
saves space as only one database is needed
complicates indexing as different applications have different querying needs
import data da... |
I read A programmer should concentrate on at least how many languages?, and I found out that I don't know languages in number 2, 3 of first answer. I want to learn more languages to increase my knowledge and programming skill. However, usually in companies they use fixed framework and languages and changes seldom. So I... |
There are few situations that require users to provide their password while automating things during development process. Site deployment is only one of the common situations. Creating dmg files under OS X requires password as well. Most of the command line utilities used in scripts has an ability to receive a password... |
We are preparing to OpenSource our ASP.NET MVC multi-tenancy CMS. We currently use BitBucket.org to host our source repository and we are considering best approaches to repository naming.
In terms of the user/host of the repository, We are debating using our company name which is the sponsor of the project versus the ... |
IntelliJ does some odd formatting with Javascript code and I am trying to figure out how to get it to stop formatting this way. Whenever I chain jQuery functions together, it over indents the auto created code such as this:
$('#something').focus(function() {
/* Do some stuff */
}).blur(function() {
/* this... |
Programmers, when it comes to talk about popular patterns in enterprise applications, preach that you should code against interfaces to remove strong relations between components; doing this will aid in changing concrete types while minimizing changes in other areas of the application. The underlying assumption is that... |
Well, I love C++, I have been using it for a while: I like all the libraries (Allegro, SDL, QT, Ogre, etc.), but I have a problem: I don't understand pointers.
Do I really need them ? I just program for fun: but I want to study it some day.
Thanks.
|
In the generics section of Bloch's Effective Java (which handily is the "free" chapter available to all: http://java.sun.com/docs/books/effective/generics.pdf), he says:
If a type parameter appears only once in a method declaration, replace it with a wildcard.
(See page 31-33 of that pdf)
The signature in question ... |
When working out the design for a new system, is it better to start with a statically-typed language (like Haskell), or a dynamically-typed language (like Ruby)?
Arguments I can think of:
With a static language, you can quickly create a specification and scope for what the program will do. With a dynamic language, yo... |
One of the items in Joshua Bloch's Effective Java is the notion that classes should allow mutation of instances as little as possible, and preferably not at all.
Oftentimes, the data of an object is persisted to a database of some form. This has led me to thinking about the idea of immutability within a database, espec... |
I am clueless when it comes to graphical design but I am proficient in programming. If you are a programmer who lacks visual design skills, what has worked best for you -- to pair up with a graphic designer or to do all the programming and then piece out specific work?
I have done some piecing out of work but I am not ... |
Short Question
What is the best way to create, maintain, and distribute software development tool chains?
Background
I am trying to develop a workflow / process to create an isolated environment in install and deploy software tool chains for embedded targets. Each tool chain typically would contain an IDE, compiler,... |
I have reasonable knowledge of PHP, Perl, and Bash. I use Perl for most text processing on my system (find, replace, filter output, etc). I use PHP for web development, allowing a user to view and interact with database data via the browser. I use Bash for quick and dirty scripts often to supplement the more complex Pe... |
Why did the C master Dennis Ritchie introduce pointers in C? And why did the other programming languages like VB.NET or Java or C# eliminate them? I have found some points in Google, and I want to listen your comments too. Why are they eliminating pointer concepts in modern languages?
People say C is the basic language... |
From time to time (unfortunately way too often) I have to fix code such as this:
// C++ code
bool anyOldFunction(Param p) {
try {
...
if(some_condition_here) {
handleErrorX();
return false;
} else if(other_condition) {
return false; // (*stackexchange question comment*) Apparently no additional erro... |
We have a centralised business application framework, and it contains all our business logic and provides access to all our back-end systems. It is accessed by a number of different programs and clients through remoting.
When we need to do a change in a certain part of the program, we currently have to retest all our ... |
Is it possible to alter the code of the Chili plugin, which had its latest release on July 2008, and it is licensed under the MIT license, to then license it under GPL?
As far I can see, there is no restriction about the new code being licensed under the same license. Is it really so, or is there a minimum number of ch... |
Possible Duplicate:
Agile for the Solo Developer
For my thesis I will be working on a user interface prototype during a 6 month period. I am required to pick a strategy and create a precise planning. While reading through different descriptions of agile methodologies I felt like I'm in buzz-word heaven. Instead of j... |
I worked for a small company as a long term contractor making websites and other such things. A client comes along, pays what he said was "A lot of money" for me to spend a week doing his website. He paid it to the company.
I didn't see any of his money, I've since left that job because they owe me months of back p... |
Test Driven Development implies writing the test before the code and following a certain cycle:
Write Test
Check Test (run)
Write Production Code
Check Test (run)
Clean up Production Code
Check test (run)
As far as I'm concerned, this is only possible if your development solution allows you to very quickly switch bet... |
A user story can be defined in a sentence like:
As a <type of user> I want <some goal> so that <some reason>
Just Google for 'user story formula' and first links all propose this formula.
My question is, what is the purpose of so that clause? Is it there for managers? Is it there so that project managers and stakehold... |
I would like to know the best way to add a comment to identify a deprecated class in Java. Should I remove the previous comment added to the top of the class that helps another programmer to know what was that class for, or should I add it below the comment?
|
As a owner of an open source project you'd want people to contribute and make it better, right?
But if you then decide to throw on a nice tasty licencing model for people to use the software [Corporate or otherwise], do you get rights to all the income? if so why would people bother contributing? They could be doing al... |
I have a class like this
template <typename T, typename Policy>
AutoObjectRelease {
public:
AutoObjectRelease(T& obj):obj_(obj){}
~AutoObjectRelease(){ Policy::Release(obj_); }
private:
T& obj_;
}
I wonder how one would you name this class, as it seems to me this could be quite a common pattern. ... |
My friend and I are working on a project together in visual studio, and we are using subversion for source control. We have used php based project management tools before for task and bug tracking, but we find it inconvenient to go to work in visual studio for hours then have to go find the website and log in and repo... |
tl;dr: What is a less extreme (but still noticeable) alternative to the word "fluent", when saying e.g. "I am fluent in C++/Python/whatever?"
I think I can call myself "fluent" in C#, because I know the language and runtime very well, and I'm very familiar with the .NET framework's APIs and classes, etc.
I would like ... |
I'm working on a C++ wrapper for libpcap and I'd like to get more into version control as I'm not experienced with this (the only reason I used it was to put code on GitHub :)).
Does it make sense to schedule nightly builds for a one-man project? What advantages are there in doing this?
|
One of the claims of BDD-style development is that it bridges the gap between Product Owner and developers: the Product Owner writes a story, which can be converted in an equivalent automated test "frame" that should eventually pass.
What I would like to hear is how to keep bridging the gap after that: once there are... |
We are moving our project's team from using a single Main/Trunk branch, to multiple Development/Work branches that should be regularly merged into Main. We're basing our new process on this article and the TFS Branching Guide (we are using TFS and Visual Studio 2010).
There are currently between 1 and 5 people working ... |
Lately I've been developing a web-based management system for a gym. Their previous app was developed in Visual Basic. For the new app, all the front-end scripting uses jQuery, the server is running PHP & MySQL... you know, the typical el-cheapo linux based stack.
Anyways, I was wondering why JavaScript's prompt, confi... |
This question might be a little vague.
I have seen an acronym referring to a business object in a software system. It's usually mentioned when discussing such design patterns as Java EE's DAO pattern.
|
So my partner and I are working on a practice management system and at first we didn't use any version control, then I persuaded him to use git. At the moment our system is that we have three branches: develop, master and release. Our git repo is on an external server, which has Apache, MySQL, etc. We do our daily codi... |
Is it possible to create a new "Custom Conditional Statement" in java.
Here i am planning to create a new custom component for the switch statement to give better performance.
The custom Switch control which i am planning to create will have only integer operators: example:
int i = SOMEVALUE;
Switch(i)
{
Case 1:
//So... |
I am new to HTML and Im working on a self made project and I have to use < table > and < fieldset > tags in my html files. I need to set the width and height properties to the tables like
<td width="100" height="200" > </td> <!-- something like that -->
But Im afraid of these reason because as the Monitor size change... |
We say that we indent code. I'm writing a string builder which can add/remove tabs to indent code.
Sample:
builder.Add("<ul>");
builder.Indent();
builder.Add("<li></li>");
builder.Dedent(); // <-- what should this be named.
builder.Add("</ul>");
What should I name the method?
|
We initially wanted to implement a Strategy pattern with varying implementations of the methods in a commmon interface. These will get picked up at runtime based on user inputs.
As it's turned out, we're having Abstract classes implementing 3 - 5 common methods and only one method left for a varying implementation i.e.... |
I've spent a lot of time reading different books about "good design", "design patterns", etc. I'm a big fan of the SOLID approach and every time I need to write a simple piece of code, I think about the future. So, if implementing a new feature or a bug fix requires just adding three lines of code like this:
if(xxx) {
... |
I'm working in a start-up. I have a background with teamwork and management, but I'm currently the only developer. We have a project that will involve a few developers in the form of 2 freelancers. I will function as a developer as well as the ScrumMaster. The project is scheduled to last three to four months. The 3 de... |
We have in-house .NET application, which can be used across multiple languages. Lately we received a strange bug that is when our application is being used, user was unable to enter accent characters (Spanish, Win 7) in other applications (ex: MS Word or Notepad). Strange, huh!
Did anyone come across similar bug? If ye... |
I am an entry level Java Programmer straight out of school.
I have good knowledge and experience with J2SE.
Can anyone advise me on how to improve or tune my skills towards being a Java white box tester? Wide range of inputs are welcome.
And what is Test Driven Development?
|
I wanted to name this topic as "Education vs. Experience", but this topic already exists. I've read that discussion and though what I'd like to ask is related with that topic, the question is quite different.
I've started learning programming about 12 years ago. For the last 4 years I'm working as developer in software... |
I am implementing a RESTful web service and several client applications that are mostly in Silverlight. I am finding a litany of options for developing both the server-side and client-side of the API but am not sure which is the best approach. I'm concerned about stability as well as a platform that will continue to ex... |
I am reading through Javascript: The Good Parts, and struggled to get my head around the section on prototypes.
After a little google, I came to the conclusion that it is to add properties to objects after the objects declaration.
Using this script gleamed from w3schools, I noticed that removing the line adding the pro... |
I am more of a desktop developer that a web developer. Therefore I only know XHTML and CSS when it comes to the web (and C#, if that is in any way useful). I have a little experience with ASP.NET with C# but I am in no ways an expert in it.
Say I want to write a small website to give a preview to any new software I mak... |
I'm currently working on project, which is going to demonstrate how widgets can be done with Context Framework. I will also publish the source code.
In this case I want to give users as much freedom as possible, so that they can freely copy-paste, modify and also relicense whatever code they reuse.
So, how do I mentio... |
As part of a PHP project, I have to insert a row into a MySQL database. I'm obviously used to doing this, but this required inserting into 90 columns in one query. The resulting query looks horrible and monolithic (especially inserting my PHP variables as the values):
INSERT INTO mytable (column1, colum2, ..., column90... |
Possible Duplicate:
How do you dive into large code bases?
I'm about to take on maintenance and enhancements of a fairly large and complex Java EE project with a Javascript front end.
I'm trawling through the code trying to work out how it all hangs together but I wondered if any of you people have come up with a me... |
Lets say I receive an xml request that is sent to my web service and this request contains some data in it such as Hotel Room/Rate pairs (Room = Double Queen, Rate = 10%). The database has all of these Room/Rate pairs stored, so when the xml request comes in, I have to validate them to see if the request contains both... |
Does W3C or any other organisation has standard or protocol to constraint all developers to make sure they must use american english while they develop any sort of interpreter?
To avoid something like,
I was writing code and tried to align image in centre(spelled in
british english)
align='centre'
above didn't work... |
What are the most common templates, languages, web-design tools that you recommend for me to be able to start web-design? I do software but I have not not had web-design experience, I have been a Win32 developer with VB 6.0, Delphi, C#,etc.., not web-based. The type of web-design I have in mind is some simple web-sites... |
I have been specifically asked to give line by line (or as appropriate - for example, image by image, etc.) explanation or commentary which my boss wants to be able to read and follow.
Since he is not a programmer, he can not follow the code so wants it all translated into English.
Has anyone been asked to do this bef... |
What are good interview questions to ask a candidate for a sales engineer position? We're an enterprise software company and the candidate we hire needs to be able to (and I think this holds for any company hiring to this position). I write "customer (programmer)" because the customer is almost always a programmer.
Gi... |
I'm in my final semester of college and am taking a software engineering course. In the class we learn about various software development methods. The one we focused on, and used to develop our project, was the waterfall method.
I feel like the instructor may have implemented it wrong. In our class diagrams, we had to... |
In StackExchange Podcast #09 it is remarked:
Another study recently looked at how much effort goes into maintaining the build system: 5 to 30% of all development effort is spent on maintaining the build system. With the variations being huge even when working on similar projects.
What is the name of the study refere... |
In the previous months I have been asking a lot of questions concerning the architecture of an application I'm working on. Thanks to the answers the architectural design has changed - in fact, it has really been simplified as shown in the following graph:
Internally I have a two services (NOT WCF!) that follow CQS pri... |
When using Firefox on my PC, for example, HTTP analysis is quite easy using for example the Net tab of Firebug. GETs, POSTs, etc., all there.
What would be the best technique to see the HTTP requests an Android app sends? Another app? Some kind of hack via Wi-Fi and a router or USB modem?
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.