Hello everyone, Maven is very impressive tool, I've used it for few weeks now and almost every day I learn something new about maven. What do you think are the best practices? I found this relevant on the google http://www.sonatype.com/people/2009/01/maven-continuous-integration-best-practices/ , others are not relevant at all, and maven apache…
I can see a number of other good answers to questions relating to CSS best-practices on stack overflow:
How to Manage CSS Explosion
CSS Conventions / Code Layout Models
Are there any CSS standards that I should follow while writing my first stylesheet?
What is the best method for tidying CSS?
Best Practices - CSS Stylesheet Formatting
But I…
We have a CMS built on Java and it has Mozilla Rhino for the server side JS. At the moment the JS code base is small but growing. Before it is too late and code has become a horrible mess I want to introduce some best practices and coding style.
Obviously the name space control is pretty important. But how about other best practices -…
When you have a controller that does logic with services and DAO's that may throw an unrecoverable exception, what is the best practice in dealing with those method calls?
Currently an app I'm working on has very lengthy try catch methods that simply err.out exception messages, this doesn't seem very robust and I think that this code…
Hi there, I was wondering if anyone could offer some advice on 'best practices' for using global state in a web application - specifically PHP, although im looking for generic best practices i.e. design patterns etc.
At the moment I just use a static class, calling it Configs. I suppose this is similar to using the registry pattern…
As an example, one of the JavaPosse (popular Java podcast) hosts, Tor Norbey, has recently moved from Oracle to Google, and I'm more that sure that he has been lured (he definitely has not been sending his CV to Google).
The rumor has it that 'high-level' developers are never hired through the job-sites.
So, (given that you're a…
Whenever you want to return a value from a method, but whatever you return depends on some other value, you typically use branching:
int calculateSomething() {
if (a == b) {
return x;
} else {
return y;
}
}
Another way to write this is:
int calculateSomething() {
if (a == b) {
return x;
}
return y;
}
…
A question for all the GWT gurus out there.
I'm a newbie in GWT and am trying to understand the best practices of coding a GWT application. I have gone through "Large scale application development and MVP" based on Ray Ryan's talk at Google I/O 2009 and it has given me a good starting point. I downloaded the sample source code…
i need to print a lot of dcuments and the problem i come up with is the stapling all the pages.
I thought i should buy a binder which can releive me a lot.
I am confused whether i should buy thermal binder or spiral binder.
Money is not any problem but i want the long term use.
How reliable is the thermal binder?
I think…
Hi all,
I know there’s been a good deal written on thumbnail generation and the like with CI, but I wanted to explain what I’ve made and see what kind of best-practice advice I could find. Here’s my story…
Currently, I have a site which allows users to upload collections of photos to projects they’ve created after first…
I need to display a couple of view controllers (eg, login screen, registration screen etc). What's the best way to bring each screen up?
Currently for each screen that I'd like to display, I call a different method in the app delegate like this:
Code:
- (void) registerScreen
{
RegistrationViewController *reg =…
Question 1
We would like to generate a site map for our CMS site
We have multiple front end servers with approx a million articles.
Environment
multiple MS SQL servers
multiple front end servers (load balanced)
ASP.net - and IIS 6
Windows 2003
To have the site maps (the site map index file, and the site…
Application I work on generates several hundreds of files in a 15 minutes period of times. and the back end of the application takes these files and process them (updates database with those values). One problem is database locks.
What are the best practices on working with several thousands of files to avoid…
I've just taken on a new Asp.Net MVC application and after opening it up I find the following,
[Project].Web
[Project].Models
[Project].BLL
[Project].DAL
Now, something thats become clear is that there is the data has to do a hell of a lot before it makes it to the View…
I noticed that it is a common idiom in C to accept an un-malloced pointer as a second argument instead of returning a pointer. Example:
/*function prototype*/
void create_node(node_t* new_node, void* _val, int _type);
/* implementation */
node_t* n;
create_node(n,…
So i'm working on a project where there is data visualization.
My ultimate goal is that i have a set of data shipped with the download of the iphone app.
But i want it connected to a backend, that if the iphone has a connection with the internet. it can sync the…
I recently coded something where it wasn't known if the end code would reside in a subdomain (http://user.domain.com/) or in a subdomain (http://domain.com/user), and I was lost as to the best practice for these unknown scenarios. I could thinks of a couple:
…
I'm maintaining a Windows CE app built with the .NET Framework that has about 45 forms. There are 5 'sections' which lead to the function you want. The application is 100% full screen and it is important that it can't be minimized.
Since there are so many…
The question is entitled with the word "Stream" because the question below is a concrete example of a more generic doubt I have about Streams:
I have a problem that accepts two solutions and I want to know the best one:
I download a file, save it to…
I am taking over some applications from a previous developer. When I run the applications through Eclipse, I see the memory usage and the heap size increase a lot. Upon further investigation, I see that they were creating an object over-and-over in a…
Hello,
I have a general question about this.
When you have a gallery, sometimes people need to upload 1000's of images at once. Most likely, it would be done through a .zip file. What is the best way to go about uploading this sort of thing to a…
I have a resource
/system/resource
And I wish to ask the system a boolean question about the resource that can't
be answered by processing on the client (i.e I can't just GET the resource
and look through the actual resource data - it requires…