Minha palestra sobre Ruby on Rails, Cultura e Ecossistema na Dev in Rio 2009. Vejam alguns dos meus vídeos dessa palestra em http://vimeo.com/akitaonrails
Image Manipulation in WordPress 3.5 - WordCamp Phoenix 2013GetSource
Image Manipulation in WordPress 3.5 talk from WordCamp Phoenix 2013
Image manipulation in WordPress was an alchemy of mixing GD functions and WordPress functions together to (hopefully) turn out the desired result. Now, as of WordPress 3.5, GD is abstracted out, and a new class, WP_Image_Editor, allows easy manipulation of image files. This lets you perform simple resizing, crops, flips, rotates, and real-time streaming of those results using Imagick or GD. But, that’s not all! You can also easily extend WordPress’ classes to add your own functions, or replace the entire engine with your own.
This session will walk through what’s changed for image manipulation in WordPress 3.5, and explain ways you can take advantage of the new APIs, both through using them directly and extending them for plugins of your own.
Presented by Mike Schroder (@GetSource/DH-Shredder)
Pociąg do sukcesu - pobierz darmowy ebook pdfDobre Ebooki
Tytuł: Pociąg do sukcesu
Autor: Krzysztof Piotr Łasica
Co zrobić, aby dołączyć do ludzi, którzy świadomie jadą w kierunku sukcesu? Proste i sprawdzone wskazówki.
Co sprawia, że niektórzy idą przebojem przez życie,
są pełni optymizmu, życzliwości, wewnętrznego spokoju i pasji w tym, co robią?
Istnieją ludzie, którzy realizują najskrytsze marzenia, rozwijają magiczną osobowość, kochają i są kochani. Wypełniają misję życiową w zgodzie ze swoim sumieniem i najważniejszymi wartościami. Czują się w pełni spełnieni i szczęśliwi. Często zazdrościmy tym ludziom, zastanawiając się, jak oni to robią?
Czy przyszli na świat ze wspaniałymi zdolnościami, czy może zdobyli niezbędne umiejętności do tego, aby żyć pełnią życia?
Na pewno nie raz układałeś puzzle. Doskonale wiesz, że aby uzyskać fantastyczny, końcowy efekt
w postaci określonego wzoru, musisz ułożyć elementy w ustalonym porządku.
W życiu jest całkiem podobnie. Osiągnięcie sukcesu wymaga od Ciebie pewnych działań, które sprawią,
że kolejne dni na tym pięknym świecie zostaną poukładane we właściwy dla Ciebie sposób. Potrzebujesz jedynie instrukcji, jak to zrobić. Jeśli wszystkie elementy będą do siebie pasowały,
osiągniesz wszystko, o czym tylko marzysz.
Czy chcesz pójść tą właśnie drogą?
Jeśli tak, to czytaj dalej...
i odkryj tajemnicę osiągania sukcesu.
Czy zdajesz sobie sprawę z tego, że możesz mieć, co tylko chcesz, jeśli tego bardzo pożądasz i
konsekwentnie stosujesz zasady, dzięki którym inni dotarli do tego samego celu, co Ty? Musisz po
prostu ich naśladować, wykonując odpowiednie działania we właściwej kolejności, zgodnie z
planem. Zupełnie tak, jak podczas układania puzzli.
To nie żadna magia ani czary. W tej darmowej książce-szkoleniu poznasz piekielnie skuteczne
narzędzia, które otworzą przed Tobą nowe możliwości rozwoju. Stanowią zestaw kompleksowych,
gotowych do natychmiastowego zastosowania reguł, dzięki którym miliony osób odpowiedziało
twierdząco na pytanie: Czy jesteś szczęśliwy?
A teraz, szczerze odpowiedz:
Czy chcesz być jedną z tych spełnionych osób?
Jeśli tak, to zrób pierwszy krok i zastosuj wszystkie wskazówki, które odnajdziesz w tej publikacji. Niczego nie ryzykujesz. Otrzymujesz tę wiedzę całkowicie za darmo. Potraktuj to jako skromny prezent.
Ułuż puzzle swojego życia we wspaniały wzór szczęścia, miłości, zdrowia i dobrobytu. Życzymy Ci przyjemnej podróży Pociągiem Sukcesu do stacji Twojego przeznaczenia. Wystarczy, że dodasz tę publikację elektroniczną do koszyka. Jak widzisz - jest darmowa. Złóż zatem zamówienie, a po chwili otrzymasz ją na swoje konto e-mail.
Image Manipulation in WordPress 3.5 - WordCamp Phoenix 2013GetSource
Image Manipulation in WordPress 3.5 talk from WordCamp Phoenix 2013
Image manipulation in WordPress was an alchemy of mixing GD functions and WordPress functions together to (hopefully) turn out the desired result. Now, as of WordPress 3.5, GD is abstracted out, and a new class, WP_Image_Editor, allows easy manipulation of image files. This lets you perform simple resizing, crops, flips, rotates, and real-time streaming of those results using Imagick or GD. But, that’s not all! You can also easily extend WordPress’ classes to add your own functions, or replace the entire engine with your own.
This session will walk through what’s changed for image manipulation in WordPress 3.5, and explain ways you can take advantage of the new APIs, both through using them directly and extending them for plugins of your own.
Presented by Mike Schroder (@GetSource/DH-Shredder)
Pociąg do sukcesu - pobierz darmowy ebook pdfDobre Ebooki
Tytuł: Pociąg do sukcesu
Autor: Krzysztof Piotr Łasica
Co zrobić, aby dołączyć do ludzi, którzy świadomie jadą w kierunku sukcesu? Proste i sprawdzone wskazówki.
Co sprawia, że niektórzy idą przebojem przez życie,
są pełni optymizmu, życzliwości, wewnętrznego spokoju i pasji w tym, co robią?
Istnieją ludzie, którzy realizują najskrytsze marzenia, rozwijają magiczną osobowość, kochają i są kochani. Wypełniają misję życiową w zgodzie ze swoim sumieniem i najważniejszymi wartościami. Czują się w pełni spełnieni i szczęśliwi. Często zazdrościmy tym ludziom, zastanawiając się, jak oni to robią?
Czy przyszli na świat ze wspaniałymi zdolnościami, czy może zdobyli niezbędne umiejętności do tego, aby żyć pełnią życia?
Na pewno nie raz układałeś puzzle. Doskonale wiesz, że aby uzyskać fantastyczny, końcowy efekt
w postaci określonego wzoru, musisz ułożyć elementy w ustalonym porządku.
W życiu jest całkiem podobnie. Osiągnięcie sukcesu wymaga od Ciebie pewnych działań, które sprawią,
że kolejne dni na tym pięknym świecie zostaną poukładane we właściwy dla Ciebie sposób. Potrzebujesz jedynie instrukcji, jak to zrobić. Jeśli wszystkie elementy będą do siebie pasowały,
osiągniesz wszystko, o czym tylko marzysz.
Czy chcesz pójść tą właśnie drogą?
Jeśli tak, to czytaj dalej...
i odkryj tajemnicę osiągania sukcesu.
Czy zdajesz sobie sprawę z tego, że możesz mieć, co tylko chcesz, jeśli tego bardzo pożądasz i
konsekwentnie stosujesz zasady, dzięki którym inni dotarli do tego samego celu, co Ty? Musisz po
prostu ich naśladować, wykonując odpowiednie działania we właściwej kolejności, zgodnie z
planem. Zupełnie tak, jak podczas układania puzzli.
To nie żadna magia ani czary. W tej darmowej książce-szkoleniu poznasz piekielnie skuteczne
narzędzia, które otworzą przed Tobą nowe możliwości rozwoju. Stanowią zestaw kompleksowych,
gotowych do natychmiastowego zastosowania reguł, dzięki którym miliony osób odpowiedziało
twierdząco na pytanie: Czy jesteś szczęśliwy?
A teraz, szczerze odpowiedz:
Czy chcesz być jedną z tych spełnionych osób?
Jeśli tak, to zrób pierwszy krok i zastosuj wszystkie wskazówki, które odnajdziesz w tej publikacji. Niczego nie ryzykujesz. Otrzymujesz tę wiedzę całkowicie za darmo. Potraktuj to jako skromny prezent.
Ułuż puzzle swojego życia we wspaniały wzór szczęścia, miłości, zdrowia i dobrobytu. Życzymy Ci przyjemnej podróży Pociągiem Sukcesu do stacji Twojego przeznaczenia. Wystarczy, że dodasz tę publikację elektroniczną do koszyka. Jak widzisz - jest darmowa. Złóż zatem zamówienie, a po chwili otrzymasz ją na swoje konto e-mail.
UNA FE SIN OBRAS ES UNA FE MUERTA,, SIN AMOR, HACIA EL PROJIMO SEAN FAMILIARES, AMIGOS, COMPANEROS, TODOS SON HERMANOS NUESTROS, Y NO HAY QUIEN NO NECESITE SER INSTRUIDO, CONSEJO, ACOMPANAMIENTO DEL ENFERMO, ETC.
Fórum de Software Livre do Serpro RJ 2009Fabio Akita
Esta palestra é muito parecida com a que eu também ministrei no evento Dev in Rio 2009, portanto os slides são quase iguais caso você já tenha baixado.
A apresentação fala sobre filosofias, valores e idéias ágeis e como elas são a fundação da comunidade Ruby on Rails e do ecossistema que se formou ao seu redor.
Alguns dos vídeos mostrados estão disponíveis em http://vimeo.com/akitaonrails.com
Software livre e padrões abertos no desenvolvimento WebFelipe Ribeiro
Palestra apresentada no Software Freedom Day 2009 em Campina Grande - PB sobre a importância do uso de padrões abertos e o PHP como uma solução de software livre para desenvolvimento Web
Cucumber is a BDD tool that aids in outside-in development by executing plain-text features/stories as automated acceptance tests. Written in conjunction with the stakeholder, these Cucumber “features” clearly articulate business value and also serve as a practical guide throughout the development process: by explicitly outlining the expected outcomes of various scenarios developers know both where to begin and when they are finished. I will present the basic usage of Cucumber, primarily in the context of web applications, which will include a survey of the common tools used for simulated and automated browser-testing. Common questions and pitfalls that arise will also be discussed.
Keeping it small - Getting to know the Slim PHP micro frameworkJeremy Kendall
Learn what the big deal is about PHP micro frameworks by taking a tour through an application written in Slim PHP. I'll briefly introduce you to some high level concepts, show how those concepts can be implemented in Slim, and see how powerful and elegant micro framework can be.
Here's my 50-foot view of building a Facebook application on Rails. Rails itself is not part of the presentation - you can check out one of my available slides for that. Target: non-techies and people who just want to find out the Facebook API architecture. I wished I could've put more content, like y'know, ACTUAL CODE???
Mais uma introdução à filosofia das comunidades Ruby e Rails, com ênfase no Ecossistema mais do que na Tecnologia.
Vídeo da 37signals: http://www.vimeo.com/6028818
Vídeo do Uncle Bob: http://www.vimeo.com/5196176
UNA FE SIN OBRAS ES UNA FE MUERTA,, SIN AMOR, HACIA EL PROJIMO SEAN FAMILIARES, AMIGOS, COMPANEROS, TODOS SON HERMANOS NUESTROS, Y NO HAY QUIEN NO NECESITE SER INSTRUIDO, CONSEJO, ACOMPANAMIENTO DEL ENFERMO, ETC.
Fórum de Software Livre do Serpro RJ 2009Fabio Akita
Esta palestra é muito parecida com a que eu também ministrei no evento Dev in Rio 2009, portanto os slides são quase iguais caso você já tenha baixado.
A apresentação fala sobre filosofias, valores e idéias ágeis e como elas são a fundação da comunidade Ruby on Rails e do ecossistema que se formou ao seu redor.
Alguns dos vídeos mostrados estão disponíveis em http://vimeo.com/akitaonrails.com
Software livre e padrões abertos no desenvolvimento WebFelipe Ribeiro
Palestra apresentada no Software Freedom Day 2009 em Campina Grande - PB sobre a importância do uso de padrões abertos e o PHP como uma solução de software livre para desenvolvimento Web
Cucumber is a BDD tool that aids in outside-in development by executing plain-text features/stories as automated acceptance tests. Written in conjunction with the stakeholder, these Cucumber “features” clearly articulate business value and also serve as a practical guide throughout the development process: by explicitly outlining the expected outcomes of various scenarios developers know both where to begin and when they are finished. I will present the basic usage of Cucumber, primarily in the context of web applications, which will include a survey of the common tools used for simulated and automated browser-testing. Common questions and pitfalls that arise will also be discussed.
Keeping it small - Getting to know the Slim PHP micro frameworkJeremy Kendall
Learn what the big deal is about PHP micro frameworks by taking a tour through an application written in Slim PHP. I'll briefly introduce you to some high level concepts, show how those concepts can be implemented in Slim, and see how powerful and elegant micro framework can be.
Here's my 50-foot view of building a Facebook application on Rails. Rails itself is not part of the presentation - you can check out one of my available slides for that. Target: non-techies and people who just want to find out the Facebook API architecture. I wished I could've put more content, like y'know, ACTUAL CODE???
Mais uma introdução à filosofia das comunidades Ruby e Rails, com ênfase no Ecossistema mais do que na Tecnologia.
Vídeo da 37signals: http://www.vimeo.com/6028818
Vídeo do Uncle Bob: http://www.vimeo.com/5196176
Describes Outside-In development and Behvaiour Driven Development. Illustrates basic Cucumber usage within a Rails app and then goes over more advanced topics such as JS as web services.
Monitoring web application behaviour with cucumber-nagiosLindsay Holmwood
Setting up monitoring for web applications can be complicated - tests tend to lack expressiveness, or and quite often they don't even test the right problem in the first place.
cucumber-nagios lets a sysadmin write behavioural tests for their web apps in plain English, and outputs the test results in the Nagios plugin format, allowing a sysadmin to be notified by Nagios when their production apps aren't behaving.
Desmistificando Mitos de Tech Startups - Intercon 2017Fabio Akita
Versão apresentada no evento Intercon 2017. Desmistificando 10 dos principais mitos ainda repetidos pela comunidade de empreendedorismo e tech startups.
30 Days to Elixir and Crystal and Back to RubyFabio Akita
Presented at Ruby Dev Summit, a journey through learning Elixir, Crystal and making Ruby better in the process, and why Ruby still can compete in the Web.
Focada em jovens estudantes ou recém-formados para terem uma perspectiva sobre o que almejar na carreira de TI. Versão apresentada pela primeira vez no 6o meetup do Cricíuma Dev.
This is the opening keynote for the 1st edition of THE CONF (www.theconf.club). It has full presenter notes. The video recording will be available at InfoQ Brasil.
Desmistificando Mitos de Startups - Sebrae - APFabio Akita
O mundo de startups se tornou um grande show. A maioria não entende que a sorte tem um papel mais forte do que se imagina. E sem conhecimento, experiência e paciência, Não existe caminho simples para o sucesso.
A Journey through New Languages - Locaweb Tech DayFabio Akita
An exercise started in 2014 going all the way to early 2016 of a simple crawler made in (ugly) Ruby first, then moving to Elixir, to Crystal and back to Ruby and what we can take out of it.
A Journey through new Languages - Intercon 2016Fabio Akita
Minha palestra apresentando minha jornada sobre um código Ruby feito com otimização prematura, passando por Elixir, Crystal e de volta ao Ruby, escrito da forma arquiteturalmente mais "correta" e que no final se tornou até mais performática.
Esta é a minha palestra "Premature Optimization" versão "Code-Only". #THECONFBR
The Open Commerce Conference - Premature Optimisation: The Root of All EvilFabio Akita
This is the talk I presented in NYC at the Spree Conference. It's about how we may be making bad decisions out of blindly following misleading pitches. To avoid it, we just need to go back to the basics of CS: Don't optimize prematurely. Here's how.
Epistemic Interaction - tuning interfaces to provide information for AI supportAlan Dix
Paper presented at SYNERGY workshop at AVI 2024, Genoa, Italy. 3rd June 2024
https://alandix.com/academic/papers/synergy2024-epistemic/
As machine learning integrates deeper into human-computer interactions, the concept of epistemic interaction emerges, aiming to refine these interactions to enhance system adaptability. This approach encourages minor, intentional adjustments in user behaviour to enrich the data available for system learning. This paper introduces epistemic interaction within the context of human-system communication, illustrating how deliberate interaction design can improve system understanding and adaptation. Through concrete examples, we demonstrate the potential of epistemic interaction to significantly advance human-computer interaction by leveraging intuitive human communication strategies to inform system design and functionality, offering a novel pathway for enriching user-system engagements.
Generating a custom Ruby SDK for your web service or Rails API using Smithyg2nightmarescribd
Have you ever wanted a Ruby client API to communicate with your web service? Smithy is a protocol-agnostic language for defining services and SDKs. Smithy Ruby is an implementation of Smithy that generates a Ruby SDK using a Smithy model. In this talk, we will explore Smithy and Smithy Ruby to learn how to generate custom feature-rich SDKs that can communicate with any web service, such as a Rails JSON API.
Transcript: Selling digital books in 2024: Insights from industry leaders - T...BookNet Canada
The publishing industry has been selling digital audiobooks and ebooks for over a decade and has found its groove. What’s changed? What has stayed the same? Where do we go from here? Join a group of leading sales peers from across the industry for a conversation about the lessons learned since the popularization of digital books, best practices, digital book supply chain management, and more.
Link to video recording: https://bnctechforum.ca/sessions/selling-digital-books-in-2024-insights-from-industry-leaders/
Presented by BookNet Canada on May 28, 2024, with support from the Department of Canadian Heritage.
Neuro-symbolic is not enough, we need neuro-*semantic*Frank van Harmelen
Neuro-symbolic (NeSy) AI is on the rise. However, simply machine learning on just any symbolic structure is not sufficient to really harvest the gains of NeSy. These will only be gained when the symbolic structures have an actual semantics. I give an operational definition of semantics as “predictable inference”.
All of this illustrated with link prediction over knowledge graphs, but the argument is general.
Dev Dives: Train smarter, not harder – active learning and UiPath LLMs for do...UiPathCommunity
💥 Speed, accuracy, and scaling – discover the superpowers of GenAI in action with UiPath Document Understanding and Communications Mining™:
See how to accelerate model training and optimize model performance with active learning
Learn about the latest enhancements to out-of-the-box document processing – with little to no training required
Get an exclusive demo of the new family of UiPath LLMs – GenAI models specialized for processing different types of documents and messages
This is a hands-on session specifically designed for automation developers and AI enthusiasts seeking to enhance their knowledge in leveraging the latest intelligent document processing capabilities offered by UiPath.
Speakers:
👨🏫 Andras Palfi, Senior Product Manager, UiPath
👩🏫 Lenka Dulovicova, Product Program Manager, UiPath
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Ramesh Iyer
In today's fast-changing business world, Companies that adapt and embrace new ideas often need help to keep up with the competition. However, fostering a culture of innovation takes much work. It takes vision, leadership and willingness to take risks in the right proportion. Sachin Dev Duggal, co-founder of Builder.ai, has perfected the art of this balance, creating a company culture where creativity and growth are nurtured at each stage.
Elevating Tactical DDD Patterns Through Object CalisthenicsDorra BARTAGUIZ
After immersing yourself in the blue book and its red counterpart, attending DDD-focused conferences, and applying tactical patterns, you're left with a crucial question: How do I ensure my design is effective? Tactical patterns within Domain-Driven Design (DDD) serve as guiding principles for creating clear and manageable domain models. However, achieving success with these patterns requires additional guidance. Interestingly, we've observed that a set of constraints initially designed for training purposes remarkably aligns with effective pattern implementation, offering a more ‘mechanical’ approach. Let's explore together how Object Calisthenics can elevate the design of your tactical DDD patterns, offering concrete help for those venturing into DDD for the first time!
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualityInflectra
In this insightful webinar, Inflectra explores how artificial intelligence (AI) is transforming software development and testing. Discover how AI-powered tools are revolutionizing every stage of the software development lifecycle (SDLC), from design and prototyping to testing, deployment, and monitoring.
Learn about:
• The Future of Testing: How AI is shifting testing towards verification, analysis, and higher-level skills, while reducing repetitive tasks.
• Test Automation: How AI-powered test case generation, optimization, and self-healing tests are making testing more efficient and effective.
• Visual Testing: Explore the emerging capabilities of AI in visual testing and how it's set to revolutionize UI verification.
• Inflectra's AI Solutions: See demonstrations of Inflectra's cutting-edge AI tools like the ChatGPT plugin and Azure Open AI platform, designed to streamline your testing process.
Whether you're a developer, tester, or QA professional, this webinar will give you valuable insights into how AI is shaping the future of software delivery.
89. “Eles servem mais de 23 milhões de visitantes/mês. A conversão
resultou em 20 mil linhas de Ruby em vez de 125 mil linhas de Java e,
mais importante, facilitou a dificuldade que tinham em manutenção.
Eles também finalizaram a reescrita do sistema em apenas 3 meses
com 4 desenvolvedores. Uma vez completo e otimizado, o site deles
agora é mais rápido que antes.”
http://www.railsonwave.com/railsonwave/2008/6/4/yellowpages-com-migrates-to-rails
Monday, September 14, 2009
90. “Eles servem mais de 23 milhões de visitantes/mês. A conversão
resultou em 20 mil linhas de Ruby em vez de 125 mil linhas de Java e,
mais importante, facilitou a dificuldade que tinham em manutenção.
Eles também finalizaram a reescrita do sistema em apenas 3 meses
com 4 desenvolvedores. Uma vez completo e otimizado, o site deles
agora é mais rápido que antes.”
http://www.railsonwave.com/railsonwave/2008/6/4/yellowpages-com-migrates-to-rails
Monday, September 14, 2009
91. “Eles servem mais de 23 milhões de visitantes/mês. A conversão
resultou em 20 mil linhas de Ruby em vez de 125 mil linhas de Java e,
mais importante, facilitou a dificuldade que tinham em manutenção.
Eles também finalizaram a reescrita do sistema em apenas 3 meses
com 4 desenvolvedores. Uma vez completo e otimizado, o site deles
agora é mais rápido que antes.”
http://www.railsonwave.com/railsonwave/2008/6/4/yellowpages-com-migrates-to-rails
Monday, September 14, 2009
92. “Eles servem mais de 23 milhões de visitantes/mês. A conversão
resultou em 20 mil linhas de Ruby em vez de 125 mil linhas de Java e,
mais importante, facilitou a dificuldade que tinham em manutenção.
Eles também finalizaram a reescrita do sistema em apenas 3 meses
com 4 desenvolvedores. Uma vez completo e otimizado, o site deles
agora é mais rápido que antes.”
http://www.railsonwave.com/railsonwave/2008/6/4/yellowpages-com-migrates-to-rails
Monday, September 14, 2009
122. Blaine Cook
http://www.akitaonrails.com/2008/6/17/chatting-with-blaine-cook-twitter
Monday, September 14, 2009
123. Para colocar as coisas em
perspectiva, o Friendster foi
escrito em Java e eles
mudaram para PHP.
MySpace foi escrito em
ColdFusion e eles mudaram
para ASP.NET.
Blaine Cook
http://www.akitaonrails.com/2008/6/17/chatting-with-blaine-cook-twitter
Monday, September 14, 2009
124. Para colocar as coisas em
perspectiva, o Friendster foi
escrito em Java e eles
mudaram para PHP.
MySpace foi escrito em
ColdFusion e eles mudaram
para ASP.NET.
Quando as pessoas caem em
problemas de escalabilidade,
normalmente acham que a
linguagem é o problema, mas
eu acho que isso raramente é
a realidade. Blaine Cook
http://www.akitaonrails.com/2008/6/17/chatting-with-blaine-cook-twitter
Monday, September 14, 2009
125. “O The New York Times usou Ruby on Rails
para agregar, analizar e mostrar os
resultados das eleições em quase tempo
real em um de seus sites mais acessados
de todos os tempos.”
http://www.computerworld.com.au/article/268003/ruby_rails_rolls_into_enterprise?fp=16&fpid=1
Monday, September 14, 2009
126. “O The New York Times usou Ruby on Rails
para agregar, analizar e mostrar os
resultados das eleições em quase tempo
real em um de seus sites mais acessados
de todos os tempos.”
http://www.computerworld.com.au/article/268003/ruby_rails_rolls_into_enterprise?fp=16&fpid=1
Monday, September 14, 2009
146. describe BankAccount do
before :each do
@bank_account = BankAccount.new :balance => 250
end
it "should not be valid" do
@bank_account.should be_valid
end
it "should transfer funds successfully" do
@bank_account.should_receive(:transfer)
.with_args(:amount => 100)
.and_return(true)
@bank_account.execute_transaction(:amount => 100)
@bank_account.balance.should == 150
end
end
Monday, September 14, 2009
147. describe BankAccount do
before :each do
@bank_account = BankAccount.new :balance => 250
end
it "should not be valid" do
@bank_account.should be_valid
end
it "should transfer funds successfully" do
@bank_account.should_receive(:transfer)
.with_args(:amount => 100)
.and_return(true)
@bank_account.execute_transaction(:amount => 100)
@bank_account.balance.should == 150
end
end
Monday, September 14, 2009
148. describe BankAccount do
before :each do
@bank_account = BankAccount.new :balance => 250
end
it "should not be valid" do
@bank_account.should be_valid
end
it "should transfer funds successfully" do
@bank_account.should_receive(:transfer)
.with_args(:amount => 100)
.and_return(true)
@bank_account.execute_transaction(:amount => 100)
@bank_account.balance.should == 150
end
end
Monday, September 14, 2009
149. describe BankAccount do
before :each do
@bank_account = BankAccount.new :balance => 250
end
it "should not be valid" do
@bank_account.should be_valid
end
it "should transfer funds successfully" do
@bank_account.should_receive(:transfer)
.with_args(:amount => 100)
.and_return(true)
@bank_account.execute_transaction(:amount => 100)
@bank_account.balance.should == 150
end
end
Monday, September 14, 2009
151. Funcionalidade: Adição
Para evitar erros bobos
Como um péssimo matemático
Eu quero saber como somar dois números
Cenário: Adicionar dois números
Dado que eu digitei 50 na calculadora
E que eu digitei 70 na calculadora
Quando eu aperto o botão de soma
Então o resultado na calculadora deve ser 120
Monday, September 14, 2009
152. Funcionalidade: Adição
Para evitar erros bobos
Como um péssimo matemático
Eu quero saber como somar dois números
Cenário: Adicionar dois números
Dado que eu digitei 50 na calculadora
E que eu digitei 70 na calculadora
Quando eu aperto o botão de soma
Então o resultado na calculadora deve ser 120
Monday, September 14, 2009