How to Stop Cucumber Becoming Technology Roadkill | The Shine Technologies Blog by marcfaselin ruby
[–]zenspider 0 points1 point2 points 1 month ago
Amen
Will reading Land of Lisp help me understand elisp code? by mocker_kcin lisp
[–]zenspider 4 points5 points6 points 2 months 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 points3 points 2 months 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".
"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
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 points4 points 2 months 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.
[–]zenspider 0 points1 point2 points 2 months ago
it's just a method call... anyone can define =~
emacs does it that way == matz does it that way
better? no. it's arbitrary. obviously.
emacs' ruby-mode lines them up... so we line them up.
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.
[–]zenspider 6 points7 points8 points 2 months 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 points5 points 2 months 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 points10 points 2 months 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 point2 points 2 months ago
Object identity for #== is just an easy (and fast) default. You should do what is appropriate for whatever object you're implementing.
[–]zenspider[S] 1 point2 points3 points 2 months 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.
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.
How are the comments not clear to you?
nsfw??
Polishing Rubies: A Guide to Ruby Open Source Development (Part II) by renaebairin ruby
Hrm... should I use for trademark infringement? :P
Why the nokogiri project does not have .gemspec file in its github repo. by retardoin ruby
And they're old enough to decide what is best for them.
assert_equal_unordered (blog.zenspider.com)
submitted 2 months ago by zenspider to ruby
Why I hate walking behind people in Seattle. by mikeatworkin Seattle
Everyone?
[–]zenspider 7 points8 points9 points 2 months ago
"The absence of a gemspec is a risk mitigation tactic."
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
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
all it takes is a username and password
create account
is it really that easy? only one way to find out...
already have an account and just want to login?
login
How to Stop Cucumber Becoming Technology Roadkill | The Shine Technologies Blog by marcfaselin ruby
[–]zenspider 0 points1 point2 points ago