instruction stringlengths 34 36.1k |
|---|
So, I've got a mandate to make our aged trillion lined Delphi app web based and it needs to make heavy use of the <canvas> element (HTML5 compatibility doesn't seem to be a big issue since we can just make our clients use a compatible browser the way we'd make them use a compatible version of Windows in the win32 envir... |
I've been reading up on Entity Framework, in particular, EF 4.1 and following this link ( http://weblogs.asp.net/scottgu/archive/2010/07/16/code-first-development-with-entity-framework-4.aspx) and it's guide on Code First.
I find it neat but I was wondering, is Code First supposed to be just a solution for rapid develo... |
I've been reading two books about web usability issues and tests (Rocket Surgery Made Easy¹ and Prioritizing Web Usability²) and they claim some strategies and typical problems about website usability and how to lead them. However, I want to do a web application, and I think I lost track of what I am trying to solve.
T... |
Our team is distributed in space and time, so we have no ability to discuss the architecture of the code in real time. How can we discuss it via documentation: write code interfaces/ comment/ modify, track history of the code architecture? Are there some specific tools for this? What are the best way: class diagrams, c... |
I have been designing and developing code with TDD style for a long time. What disturbs me about TDD is writing tests for code that does not contain any business logic or interesting behaviour. I know TDD is a design activity more than testing but sometimes I feel it's useless to write tests in these scenarios.
For exa... |
I have an array of n strings. I want to select all the elements of the array that starts with the given string.
Sorry if that is not clear. I'll give an example.
input = "as"
array = ["abas", "aras", "as", "ask", "asi", "aso", "atas" ]
output = ["as", "ask", "asi", "aso"]
Which algorithm will I need to do t... |
The Web industry is shifting / has shifted towards using OAuth when extending API services to external consumers & developers. There is some elegance in simple....and well, the 3-step OAuth process isn't too bad ... i just find it is the best of a bad bunch of options.
Are there alternatives out there that could be ... |
I have read this questions and answers, but I still don't understand what exactly do I need to do if I dynamically link with a library that uses a LGPL license (the SDL library in my case).
If I understand LGPL text correctly, I need to somehow provide the source for the library.
Is this enough?
If not, what else needs... |
I am not talking about stealing code, or reusing someone's for profit. But I am assuming that if a program or plugin is distributed in a format where I can't readily view the source, that is a deliberate action on the part of the programmer.
Is it acceptable to look anyway, for the purpose of learning? And if so, are ... |
I'm wondering if there are any less-biased resources that give good, specific overviews of programming languages and their intended goals. I would like to learn a new language, but visiting the sites of each language isn't working. Each one talks about how great it is without much mention of it's weaknesses or specific... |
EDIT: I should clarify. THe particular terms I listed below I fully understand. I also understand w3schools doesn't have the greatest information. These are just examples. I don't expect everybody to understand what an example is, but I hope the majority do.
Does anybody have any resources listing terms related to prog... |
I work as a full time developer. My workplace, however, is very limiting in the technologies and programming languages I can use. All of the work is done in C++.
It is clear that C++ is rapidly losing (or maybe already lost) its leading position. (please don't flame me, I have years and years of C++ experience, ... |
I've recently begun adopting the best practice of designing my classes to be immutable per Effective Java [Bloch2008]. I have a series of interrelated questions about degrees of mutability and their consequences.
I have run into situations where a (Java) class I implemented is only "internally immutable" because it is... |
I've been reading job descriptions and many mention 'low latency'. However, I wondered if someone could clarify what type of technologies this would refer to? One of the adverts mentioned 'ACE' which I googled to find out was some CISCO telephony technology. If you were hiring someone for a low latency role, what would... |
In a shop that is intended to be tight-knit and supportive, should it be part of the culture that senior developers are paired with junior developers as mentors? Or should this mentoring be something that is more organic and spontaneous, i.e. not required, but allowed to develop without artificial encouragement?
|
Is it better to assemble permanent teams of developers within the company that always work together, from project to project, or is it better to have dynamic teams that assemble for a project, and then dissasemble afterwards?
My inclination is to treat the entire company as a "platoon" and to assemble "fireteams" for i... |
I'm just tired of making a big SQL statement, test it, and then paste the SQL into the code and adding all the sqlstmt.append(" at the beginning and the ") at the end.
It's 2011, isn't there a better way the handle a big chunk of strings inside code?
Please: don't suggest stored procedures or ORMs.
edit Found the answe... |
With the addtion of Extension methods to C# we've seen a lot of them crop up in our group. One debate revolves around extension methods like this one:
public static class StringExt
{
/// <summary>
/// Shortcut for string.Format.
/// </summary>
/// <param name="str"></param>
/// <param name="args"></... |
I've always been curious, how libraries such as DirectX, OpenGL and OpenAL are implemented. Do they use some sort of unified API provided by OS? Talk directly to kernel? Maybe hardware drivers provide unified API? Or vendors provide their own backends to such libraries? Even entire implementations of such libraries?
Or... |
How important is knowledge of data structures and algorithms for an Operating Systems and Systems Programming course where we will be required to design and implement a kernel of a real-time operating system (done using C and 68K)?
How useful will programming experience implementing data structures like linked lists, q... |
What type of programming or project would only involve the Ruby language? Rather than using RoR. What was Ruby used for before the Rails framework existed is what I am basically asking.
|
Here's some interesting debate going on between me and my colleague when coming to handle SOA exceptions:
On one side, I support what Juval Lowy said in Programming WCF Services 3rd Edition:
As stated at the beginning of this chapter, it is a common illusion
that clients care about errors or have anything meaningful... |
I saw today that Firefox released a new version (5). I tried reading about what was added and ran into this link.
It states that:
Mozilla has launched Firefox 5, a new
version of the popular open source Web
browser. This is the first update that
Mozilla has issued since adopting a
new release management strategy that
... |
When I start a new project, I often times immediately start thinking about the details of implementation. "Where am I gonna put the DataBaseHandler? How should I use it? Should classes that want to use it extend from some Abstract superclass..? Should I use an interface? What level of abstraction am I going to use in m... |
Suppose someone of your development team is presenting a sprint to the customer but he is having web connection problems such that a complete story cannot be presented. For the sake of the cleanness of the presentation, do you help your colleague suggesting possible solutions and try to fix it in the moment? Or is it k... |
Is PHP-GTK widely used for desktop application? Is it recommended to use? Is there a big company who uses PHP GTK?
|
I need to verify what data wasn't downloaded yet. For example, how does Twitter or Facebook verify if a specific client has already dowloaded a piece of information?
When a mobile app like twitter make a request to twitter.com will receive only new data but not data that it has already downloaded in old requests.
|
I am writing Portfolio module for my web site and it has 3 components. Gallery Category, Gallery, & Gallery Images.
I am doing all the request handling, (creating, reading, updating, other), for the above 3 components in 1 class, Portfolio.
DB handling jobs for Portfolio module is done in another file.
My question is, ... |
We're developing a web app using Django and we're a small team of 3-4 programmers — some doing the UI stuff and some doing the Backend stuff. I'd love some tips and suggestions from the people here. This is our current setup:
We are using Git as as our SCM tool and following this branching model.
We are following the ... |
My group has recently grown in size with the addition of several teams from different projects. We work using an Agile programming methodology: 2 week sprints, deliverable every sprint, 2-3 pushes to production every sprint for each team.
How do I "convert" the newly added teams to this methodology and way of thinking ... |
This is just a question to think about.
When you write technical documentation and programming comments, do you ever find yourself writing run-on sentences in order to be more precise?
Is packing more technical information into one sentence better than creating many little sentences each with a little bit of technical ... |
TL;DR
What are the prospects of writing applications which are completely based on a REST database server (CouchDB) and web applications which directly access the DB instead of having a web server in between?
I recently started looking up some NoSQL databases. MongoDB seems to be a popular choices. I also liked the pr... |
One of the driving points behind OOP is code reuse. I am curious about the actual logistics of this and how others both in team or solo handle it. For example lets say you have 5 projects you have worked on and between them you have a ton of classes that you think would be useful in other projects.
How do you store the... |
I work in an environment where we have several different web applications, where each of them have different features but still need to do similar things: authentication, read from common data sources, store common data, etc.
Is it better to build the shared functionality into a set of services, to be called by the web... |
Possible Duplicate:
When do you know it's time to move on from your current job?
Problem: I had no prior experience when I interviewed, so I didn't know exactly what to ask them about the company when I was hired. I've spotted a number of warning signs and annoyances since then, such as:
Four developers when I star... |
So, HTML5 is the Big Step Forward, I'm told. The last step forward we took that I'm aware of was the introduction of XHTML. The advantages were obvious: simplicity, strictness, the ability to use standard XML parsers and generators to work with web pages, and so on.
How strange and frustrating, then, that HTML5 rolls... |
How does one get started with web development for mobile devices (including phones)? I know some old good HTML & JS, but I'm wondering what the modern way is.
To make it concrete, I need to implement a client for an enterprise app. Think of a login-protected dashboard for managers.
Given that I only have basic knowledg... |
I typically run across gurus at SO and other places (instructors, book authors etc.) that would say something along the lines "This will cause alignment issues" or other low level tidbits.
I want to learn about all these tidbits that are relevant to programming. Now usually when I see low level books (computer archite... |
We are writing a program that does a standard "auto update software on startup". If the software finds an update ready, it will start the update process and then exit (and not run the program).
We have two different designs on how to write the logic of the update.
Design 1: Let our AutoUpdate class handle everything... |
I used to work alone on small to medium sized programming projects before and have no experience working in a team environment. Currently, there will be 3 of us in an in-house software development team that is tasked to develop a number of software for an academic institution. We have decided to use the web for the maj... |
How do you track licenses for third-party libraries that you use in your software? How did you vet the licenses? Sometimes licenses change or libraries switch licenses--how do you stay up to date?
At the moment I've got an Excel spreadsheet with worksheets for third-party software, licenses, and the projects we use the... |
I created a software package that aids electrical engineers with common calculations used on site (substations to be specific). I created the package in my own time, without being asked and without guidance. The package is now widely used within my company and I intend to distribute it nationally.
Do I own the copyrigh... |
I have to create a table where each row needs to store 50 number values. Each row will always need to store 50 number values.
If this was a smaller number of values, I would just make fields for each of the values, but because there are 50, this approach seems a bit cumbersome (but since it will always be 50 values,... |
A knowledgeable friend recently looked at a website I helped launch, and commented something like "very cool site, shame about the inline scripting in the source code".
I'm definitely in a position to remove the inline scripting where it occurs; I'm vaguely aware that it's "a bad thing". My question is: what are the r... |
I'm working on an ASP.NET MVC app, and I've been getting into the habit of putting what seem like helpful and convenient getters into my model/entity classes.
For example:
public class Member
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
public ... |
I am porting an old eCommerce site to MVC 3 and would like to take advantage of design improvements. The site currently has product images stored in 3 sizes: thumbnail, medium (for display in a list) and expanded for a zoomed look. Right now we are having to upload 3 separate images that are sized exactly right, prov... |
In my current project (a game, in C++), I decided that I would use Test Driven Development 100% during development.
In terms of code quality, this has been great. My code has never been so well designed or so bug-free. I don't cringe when viewing code I wrote a year ago at the start of the project, and I have gained a ... |
I read Stephen Walther's article about Test Driven Development (TDD) and unit testing.
I think it was an excellent article.
The author makes a distinction between what he calls "TDD Tests" and unit testing. They appear to be different tests to him.
Previous to reading this article I thought unit tests were a by-product... |
I'm learning Ruby on Rails for a new project of mine. I am referring the book 'Agile Web Development with Rails' which shows how to build a shopping cart and they use scaffolding.
I'm pretty familiar with MVC architecture and have used several frameworks in PHP to build applications. I've never used scaffolding and I'... |
So this is probably a very basic and obvious question for most people, but my google-fu is failing me and it just seems something is going over my head. I've heard numerous people refer to having a 'dedicated linux box' as a central part of a developer's setup.
I have been doing web-dev programming for about a year a... |
I've been trying out using GoogleTest for my C++ hobby project, and I need to test the internals of a component (hence white box testing). At my previous work we just made the test classes friends of the class being tested. But with Google Test that doesn't work as each test is given its own unique class, derived from ... |
Background
We use the Model-View-Presenter design pattern along with the abstract factory pattern and the "signal/slot" pattern in our application, to fullfill 2 main requirements
Enhance testability (very lightweight GUI, every action can be simulated in unit tests)
Make the "view" totally independant from the rest, s... |
We are designing a system which mimics a BPEL application with sets of functional requirements such as bulk messaging, managing SLAs, error handling and so on.
One of the intentions is to modularize these functional and non-functional aspects into separate web apps so that we can choose at build time and plug them all ... |
I use regular expressions on a daily basis, as my daily work is 90% in Perl (legacy codebase, but that's a different issue). Despite this, I still find lookahead and lookbehind to be terribly confusing and often unreadable. Right now, if I were to get a code review with a lookahead or lookbehind, I would immediately se... |
This answer and the comments added to it show a way to disable several compiler warnings using #pragma directives.
Why would one want to do that? Usually the warnings are there for a reason, and I've always felt that they're good reasons. Is there any "valid case" where warnings should be disabled? Right now I can't th... |
I am involved with the development of innovative software. The development is innovative since we don't know how to develop it and what algorithm should we use to implement and nobody else did it before. The process consists of several stages of studying books/papers, suggesting algorithms, writing prototypes and compa... |
In a presentation, i stumbled upon the Statement "JavaScript is a Language everybody uses, yet nearly noone seems to find it neccessary to learn how it works".
And indeed, not many of the programmers i know could explain javascript's prototype concept, or why functions need to be 'bound' to this.
CSS seems to be anothe... |
There is some code which is GPL or LGPL that I am considering using for an iPhone project.
If I took that code (JavaScript) and rewrote it in a different language for use on the iPhone would that be a legal issue?
In theory the process that has happened is that I have gone through each line of the project, learnt what ... |
The question Is it illegal to rewrite every line of an open source project in a slightly different way, and use it in a closed source project? makes me wonder what would be considered a clean-room implementation in the era of open source projects.
Hypothetically, if I were to develop a library which duplicates the publ... |
Since there is an algorithm to blur images, so that part of it cannot be recognised, can we reverse the algorithm and unblur part of than image?
Is there a program that already does that, is that even possible, even in a near future?
|
Recently I was TDDing a factory method. The method was to create either a plain object, or an object wrapped in a decorator. The decorated object could be of one of several types all extending StrategyClass.
In my test I wanted to check, if the class of returned object is as expected. That's easy when plain object os r... |
I rebuilt a web app to replace a version that we have been using for the last 3-4 years. We have a few thousand clients and a few hundred active users per day. The functionality is basically the same. The new version is a little bit faster with a few enhancement features and there are a lot of behind the scenes changes... |
My team relies a lot on colour within our code to outline features that need to be worked on (we colour lines of code that need attention). We have a close friend who is colourblind and wants to join our team. What can we do to highlight what needs work without using colour? We have about 25 people on the team that are... |
I'm hoping there's a book or something out there for me to get...
If I have a class that has Collection as an instance variable, what is that method of coding called? A design pattern? If so, where can I find more information on it? As I've been working with this mentor, he's really helped me understand my programming ... |
When designing a class, how do you decide when all overridden methods should call super or when none of the overridden methods should call super? Also, is it considered bad practice if your code logic requires a mixture of supered and non-supered methods like the Javascript example below?
ChildClass = new Class.create(... |
We've all seen countless examples of software that ships with "minimum system requirements" like the following:
Windows XP/Vista/7
1GB RAM
200 MB Storage
How are these generally determined? Obviously sometimes there are specific constraints (if the program takes 200 MB on disk then that is a hard requirement). Asid... |
I was always wondering about two things I tend to do in my little projects. Sometimes I will have this design:
class FooClass
...
self.foo = "it's a bar"
self._do_some_stuff(self)
def _do_some_stuff(self):
print(self.foo)
And sometimes this one:
class FooClass2
...
self.do_some_stuff(f... |
Hello Everyone,
There are so many Questions on Stackoverflow about Agile tools, but I haven't seen a tool which can be installed on a PHP Server.
I'm just looking for an Open Source Scrum Tool or just an Open Source Scrum Dashboard for my Team, which can be installed on my webspace(php).
Thank you for Help!
|
Coming from a Java background, I'm very used to camelCase. When writing C, using the underscore wasn't a big adjustment, since it was only used sparingly when writing simple Unix apps. In the meantime, I stuck with camelCase as my style, as did most of the class.
However, now that I'm teaching myself C# in preparatio... |
I've been looking at Campfire by 37Signals and it looks like a great tool for collaboration between developers but we need something that can be deployed internally. Any good options out there?
|
I am looking for something like a subversion dashboard that at the very least can show me commits from across a group of repositories. Is there anything like this available? Since it could just as well be dead simple and I can't find anything immediately I am thinking if just scratching my own itch here, but I am hopin... |
Has anyone thought about why so many of us repeat this same pattern using the same variable names?
for (int i = 0; i < foo; i++) {
// ...
}
It seems most code I've ever looked at uses i, j, k and so on as iteration variables.
I suppose I picked that up from somewhere, but I wonder why this is so prevalent in softw... |
I've looked into many open source software repositories, and I've found some common elements and somethings people do in different fashion from one another.
For example, every repository has a README file, a INSTALL file, a COPYING file and stuff like that.
Other things differ:
Some projects, like git, have their sour... |
TL;DR:what the title says
I am developing some sort of image board in PHP. I was thinking of changing each image's filename to it's checksum prior to saving it. This way, I might be able to prevent duplicates.
I know this wouldn't work for two images that are the same but differ in size or level of compression or wh... |
Recently, I just finished Michael Hartl's rails tutorial. Throughout the book he recommended The Rails 3 Way after you finished his book. From your experience do you think it would be better to read another book or start building an app and figuring out things on my own?
|
At the company I work, we are really wanting to get into the agile methodology for developing software. One thing that I'm not excited about is the fact that management wants us to build a custom project management feature inside the company's Intranet.
I think this is a total waste of time. There are many great third ... |
I want to learn ASP.NET web-application development by example. I want to learn it from an already developed web-application that is good as a tutorial for newbies. A fully functional web application that is small but powerful enough to teach newbies the development effort required for web-application development. I am... |
I have recently noticed that the Sun Java code has been released as GPL V2 code (see Google code repo). Does that mean that all applications written in Java and linked to Sun APIs (beans, and so on) are also in GPL ? If we strictly follow the GPL then this should be the case (Libs should be in LGPL, not GPL if we want ... |
Is creating a huge public site fully in Silverlight really advisable? for eg. an ecommerce site. I don't want to start any debate but actually I feel Silverlight shouldn't be used for full website because the biggest loss you incur is of SEO. No search engines till today can parse the xap file and index it based on it'... |
As a backend and a frontend developer I see the process from start to finish, first by creating the logic, displaying the correct data on a web page and then using frontend skills to make this look awesome. My question is, do pure backend developers care what their code ends up looking like in the frontend? As far as t... |
What are the modern ways to (effectively) determine which part of page contains useful text, data tables, etc. and which are not (e.g. ads, navigation, etc.)?
What were the last valuable researches/result/papers in this field in latest years?
Thank you in advance!
|
I have this problem:
Imagine you have a vector V, integers from 0 to 70000 -- sorted in ascending order
Now you have a permutation P of that vector.
Then you do V[P] "shuffling" the vector. If you keep doing V[P] (P never changes), V will eventually be sorted again in ascending order?
Is there a way you may know, a pri... |
I am experimenting with test-driven development, and I found that I often come to a following situation:
I write tests for some functionality X. Those tests fail.
While trying to implement X, I see that I need to implement some feature Y in a lower layer of my code. So...
I write tests for Y. Now both tests for X and ... |
I was looking over at http://programming.lispdream.com/blog/2011/06/recursion-vs-iteration/ and I saw that on his implementation of the recursive and iterative implementations of the factorial function, the iterative actually takes longer given n = 1,000. I can't figure out why (he doesn't explain, but says that it is... |
I like to do a wireframe before I start coding and work from there. But when should I start worrying about the visual design? When should I consider the colours, the font, whether corners should be round or sharp, icon design, etc?
Is that the last thing to do before launch? Or is there any reason to work on it while y... |
From a legal standpoint (licensing issues), can I legally, in agreement with the license, publish Fortran 90 wrappers (bindings) to the CUFFT library from Nvidia CUDA Toolkit, under some open source license (either CC0, that is, public domain, or some kind of permissive license like BSD)?
Nvidia provides only C bindin... |
I'm considering starting an open-source project, so I shopped around some popular project hosting sites.
What I find surprising is that many (see here for a nice feature table) of the popular project hosting sites (e.g. GitHub, BitBucket) don't have a forum feature, i.e. a place where users can talk to the devs, ask ... |
Our team of 10 developers meet weekly. The meetings are rather boring and not particularly useful. What format/agenda do you utilize to have good meetings?
We meet weekly in the conference room with pizza provided. The format is we go around the room and list the status of various tasks we are working on and discuss t... |
I've written an XML text editor that provides 2 view options for the same XML text, one indented (virtually), the other left-justified. The motivation for the left-justified view is to help users 'see' the whitespace characters they're using for indentation of plain-text or XPath code without interference from indentat... |
What are some suitable criteria for evaluating a list of Companies complimentary middleware? I am doing a trade study on several Company's middleware implementations and so far I have came up with the following criteria:
Cost
Ease of Development/Ramp Up Time
Licensing
Support
Quality of Tools
|
I see a lot of folks asking for the best web application frameworks for web development. My question is - do we really need to start with a web application framework? what's the pros and cons of having it? or in another way, what's the pros and cons of web development without a web application framework?
|
We've outsourced our app development, and they've created a DB hosted on Amazon-EC2.
For the UI we're in talks with a web designer, but they don't do any of the coding to integrate the website with the DB created by the app developers.
Is it a good idea to have one person do the website design, and another to do the DB... |
My brother has come up with an interesting business idea that could be commercialised. For over a month I have been creating the foundation for SaaS. I have been treating this as commercial project so designing using patterns and best practices.
One of the reasons I want to include this in my Resume is my full time jo... |
Possible Duplicate:
How possible is it to estimate time for programming projects?
We have designed a User Interface (UI) in HTML for an Intranet Application.it took almost 30 days to make it,how we should estimate the development effort(coding) for it,is there some ratio we can use to estimate,it need not have to be... |
Let's say I checked out a version different than HEAD. Let's say I made some commits, and so an anonymous branch was created. Afterwards I may have checked out a different branch, so now the only way to get to my commits is via reflog.
If do this:
>> git reflog | grep -i mycommit
sha1hash
>> git branch reattaching
>> g... |
Having read I'm a Subversion geek, why should I consider or not consider Mercurial or Git or any other DVCS.
I have a related follow up question. I read that question and read the recommended links and videos and I see the benefits but I don't see the overall mindshift people are talking about.
Our team is of 8-10 deve... |
Dear fellow programmers,
how do you do "software planning" when academic research is involved? And, on a side note, how do you convince your boss that writing software is not like building a house and it's more like writing a novel?
The gory details are below.
I am in charge of a small dev team working in a research ... |
What is the recommended acquisition strategy for having multi-platform, service-connected devices for mobile developers? Is it necessary to have separate phone numbers and service plans for each platform? My guess is that having a Droid, iPhone and Windows 7 phones all on the same plan and same phone number is out.
|
Possible Duplicate:
Design and Development Methodologies for the single developer
I'm a web developer who mostly works with the LAMP stack when it comes to my own projects. Most of the time I just start coding on a project and fixing bugs and adding features as I go along. Often I'll try to use an existing solution ... |
What do you do when you don't have any good code samples available when asked by a prospective employer? I like to consider myself a fairly capable developer but I can't share any of the software I've been writing for my company the last few years.
Unfortunately, I haven't been able to find the time to put much work in... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.