instruction stringlengths 34 19.9k |
|---|
What exactly are different things we need to take care when writing different JS files, like arrays, variables etc., Is there a book or website explaining differences between different JS engines used for browsers?
I was working on something in our application and bumped into a JS issue and was looking for solution and... |
I have sat on interviews and noticed a big disparity between individuals of similar competency at answering questions on a whiteboard during an interview.
Generally, being able to clearly explain your thinking, writing readable code with the dry eraser pen, avoiding long moments of silence tended to result in more fav... |
I'm coming from the iOS side. I'm particularly interested in knowing if there are similar hurdles on the Android side on these points:
developer fee -- do you have to pay $99 a year to build for android?
provisioning devices - do you have to go through a complex provisioning/digital certificate/device-id routine to ge... |
My company posted a job listing to get me a helper. A recruiter called me today and all he kept saying was "MVC this Entity Framework that..." - He sounded shocked when I said the project uses DataSets and Linq2Sql over WinForms and ASP.NET WebForms.
Then I was looking at options for automated website testing and I co... |
Possible Duplicate:
How do you dive into large code bases?
I've been in this situation before and I kind of just poke around the code while really surfing the internet. I care about this job though, and I want to excel. What kinds of things should I look for? How should I go about starting to learn the framework? In... |
I'm thinking of selling a collection of Django apps I've written which provide the basic functionality of a Facebook game, but I'm also thinking of releasing it under a GNU Affero GPL.
I read the Affero GPL, and the extra clause specified that modified versions of a covered work have to be distributed under the same li... |
I understand why you can't develop OS X apps on a Linux computer, but is there a good technical reason why you can't develop iPhone and iPad apps on Linux? Why isn't it possible to compile iOS source code into an iOS executable and run it in an iOS simulator on Linux or install it on a development iOS device?
Is it ju... |
Some co-workers and myself are tasked with a "rewrite" of an ancient, unmaintainable application and to shape it into something workable.
I am setting up a continuous integration server, and since we are developing for .NET, I think I will use CruiseControl.net
The software being built will have a large amount of build... |
I've been working on a nightmare of a project for some months now. The product is a small Ruby on Rails app/website for internal use by a small group of people. I'm coming up to the finish line and I'd like the actual beta release to go smoothly. I still have a number of small bugs that affect functionality in a minor ... |
Programming is a highly cerebral job, and one of the biggest problems I have is bringing my work home with me. It's so easy to do: whenever I get the chance to think, my mind naturally wanders to work-related matters. I find so many of the other things in my day rather mentally unstimulating and as they say, nature abh... |
I'm working on a project that generates a series of quadratic bezier curves and connects them together, maintaining slope from the end of one segment to the beginning of the next to make the transition smooth. The problem is that while the path is smooth, it tends to go off screen frequently.
The way this is done curre... |
Possible Duplicate:
Where do you find the time?
I am sure there are lots of us in this very common situation.
You have a job that's demanding. In other words you need to put in 50+ hours/week and yet you are expected to keep up with what's happening on the bleeding edge technology and open source end.
Any suggestion... |
When you have a short deadline to being with, and you're nearing the end of development, would you rather rush through coding to dedicate more time to QAing or keep your pace and possible have VERY little QA time?
I am a sole developer on this project and I am the sole QAer as well. It is an extremely short time perio... |
Ok I have run into this many times, but here is the worse case scenario slightly exaggerated.
A client says "hey can you make us this small module to do this small task"?
Me: "Sure no problem".
So based on budgets and constraints etc., I skip some of the architecting and dive right in and make it no sweat.
Then they as... |
Consider two UI designers who want to design "user attractive" designs. "User attraction" is a concept that is not objective and only resides in the mind of designers. Thus designer A could for example pick up red color, while designer B picks blue. Designer A create a layout which is entirely different from designer B... |
I really like a microframework in Python called Flask. I have used it for the past 2 months, and I find it excellent. Now, I would like to use it in deployment, but, there are a few things I'm afraid of. Firstly, even though its a microframework, it depends on Werkzeug (a WSGI framework type of thing), which, in case I... |
In my understanding a major point in Continuous Deployment is (well, obviously I guess) that deployment is automatically done as a part of the building process.
Conceptually it is easy to understand how the deployment can be done when the target is a website. However it appears hard/impossible to continuously deploy w... |
Possible Duplicate:
When and why you should use void (instead of i.e. bool/int)
What is the reasoning behind making all functions (and methods!) return a uniform type, usually int, as a status?
To me it feels odd; especially when you're calling a getter and it returns a status (which is usually the same always) and... |
...As this forces us to create getters and setters, which in practice are often totally extraneous? Is there any good language-design reason why interfaces in most (all?) languages do not allow member fields to help fulfill the interface spec?
In most extant languages, members are treated fundamentally differently from... |
Someone suggested me to mark classes as SEALED that are not being inherited anywhere. I was using default style and was not concerned with the type of class. At present I don't have a benchmark tool to study the performance gains but read somewhere that Sealed Classes give performance benefits.
Is this performance issu... |
I'm building a website fro a client which uses TinyMCE as the main WYSIWYG editor. Now my client asked if it is possible to write a line and make a line break and then continue without leaving a space between the text before and after the line break (e.g. just like in word).
I told him that the web uses paragraph for... |
PHP's deployment model is uber simple: upload and run. This is especially ideal for web applications that are intended to be installed on shared hosting by end users (think: Wordpress). Compare this with the installation of a popular Perl app.
I want to stop writing things in PHP, but want to keep the same deployment m... |
The next version of the application will be a .NET based application (both desktop and web). The requirement is that both applications have to look and work exactly the same way. I was thinking that maybe there was a way to create a web control or something and use it in both applications.
Is this possible?
For exa... |
I am a final year undergraduate student of Information Technology. My team and I have taken up "Sign Language Recognition" as our Final Year Project. We have just started with it and we are in the phase of information gathering (gathering data). We plan to use Instrumented Gloves as the input device. But we do not have... |
I'm building a component that manages available resources (JavaScript and CSS files) for a web page.
As controls are added to the page, they register and un-register their requirements with this manager. Then at render time the manager only renders <script> and <link> tags for the required resources.
A basic implementa... |
I've been reading and watching videos on MVVM and Silverlight.. I'm pretty new to Silverlight but not new to .NET. Interesting that I used MVVM in my WPF apps without knowing that it's MVVM. I was creating easily-bindable classes to serve as a layer between data and XAML :)
Project that we start will be done with Silve... |
Programmers.SE has plenty of questions of beginner programmers asking if they must use a specific language or another one in their daily work, or if they must learn a language or another. Those questions are quickly closed, and when they receive answers, those answers are of type:
Use what is best for a specific proje... |
So, I am here at assembly 2011 and there was this demo played: http://www.youtube.com/watch?v=69Xjc7eklxE&feature=player_embedded
It's one single file only, it says that in the rules. So I repeat, how have they made this to fit into so small file?
|
So, I'm planning to write a C++ library and I want it to be cross-platform, and as this library won't deal with UI and I want it to have as little dependencies as possible, I won't be using Qt (actually Qt won't really help me to achieve what I want, all I plan on using is STL and Boost). Now when it comes to build a c... |
How does one do unit testing for multiple environments that behave differently?
Here is my problem. I have a PHP class for which I'd like to create unit tests. The class provides shortcuts for manipulating folders. On Linux, you can set the folder permissions without a problem, on Windows, you can't at all.
Knowing th... |
As nowadays SAAS is becoming popular way of developing and deploying the applications, and I have just started working at a company providing SaaS solution for payment authorization services.
Since past few days, I have been thinking what would happen if some "unsatisfied / angry" developer write a malicious code (lets... |
First off, I'm not looking for this answer: "learn PHP/MySQL, JQuery, HTML/CSS...."
My background, I wear many hats, and do many things. Currently I manage investment accounts with a business partner who is also a friend. He happens to be attending business / law school perusing a joint JD and MBA. As a result, we're p... |
I know PHP and Ruby.
Using a PHP Rails clone (not out of choice), called Symfony, (which is apparently the best PHP framework), I notice that it's a clone of Rails. I think Symfony is stupid and that (SensioLabs is a clever business) because Rails already exists.
Apart from open-source projects gaining money, I don't... |
Javascript has a feature called Automatic Semicolon Insertion where basically if the parser encounters an invalid token, and the last token before that was a line break, then the parser will insert a semicolon where the linebreak is. This enables you to basically write all your javascript code without semicolons, but y... |
Do people still use Ada -- (it was mostly used in the Defense Department)
Are all applications written in Ada "Legacy"?
Does Ada knowledge still sell
|
I have a wording / precision question. Sometimes I write "object instance" sometimes "class instance".
Isn't it that an object is always an instance of a class? Therefore "object instance" is not the correct wording, right?
Is it common to say so anyway, or just a "mistake" of mine? I have the feeling "object instance"... |
Why does the Lisp community prefer to accumulate all the parentheses at the end of the function:
(defn defer-expensive [cheap expensive]
(if-let [good-enough (force cheap)]
good-enough
(force expensive)))
Why not employ a convention like C or Java?
Well ok, Lisp is much more older than those languages, but ... |
Object Literal has no doubt been established in recent years as one of the essential components to best JavaScript coding practices. However, I am not very sure about what is the best way to structure my codes using Object Literal.
It has been suggested earlier before that Module Pattern might be a good technique to st... |
Can someone explain the concrete reasons why BDFL choose to make Python lambdas single line?
This is good:
lambda x: x**x
This results in an error:
lambda x:
x**x
I understand that making lambda multi-line would somehow "disturb" the normal indentation rules and would require adding more exceptions, but isn't tha... |
Inheritance, Polymorphism, and Encapsulation are the three most distinct, important features of OOP, and from them, inheritance has a high usage statistics these days.
I'm learning JavaScript, and here, they all say that it has prototypal inheritance, and people everywhere say that it's something far different from cla... |
I want to make a thick-client, desktop, open source twitter client. I happen to be using .NET as my language and Twitterizer as my OAuth/Twitter wrapper, and my app will likely be released as open source.
To get an OAuth token, four pieces of information are required:
Access Token (twitter user name)
Access Secret (tw... |
Suppose you want to create a web page with some search capabilities over a database. Search has to be restricted both on some categorization of data and open text given by the users. Functional and non-functional requirements pose this constraints:
Search has to be fast
Data representation paradigm (i.e. Relational, O... |
I frequently see code like that:
$("#foo").live("mouseover mouseout", function(e) {
if (e.type == "mouseover") {
$("#foo").append("<div id='bar'>");
} else {
$("#bar").remove();
}
});
instead of more self-explanatory in my opinion:
$("#foo").live("mouseover", function(e) {
$("#foo").app... |
I have a BSc in Geology. Once I was half-way through my bachelors only, I found where my real talents are. Will my basic degree be a problem for me to progress in the Software field (I feel lot of leading companies are considering the basic degree)? Also what would you recommend to put my self in an equally competent p... |
When looking through job postings I noticed some employers listing MCSD or MCAD certifications. Are these certifications correct ones for web developers? Which track should one choose?. I also noticed looking at MCSD that most certifications are "retired". So how are suppose to take the exam it it's no longer offered??... |
I am working over a OCR Application where I need to select a option based on user text input.
Ex:
Available Options:
["python", "ruby", "java", "clojure", "haskell"]
Input: kava
Output: java
Input: ruby
Output: ruby
Input: clujuro
Output: clojure
etc..
my application is python based, is there a algorithm already ... |
I am building a website that will allow companies to sign up and post information and have an internal network, but what is the best way to verify that the person that is filling in the sign up form really belongs to the company they say they do, as I don't want Joe Bloggs signing up saying he works for company XYZ whe... |
I want to use design patterns for the following scenario. How to?
I have classes named Person, Employee and Customer and all of them have their own save, update, get and delete methods. Employee and Customer classes are derived from person.
What may be the best way to code?
|
Long time user of SO, and figured this is the best place to ask this question.
I am currently consolidating our eCommerce payment clearing systems into one Asp.Net MVC website that will work like PayPal but for our own websites.
The businesses within the group have different rules as to the payment provider that is to ... |
In a company I used to work for, executives insisted that the code coverage with unit tests must be 99% or more. This resulted in writing more tests than code. It took us literally 3 days to write tests for a single class that took a day to implement.
As a result, however, I learnt a lot about TDD, testing tools, pract... |
Big O notation provides an upper bound to a function whereas Big Theta provides a tight bound. However I find that Big O notation is typically (and informally) taught and used when they really mean Big Theta.
e.g. "Quicksort is O(N^2)" can turned into the much stronger statement "Quicksort is Θ(N^2)"
While usage of Big... |
My understanding of the duties of the scrum master are as follows:
Enforce the process
Remove impediments (that the developers cannot remove themselves)
Prevent interruption from outside
Facilitate scrum meetings (stand up, retrospective, etc.)
If the developers on the team are disciplined, they will follow the proce... |
We need to create an API to our system. How do I convince my boss that REST is a better option than SOAP (or XML-RPC)?
I say REST is...
easier to implement and maintain
not much new to learn -- plain old HTTP
lot of people have chosen it Yahoo ~ Facebook ~ Twitter
will be lot quicker to code
My boss says SOAP is...
... |
I have the following problem: I'm developing a software for data visualization where I get a graph structure and represent it in 3D space. So far, I've been using force-based algorithms to draw graphs and it worked well, until I got requirement that my software should represent very big number of vertices and edges (fe... |
When Microsoft presented .NET Framework and C# language in 2002, what was the first article to introduce C#?
I'm looking for some paper published on MSDN or Microsoft website that would explain the need for another language, talk some background and maybe have some code samples.
Also, I'm interested in the original C# ... |
I have a series of method calls that all share similar qualities. The basic layout is
public void CallDataBase()
{
Utility sqlHelper = new Utility();
StringBuilder query = new StringBuilder(200);
query.Append(@"update " + Environment.NewLine);//or insert, select
query.Append(@" table " + Environment.Ne... |
Can someone explain AOP concepts for dummies: join point, point cut, weaving etc.
For example: Aspect: a modularization of a concern that cuts across multiple classes. What does that mean?
|
I recently asked a question on Stack Overflow to find out why isset() was faster than strlen() in PHP. This raised questions around the importance of readable code and whether performance improvements of micro-seconds in code were worth even considering.
My father is a retired programmer, and I showed him the response... |
New to the site so sorry if this is the wrong section.
I'm starting app development and wondering what is the best practice when initially releasing my app. Do developers tend to keep some of the features for future updates to keep users active, or do they try to release the most complete app possible?
Basically, is it... |
Currently I'm trying to select the best DB paradigm to implement a web site with full-text search and faceted search capabilities. I have an important functional requirement:
The database paradigm should support strong conceptual schema modifications during every part of software lifetime.
As a example, our business c... |
At the end of the month, I have to give a presentation on a software project that I've been working on by myself that will basically decide whether or not I will get a full-time job at the company I'm a temporary hire for now. I will be giving my presentation to the president of our department, and two VP's. The presi... |
Possible Duplicate:
How do I adapt to pre-interview challenge questions?
InterviewStreet is a new company that essentially acts as a filter for companies to find programmers that can code. My problem is my math is fairly weak and I'd like to study it, even if it's from the ground up, to be able to solve questions su... |
As the title says, I am a recent graduate with a mathematics degree, looking to develop software as a career. The job hunting has not resulted in a job yet but over the past couple of months I have picked up quite a bit of Ruby/Rails and Objective-C, as well as learning git and deployed a simple web-app to Heroku.
I w... |
Question: For a public facing web API(send HTTP Get/Post requests, get JSON/XML data back), how should parameters be handled that are either misspelled or are extra.
It seems to me that if the incorrect parameters are ignored, an error in the caller's code may go unnoticed since they would be getting back a valid resul... |
I have read a bit about the actor model, but don't really understand how to use actors in a real world situation – how to model a problem with them.
Can someone please explain? A simple example or links to examples would be much appreciated.
|
If a client requests that a particular feature is added into their website software, who is responsible for searching and recognising that a patent royalty has to paid?
client
web developer
This question is aimed at freelance web developers.
When a client says (for example) add a shopping cart to my site. This is a r... |
I have read the Wikipedia article on Indent Styles, but I still don't understand. What is the difference between K&R and 1TBS?
|
I'm in the process of putting the final touches on an open-source framework that I hope to release in the next few months. It's something that I'd like to develop a community for and so I'm curious about what factors influence your decision to use a new framework or tool and why.
Some of the specific things I'd like t... |
I've been in my current position for a long time (10 years) and in that time, I feel like I've performed well as a designer, system architect, and programmer. However, all that work has been on internal projects that aren't accessible from the outside world.
I see a lot of advice like this that suggests 'If you can li... |
Can you explain to me why the friend keyword is preferred for giving access rights to private data of class?
|
I don't see much of a difference between the concerns of exception handling and logging in that both are cross cutting concerns. What do you think? Shouldn't it be handled separately on its own rather than interleaved with the core logic a method is implementing?
EDIT: What I am trying to say, is that in my opinion a m... |
I see constant references to the " Way," such as descriptions of a particular framework or application as "Pythonic," a certain person as a "Perl hacker," or "true Ruby code," but where are the "PHP hackers," the "PHP-ic" applications, the "true PHP style"?
This made me think - does PHP even have a definite style? Sayi... |
I've heard the person at the keyboard named the "driver", and the other person named the "navigator". I've imagined rally car racers, where the person at the wheel just cannot keep up with everything that's happening, and they must have the help of the "navigator", who's shouting volumes and volumes of directions at t... |
I wanted to learn object oriented programming language, I don't want it for any purpose just to know the whole concept of OOP.
So can anyone tell me which language I should start learning?
|
People say definition is used when the declared stuff has some memory allocated.
If I declare a class
class fish
{
char* name;
int type;
//someting i dont know about fish
};
int main()
{
fish a;
return 0;
}
Should it mean this is a declared fish or a defined fish ?
Let me try first!
it is called a define... |
Specifically what are some examples of where ideas of the masses where just wrong. Why did people latch onto the ideas in the first place? And why were the ideas dismissed? Or perhaps the ideas are still alive and well and if so why?
For example I might describe CORBA (and other similar technologies) as something that ... |
Can anyone point me to an article or an informed discussion about US software patents affecting a non-US company who is selling their products on an American app store/marketplace?
My company has several products on both Apple's App Store and Android's Marketplace, all of which are available for sale in the US. We are ... |
I like to keep my code testable and have decided to go with the Dependency-Injection strategy for my current MVC framework, which definitely has proven to be a great way to ensure loosely coupled code, testability and modularity.
But as being far from a master at Design patterns, I have a hard time of figuring out a g... |
As far as programming languages go, I love C#, and for that matter all the good that comes from the .net framework (LINQ, etc).
My main concern is I seem to be churning out too much code, and using OOP, I have a concern my code isn't always that easy to manage.
I want to continue using C# and .Net, but are there any ... |
I've seen projects that use N-tier with WCF. When creating a WCF project in the solution it is often named with the word "service?"
The main questions:
Why and what benefit do you have when using WCF in relation to N-tier?
Which situation should be used with WCF and N-tier?
|
I used to commit files which I want to group. But one of my colleague said that committing whole working project is better than committing files. I think it makes sense but if I commit like that sometimes I have to commit several different works at once.
What is the best practice to commit?
|
We are using Tornado for our system (behind nginx) -- and everything is working fine.
Now we need to integrate a client lib (for Neo4j Graph DB) into our system. The problem is that it is blocking.
My question is:
is it OK to use blocking libs in non-blocking environment
what are the possible ramifications if we do so... |
I'm working on an MVC application and am wondering about the best way to design one of my models.
I have a class called RightLeftPersonToggle which represents two select list boxes on the page. The user is able to move "persons" between the left and right box using buttons between them.
This class can represent both ... |
C\C++ specifications leave out a large number of behaviors open for compilers to implement in their own way. There are a number of questions that always keep getting asked here about the same and we have some excellent posts about it:
https://stackoverflow.com/questions/367633/what-are-all-the-common-undefined-behavio... |
I'm deciding which I need for my new LOB application. I will list PRO's of each and if I'm wrong - correct me please as this is how I see it.
In Browser
Users can navigate using URL's. I see it as a BIG thing. Users can share links like app.com/orders/12345
With elevated permissions I can do all the same stuff. Use C... |
I'm hosting a solution that serves as a web tier on a Ubuntu machine running Apache and Mono. I'm currently developing the project on OSX, using Mono. I understand there is no native support for Linq to SQL in Mono, so I've been going old school and developing stored procedures for my database interaction. I use ADO... |
Sometimes we change user story scope to complete it during the iteration. For example,
Original story (8 points): As a user i want to save my data as PDF.
De-Scoped story: As a user i want to save my text data as PDF.
Now do i need to decrease the size of the de-scoped story as well?
EDIT
What do you do in such cases ... |
We've had a long living product for about 8 years now. Over time, the names of concepts and entities change. Should we put the work in to rename all the code base and database tables and columns to match these new names?
Is there a study made on this or some best practices published?
Thanks
|
Do I understand it right that classical TDD is just about unit tests? Don't understand me wrong: I know the difference between TDD and just unit testing. I am asking whether it is correct to use integration test in TDD workflow.
Currently I work on the project where TDD is surely only about unit tests and there is at l... |
Git and Mercurial follow similar models and have similar terminology. Mercurial's initial release was was only 12 days after Git's. How did these two projects, in initial development at the same time, end up so similar? Does anyone know the history?
|
Recently, I was a part of a discussion about which criteria should be used when determining a salary for a programmer: arguments varied from "it is a matter of employer's choice" to other arguments that took into account one's education, experience, understanding of technologies, etc. Not so long ago, I read a great po... |
In a recent video on Java, Joshua Bloch states at 4 minutes 20 seconds into the video:
And then there's inheritance, and that was a marketing necessity. You know, we can argue whether you really need implementation inheritance or not.
So I wondered: how would Java look like without implementation inheritance? For exa... |
I work as a rental agent / manager for a car rental company that is running on a rental system that was written in 1972. I decided that maybe it was time for an update. For a bit of background, here is a short example of the madness that we have to deal with from this program daily:
A rental agent must remember that pr... |
Possible Duplicate:
Prototyping vs. Clean Code at the early stages
I'm right in front of a difficult decision.
I have a problem in my codebase (it's in C++), which I could solve in two ways:
A) Add one line of code
B) Rewrite ~7500 lines of code, adding roughly 1000 for an additional messaging switchboard class
No... |
Many times throughout writing larger programs I have questioned after how many copy and pastes does it make sense to put the code into a function or method and what is a good rule of thumb?
I have been using a rule of thumb of four lines or greater and appearing more then twice, then I make a simple function / method c... |
I'm working on an internal company application(not built on Wordpress) that needs to have shortcode functionality similar to Wordpress (http://codex.wordpress.org/Shortcode_API). Wordpress has a bunch of functions relating to handling short codes but the ones I was looking at were just the ones that handled the regex ... |
I'm interested in setting up Lazy Registration on my website.
Ideally, I'd like people to be able to fill out a record that might include their name, email, address, etc. and then record it to a user record later.
The problem is, sometimes the person filling out that form will already have a record on the site. At that... |
I am learning Java and I was wondering about when it would be best for me to try to develop something for Android? I have two specific concerns.
1.How is the Android API different from the main Java API? Are they similar or radically different?
2.I have heard that you need to make multiple versions of a given applicati... |
Long story short, I'm president of a programming club at my university. We're all 1st and 2nd year programming students. We have a project we're about to start working on (converting a console program to a gui program, in c#). Only two of us have any experience working with winforms and event driven programming in gene... |
I want to know, how important is it to program in your spare time? Is it necessary to work your 9-5 as a programmer and then get home and work on your hobby to become a better programmer?
This said, I know you only get better at programming by, well, programming.
Do prospective employers take hobby programming into ac... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.