Agileee Developers Toolkit In The Agile World
Upcoming SlideShare
Loading in...5
×
 

Agileee Developers Toolkit In The Agile World

on

  • 1,727 views

Slides from Maria Diaconu and Alexandru Balboaca talking at Agileee conference 2009, Ukraine

Slides from Maria Diaconu and Alexandru Balboaca talking at Agileee conference 2009, Ukraine

Statistics

Views

Total Views
1,727
Views on SlideShare
1,654
Embed Views
73

Actions

Likes
2
Downloads
21
Comments
0

4 Embeds 73

http://agileee.org 66
http://agileee.com 3
http://www.agileee.com 3
http://2010.agileee.org 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Agileee Developers Toolkit In The Agile World Agileee Developers Toolkit In The Agile World Presentation Transcript

  • Developers’ Toolkit in the Agile World by Maria Diaconu & Alexandru Bolboaca
  • Code quality & indicators
  • Bad code? We don’t write bad code...
  • ...just occasionally
  • ...when under pressure
  • Ups, we are almost always under pressure
  • Or
  • My code is good- enough. Why should I change it?
  • About the story tellers Maria Diaconu Developer, Technical Lead, Manager Agile/Scrum Practitioner & Coach Owner Mosaic Works Founder and Coordinator of Romanian Agile community, AgileWorks Romania
  • About the story tellers Alexandru Bolboaca Soft ware Developer Hands-on soft ware consultant@MosaicWorks Aspiring soft ware craftsman Active member of Romanian Agile community, AgileWorks Romania
  • The fantastic journey of the beginner craftsman
  • Programming is fun when you create great soft ware & write beautiful code
  • A minimal toolkit on the road Refactoring TDD Clean Code Emergent Design Pair Programming
  • Clean code? What’s that?
  • Clean variable names Meaningful names Intention revealing-names No encodings (e.g. Hungarian notation) int d; //elapsed time in days vs int elapsedTimeInDays
  • Clean functions Small ! Do one thing. And it’s DONE well. Descriptive names No sides effects No duplicated functions ComputeAndWriteResult() vs Write(Compute())
  • Clean code - error handling Try-Catch-Finally - written first Expected behavior covered first, exceptions treated after Don’t return Null; Don’t Pass Null try { MealExpenses expenses = expenseReportDAO.getMeals(employee.getID()); m_total += expenses.getTotal(); } catch(MealExpensesNotFound e) { m_total += getMealPerDiem(); } vs MealExpenses expenses = expenseReportDAO.getMeals(employee.getID()); m_total += expenses.getTotal();
  • Refactoring 23 + 23 + 23 + 23 + ... + 23 or 1000 * 23 ? Improve maintainability & readability through changes in small steps keeping the external behavior
  • Refactoring To write clean code, you must first write dirty code and then clean it. by Robert C. Martin
  • Refactoring - how to E.g. : Extract methods, class Move methods Replace conditions with polymorphism Eliminate duplicate code Extract data structure
  • The boy scout rule It’s not enough to write the code well. The code has to be kept clean over time. by Robert C. Martin
  • Use the toolkit for building soft ware incrementally
  • How we learn useful practices?
  • Soft ware Craftsmanship
  • Learn & Practice! & Practice & Learn!
  • Code Kata Code retreat Coding Dojo
  • Aspiring craftsmen @AgileWorks -CodeRetreat/Dojo Bucharest - June
  • Good code reads like a novel.
  • Good code reads like a novel. Excellent code reads like haiku.
  • ... and this is not the end of the journey
  • Thank you! Maria Diaconu & Alexandru Bolboaca MosaicWorks - www.mozaicworks.com mddiaconu@gmail.com; t witter: fireladyM www.alexbolboaca.ro alexboly@gmail.com; t witter: alexboly AgileWorks Romania - agileworks.ro