Better HN
topnewbestaskshowjobs
Log inSign up

daviddripps

18 karma · joined Apr 30, 2012 (14y ago) · 12 submissions

Submissions

1.

Your Macbook could be a lot cooler. New Kickstarter to “build your own” case(kickstarter.com ↗)

7 points · by daviddripps · 11y ago · 1 comment

2.

Test-Driven HTML Part2: Head is Good(daviddripps.com ↗)

1 points · by daviddripps · 14y ago · discuss

comment 14y ago · link · parent

Gotcha. I run VirtualBox with an IE8 and IE9 VM for JsTestDriver, BusterJS, or the like. For Selenium though, I use SauceLabs to run it on all sorts of browsers and they actually provide you with a video of the test too. It's not free, but it's definitely worth the money.

"It's mainly to ensure that while I'm changing something in one place I don't inadvertently screw up a page someplace else that I may forget to check."

It all comes back to design by testing. Personally, my apps use a lot of layouts, views, and helpers so an automated way to check that a change in one place doesn't affect my UI somewhere else is paramount.

The key here is that it's automated. I use continuous integration, and introducing even one human element breaks the flow of quick pushes and updates.

As for sketching out page design, "form follows function." I'm not thinking about the look of the app at all. I'm not a designer, but once my HTML is written I can show a talented designer exactly what they have to work with to create the best UI/U possible. Basically, I'm not a fan of design-driven development.

I wish I could attach an image so you could see where I am with my current project. It's a logo at the top, followed by a list of links, a dropdown, another list of links, some content, etc. One on top of the other, no design at all. Black text, white screen. It is very clear though what the page is suposed to accomplish. Let the designer do their job, and I'll TDD my CSS when I turn their vision into code.

comment 14y ago · link · parent

My reason for TDD HTML: I'm a firm believer in "form follows function". I'm trying to employ test-driven principles to design by forcing us to think about the function of the UI by writing tests first. Once the features are well defined by tests, we start writing our CSS and Javascript.

I'm not a Ruby guy so I've never used Watir. You pass the HTML string into Watir and it parses it in a headless web browser. Then you use Selenium WebDriver for generating screenshots to manually review? Makes sense.

My only concern is that it's not test-driven. My next post will be on browser testing as verification, but the reason I like TDD so much is because it forces me to think through the problem before writing code.

5.

Test-Driven HTML: Why and How(daviddripps.com ↗)

2 points · by daviddripps · 14y ago · 4 comments

6.

You Don’t Get Fired For Investing In Mobile(daviddripps.com ↗)

1 points · by daviddripps · 14y ago · discuss

7.

One Javascript Singleton to Rule Them All(nmrk.it ↗)

1 points · by daviddripps · 14y ago · discuss

8.

Most Opinions Suck, But That’s Just My Opinion(nmrk.it ↗)

1 points · by daviddripps · 14y ago · discuss

9.

Why the Freemium Model Works(daviddripps.com ↗)

4 points · by daviddripps · 14y ago · discuss

comment 14y ago · link · parent

thanks ibk! It was the middle of the night when HN tweeted it :( Site's back up now.

11.

Why You Should Build Something(daviddripps.com ↗)

13 points · by daviddripps · 14y ago · 7 comments