background preloader

Code Conventions for the Java(TM) Programming Language: Contents

Code Conventions for the Java(TM) Programming Language: Contents

Praxisbuch Objektorientierung – 8.2 Die Präsentationsschicht: Model, View, Controller (MVC) Ein sehr erheblicher Teil der Funktionalität auch von objektorientierten Systemen spielt sich bei der Interaktion mit dem Anwender von Software ab. Für die Modellierung dieser Interaktion in der Präsentationsschicht gibt es verschiedene Ansätze. Am weitesten verbreitet ist dabei der so genannte MVC-Ansatz (Model-View-Controller). Mit Model-View-Controller (MVC) wird ein Interaktionsmuster in der Präsentationsschicht von Software beschrieben. Da es sich bei MVC nach wie vor um das wichtigste und verbreitetste Muster für die Präsentationsschicht von objektorientierten Anwendungen handelt, gehen wir in diesem Kapitel ausführlich darauf ein. 8.2.1 Das Beobachter-Muster als Basis von MVC Eine ganz zentrale Art von Information in objektorientierten Systemen ist die Information darüber, dass ein Objekt seinen Zustand geändert hat. Interaktionen in der Präsentationsschicht Die Interaktionen, die hierbei entstehen, können komplex sein. Hier klicken, um das Bild zu vergrößern Model 1 Model 2 ...

GinTutorial - google-gin - Using GIN to create a GWT widget - Pr This tutorial will show how a simple GWT widget can be constructed with GIN. You should be already familiar with Guice - if not, then please read the Guice User Guide for an introductory overview of Guice concepts. In regular Guice, you would use: // Does NOT work in GWT code!MyWidgetMainPanel mainPanel = injector.getInstance(MyWidgetMainPanel.class); However, as the comment points out that won't work in GWT: There is no actual class available in the resulting JavaScript. Fortunately in GWT there is a different idiom which accomplishes the same purpose. Step 1. <module> ... Step 2. Declare an interface with methods that return the desired types: public interface MyWidgetGinjector extends Ginjector { MyWidgetMainPanel getMainPanel();} Experienced GWT users will notice the similarity to the way GWT image bundles and messages are done: You simply create a method for each object type you want to create, and the an implementation of the interface gets generated for you at compile time. Step 3.

Common Lisp the Language, 2nd Edition In this greatly expanded edition of the defacto standard, you'll learn about the nearly 200 changes already made since original publication - and find out about gray areas likely to be revised later. Written by the Vice-Chairman of X3J13 (the ANSI committee responsible for the standardization of Common Lisp) and co-developer of the language itself, the new edition contains the entire text of the first edition plus six completely new chapters. They cover: README file and the Digital Press catalog with any distributed electronic copies of Common Lisp the Language. Known Bugs The LaTeX sources were converted to html using the latex2html program. Because latex2html replaces mathematical formulas, tables, figures, and non-ascii characters with embedded GIFs, you may find that some characters drop out when cutting and pasting the text. The current index is inferior to the one available in the paperbound version and will eventually be replaced with a form-based GLIMPSE index. Acknowledgments

Doxygen Generate documentation from source code Doxygen is the de facto standard tool for generating documentation from annotated C++ sources, but it also supports other popular programming languages such as C, Objective-C, C#, PHP, Java, Python, IDL (Corba, Microsoft, and UNO/OpenOffice flavors), Fortran, VHDL, Tcl, and to some extent D. Doxygen can help you in three ways: It can generate an on-line documentation browser (in HTML) and/or an off-line reference manual (in ) from a set of documented source files. There is also support for generating output in RTF (MS-Word), PostScript, hyperlinked PDF, compressed HTML, and Unix man pages. The documentation is extracted directly from the sources, which makes it much easier to keep the documentation consistent with the source code. Doxygen is developed under Mac OS X and Linux, but is set-up to be highly portable. Doxygen license Copyright © 1997-2016 by Dimitri van Heesch. Sponsored links(not related to doxygen)

C++ Programming Style Guidelines Version 4.9, January 2011 Geotechnical Software Services Copyright © 1996 - 2011 This document is available at 1 Introduction 1.1 Layout of the Recommendations 1.2 Recommendations Importance 2 General Recommendations 3 Naming Conventions 3.1 General 3.2 Specific 4 Files 4.1 Source Files 4.2 Include Files and Include Statements 5 Statements 5.1 Types 5.2 Variables 5.3 Loops 5.4 Conditionals 5.5 Miscellaneous 6 Layout and Comments 6.1 Layout 6.2 White space 6.3 Comments 7 References This document lists C++ coding recommendations common in the C++ development community. The recommendations are based on established standards collected from a number of sources, individual experience, local requirements/needs, as well as suggestions given in [1] - [4]. There are several reasons for introducing a new guideline rather than just referring to the ones above. 1.1 Layout of the Recommendations. Layout of the recommendations is as follows: 4.1 Source Files 5.1 Types

Understanding Digital Image Interpolation Image interpolation occurs in all digital photos at some stage — whether this be in bayer demosaicing or in photo enlargement. It happens anytime you resize or remap (distort) your image from one pixel grid to another. Image resizing is necessary when you need to increase or decrease the total number of pixels, whereas remapping can occur under a wider variety of scenarios: correcting for lens distortion, changing perspective, and rotating an image. Even if the same image resize or remap is performed, the results can vary significantly depending on the interpolation algorithm. Itis only an approximation, therefore an image will always lose some quality each time interpolation is performed. Interpolation works by using known data to estimate values at unknown points. If you had an additional measurement at 11:30AM, you could see that the bulk of the temperature rise occurred before noon, and could use this additional data point to perform a quadratic interpolation: NOTE ON OPTICAL vs.

Coding Standards Table of Contents The GNU coding standards, last updated March 31, 2014. Copyright © 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, with no Front-Cover Texts, and with no Back-Cover Texts. A copy of the license is included in the section entitled “GNU Free Documentation License”. 1 About the GNU Coding Standards The GNU Coding Standards were written by Richard Stallman and other GNU Project volunteers. If you did not obtain this file directly from the GNU project and recently, please check for a newer version. Please send corrections or suggestions for this document to bug-standards@gnu.org. 2 Keeping Free Software Free Or go for generality.

Launch4j - Cross-platform Java executable wrapper

Related: