1,083 karma · joined Aug 24, 2009 (17y ago) · 431 submissions
comment 16y ago · link · parent
I often see stories that are not accepted multiple times simply because the product owner has changed the intent of the original story. Tests really help to define what it is that the product owner wants before a line of code is even written.
In the bigger picture, how much "more time" does it really take?
Dumb story, but my dad taught me how to do word working: making European Cabinets. So many times he would say "Measure twice, cut once." This, in some convoluted way, could apply to software engineering.
comment 16y ago · link · parent
With regard to BDD not being a big loss:
BDD tests the complete behavior of a system. You can refractor the system a hundred different ways and completely change implementation if you like (or even start using a completely different programming language) and as long as the BDD tests continue to pass, you know you have NOT changed the features and behavior of your system. You know, 100%, that you have not broken the system as a whole.
With regard to 1 and 2:
1) Every product owner is different. Some do like to write down what they want. Some don't. In no way does this give a developer the excuse of not developing to specifications/features/behavior. Part of that "technical" stuff that you are paid for is to assure that you have actually developed the exact behavior what was asked for. Nothing more. Nothing less. At the very least, you have something that a BA/PO/Manager/Client can look at when they say let you know you gave them something they didn't want. 2) If hey don't have time to define the behavior of your system (or delegate that task) then you really don't have time to understand their customer nor find that set of features that gives them the best ROI.
comment 16y ago · link · parent
Let's try a quick example of a google maps type app: locating where you are and where you want to be.
From BDD perspective, you get a mockup of the screen (could even be some non visual process) and this represents the behavior you want of the product: the behavioral requirements. From this mockup we can pull out all the behavior on that screen (or within that system).
Feature: In order to see if I am where I want to be As a traveler I need to know my location.
Scenario: At My Location Given I want to be at Lon XXXX Lat YYYY And I am at Log XXXX Lat YYYY Then I should see "You are There"
Scenario: Not there Yet Given I want to be at Lon XXXX Lat YYYY And I am at Log XXXX Lat YYYY2 Then I should see "You have 4 meters to go".
From this behavior we can then build out the system which inevitably leads to fine grained software specific behavior which should be tested using TDD such as:
it should "calculate the distance between two points correct"
In the case of BDD, we don't worry about how the two points are calculated nor if it is even done correctly (we don't need full fringe test coverage in BDD). We are able to assume that the underlying calculations will be correct. We do need to make sure that the behavior of the system as a whole is working correctly. In this case, we are assuming if the calculation is incorrect we will not see "You are There" on the screen. Why was it incorrect? Doesn't matter. That specific behavior, the calculation, was driven by Tests.
Personally, and for efficiency, it is really important to use both in a project and not look at BDD as "TDD done right."
Just my two cents.
comment 16y ago · link · parent
BDD allows you to take a given behavioral requirement and see all the code that supports that requirement and visa-versa. If a customer ever asks you, you can point to exactly where you are fulfilling that behavioral requirement in the source code.
And BDD languages such as Gherkin are easy to read for most non-technical people.
Of course, this isn't a replacement for TDD.
comment 16y ago · link · parent
Along with building apps consider using best known practices to show you can go from concept to delivery including using mockups for GUIs, Gherkin (cucumber/specflow) for features and stories, a backlog manager for the mockups and features (pivotaltracker is ok for this but there are others: check them out), use a repository of some kind (I like git), setup a continual integration server, stick your solutions on a cloud service (http://aws.amazon.com/free/, Heroku is free too).
Read about Customer Development (The Four Steps to the Epiphany by Steven Gary Blank) or I am sure there are other approaches (this one just makes sense to me).
Report back on your success to HN.
comment 16y ago · link · parent
Having someone who can share that product vision with you is, in my opinion, really important. This frees up the CEO to focus on other aspects of the business like customer development, funding, etc.
comment 16y ago · link · parent
Each domain name is unique. Try another domain name? Probably "on the market for sale."
I believe, even with trademarks, you have to file an intent to use (http://www.uspto.gov/trademarks/process/appcontent.jsp). Maybe this is to stop trademark squatting?
comment 16y ago · link · parent
Maybe we are looking at the system/problem from the wrong perspective?
Maybe the likes/dislikes between monsters isn't actually so arbitrary. Perhaps, it is the characteristics of one monster that other monsters don't like or do like. If this is the case (which makes sense as in the real world we judge other things based on characteristics and behavior), then the like/dislike behavior can be encapsulated.
Further, using something like Strategy pattern, you can come up with a set of algorithms that define the likes/dislikes between monsters. That way you can compose that specific behavior of a monster at run-time further reducing your class count.