zenspider

- friends
284 link karma
1,161 comment karma
send messageredditor for
what's this?

TROPHY CASE


  • Six-Year Club

    Verified Email

Will reading Land of Lisp help me understand elisp code? by mocker_kcin lisp

[–]zenspider 4 points5 points ago

Understanding lisp in general will help you with any lisp out there... including oddities like elisp.

Proper namespace for gems that read/write DXF, DWG, etc? by bfozin ruby

[–]zenspider 1 point2 points ago

So name your gem something obvious. The point I was making is that there really is no "proper" here. Personally, I think that mentality is a waste of time (most of the time). I'd name it something fun like "DaWG" simply because I can.

ETA: Make that "DaWG the File Writer".

Proper namespace for gems that read/write DXF, DWG, etc? by bfozin ruby

[–]zenspider 1 point2 points ago

"BTW, why is Prawn in it's own namespace instead of something more obviously related to PDF handling?"

Because we're not perl. Name it what you want. There is no "proper".

tinyc: lexer+parser+code generator+VM in 291 lines of C code by Marc Feeley by zerdin tinycode

[–]zenspider 1 point2 points ago

works fine for me when compiled with clang (compiles w/o warnings). llvm-gcc is clean as well. I don't have any other C compilers available right now.

GitHub's Ruby Style Guide by requiemderseelein ruby

[–]zenspider 2 points3 points ago

... Because list comprehensions are so obvious. It's also obvious that blocks should only contain a single expression... or that there should even be a difference between statements and expressions... and and and and...

They also threw out the "only one way" philosophy years and years ago, eg: string.join(words) (ugh... talk about backwards design) vs String.join(words, sep) vs String.joinfields(words, sep).

IOW, there's just as much bullshit in python as there is in ruby.

GitHub's Ruby Style Guide by requiemderseelein ruby

[–]zenspider 0 points1 point ago

it's just a method call... anyone can define =~

GitHub's Ruby Style Guide by requiemderseelein ruby

[–]zenspider 0 points1 point ago

emacs does it that way == matz does it that way

GitHub's Ruby Style Guide by requiemderseelein ruby

[–]zenspider 1 point2 points ago

better? no. it's arbitrary. obviously.

emacs' ruby-mode lines them up... so we line them up.

GitHub's Ruby Style Guide by requiemderseelein ruby

[–]zenspider 1 point2 points ago

No. There's no reason. Especially when you talk about using "self." for singleton methods (which I agree with) because it makes them easier to refactor and move around. Converting single quoted strings to double quoted strings is a waste of time, so just use double quoted strings for everything. Those who say they can't tell whether there is interpolation inside the string at first glance need to switch text editors.

GitHub's Ruby Style Guide by requiemderseelein ruby

[–]zenspider 6 points7 points ago

Good concise writeup. I agree with 99% of this.

Just not the stupid single quoted strings thing.

Instapaper by da5idblacksunin ipad

[–]zenspider 3 points4 points ago

I add stories to it using the instapaper safari extension and reeder (desktop and ipad).

Mad people of comp.lang.lisp by mortenaain lisp

[–]zenspider 8 points9 points ago

Not true. We found it invaluable when one of those trolls moved on to ruby.

assert_equal_unordered by zenspiderin ruby

[–]zenspider[S] 0 points1 point ago

Object identity for #== is just an easy (and fast) default. You should do what is appropriate for whatever object you're implementing.

assert_equal_unordered by zenspiderin ruby

[–]zenspider[S] 1 point2 points ago

My answer: 98% of the time, yes. That's why it is in question. At least on my code it is 98% of the time but I have a very specific design/testing style, so I'm not counting myself.

assert_equal_unordered by zenspiderin ruby

[–]zenspider[S] 0 points1 point ago

So... you say the comments aren't clear. I ask how they're not clear and your response basically makes me assume that you didn't bother to read them.

##
# Fails unless +a+ contains the same contents as +b+, regardless
# of order.
#
#    assert_equal_unordered %w[a a b c], %w[a b c a] # pass
#
# NOTE: This uses Hash#== to determine collection equivalence, as
# such, do not expect it to behave the same as +assert_equal+.
#
#    assert_equal [1], [1.0]                         # pass
#    assert_equal({ 1 => true }, { 1.0 => true })    # fail
#    assert_equal_unordered [1], [1.0]               # fail

I did my best to spell out exactly how the thing works... to be as clear as possible. I guess I'll never be able to help that some people simply won't ever read past the first sentence.

assert_equal_unordered by zenspiderin ruby

[–]zenspider[S] 0 points1 point ago

How are the comments not clear to you?

assert_equal_unordered by zenspiderin ruby

[–]zenspider[S] 1 point2 points ago

nsfw??

Polishing Rubies: A Guide to Ruby Open Source Development (Part II) by renaebairin ruby

[–]zenspider 0 points1 point ago

Hrm... should I use for trademark infringement? :P

Why the nokogiri project does not have .gemspec file in its github repo. by retardoin ruby

[–]zenspider 1 point2 points ago

And they're old enough to decide what is best for them.

Why I hate walking behind people in Seattle. by mikeatworkin Seattle

[–]zenspider 4 points5 points ago

Everyone?

Why the nokogiri project does not have .gemspec file in its github repo. by retardoin ruby

[–]zenspider 7 points8 points ago

"The absence of a gemspec is a risk mitigation tactic."

4 in the TLDR... you couldn't even get to the 4th line? Really?

Why the nokogiri project does not have .gemspec file in its github repo. by retardoin ruby

[–]zenspider 3 points4 points ago

Some developers are willing to take that risk, in order to test a recent bug fix or a new feature against their codebase.

And many many more will do it just for the fuck of it and then burden you with untimely and unwarranted issues.

Back to static - migrating a blog to Jekyll by azsromejin ruby

[–]zenspider 0 points1 point ago

It does. Very slow. And there is no incremental build so you rebuild everything when you add / modify one page. I'm addressing this in the next incarnation of zenweb, which is powering my blog, my website, and tenderlove's blog (soon).

I'm currently working on a template site that uses skeleton and has sensible defaults/styling... but pretty isn't my strongpoint so I'm going slow.

view more: next