SlideShare a Scribd company logo
1 of 19
Korak do lenobe
Spletni razvijalci zgornje Gorenjske, 1. srečanje
Februar 2015
3fs / ThirdFrame Studios
David Kuridža
@davidkuridza
source: https://bintrayblog.files.wordpress.com/2013/10/lazyness.jpg
temelji lenobe
• enostavnost
• ponovljivost
• pravila
• iteracije
• zabava
git flow
• master stabilna produkcijska
veja
• develop stabilna razvojna
veja
• topic v delu (bug, feature)
merge rebase
git flow: topic veja
• nova
$ git checkout -b <topic-branch> origin/develop
$ git push -u origin <topic-branch>
• posodabljanje
$ git checkout <topic-branch>
$ git rebase origin/develop
$ git push -f origin <topic-branch>
git flow: develop veja
• merge topic v develop
$ git fetch --all --prune --verbose --progress
$ git checkout develop
$ git pull --rebase origin develop
$ git branch -D <topic-branch> || true
$ git checkout -b <topic-branch> origin/<topic-branch>
$ git rebase origin/develop
$ git push -f origin <topic-branch>
$ git checkout develop
$ git merge --log --no-ff -m "Merge branch
origin/<topic-branch>" <topic-branch>
$ git branch -D <topic-branch>
$ git push origin develop
$ git push origin :<topic-branch>
git flow: manager
• https://github.com/3fs/git-manager
• nova topic veja
$ git manager topic <topic-branch>
• posodabljanje
$ git manager update [<topic-branch>]
$ git manager publish [<topic-branch>]
• merge v develop
$ git manager release [<topic-branch>]
razvojno okolje
• vsi enaki, vsi enakopravni
• naredi napako brez strahu in krivde
• vsaj enkrat tedensko namerno podri in postavi nazaj
• nov projekt in/ali član produktiven znotraj 1 ure
• Vagrant, puppet
produkcijsko okolje
• strežniki postavljeni z istimi puppet manifesti (glede na
node)
• deploy skoraj popolnoma avtomatiziran
• continuous integration (unit, integration)
• končni paket
• deploya lahko kdorkoli
• rollforward namesto rollback-a
razvijalci?
• pripravijo Vagrant okolje s puppet manifesti
• spišejo kodo, unit teste
• pripravijo release
• poskrbijo da vse deluje v razvojnem in
produkcijskem okolju
PHP
• vsaka nova verzija je hitrejša
• z novimi funkcionalnostmi enostavnejša uporaba
• composer
• lint, mess detector, copy/paste detector, coding
standards, PSR, …
PHP augmented types
• https://github.com/box/augmented_types
• povsod in vse (razen v produkcijskem okolju)
unit testi
• del projekta
• mock, mock in še enkrat mock
• mockov se ne testira :)
• code coverage !== dober test
integration testi
• acceptance, component, …
• zunaj projekta
• Codeception & Behat
• RAML + JSON Schema
jobs@3fs.si
vprašanja?
jobs@3fs.si
vprašanja?
čestitke, želje, pozdravi?
vprašanja?

More Related Content

Featured

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming LanguageSimplilearn
 

Featured (20)

How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 
Introduction to C Programming Language
Introduction to C Programming LanguageIntroduction to C Programming Language
Introduction to C Programming Language
 

Korak do lenobe

  • 1. Korak do lenobe Spletni razvijalci zgornje Gorenjske, 1. srečanje Februar 2015
  • 2. 3fs / ThirdFrame Studios David Kuridža @davidkuridza
  • 4. temelji lenobe • enostavnost • ponovljivost • pravila • iteracije • zabava
  • 5. git flow • master stabilna produkcijska veja • develop stabilna razvojna veja • topic v delu (bug, feature)
  • 7. git flow: topic veja • nova $ git checkout -b <topic-branch> origin/develop $ git push -u origin <topic-branch> • posodabljanje $ git checkout <topic-branch> $ git rebase origin/develop $ git push -f origin <topic-branch>
  • 8. git flow: develop veja • merge topic v develop $ git fetch --all --prune --verbose --progress $ git checkout develop $ git pull --rebase origin develop $ git branch -D <topic-branch> || true $ git checkout -b <topic-branch> origin/<topic-branch> $ git rebase origin/develop $ git push -f origin <topic-branch> $ git checkout develop $ git merge --log --no-ff -m "Merge branch origin/<topic-branch>" <topic-branch> $ git branch -D <topic-branch> $ git push origin develop $ git push origin :<topic-branch>
  • 9. git flow: manager • https://github.com/3fs/git-manager • nova topic veja $ git manager topic <topic-branch> • posodabljanje $ git manager update [<topic-branch>] $ git manager publish [<topic-branch>] • merge v develop $ git manager release [<topic-branch>]
  • 10. razvojno okolje • vsi enaki, vsi enakopravni • naredi napako brez strahu in krivde • vsaj enkrat tedensko namerno podri in postavi nazaj • nov projekt in/ali član produktiven znotraj 1 ure • Vagrant, puppet
  • 11. produkcijsko okolje • strežniki postavljeni z istimi puppet manifesti (glede na node) • deploy skoraj popolnoma avtomatiziran • continuous integration (unit, integration) • končni paket • deploya lahko kdorkoli • rollforward namesto rollback-a
  • 12. razvijalci? • pripravijo Vagrant okolje s puppet manifesti • spišejo kodo, unit teste • pripravijo release • poskrbijo da vse deluje v razvojnem in produkcijskem okolju
  • 13. PHP • vsaka nova verzija je hitrejša • z novimi funkcionalnostmi enostavnejša uporaba • composer • lint, mess detector, copy/paste detector, coding standards, PSR, …
  • 14. PHP augmented types • https://github.com/box/augmented_types • povsod in vse (razen v produkcijskem okolju)
  • 15. unit testi • del projekta • mock, mock in še enkrat mock • mockov se ne testira :) • code coverage !== dober test
  • 16. integration testi • acceptance, component, … • zunaj projekta • Codeception & Behat • RAML + JSON Schema