examples

What are the best Java examples sites?

What are the best java example sites? By which I mean places that you go when you have a specific question, and you want a little java code snippet to solve it. ...

Red5: are there any low level tutorials or examples available online?

I've been wanting to use Red5 for quite a long time but everytime I set out and try something, I keep getting stuck. The examples that come with the application are informative, but I just can't seem to wrap my mind around everything (especially the Java part, since that is not one of my 'core' languages). Is there anyone who has found a...

Sample Code for R?

Does anyone know a good online resource for example of R code? The programs do not have to be written for illustrative purposes, I am really just looking for some places where a bunch of R code has been written to give me a sense of the syntax and capabilities of the language? Edit: I have read the basic documentation on the main site,...

Tutorial for Windows Shell Extensions

I've been postponing this part of the project because I haven't found any particular helpful example/tutorial for these 2 aspects of Shell Extensions: Return information for the Hint when you hover over a file. Context pop-up menu with extension context, if it makes sense. Cheers. ...

Using "Foo" and "Bar" in examples

Why do code examples (mostly tutorials) use the names "Foo" and "Bar" so often? It is almost a standard. For example: void foo(char* bar) { printf("%s", bar); } ...

Tcl/Tk examples?

Tcl/Tk is a simple way to script small GUIs. Can anyone give a nice example with a button and a text widget. When the button is pressed should a shell command be executed and the output piped to the text widget. If you have other nice and clean examples for useful tasks, please add them too. ...

RMI or Web Services sample application

Does anyone know of a sample distributed application (.NET or J2EE) using RMI or Web Services? ...

Library of Useful (Difficult) SQL scripts

Does anyone know here I can find a library of common but difficult (out of the ordinary) SQL script examples. I am talking about those examples you cannot find in the documentation but do need very often to accomplish tasks such as finding duplicates etc. It would be a big time saver to have something like that handy. EDIT: Thanks ever...

Good examples of Hungarian Notation?

Please answer with good examples of Hungarian Notation, so we can bring together a collection of these. Edit: I agree that Hungarian for types isn't that necessary, I'm hoping for more specific examples where it increases readability and maintainability, like Joel gives in his article. ...

Examples of Optimization in VB/VBA/VB.net?

Please post examples of optimization done in VB/VBA/VB.net? Optimization can be in the context of performance or space/maintainability. Edit: Please specify somewhere in your post which environment you know your technique works in. Thanks. ...

C++ Error Handling -- Good Sources of Example Code?

Just about every piece of example code everywhere omits error handling (because it "confuses the issue" that the example code is addressing). My programming knowledge comes primarily from books and web sites, and you seldom see any error handling in use at all there, let alone good stuff. Where are some places to see good examples of C+...

What example programs written especially for learning from are there?

Something well-written that does more than just print "Hello world!" and is much less complex than the Linux kernel. For example the program SetTime which comes with Visual C++ source code and project files. This is described by its author as being written "with meticulous care as a programming example to legibly demonstrate a variety o...

Are there good Grails sample applications from which to learn?

Besides the sample applications featured in the books Beginning Groovy and Grails and The Definitive Guide to Grails, are there any applications out there written in Grails that are good examples from which to learn best practices? Such as real applications that are open-source? Thanks. ...

Examples of professional & useful error pages

What real-life error web pages have you seen that have really impressed you AND would be genuinely useful to all types of users (savvy,novice,laid-back,frustrated,etc). Why were you impressed by the error? ...

Where can I find clear examples of MVC?

I've read a couple of things about MVCs but I still don't understand when they should be used and when they shouldn't be used. I am looking for clear examples that say things like "if you're developing this then you should use MVC, like this" and "if you're developing this, you shouldn't use MVC." Most of the examples I've seen rely on c...

Do you have examples of comments or todos that were difficult to interpret?

I'm writing a chapter of my dissertation that deals with contextual cues and I'm looking for good examples of comments (or todo comments) where it's obvious that whoever wrote them had some knowledge that he didn't bother sharing with future readers, making them difficult to interpret. Examples from publicly available code would be esp...

What is Ruby on Rails and why is it so famous?

I have never heard about this language until I came to this site, why is it so famous? Could you post some example sites developed in this technology? Easy with the downvotes please, am nub I know :( Thanks ...

Aspect-oriented programming examples

Can anyone post an example of Aspect-oriented programming (AOP) that is not logging? I've looked at several resources but all the examples are trivial logging. What is it useful for? ...

Medium-size Clojure sample application?

Is there a medium-sized Clojure sample application that could be used as a "best-practices" example, and a good way to see what such an application would look like in terms of code and code organization? A web application would be particularly interesting to me, but most important is that the program do something commonly useful (blog, b...

Where can I find a Good Sample ASP.NET Database Driven Web Application?

I would like to learn the best practices to employ when creating a database driven web-application. I prefer to learn from examples. What is a good sample application that I can download and run to learn this: I am looking for: Should be written in C# (preferably) Should contain a complex database design (parent child relations, etc....