Better HN
topnewbestaskshowjobs
Log inSign up

rasmus4200

239 karma · joined Mar 29, 2007 (19y ago) · 45 submissions

Submissions

comment 9y ago · link · parent

This is the biggest challenge. What I find works is separating your orchestrations from your data processing.

For example, instead of creating one class that does the network call, and processes the JSON response, break these out.

One class does the network call (keep it extremely thin). Dependency inject stuff in if you want. But view this purely as an orchestration.

if (connectionValid) json = makeNetworkCall anotherObject.processJson(json) <- test separately end

Then, in the other plain old data process class, do you heavy off-by-one edge case testing there.

If the first case, the orchestration, I can write tests like "One make the network call if the connection is valid". But that's all that test would do.

I am at the point now where I actually don't even test that. I assume that is going to work, because it is so simple. That and I generally hate mocking. Way too much coupling. Way too hard to refactor.

Where I do test heavy is on the plain old object side, that has no outside ports or connectors. These are just plain old objects.

I agree with some other comments I have ready here. Mocking is a bitch and I generally don't like it. But it's there if I needed it, so I do use it occasionally.

But it has so many downsides I try not to. Instead I separate the orchestrations from the processing. Unit test the processing (in an integration test sort of way), and try to stick to testing the public APIs of my class, so I am free to change the internals without things breaking.

My 2c. Hope that helps.

2.

Drop the QA column(agilewarrior.wordpress.com ↗)

1 points · by rasmus4200 · 9y ago · discuss

3.

The book that changed the game(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 12y ago · discuss

4.

The Automated Tester(agilewarrior.wordpress.com ↗)

1 points · by rasmus4200 · 13y ago · discuss

comment 13y ago · link · parent

I loved this game. Great read thank you.

6.

What if you don't want to pivot?(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 13y ago · discuss

7.

It's not about the unit tests(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 14y ago · 1 comment

8.

Design in Norway(agilewarrior.wordpress.com ↗)

1 points · by rasmus4200 · 14y ago · discuss

9.

Viking Laws(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 14y ago · discuss

10.

Mobile apps are more work than you think(agilewarrior.wordpress.com ↗)

3 points · by rasmus4200 · 14y ago · discuss

comment 14y ago · link · parent

The War of Art http://www.stevenpressfield.com/the-war-of-art/

Break through the blocks and win your inner creative battles.

Many books mentioned here are good, this is the only I haven't seen referenced. But this one book really helped me deal with resistance and get stuff done. Seth Godin is a big fan and references it a lot in his material.

Steven Pressfield also wrote 'The Legend of Bagger Vance' and Gates of Fire (Spartan 300 kind of book but way deeper).

12.

Life after Steve(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 14y ago · 1 comment

13.

Sometimes you’ve got to make your own experience(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 14y ago · discuss

14.

Some thoughts on Steve Jobs and Agile(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 15y ago · 1 comment

15.

The rise of the generalist(agilewarrior.wordpress.com ↗)

3 points · by rasmus4200 · 15y ago · discuss

comment 15y ago · link · parent

I loved this video. Gatekeeper blew me away.

Summarized some of the highlights here if you don't have time to watch:

http://agilewarrior.wordpress.com/2011/05/28/how-facebook-pu...

17.

They're not requirements(agilewarrior.wordpress.com ↗)

1 points · by rasmus4200 · 15y ago · discuss

18.

The way of the spartan warrior(agilewarrior.wordpress.com ↗)

2 points · by rasmus4200 · 15y ago · discuss

19.

Production readiness(agilewarrior.wordpress.com ↗)

1 points · by rasmus4200 · 15y ago · discuss

20.

Crossing the uncanny valley(economist.com ↗)

4 points · by rasmus4200 · 16y ago · discuss

21.

Questions you'd be crazy not to ask at the start of your next project(agilewarrior.wordpress.com ↗)

149 points · by rasmus4200 · 16y ago · 12 comments

comment 16y ago · link · parent

As a Canadian developer I agree 100% and this very thought is what keeps me up at night.

We are soft. Our duvet's are too fluffy. And we can't rely on our natural resources forever.

23.

Why you may find your software lacking(agilewarrior.wordpress.com ↗)

1 points · by rasmus4200 · 16y ago · discuss

comment 16y ago · link · parent

First off - good for you for trying something. Thanks awesome. Takes a lot of guts and hard work to put something out there so hats off to you for that.

As far as feedback, I think the Take a Tour screen is begging for a picture or something to show me at a glance how it works.

I would try to add more pictures to the site as it is currently all text (at least what I saw). Even it is just a piggy bank or something - show me how I am going to save money. Or make me feel the pain.

But I think a picture would really spruce things up.

Good job though. And good luck!

comment 16y ago · link · parent

One trick I used at university was if there was a course I wanted to sit in on, I would just show up, sit in the back and listen.

Most classes are so big you can slip in there under the radar.

Dont wait or let some professor tell you can't take a course.

Get the reading material, do the assignments, and learn what you want.

comment 16y ago · link · parent

Don't drive. Ride a bike. Lot's of rest. Make a todo list start of each day. Ignore everything else.

27.

You are not your role(agilewarrior.wordpress.com ↗)

3 points · by rasmus4200 · 16y ago · discuss

28.

The Drucker Excercise(agilewarrior.wordpress.com ↗)

7 points · by rasmus4200 · 17y ago · discuss

29.

Deliver something of value every week(agilewarrior.wordpress.com ↗)

15 points · by rasmus4200 · 17y ago · 5 comments

comment 17y ago · link · parent

I really like The War of Art

http://www.amazon.com/War-Art-Through-Creative-Battles/dp/04...

Talks about resistance, and how it stops most of us from doing what we were meant to do.

Highly recommend.

12