Better HN
topnewbestaskshowjobs
Log inSign up

ericHosick

1,083 karma · joined Aug 24, 2009 (17y ago) · 431 submissions

https://github.com/erichosick
Submissions

comment 16y ago · link · parent

I also can not believe how hard it is to convince people of the advantages of testing.

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

How about from this perspective:

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

I think there is quite a big difference, fundamentally, between BDD and TDD (though they are not mutually exclusive and do overlap).

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

I think it would also behoove you to start using BDD in your development process. With BDD, you get a one-to-many correlation between behavior and code. This also greatly improves on quality. I say this because quality can only be based against requirements. BDD forces the developer to have the behavioral requirements upfront.

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

Any one of your friends starve?

comment 16y ago · link · parent

Will be a great tool!

Please note that when I view the demos on your site the animation starts before all the content used in the animation is downloaded. It is kinda cool in a way because I see an image downloading as it animates off the screen.

comment 16y ago · link · parent

I think this is a great goal but maybe not ten? I am sure you know a lot about this but:

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

What do you use for doing mockups?

comment 16y ago · link · parent

I think point four is true but difficult to achieve. Most CEOs I work with, who also act as the product manager/owner, have a hard time keeping up with the role of product manager: especially when there are two or more pairs working on their product.

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

Real estate, like almost any other product, is not unique. There is always another lot.

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

Agree with pwim that 150 subclasses is way too many. OO Principal Favor Composition over Inheritance easily kicks in here. But even with fewer subclasses we still have to define the likes/dislikes of N monsters with N-1 other monsters. Further, every time a new monster is added, N monsters like/dislike logic has to be updated.

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.

1
1112131415