instruction stringlengths 34 19.9k |
|---|
After reading some articles on Google, I decided to start working on Android apps since it's an open source platform from Google.
So I wanted to create some apps.I have Android 2.2 Os So I just googled it to find the things and I finally found this link to create Android apps.
Is this the link that enables me to create... |
I am reading Pro C#. It says
do be aware that the value 0 is automatically returned, even if you construct a Main() method prototyped to return void.
What does prototyped mean in this context?
The only C# related definition of a prototype I'm aware of has to do with a model or test program tossed together without ... |
If I copy a piece of code from somewhere that looks like so
$blah = array(1,2,3,4);
foreach ($blah as $i)
echo ($i);
and rename the variables but forget to do it correctly like so
$apple = array(1,2,3,4);
foreach ($blah as $i) <--- notice $blah instead of $apple
echo ($i);
Then my NetBeans IDE doesn't c... |
I told the company I work for that I want to phase myself out, but that I would stick around for a couple months before applying anywhere to help in the recruitment of my replacement. I offered this because I am the sole web developer and I didn't want to leave them helpless.
The problem is, they want to hire someone v... |
This is a web project written in Java.
So, I'm writing the build and the deploy scripts. To create the build, I used ant. The continuous build is done with Jenkins.
The build generates 3 different artifacts:
The war file
A zip with layouts
A zip with images
So far, so good, but now I need to write the deploy script, ... |
I recently started working at a new company that currently doesn't use linq, but does use C# and the .net framework. I'm coming from a LINQ background, so I'm biased, but I still think there are a lot of advantages to using linq.
That being said, it's still going to be hard to influence change as I'm still very new. ... |
I'm thinking of developing software for Ubuntu and other related Linux-based distros (like Linux Mint). But currently am at a loss for where to start.
Would learning Python be enough/good?
And what are the other things I should know about before starting this kind of developing?
And will I be able to publish my apps to... |
When enabling SONAR on an in-house Java project, there are a large number of violations being reported due to the rule DesignForExtensionCheck. Whilst I agree with the theory that all classes/methods should be marked up as being either Abstract, Final, etc. But is it strictly necessary for an in-house application where... |
Time after time you have to work with code that's not as safe as you would like it to be. Either that's someone elses code, or something you wrote at 3am 5 years ago, but it happens.
And in those cases it would be good to make that code a little bit safer and more typing-error prone.
At the same time, you want to avoid... |
Maybe a better way to ask the question would be: why is the Facebook app so bad?
This is not so much a question specific to the Facebook iOS app, it just uses that as an example. What I want to know is how is it possible that a company like Facebook that has all the resources it needs can make such a bad app. Facebook ... |
I'm working on an application, which when deployed is installed locally on client machines, and uses a local database server. Stupidly, I didn't plan for schema changes -- and now it needs to change.
Perusing lots of SO and Programmers questions, and googling, I've found a few strategies:
many SQL files. One for eac... |
I am developing a system that is designed for multiple forms of interfacing. There is a website, but that is connected through an SDK, as well as an HTTP query interface to access data. But to improve speed and quality, I was thinking of creating a system inside IIS that get any message sent to the server, any response... |
Possible Duplicate:
Are certifications worth it?
I'd be glad to hear your opinions on which programming certificates are the most widely recongnized in the industry and how useful are they actually. I've googled a lot this question but I've never asked here and I'd like to gather as many opinions as possible before ... |
Im researching TDD, I'm not really sure how to write a test before I have written production code. The problem is that TDD states that you make assertions and then write your code so that these assertions pass. But You have not created any classes yet (as part of the production code) so how are you meant to write the t... |
I'm designing a JavaScript selector engine, and I'm currently focused on parsing the selector string. Specifically, combinators.
The CSS3 combinators I know of are:
> (children)
space (descendants)
+ (next sibling)
~ (all next siblings)
Which is fine for how CSS works (how style rules are applied). However, I'm now r... |
It seems that newer websites (and API's especially) make use of request formats by adding the expected format to the end of the URL path.
/path/to/resource.html
/path/to/resource.json
/path/to/resource.xml
Are their any problems with this approach? Are there any studies or outlines of the pros and cons of doing this i... |
Possible Duplicate:
Is COBOL still worth learning?
One of my better college professors often talked about the advantages of learning an archaic language (COBOL or SAP ABAP for example) in one's free time because of the advantages it provides when looking for high-paying jobs, or if you find yourself out of the job a... |
I have a requirement to create a donation software for a project.
Does anyone know how KickStarter designed theirs? What are the security elements involved? How do I create the credit card transactions-processing part? Is there some common library/service used for that?
I am still in research phases for this, so any id... |
I want to contribute to the open source community, but I've never done it before, and I have some concerns regarding the collaboration process - I am afraid that I will just "get in the way" of other developers, and since (I assume) that they are pretty polite guys, they will feel bad about telling me to bug off. I ima... |
In dynamic languages, such as JavaScript or Python, the type of a variable is determined at runtime. This is one reason why they are slower than typed languages such as Java.
How is type checking performed? What is the essential reason this process is slow?
|
I'm looking for a light-weight code review process. A couple of requirements, the reviewer must be able to do the review alone at the time of his/her choosing (not tied to check-ins), the reviewer must be able to easily find the target code, the review has to leave some document showing what was reviewed. I know there ... |
While architecting the system, often you have to choose the appropriate technologies to be used for every module. What are the different parameters to be considered while choosing the technologies/frameworks? How those parameters can affect the project quality, schedule, expense? Can anybody please explain in detail.
|
Hibernate has CR postfix in their releases for the 4.0 version of hibernate, for example 4.0.0.CR7. What does the CR part mean? When would I use this kind of release numbering?
|
SFINAE and template metaprogramming can do wonderful things and many libraries also use them considerably.
Historically both of these "magic concepts" were intentionally introduced/supported in C++ ? Or they were just later discovered as useful byproducts (side products) of original template programming ?
|
I am working on a fairly big project and got the task to do some translations for it. There were tons of labels that haven't been translated and while I was digging through the code I found this little piece of code
//TODO translations
This made me think about the sense of these comments to yourself (and others?) beca... |
I am finding myself building up a whole bunch of JSON calls all through my application, which are basically actions spread across various controllers. I am considering creating a JSON Controller to keep all the JSON actions in one controller, so instead of;
Products/GetListJSON
I would call
JSON/Products
Might this h... |
I'm asked to teach my students Eclipse.
The lectures are already done; I see that the teacher asks the students to always start a new project in "Release" mode.
Is this a good idea? If "yes", or if "no", why?
|
recently I have noticed a new approach to data modeling vs what I have used so far. This seems to be a way to address modeling of an entity that has a very large set of fields and quite often many of them are empty.
First approach - the one I used previously:
Main table for the main set of fields (a,b=1,c=2)
Addition... |
A few days ago, I was talking to a Software Engineering PhD candidate and at some point she said to me:
Keep your classes and methods as small as possible
And I wonder if this is always a good practice.
I mean for example, is it worthy to have a class with only 2 attibutes in it? For instance, In some methods I need... |
Important discussion follows:
C# and other language have made partial classes more popular.
But isn't this really a tool that have reinvented the subject-orientated programming wheel?
What do you guys think? Should subject-orientated programming be taught more and get more focus to help programmers utilize partial clas... |
Possible Duplicate:
Make a big deal out of == true?
When I was a young padawan in the world of programming, a person I considered a mentor told me that if statements are more aesthetically pleasing if written in the following way:
if (condition == false) {
doSomething()
}
or
if (condition == true) {
doSomet... |
Over the years of using C#/.NET for a bunch of in-house projects, we've had one library grow organically into one huge wad of stuff. It's called "Util", and I'm sure many of you have seen one of these beasts in your careers.
Many parts of this library are very much standalone, and could be split up into separate projec... |
Looking for a systematic method for estimating and comparing the success factors of sprint configurations based on:
Team Size
Sprint Duration
Number of Stories
|
What is the best way to evaluate the best candidates to get a new job (talking merely in terms of programming skills)? In my company we have had a lot of bad experiences with people who have good grades but do not have real programming skills. Their skills are merely like code monkeys, without the ability to analyze ... |
I heavily use CTRL+ to jump between tokens in code (the _s are the navigation points):
_fooBar _+ _barFoo_;
Some editors, like the one in the current version of QtCreator, have (by default or optionally) camel case navigation, which goes like this:
_foo_Bar _+ _bar_Foo_;
What is the rationale behind this? I remember ... |
Could Designing by Contract (DbC) be a way to program defensively?
Is one way of programming better in some cases than the other?
|
We have our Product Backlog as a physical Kanban board with TODO & DONE column.
Some of the stories are moving from the TODO column to the Sprint backlog during our planning, and then during the Sprint review back in the Product Backlog in the DONE column for the one which we completed.
I was wondering if keeping histo... |
I'm having problems bringing the software engineering I learned in school into my projects at my job.
The patterns are all easy enough to apply, but coming up with architectures and general class structures is tough for me. It's so open ended and I never know how to approach my projects, with the exception of any proj... |
Consider a Flex (actually AIR) application that is considered proprietary, but needs to use an LGPLv2.1 AS3 library, so that it is considered a "work that uses the Library" according to the license text and is thus required to be distributed according to the terms of Section 6 of the LGPL. What provision in AS3 or Flex... |
Possible Duplicate:
How do you deal with an information hoarder?
Often, in IT teams knowledge equals power. This is fine as long as (IT-)knowledge is equally accessible by all members of the team and company specific know-how is well documented. Sometimes personnel in an IT department build up a tremendous amount of... |
Typically, when you hit Enter in a smart editor, it copies the indentation of the last line by inserting the same amount of spaces, so if you don't delete them, the code looks like this:
sub sum {
my @numbers = @_;
my $sum = 0;
foreach (@_) {
$sum += $_;
}
return $sum;
}
(Yes, t... |
In a meeting the other day a claim was made that agile was only 60% as efficient in development time when compared to waterfall. I am not looking to validate or refute this claim. I am interesting in finding out if there have been any studies comparing the 2 methodologies.
Are there any studies out there comparing th... |
Possible Duplicate:
Techniques to re-factor garbage and maintain sanity?
I have a fairly large PHP code base that I have been writing for the past 3 years. The problem is, I wrote this code when I was a terrible programmer and now it's tens of thousands of lines of conditionals and random MySQL queries everywhere. A... |
Without knowing anything I wrote a big application, almost 1 year coding.
It does Video/Audio such as softphone for commercial use (we sell it). I used a framework which was licensed under the LGPL, lesser Gnu Public License. Now before I release it to production, since I used the H.264 video codec and a 'LGPL' frame... |
So, I think it look pretty bad when you release an update and pull it off the web. I'm pretty sure this has happened for at least two of the the last three Delphi XE2 updates. I'm not complaining because I'd do (and have done) the same thing.
The only problem is, how do you do this gracefully? And, how do you alert ... |
What's the best/easiest way to get into the MS BI stack on my own (preferably with a [kindle] book)? Specifically, I'd like to learn more about SSIS, SSRS, and SSAS in that order. I've tried looking at books on amazon, but I really have no idea.
Some background: I just graduated with my bachelor's in computer scienc... |
I've been working under the share-nothing principle of concurrent programming. Essentially, all my worker threads have immutable read-only copies of the same state which is never shared between them (even by reference). Generally speaking, this has worked really well.
Now, someone has introduced a no-lock singleton ca... |
I've used UltraEdit for years and never had a problem with sharing code with fellow developers whether they worked on Windows, Mac, Linux, Eclipse, Visual Studio -- what have you...
But now I am in an office where some developers are using emacs and they complain profusely about the white space differences my code "int... |
I've created two abstract classes Subject and Observer that define a classic Observer pattern interface. I derive from them to implement the Observer pattern. An observer might look like this:
void MyClass::Update(Subject *subject)
{
if(subject == myService_)
{
DoSomething();
}
else if(subject... |
I read a UML book a long time ago (15 or so years ago) by the inventors which said something like "software engineering should be like building a house". Meaning architects produce blue prints, and specialized workers utilize various views of them to produce their part of the end result.
When I read it, it seemed reas... |
(Asking this here instead of SO because I don't even know what technology to tag it with :))
My team is about to embark on a project to convert a large part of our code base to use asynchronous file I/O, as our file storage medium is increasingly being locate across a high-latency connection. We have some basic experie... |
I have a web application which is a pretty standard SAAS database driven app. I have a few customers asking for iOS or Android versions of the app. Is it better to build an API on the web app which is then used to drive the native mobile apps UI? This would be simplest but mean the mobile apps are not 'stand alone'. Al... |
I'm currently looking for a new programming language to learn (currently working through some C++, know some C and Python), specifically one that has built-in concurrency support? I want to try to build a large graph library that can do processing across clusters or multiple cores.. I know C++'s Boost library has suppo... |
I'm working on a project loosely following the scrum model. We're doing two week sprints. Something I'm not clear on (and don't have a book to consult) is exactly what is supposed to happen between sprints: there should be some "wrap" process, where the product gets built and delivered, but:
how long does this typical... |
I've been reading about Domain Driven Design for almost two years and have been cautiously been introducing some concepts in to my daily work or at least making plans for how things I do regularly could be done within a Domain Driven Design.
One conclusion that I've beginning to come to especially in response to readin... |
1. When to treat a software as deployed and when to start charging for maintenance ?
In most of the cases the software we make is deployed on the web at early stages to enhance the testing process from the client side. This means that bugs keep arising and we keep fixing them alongside development. Not just that, as th... |
I find writing CSS by hand to be extremely tedious.
Coming across a concept such as fluid, makes me want to write all my websites so that the CSS resizes nicely and looks the same in different browsers.
My question to you is: Can my design be generated programmically?
e.g.:
#include <css>
#include <html>
#include <vect... |
I understand that C++ is a very fast language, but ain't C just as fast, or faster in some cases?
Then you might say that C++ has OOP, but the amount of OOP you need for most programming puzzles is not that big, and in my opinion C would be able handle that.
Here's why I am asking this: I am very interested in program... |
I'm not a native English speaker. In my native language I'm aware of some terms used to refer to the condition checked to stop a recursion, and to the condition checked for extreme, unlikely or super-simple cases. In English, I've encountered the terms "edge case", "corner case", "boundary case" and "base case", but I ... |
I am a big believer in agile development. I just changed jobs, and I am now working for a company that coordinates big development projects for (rather large) groups of customer organizations. My job is to find the right contractors for the projects, and make sure that the customer organizations are as happy as possibl... |
I am thinking of making some applications for Linux (primarily Ubuntu) and I have an intention of selling some in the Ubuntu Software Center and offering a few applications for free.
These free applications will be minor programs mainly used for fun and/or for a little convenience in day-to-day tasks (say, a ToDo list)... |
I have been offered a job from campus in the Enterprise s/w domain. I'm at loggerheads with myself deciding if I should take up the job, since I'm generally interested in consumer s/w esp in companies that encourage open source contributions. My question is if i'll find it difficult to later(maybe after a year or two) ... |
I saw a company is using BusyBox and also using Gpl + Lgpl + Mpl packages on it, and then they have there own application running on it. Their application is a closed source package.
You buy the device but its closed source. How come GPL mixed with LGPL+MPL becomes closed source?
I thought the rule is?? Or I am wrong o... |
I have ran into this a few times where you get put on a project and you want to do unit testing of some type, but the project isn't setup right to allow for this and you might not have buy-in from everyone. The main issues tend to be code smells like issues with dependencies (especially the over use of statics) and se... |
Can any one share a code review check list for Ext JS in common and specially for Ext JS 3.4 ?
|
I am trying to solve an issue with reusing components. I have some UI components (a mix of JS, CSS, and HTML) that are not specific to any application. These UI components need to be able to be used in multiple applications. One is a RoR application, the other is an ASP.NET MVC application. How can I maintain these co... |
Most programs can be quite casual about heap allocation, even to the extent that functional programming languages prefer to allocate new objects than modify old ones, and let the garbage collector worry about freeing things.
In embedded programming, the silent sector, however, there are many applications where you can'... |
I'm a C# developer, but I also know Java, JavaScript, XSLT, a little of C and Perl, and some other that I may have forgotten. Still, the paradigm I'm most familiar with is OOP.
I have always thought that OOP was the natural evolution of procedural programming, but I wonder if OOP is that perfect. After reading some ar... |
When creating a website, when should you load partial view and when should you do a complete page refresh?
I was looking at github's site and noticed that pretty much the only place they do partial loading is in a project's folder area. I could see a couple places where they could have but didn't(tab navigation: feed,... |
The company I am currently working for has me developing a bunch of internal mission critical software. I have one other person that works for me but he's more of a testing guy and not really a developer. The company is concerned about some of these projects and what happens if I am hit by a bus. How does the company p... |
I am looking for an open source social networking platform. Diaspora is perfect, except it is not written in PHP. Is there a project like Diaspora written in PHP?
|
This question is part-technical, part-meta, part-subjective and very specific:
I'm an indie game dev working on android, and for the past 6 months I've struggled and finally succeeded in making my own 3D game app for android. So I thought I'd hop on SO and help out others struggling with android and openGL-ES
However, ... |
I face various types of applications (web-based, GUI-based, command-line, etc.) on various platforms (Windows, Linux, etc.) to operate everyday. There is a great opportunity for me to automate tasks by scripting. But almost every type of application and platform has its native scripting language or tools (such as VBScr... |
In working with Doctrine 2 I came across the following paragraph.
In fact, since Doctrine is aware of all your managed entities, when
you call theflush() method, it calculates an overall changeset and
executes the most efficient query/queries possible. For example, if
you persist a total of 100 Product objects a... |
I am in the process of developing extensible software for the company I am working with for product pricing and production planning.
The Present Scenario
There are basically two types of products: manufactured and traded (simple buy and sell with no conversion). Manufactured can be regular or made-to-order with made-to... |
I have been assigned the task of implementing a Domain Specific Language for a tool that may become quite important for the company. The language is simple but not trivial, it already allows nested loops, string concatenation, etc. and it is practically sure that other constructs will be added as the project advances.
... |
C# seems to be popular these days. I heard that syntactically it is almost the same as Java. Java and C++ have existed for a longer time. For what reasons should I choose C# over Java and C++?
|
Possible Duplicate:
Is it ever worthwhile using goto?
In a recent article, Andrew Koenig writes:
When asked why goto statements are harmful, most programmers will say something like "because they make programs hard to understand." Press harder, and you may well hear something like "I don't really know, but that's w... |
I haven't read about this anywhere, but here are my thoughts: programming is inherently intellectually hard. I remember reading in Code Complete something that stuck with me: the author pushing and working on something long hours only to spend the rest of the week fixing it.
This is something managers don't understand.... |
I always veto JavaScript by using CSS as much as possible.
i.e. I create tabs and rollover buttons using CSS rather than JavaScript.
I have seen some solutions—specifically the Wt web-framework—which advocate JavaScript; but gracefully downgrade to CSS if the browser isn't capable/js-disabled.
I know CSS and JavaScript... |
Object orientation has helped me a lot in implementing many algorithms. However, object-oriented languages sometimes guide you in "straightforward" approach and I doubt if this approach is always a good thing.
OO is really helpful in coding algorithms fast and easily. But could this OOP be a disadvantage for software b... |
I'm developing a web application for a university project. My professor wants we to use a multi-tier architecture (Client, Web, Business and Data tiers) with EJB. For the Web and Business I have chosen to use the MVC pattern. Anyway, little by little, I build the tiers in this way: the View (JSP and Servlet) ALWAYS for... |
I have my mind set that I'm learning Java as my second language (I am a Perl developer). But just from reading a little of the online tutorials, I really can't find any similarities between the two. What will I have an easy time understanding when learning Java?
|
I'm exposing Data objects via service oriented assembly (which on future usages might become a WCF service).
The data object is tree designed, as well as formed from allot of properties.Moreover, some services return one objects, others retrieve a list of them (thus disables throwing exceptions).
I now want to expose ... |
There's an open-source project that I'm interested in and use regularly. It's licensed under the Apache License 2.0 and it has basically no activity any more. It's hosted on Google Code and I'm interested in continuing it's development. I'm new to the open-source process and I'm trying to figure out the appropriate way... |
Suppose this:
void func()
{
...
if( blah )
{
int x;
}
...
}
Is the space for x reserved on the stack immediately when func is entered, or only if the block is actually executed?
Or is it the compiler's choice?
Do C and C++ behave the same about this?
|
I'm currently working with Java / C++. I'm interested in web development and am planning to shift my stream. I heard that PHP is a good platform to start off and also it does not require that much of knowledge in technologies like JSP / Servlets or frameworks like springs / struts / hibernate.
I have basic ideas about... |
I'd like to note your experience of full scale IDEs on Linux.
I personally work mostly with vim, however other programmers would like
to see a real IDE. So I'd like to hear your personal opinion about different
IDEs and comparison between them, in following context:
C++ and maybe some C development (not Java, Python a... |
Is it acceptable to have a dummy generic parameter in the parameters list in order to save method consumers from the need to specify type arguments? For example -
public T Generate<T>(int paramForInstance) where T : MyClass {
return MyClass.SomeFactoryMethod<T>(paramForInstance);
}
//calling code needs to specify ... |
This is a follow up to my previous not answered question, so I try to make it more clear: last question.
I have a n-size buffer that is filled up from an external source, it has 2 main methods get() and add(), get() blocks (via wait()) if buffer is empty and add() blocks if buffer is full.
This buffer object referenc... |
I have an entity and I've realised that there is a group of properties that work together. So, I moved them to a value object (together with their behavior) and now I have a reference from my entity to this value object.
I've read "Domain Driven Design Quickly" (PDF) and I came across the following statement when expla... |
I'm a university student and I've just started learning about design patterns and im struggling to understand the purpose of them. I have tried researching them but all the resources I have found seem to talk about them in an academic, not professional, way.
What is their purpose and are they important to learn?
|
Free software as defined by FSF.
Are its standard libraries free/open source?
Is its implementation free/open source? Which parts of it are not free/open source?
Any other relevant information.
|
I've been looking for various licenses that I can use for an open-source project of mine, but all of the projects that I've seen, with all kinds of licenses, appear to have a giant, obnoxious (in my opinion) notice in each source file that states that the file is listed under a certain license. I don't think that I've... |
A lot of bad practices were being committed at the beginning of a project, and I recognized them and fought against all of them. Since I didn't pick and choose my battles, my boss now assumes anything out of my mouth is an over complicated response, and spends a lot of time defending himself personally, instead of look... |
I have a two entity objects Site and Customer where there is a many to many relationship. I have read you try not to model this in DDD as it is in the data model and go for a unidirectional flow.
If I wanted to show this in UML, would I show it as it is in the data model:
Site * ----->*Customer but the direction arrow ... |
I have a conceptual question about 'translating' between objects I have stored in Django (in Postgres) that I want to use on the front-end. So I have a user object in Python that holds basic things: an id, a username, a password. Let's say I want to output all of that information using Javascript on the client side. Ca... |
I'm developing an authentication library (*) for a website and I realized that maybe I'm not completely understanding what an "autologin" feature is, and how to develop it.
While gathering infos and studying other code I came across a couple of libraries which implement the option to login the user without having to s... |
Reading these two questions, I see that understanding CPU caching behaviour can be important when dealing with large amounts of data in memory. I would like to understand the way the caching works to add another tool to my optimisation toolbox.
What are the core points about the way the CPU cache works so I can write c... |
I was just reading another explanation of the halting problem, and it got me thinking all the problems I've seen that are given as examples involve infinite sequences. But I never use infinite sequences in my programs - they take too long. All the real world applications have lower and upper bounds. Even reals aren't t... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.