zenspider

- friends
279 link karma
1,093 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Six-Year Club

    Verified Email

assert_nothing_tested by retardoin ruby

[–]zenspider 0 points1 point ago

If you're doing BDD, then yes, you should assert that do_something is called. If you're doing TDD, then no, you should assert that you get the result you expect given condition being true.

Personally, I can't stand BDD because it exposes internals way to much and it makes refactoring/optimizing/pretty-much-any-change increasingly difficult.

assert_nothing_tested by retardoin ruby

[–]zenspider 0 points1 point ago

P.S. You got your assertion backwards :P

assert_nothing_tested by retardoin ruby

[–]zenspider 1 point2 points ago

I love you.

assert_nothing_tested by retardoin ruby

[–]zenspider 0 points1 point ago

It is already explicit by using a testing framework.

RSpec-2.8 is released by retardoin ruby

[–]zenspider 0 points1 point ago

Would you mind giving a concrete example where using rspec's full feature set is more readable and concise?

Haml - Few months later by paneqin ruby

[–]zenspider -3 points-2 points ago

Amen

BaconBits might be down longer than just a few days... by 4InchesOfuryin BaconBits

[–]zenspider 0 points1 point ago

Could we donate code or code reviews?

Testing Doesn't Scale by rudyjahchanin ruby

[–]zenspider 7 points8 points ago

Alarmist hyperbole

Hey, r/Macs, why do I get a -47 error EVERY time I try to eject a drive/USB key, etc.? EVERY time. Then it works. But...... why??? by catsfivein mac

[–]zenspider 1 point2 points ago* 

So do it again with a brand new user... chances are you have some wierd background app that is holding files open when it shouldn't.

Also, lsof should say what process it is that was opening the file.

ETA: I see below that it is mds owned by root... so a new user won't help all that much.

I had a similar problem with my time machine disk when I upgraded to lion. I did something (roughly) like the following:

  • Turn off time machine, select none for the time machine disk.
  • in terminal, ran: sudo mdutil -Ev -i off -a
    • read man mdutil to decipher what that does.
  • in termanal ran: sudo mdutil -Ev -i on -a

and then waited for a nice long time as it reindexed my backups. That took 12ish hours, but I have many many years of backups in time machine.

Wondering why the King5 helicopter is hovering around downtown right now? by cypherpunkin Seattle

[–]zenspider 1 point2 points ago

I agree. The situation is fucked no matter what.

Wondering why the King5 helicopter is hovering around downtown right now? by cypherpunkin Seattle

[–]zenspider 1 point2 points ago

You're instructed never to remove anything piercing the body whether you need to give CPR or not. Often it is holding the wound in place and keeping the person alive. They're cut free of the rest of it and taken to a trauma center where they can deal with removing the object.

Relocating: Recommendations for fitness center, please. by [deleted]in Seattle

[–]zenspider 0 points1 point ago

The outdoors. I hear it's pretty cheap.

TSA creator wants to dismantle the agency, saying it's "failed to actually detect any threat in 10 years.” by stairmasterin reddit.com

[–]zenspider 0 points1 point ago

Not going to do some calculations on it, but considering some circumstances I can see how some things may add up and make some sense.(delivery and tip for the coffee? last minute demand for a very specific kind of cable and having it delivered express...)

If you're not going to do calculations on it... sure, I can see how someone might think it was reasonable to pay $9.39 per 12 oz coffee... Not thinking is always more reasonable than thinking.

Does anyone use AppleScript? How has it improved your work flow on Mac OSX? by elephantsrcutein apple

[–]zenspider 0 points1 point ago

That's itunes and the airplay device syncing and buffering. Sucks, but it happens even when you manually do it.

Does anyone use AppleScript? How has it improved your work flow on Mac OSX? by elephantsrcutein apple

[–]zenspider 0 points1 point ago

I'd love to compare your airplay scripts to mine. I had a horrible time getting it to work well at all.

http://blog.zenspider.com/2011/08/applescript-pita-set-itunes-dj.html

Does Kitsap County realize that they are about to outlaw cleavage and sideboob? by Dan_Quixotein Seattle

[–]zenspider 5 points6 points ago

Gorst doesn't count. At all. For anything.

Does anyone use AppleScript? How has it improved your work flow on Mac OSX? by elephantsrcutein apple

[–]zenspider 0 points1 point ago* 

It should be noted that appscript is pretty much end-of-life'd as it relies on carbon. It still works on osx 10.7. ScriptingBridge is the way to go from here on out. I love the API in appscript so I'm thinking of porting it over.

Shaving a YAML Yack, a rubygems.org issue. by tenderlovein ruby

[–]zenspider 0 points1 point ago

How about 10 years of review and use my many people?

What I learned in four years as a Rails consultant by noelrapin ruby

[–]zenspider 2 points3 points ago

That is true of any project, not just agile, not just software development. Look at Victor Ninov and element 118 for an example.

Shaving a YAML Yack, a rubygems.org issue. by tenderlovein ruby

[–]zenspider 0 points1 point ago

Perhaps because it doesn't really need it.

Also, YAML already has references, what they call anchors and aliases: http://yaml.org/spec/1.2/spec.html#alias//

Trimming time needed for running RSpec suite by drKresoin ruby

[–]zenspider 0 points1 point ago

autotest does this all with a very reasonable workflow.

Noteshelf is currently 80% off! (back to school discount) by mcjoeyin ipad

[–]zenspider 0 points1 point ago

Let us know how the jot is...

Are EA apps as buggy and broken as the reviews say they are? by Lucaviousin ipad

[–]zenspider 1 point2 points ago

The mac port of spore was so abysmally bad that it couldn't even update itself. Their customer support and QA was retarded to the point where I was wondering how they remembered to breathe. My guess is any game that they put out on a different platform than the original is going to be chock full of bugs.

Redmine still doesn't support Ruby 1.9 by swillsin ruby

[–]zenspider 3 points4 points ago

Now you have two problems...

view more: next