instruction stringlengths 34 19.9k |
|---|
I know that null being added to every type in Java is a source of much frustration regarding the language's type system. At the same time I generally hear complaining about checked exceptions - that they clutter interfaces, encourage exception swallowing, etc. It seems to me like null inhabiting every type is a way aro... |
In many cases, I want to write methods that have the same functionality for different types of inputs. This is easily accomplished by method overloading if the parameter types are different.
But what's the best (most robust) way to go about resolving the case when the parameter types are the same (i.e. two different re... |
I ported a library to Java, but am wondering what to do with the JavaDoc comments. The original library used javadoc comments too, so do I leave the @author tags from the original code? And how do I give myself credit as the person who ported it over?
|
I'm thinking of scientific applications that are mostly processor-bound and heavy on heap usage (at least several gigabytes). Any other time of the year I would happily go with C++, but in this case I wonder if the fragmentation natural to the C++ memory manager can be a serious issue versus the advantage of Java's com... |
I recently started learning JavaScript and am looking for a good JavaScript Editor/IDE. I found dozens of them in a Google search but I would appreciate if users who have experience with using such an IDE could recommend one.
I want an IDE with syntax highlighting, possibly IntelliSense and debugging support for JavaSc... |
I am an undergrad studying Computer Science. When I tried reporting bugs to several projects, I came across the classification untriaged a lot. A web search didn't really explain what this means.
Could you tell me what an untriaged bug is?
|
My production database is SQL Server 2008 R2 Express. It has limited features and I am testing it in a production environment. To better handle reporting queries in a highly concurrent environment, I want to use any open-source RDBMS with tables that will be acting as temporary tables to frequently fill recent records ... |
The following principles of Agile development makes it look like Agile is mostly suited for services companies:
Customer satisfaction by rapid delivery of useful software
Welcome changing requirements, even late in development
Working software is delivered frequently (weeks rather than months)
Working closely with the... |
This is more a learning question than coding, but I'm certain it's a common issue for anyone developing administration systems or applications in php/mysql/js etc.
I've developed quite a complex application that lets users upload images, and define hotspots in them with associated actions. The images are stored in a ta... |
I was wondering if php programmers keep error_reporting in php.ini on or off after delivering the website?
|
I have taken over the code base for a ruby-on-rails application which relies very heavily on ActiveRecord callbacks to perform domain rules.
The application can be compared to a bank application, where a customer has an Account. On each account you can register a Transaction (an amount of money that is either inserted ... |
While working on multitouch, one of the problems I've run into is the fact that nobody seems to do gesture recognition without some kind of init event, whether it's a mouseclick or contact with a capacitive touchscreen.
Is it possible to do an "always listening" gesture handler? If so, how to do it without mirroring in... |
Possible Duplicate:
Why is Scala more scalable than other languages?
The Wikipedia page on Scala says:
The name Scala is a portmanteau of "scalable" and "language", signifying that it is designed to grow with the demands of its users.
I've also read that:
And that's Scala's dirty little secret. Scala is only scal... |
Reading this other question makes me wonder if I (as an absolute beginner PHP programmer) should stick with WAMP and Notepad++ or to switch to some IDE like Eclipse.
It's understandable that skilled developers will benefit from a big shiny IDE. But why should an absolute beginner use an IDE? Do the benefits outweigh th... |
According to Wikipedia,
about is an internal URI scheme (also known as a "URL scheme" or, erroneously, "protocol") in various web browsers to display certain built-in functions. It is not an officially registered scheme, and has no standard syntax.
my question is... what "powers" these "interfaces"? there doesn't s... |
Possible Duplicate:
When should I start learning a PHP Framework
I am an absolute beginner programmer. I've got lots of theoretical understanding from university a decade ago but no practical experience. I want to remedy that with a hobby project that would be similar to a real-world sellable web app. I've chosen PH... |
is there a general method to evaluate the optimality of an optimization algorithm, for example an algorithm solving an otherwise NP-hard or NP-complete problem?
The only method I came up so far is comparing the results of the algorithm against already known optimal solutions.
If not, are there specific methods for some... |
Once you escape the realm of electrical signals and are dealing with software, is there really such a thing as a "push" architecture where there isn't periodic polling?
I can't think of any design where it's not polling at some level. It seems like it's always just a level or two beneath the actual abstraction/API you ... |
After following buffer overflow examples and reading on them in various books/websites it seems there are lots of preventative measures in place to protect against them these days. ASLR, /GS flag security cookie, stack-protector in linux, etc, etc...
Some of the examples I have looked at give instructions on how to dis... |
I have read once in a book about exception where "an object of type Exception can be an instance of any
subclassof Exception". I kinda get it, but there's still confusion can anyone clarify me the meaning of this?
|
We're launching a system, and we sometimes get the famous exception NullReferenceException with the message Object reference not set to an instance of an object.
However, in a method where we have almost 20 objects, having a log which says an object is null, is really of no use at all. It's like telling you, when you ... |
What would a system like BOINC look like if it were written today?
At the time BOINC was written, databases were the primary choice for maintaining a shared state and concurrency among nodes.
Since then, many approaches have been developed for tasking with optimistic concurrency (OT, synchronization primitives like v... |
Has anybody done any real research on the probability of UUID collisions, especially with version 4 (random) UUIDs, given that the random number generators we use aren't truly random and that we might have dozens or hundreds of identical machines running the same code generating UUIDs?
My co-workers consider testing fo... |
I currently code in PHP. Recently I've been working on a project using PHP and Symfony that:
reads large XML files (lots of DOM parsing/reading),
converts large XML files to large arrays,
merges 2 large arrays (lots of array sorting),
takes the 2 large arrays and turns them into a large CSV file.
I finished it in PHP... |
I am not sure what exactly I am looking for here, but here are the facts:
I will be offering a free to use software, free as in $0 cost only(not OSS). I need a piece of text included in the installer with agree/disagree, that would protect my rights. Specifically that I don't guarantee anything and shouldn't be held l... |
When reading about best practices and code reviews, I have come across a word/phrase that people on forums have used to describe code that should be a warning sign that the programmer may have missed something or made a mistake.
A sample sentence would have gone something like this: "Often if you see a single if statem... |
I have always kind of wondered, but never took my time to actually ask these questions regarding licensing. Most of these questions are presumably pretty basic, but I have no idea what I'm dealing with here.
The thing that baffles me the most is how exactly you "implement" the license for your OSS. Is just saying in th... |
In a project where there are non-functional requirements which specify the maximum execution time for a specific action, QA must check the performance of this action on a dedicated machine using precise hardware under precise load, both hardware and load being specified in the requirements.
On the other hand, some erro... |
I'm trying to follow the MVVM pattern in a reporting / statistics application that I'm making in C# / WPF.
I have made many model classes to hold properties as a starting point. Some of these models are made to encapsulate different statistics so that I can present data that can be cross refrenced.
I'm thinking the ne... |
I found a database structure for a CMS system and I want to copy it with the EF that this database is done in, is it OK to copy the database structure of open source software which is under GNU v2 lisence?
I don't want the rest of the software only the database structure.
|
I'm building a grants management system where we're trying to find a list of lost users using a number of different means.
The first attempt is email but if we do not have an email address, we will try SMS.
Just wondering, before we get our business guys to start thinking up SMS messages, is there a maximum length or... |
Is it good practice to have a main.c file that just has the main function in it and no other functions so that all other functions can be interfaced?
If there is no definitive rule, when is it good to do so and not to do so?
|
Scala is billed as a scalable language, a feature that's even included in its name:
The name Scala is a portmanteau of "scalable" and "language", signifying that it is designed to grow with the demands of its users.
What does "scalable" mean in the context of Scala? What makes Scala more scalable than, say, Java?
|
Possible Duplicate:
Does making source code available affect your ability to generate revenue?
Initially I was going closed-source all the way, or at least until we
have a good reputation, and open-sourcing will only improve that rep.
Recently though, I've been thinking about open-sourcing the entire solution.
Vario... |
I have a project for university which I won't be starting immediately, but have been thinking about for a reasonably long amoung of time. I understand that University project development isn't like industry (I'm currently an intern myself) so the situation that I'll be pointing out at the moment will probably seem some... |
I'm green at programming but not entirely noobish. I taught myself some Java about five years ago, and I learnt me some Objective-C recently.
I was talking with a Unix guy a while back, and he said that if you do your object architecture and design very completely and correctly, cross-platform development becomes reall... |
This query is related to application design the technology that I should consider during migration.
The Scenario: I have a C#.net Winform application which communicates with a device. One of the main feature of this application is monitoring cyclic data(rate 200ms) sent from the device to the application. The request t... |
I would like a schema to represent integer numbers starting with 0, without any limit (assuming access to infinite linear storage).
Here's a schema that can represent numbers from 0 to 255:
Use the first byte of the storage (address 0) to store the integer.
Now, suppose I want to represent numbers larger than 255. Of c... |
I am a newbie learning Java. In Java every source file must contain a public class and that source file should have the same name as that public class. Moreover, no source file can contain two public classes. Why is this restriction?
|
Possible Duplicate:
At which point do you “know” a technology enough to list it on a resume
I have been holding off adding Hibernate to my CV (resume, for American readers),but we are just coming to the end of a project where we have used it successfully and it might be time to add it. I don't know if we covered all... |
We are planning to organize programming workshops for Java web developers with basic coding but no design experience. The goal of the workshops is to introduce these programmers to clean code.
Focus Areas:
TDD
Four Rules of Simple Design
runs all the tests
contains no duplications
expresses the intent of the programm... |
Dart has been out for ages (in internet years), but judging by Google Trends , it hasn't gotten much hype, and the fact that it only works in Chrome doesn't help either. Nonetheless, Chrome is gaining market share every day, which lends itself to a better view on Dart.
What is the big picture now? What state is the lan... |
I develop personal projects on two machines without use of a shared server or a network connection between the two.
Do any common version control systems reliably support use of portable storage (such as a USB flash device) as the shared repository?
|
Most organizations restrict access to the source code to engineers, and even at places like Google, the Android source code is kept off-limits to most engineers within the company. Why?
Note: I am not talking about write access for everyone in the company, I'm talking about read access.
|
I'm trying to practice programing by creating a simple application which, I think, I can manage to do in .Net C# in Visual Studio 2010.
I'm working on simple application which will let me to create small pictures (icons) in sizes such as 8x8, 16x16, 32x32 (etc) pixels. I will be creating a grid representing each size b... |
I am starting a new Android application. What is the best structure to use?
I am planning to make it a multi-package design as follows:
Main package, including the Activity
Service and data layer
Entity package, including entity class.
Any advice ?
|
I wanted to know the difference between agile lifecycle and agile unified process(AUP). I do understand that AUP is a modified version of RUP using agile methodology. Can you please elaborate on the differences between the two
|
I am developing my own programming language. It's a general purpose language (think staticlly typed Python for the desktop, i.e. int x = 1; ) not intended for the cloud.
Do you think it's okay not to allow inheritance or Mixins? (given that the user would at least have interfaces)
For example:
Google Go, A systems lan... |
Keep in mind, I know PHP as I learned it for this specific project. Also, I thought about just using magento, but as I went through it, I realized I would have to learn their framework. I am very opposed to putting more time into learning a framework rather than continue expanding my PHP knowledge. I took a computer sc... |
On a uniprocessor, it is apparently optimal to schedule jobs that take less time first assuming non-preemptive scheduling - once a job runs, it must finish. Why?
I am confused about how the ordering would change the overall latency. Since a uniprocessor can only take on a single process at a time, wouldn't the latency... |
This is basically the same as Coding to interfaces, but played out in the real world of com when there are various engineering complexities such as immutability of published interfaces and implementations, etc.
Consider the following situation:
A OS-level object-oriented library with a set of published interfaces and ... |
In 2011, I released some open-source code that was licensed using the Apache license. As such, all the source files have this boiler plate message at the top:
/*
Copyright 2011 My Name
Licensed under the Apache License... <blah blah>
*/
So now it's 2012, and I am readying to release a version 1.1. As such, most... |
I've been writing a few tools as standalone webapps for which I have written no server side code and it strikes me that I'm not sure what people call such things.
I like them because they can be distributed as a single file that anybody with a web browser can run. Typically all the funky stuff is done by calling AJAX w... |
I've been reading about Bayesian spam filtering and I think I understand the theory, but I just don't see why this approach is needed in order to calculate the likelihood of a message being spam, given that it contains a certain word.
If we have a set of messages already classified by the user as either 'spam' or 'ham... |
According to this page on MSDN the sql language used on Sql Azure is called transact-sql (the same as on sql server). But is this the only way to refer to programming on Sql Azure?
The Sql Azure variant of transact-sql doesn't support a bunch of features including global temporary tables, distributed queries and syste... |
I'm not exactly a new git user but I have never used any of its advanced features such as tags, branches, merging and others. I haven't even used anything equivalent features from other VCS software. My projects have been so simple that I have only needed commits and sometimes diffs.
Now I'm planning to open-source a s... |
I need to convert Powerpoint files to PNG in PHP. I can do the conversion with using COM in PHP but COM is only supported on Windows. I need to do this for both Windows and Linux.
I am wondering if someone give me hints about that conversion.
|
As an example, let's say that I need to check for a certain usage of C# code and warn the user that that is a bad pratice. There are multiple usages that I want to detect, such as:
Resource not being released by developer (in a heavy COM environment)
Instance should be created using Activator instead of new (I don't h... |
What could be the necessary prerequisites to be taken when developing an application with Unicode support in the context of
Web applications
Desktop applications
Embedded applications
Prerequisites to be taken care of relating to
Type casting and conversion
Data Storage
Fallback in case of no Unicode support
Transit... |
Our system's main functionality is encapsulated in a service, let's call it X.
There are requests coming in to X-Manager service which deal with all validations and security issues, and activates X's functionality after everything passed.
We now want to extend X's functionality with a new module, let's call it Y, but w... |
I want to create a static HTML file I can email to someone with a lot of data, and have that data sortable and filterable. What is the easiest to use library or package I can use to get this off the ground?
|
I'm currently coding a new application for my company that is rather involved. To meet the deadline, the functionality has been toned down quite a bit so that we can have something ready to go for launch.
I've been given the task of getting version 1 up and running by the end of the month. I'm about halfway through de... |
I know this may be a general question, but what exactly goes into scaling for all the users you will encounter, even if not in the next few months? I did some research and most of what is done is server side, with caches and other similar stuff. Any points in the right direction would be helpful.
|
I'm intrigued by the way Go abandons class hierarchies and seems to completely abandon the notion of class in the typical object oriented sense. Also, I'm amazed at the way interfaces can be defined without the type which implements that interface needing to know.
Are there any terms which are/can be used to character... |
While researching some information regarding managing state and session in web applications, I stumbled across this nugget of information:
67 is the first useful prime number after 60. (Yes, 61 is a prime,
too, but it's too close to 60 to be of use.) Setting timeouts in
durations of primes is common because it les... |
Why was the property string foo = string.Empty included in the BCL? It seems more verbose and no clearer than just using an empty string (string foo = "")
|
I have been looking for a really good open source flash development environment with no success. The best I could find would help in the development of pretty much everything, but I still needed to have Adobe Flash Professional in order to compile my work. Is there a way I can develop Flash applications and not need ... |
I've noticed that in most technical phone screens, programming questions tend to focus on inheritance. For instance:
If a class is intended to be inherited, what should you do with the destructor? (Answer: make it virtual)
What's the deal with public/private access?
What's "protected" for?
Etc. etc.
It strikes me tha... |
I just noticed that every modern OO programming language that I am at least somewhat familiar with (which is basically just Java, C# and D) allows covariant arrays. That is, a string array is an object array:
Object[] arr = new String[2]; // Java, C# and D allow this
Covariant arrays are a hole in the static type sy... |
I'm working on an application that is going to replace a rather large spreadsheet. The spreadsheet is used to budget purchases and things like that. It is the largest spreadsheet I have ever seen, and it required a lot of manual data entry, so this application is going to automate much of that.
But as I'm working on th... |
I am trying to randomly generate a directed graph for the purpose of making a puzzle game similar to the ice sliding puzzles from Pokemon.
This is essentially what I want to be able to randomly generate: http://bulbanews.bulbagarden.net/wiki/Crunching_the_numbers:_Graph_theory.
I need to be able to limit the size of th... |
I am reading this wonderful book called "Coders at Work: Reflections on the Craft of Programming" by Peter Seibel and I am at part wherein the conversation is with Joshua Bloch and I found this answer which is an important point for a programmer. The paragraph, goes something like this.
There's this problem, which is,... |
I'm creating a website based on users' code, a place where they can share code in a social way and one of the features I'm currently developing is Code Review.
This feature will allow users to evaluate code in certain aspects, from the top of my head I came out with things like:
Legibility,
Performace and
Modularit... |
I am leading a team of 3-4 junior developers. My job-- besides writing code-- is to provide supervision and guidance for the juniors.
But, I fully understand how much developers cherish autonomy in their work, and I don't want to destroy their intrinsic motivation by spoon-feeding them with my thoughts and my algorithm... |
As a result of a retrospective we were uncovering worse ways of developing
software. We had a idea we though was great and tried it. We stayed with it during the development of a major update which took 3 months. After a retrospective with the maintenance engineers it turn out our idea does not work for them (we had di... |
I am quite new to the Clojure world. I appreciate the fact that one has easy access to all Java libraries via Clojure interop features, but I was wondering how much Clojure stands on its own legs.
Of course there are some platforms, like Android, where interoperability with Java will always be required, because the cor... |
This is for a small personal project for micro-management. Basically, I store tasks in a SQLite3 database that looks like this:
id INTEGER PRIMARY KEY AUTOINCREMENT
label TEXT
deadline INTEGER
So each task has a due date (deadline) that is stored as a Unix Time Stamp. So far so good, I can do entries such ... |
We all have definitely used typedefs and #defines one time or the other. Today while working with them, I started pondering on a thing.
Consider the below 2 situations to use int data type with another name:
typedef int MYINTEGER
and
#define MYINTEGER int
Like above situation, we can, in many situations, very well ac... |
Are there any known design patterns for implementing discount models?
By discount models, I mean the following:
If a customer buys Product X, Product Y and Product Z he gets a discount of 10% or $100.
If a customer buys 100 units of Product X, he gets a discount of 15% or $500
If a customer has brought in the last y... |
I am just going through the WPF concepts I came across these routed events, dependency properties and attached events.
What are the concepts behind them and why are they called instead of .NET ordinary methods?
|
I develop an internal business application that our engineers use to test and debug the company's product. The engineering manager has been pushing to get the software developers involved when the engineers are in their design phase. He says that he wants to give us an idea of what's coming down the pipe, and give us t... |
I have a situation where I have to access several "sub-properties" of an object and find it quite appalling to write such code.
I was wondering how best to deal with this situation:
void Main()
{
MyAClass aClass = new MyAClass();
aClass.BClass.CClass.DoSomething();
}
In addition to it being an eyesore, there a... |
Consider these two examples:
Passing an object to a constructor
class ExampleA
{
private $config;
public function __construct($config)
{
$this->config = $config;
}
}
$config = new Config;
$exampleA = new ExampleA($config);
Instantiating a class
class ExampleB
{
private $config;
public function __const... |
I'm a little bit confused about 'function' and 'lambda'. I've seen some examples showing that the scheme keyword lambda works very similarly to the JavaScript keyword function, but I really don't know how they are related.
I'm told that 'function' and 'method' can be used interchangeably when speaking about objects in... |
I'm trying to gather effective ways that others have solved the following problem. At work we've been forced to release a software patch (to be installed on end-user systems) that we only want visible to a specific customer. The custom code is in its own source-control branch. The problem is we have two parallel cod... |
I am part of a team of seven developers in a small software company and I am trying to introduce regular group code and design reviews. We have carried out some reviews in the past, but it has been sporadic. I would like to make it a more regular thing.
I have read Code Complete and other similar resources and they tal... |
I'm working on a solution for an organization that needs to last them long term (as subjective as that is).
They currently have a Joomla installation whereby the CMS talks directly to the database, from there I have started "bolting on" the additions that they need for their environment (mobile app, kiosk, and lobby di... |
I am developing a course registration website in Django. New users must confirm their email address by clicking on a link emailed to them.
Unfortunately, this message is consistently ending up in people's spam folders. What steps can I take to prevent this from happening? Should I include an unsubscribe paragraph? Shou... |
I've spent some time developing a little Android app to scratch my own itch. I'm considering publishing the current version as a beta in Android Market. Pros for publishing it now would be the potential to get feedback. It would also be a way to gauge interest in the app which could effect whether to develop it further... |
Some time ago I developed a small project for use in unit testing scenario's and published it on Codeplex. Back then I choose the GPL license but I didn't really understand it. Today I changed it to MIT, because it's a much simpler license that I can understand.
I like to be recognized as the copyright holder, but I w... |
I need to develop/use a package manager for an embedded Linux system with the following properties:
A master fully controls which packages need to be installed (the slave has no possibility to ask the master anything)
Download speed on the device is slow that not just everything from the master distribution can be dow... |
I am a beginner programmer. I've gotten an AS degree in CS which exposed me to the basics of c++, data structures, and algorithms and have light experience with html/css/javascript from just messing around building my own basic websites. I am no where near a proficient professional programmer as of yet.
My question is... |
I've recently come across github projects that I could really use, but appear to have been abandoned, with lots of issues and important pull requests, perhaps 100+ forks. Often, there isn't an alternative project.
Do I use the code as is? Do I pick a fork and ignore the others? Do I manually pull in code from the pull ... |
Every release, our trail of bugs keeps on increasing. These are valid bugs however, we also have to write new features to stay in the competition. Also, those features will be more used than the bugfixes; and provide better ROI.
How are other engineers and product owners handling this situation?
|
I'm interested in learning to develop for Windows Phone down the road a bit, and am mostly interested in developing Metro Apps for the Windows Phone. It seems like there is some basic info for Metro development now, but no guidance on what will be relevant when Windows Phone 8 releases. There seem to be two potential s... |
I'm in charge of a software platform, written in C, that is used to provide a variety of projects to clients. I am trying to improve the workflow for people using this platform, and looking at whether source code control (Mercurial being the most likely candidate) can help.
The platform is only used internally for ~10... |
I want to build an Android SIP application, and I'm looking at csipsimple's source for inspiration. I am using:
Linux,
Eclipse 3.7,
Android sdk & ndk,
swig.
What are the development phases or steps for such an application? And what would be an appropriate licence?
I am not asking for code, but for an overview of the... |
I'm looking for an efficient algorithm to find clusters on a large graph (It has approximately 5000 vertices and 10000 edges).
So far I am using the Girvan–Newman algorithm implemented in the JUNG java library but it is quite slow when I try to remove a lot of edges.
Can you suggest me a better alternative for large gr... |
What is the difference between Development Operations and Software Configuration Management?
For me it seems to be the same as long as both DevOps and Software Configuration Management are focused on:
Establishing development infrastructure - being in charge of version control, build management, deployment management,... |
I am quite proficient in C and know some C++, but never touched Java. Recently I got an idea for an app which I think has potential, and I want to develop it.
I am planning to go Android first, cause it doesn't require a mac/iPhone.
So my question is: can I go straight to learning Android development, picking up the ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.