|
fire pits guide
Outdoor Fire Pits
Outdoor fire pits are a great
way to lighten up any camping trip, barbecue or backyard gathering. The most
popular outdoor fire pits are chimineas, cast iron, copper and grated cylinder
firepits. Outdoor fire pits and fireplaces create a mood for gathering and
relaxing, and add warmth and comfort to any outdoor space. Outdoor firepits
help extend the time you can use your patio, deck or backyard. Outdoor fire
pits are available at affordable prices; many are portable and very easy to use.
Sales of built-in outdoor
fireplaces have more than doubled in the past two years, according to the
Hearth, Patio and Barbecue Association, a trade group. These types of outdoor
gas fire pits will change the way you think about outdoor entertaining. An
outdoor fireplace or fire pit burns wood, charcoal, or pressed wood logs. For
outdoor spaces, a fire pit offers all the coziness of a fire with the
functionality of a grill. Spark your imagination and envision your own glowing
outdoor space.
Firepits are also usually
packaged with a grill that fits over the top to make cooking easy. Fire pits
come in an unbelievable range of sizes and styles. As a design element fire
pits are usually very ornamental and can be applied in most landscaping ideas as
focal points. Landscape designers have taken the idea of a ski village fire pit
and have incorporated them into everyday backyard landscaping designs. There
isn't anything more welcoming on a cool spring or summer evening then gathering
around a fire pit with friends and family.
Gas logs are an incredibly
innovative way to enjoy the heat of a fire without working up a sweat getting it
started. Most styles can be fitted with propane or a natural gas fueled system
which combines durability with portability, providing years of warmth and
enjoyment. Today's innovations in gas log fireplaces make old wood and smoke
fires a thing of the past. You can choose a fireplace structure made from cast
iron, aluminum or steel, specifically designed to burn natural gas, propane gas,
or wood logs. If you are looking for a convenient way to enjoy your fireplace
without the hassle of woodturning fires, consider purchasing gas logs.
Please enjoy the extensive
article and product resources that we have put together on this site for all of
your fire pit needs. Check back often as we will be continually adding products
and reviews as they become available.
www.outdoorfirepits.biz
Firepits 101: Adding to your Outdoor Space By Dave Kettner For those who love the ambiance of a fireplace during the colder months of the year, spring temperatures can force them to say goodbye to those crackling flames. However, now you can simply move Read more...
|
Unique Portable Fire Pits At Exterior Accents By Dave Kettner Fall season has already come and it only means that the cold weather would surely be on the way and we need to take necessary precautions for us to feel warm and cozy during these times. And Read more...
|
Outdoor Firepits By Dave Kettner Outdoor fire pits are a great way to lighten up any camping trip, barbecue or backyard gathering. The most popular outdoor fire pits are chimineas, cast iron, copper and grated cylinder Read more...
|
The Variants of the Gas Fire Pit By Dave Kettner When it comes to having a gas fire pit at one’s home, many people will balk at the mere mention of such an item. This may seem curious to many as such fire pits can often complement the look of an Read more...
|
Creative uses of Hamcrest matchers The matcher API of Hamcrest is typically associated with assertThat() or mocks. I always knew other people would find good uses for it, but I never really knew what.
I particularly like these:
Collection processing
Håkan Råberg blogged about how Hamcrest can be used with iterators:
List<Integer> numbers = Arrays.asList(-1, 0, 1, 2);
List<Integer> positiveNumbers = detect(numbers, greaterThan(0)));
List<String> words = Arrays.asList("cheese", "lemon", "spoon");
List<String> wordsWithoutE = reject(words, containingString("e"));
Nothing rocket-sciencey about it. But simple and useful because it reduces boilerplate code and get to use the ever growing library of Hamcrest matchers.
On top of that, combining Hamcrest with a CGLib generated proxy, he has built a staticly typed query API:
List<Person> employees = ...;
List<Integer> allAges
= collect(from(employees).getAge());
List<Person> allBosses
= collect(from(employees).getDepartment().getBoss());
List<Person> allAccountants
= select(from(employees).getDepartment().getName(),
containingString("Accounts"));
This is nice alternative to a string based query language as you get your IDE completions, refactoring, compile time checking etc, without the noise of boilerplate code.
Web testing
Robert Chatley has taken some of the concepts of his LiFT framework and reimplemented them using Hamcrest and WebDriver for performing web testing.
public void testHasLotsOfLinks() {
goTo("http://some/url");
assertPresenceOf(greaterThan(15), links());
assertPresenceOf(atLeast(1), link().with(text(containingString("Sign in"))));
clickOn(link().with(text(containingString("Sign in"))));
assertPresenceOf(exactly(1), title().with(text(equalTo("Sign in page"))));
}
Now initially this seems a bit wordy and strange. Robert has designed this as a literate API. If you adjust the syntax highlighting of your API and make the Java keywords and syntax less visible, you get this:
goTo "http://some/url"
assertPresenceOf greaterThan 15 links
assertPresenceOf atLeast 1 link with text containingString "Sign in"
clickOn link with text containingString "Sign in"
assertPresenceOf exactly 1 title with text equalTo "Sign in page"
The motivation here is that the API usage is self documenting and could be useful to non-programmers. The flip-side to this is that it's actually quite hard to write APIs like this and the usage can take quite a bit of getting used to.
Robert also introduced a Finder interface (the link() and title() methods return Finder implementations). This allows you to factor out your own UI specific components:
assertPresenceOf(atLeast(1), signInLink());
clickOn(signInLink());
assertPresenceOf(exactly(1),
blogLink().with(urlParameter("name", containingString("joe"))));
This is the bit I really like.
Allowing abstractions of components and matching rules to be combined in many different ways, so tests can check exactly what they need to, resulting in reduced less brittle tests that are easier to maintain.
Other uses
As I hear of other uses I'm listing them on the Hamcrest wiki.
When it goes bad
Of course, like any technology, it's easy to get carried away.
Here's an example of Hamcrest gone bad:
assertThat(myNumber, anyOf(equalTo(0), allOf(greaterThan(5), lessThan(10))));
I'm not a LISP programmer, so I find that really hard to understand. Just because we have an assertTHAT() method, we don't have to use it all the time. In this case it's much simpler to use plain old assertTRUE():
assertTrue("myNumber should be 0 or between 5 and 10",
myNumber == 0 || (myNumber > 5 && myNumber < 10));
Even though the non-Matcher version is longer (it could be shortened by leaving out the message and using a shorter variable name, but that would make it harder to understand), I find it much easier to understand.
But, what if you actually needed to use a matcher (e.g. for the web testing or collection processing examples above)?
One approach is you could use higher level matcher that are composed of other matchers:
matcher = anyOf(equalTo(0), allOf(greaterThan(5), lessThan(10)))
// simplifies to
matcher = anyOf(equalTo(0), between(5, 10))
Complete tangent: An alternative to between(5, 10) is between(5).and(10). The latter makes for more literate code, but is harder to implement - again a design tradeoff.
Another approach is to create a one-off anonymous matcher implementation:
matcher = new CustomMatcher() {
public boolean matchesSafely(Integer n) {
return n == 0 || (n > 5 && n < 10);
}
}
What are you doing with Hamcrest?
Updates:
- JUnit 4.4 now comes with Hamcrest and assertThat().
]]> Hamcrest 1.1 released http://code.google.com/p/hamcrest Testing on the Toilet At Google we have pretty good internal documentation, tutorials and places to find good tips. If you know you don't know something, it won't take long to find the answer.
However, it's slightly tougher to place something to be read, when the target readers don't know they don't know it. This was a problem the testing group were finding, as they wanted to improve sharing of practical testing techniques.
So, Testing on the Toilet was started. A regular weekly(ish) tip posted in toilet cubicles and above urinals. Short enough to be read whilst doing your business.
Soon after, many visitors started noticing these postings and we got requests to make these available to put up in offices of other development teams.
So, we have.
http://googletesting.blogspot.com/
Each episode will be made available as a toilet friendly PDF. ]]>
|