Read = Understand as UML + Draw. Interface org.slf4j.Logger public void info(Object msg); public void warn(Object msg); ... class ch.qos.logback.classic.Logger.
Introduction to Java Getting Started in an Open Source Project
How to Improve Your (Java) Development Skills? Question:
Read Or Write for Improving ? Answer : Read !!
Monkey See – Monkey DO
1000 x 1 ●
!= 1 x 1000
Writing 100 times an Hello world program != Writing 1 time a 100 kloc programs
●
There exists NO interesting program of 1 kloc
●
Progress stops doing only easy things
●
To Continue Progressing : read more and more complex things...
But I was Told to write at school... ●
●
●
At School => write, alone, exams, competition At Work => read, team, business, manage/execute In OpenSource Communities => read, communities, enjoy, contribute, collaborate
How To Progress ? ●
Ask / Answer / Help each-others
●
Read Books
●
Read Tutorial on the Web
●
Watch Video Tutorial on the Web
●
Read Source Code
Sample Study : Logback ●
What is LogBack ? The successor of Log4J
●
●
But What was Log4J ? As its name says: “Log For Java” The implementation of “SLF4J” “Simple Logging Facade For Java”
Reasons of starting with LogBack ●
Anyway... start with something!
●
Logback is ●
open source => possible to read source
●
Simple => understandable by beginners
●
extremely well done => high quality reading
●
De-facto standard => worth read … must-read
First Step : Google It
Google Logback
Logback Home Page
First Link : Documentation
Scroll 10 lines … LogBack Sample
The Proof Is In The Pooding ●
Step 1: Create project
●
Step 2: Add Dependency
●
Step 3: Import in Eclipse
●
Step 4: Write Code
●
Step 5: Run
●
Who bets to do it in less than 3 minutes ?
●
Who bets I can not do it in less than 3 minutes ? (at home, first try in 2mn 40s )
LogBack Demo
Eclipse, Sample Code & Run
Logback is an implementation … see Doc also in API part : SLF4J
Tutorial, Blogs and Presentations ●
Thousands of Presentations (including this !) http://logback.qos.ch/logback.ppt
Sample Video: Gülcü at Devoxx
Source Code
Git Clone
Discover Source
Compile Source (Maven) ●
file pom.xml : “Project Object Model”
●
=> descriptor for Maven
●
Run “mvn install”
Download Other Sources in Maven-Eclipse! Overlay decorator means Eclipse HAS sources
Read = Understand as UML + Draw Interface ch.qos.logback.core.Appender
Interface org.slf4j.Logger public void info(Object msg); public void warn(Object msg); ...
class ch.qos.logback.classic.Logger public void info(Object msg) { .. } public void warn(Object msg) { … } ...
*
public void doAppend(..); ...
class FileAppender public voidclass doAppend(Object msg) { .. } RollingFileAppender class DatabaseAppender public void doAppend(Object msg) { .. } public void doAppend(...) { .. }
Test = Debug It ●
Run Eclipse, Put Breakpoints...
●
Eclipse Shortcuts Debug reminders:
●
F11 = launch
●
F5 < F6 < F7 < F8 (Step Into < Step Over < Step Out < Resume )
Conclusion
Logback is a great project High Quality, Open Source, Standard Easy and Worth Reading It Perfect for Starting Reading
Eclipse ⦠Google It ... Search : Ctrl + T (T = Types: class, interface, enum...) cf also. Ctrl + R ... English => read Right to Left for class behavior. â example: ...
Domain Driven Design. â The AST is always the kernel of the program. â It defines a vocabulary / dictionary of terms. â It is understandable by functional users.
An Object has 1 (immutable) Class (=Type). â Java.lang. ... A Class is loaded at most 1 per classLoader ... apache commons-collections, google guavac .
Class / ClassLoader / Field-Method Introspection ... Class objects are Objects ⦠but there is NO sub-class class. â final class Class .... Google java reflection api.
. Rhs can be. Terminal symbol (keyword, literal, â¦) Recursively defined by rule. Ex: arithmetic expr grammar expr := value expr := unaryop expr ⦠op = -, ...
... Console / Maven / Eclipse. Arnaud Nauwynck. This document: ... Example: Maven-tomcat-plugin. â Need to configure URL, Username, Password. (see next ) ...
Beginner in Java/Eclipse. Daily user of Windows, Pack Office (Excel, Word, PowerPointâ¦), Unix ... Trained >10 co-workers. â Led RTL integration for ... C-model & VHDL coding, RTL simulation and synthesis. Education. Juin 2004. (Aubière ...
Word processing software: LaTeX, Open Office, Word, Excel. ... State of progress appraisal of the application of the European Directive 2002/49/CE in French ...
Éclairer en HD, novembre 2017. - Éclairer pour le studio et le plateau, décembre 2015 et décembre 2016. - Directeur photo et ingénieur de la vision : maitriser la ...
Production Telfrance, director J.P. Vergne, 1998. DoCTeur SYlVeSTre. "Zone dangereuse", production alya, director J.P. Vergne, 1998. leS roiS De MarSeille.