2,418 karma · joined April 11, 2010
email: me@markabramov.me
Rails have been thread-safe for quite some time (yehuda says after fall 2008, so even before the whole merb merger thing).
(see http://yehudakatz.com/2010/08/14/threads-in-ruby-enough-alre... comment section)
Also, rainbows! (http://rainbows.bogomips.org/) is a unicorn-based server for slow clients.
It's actually rather interesting, if someone attaches some illegal content into rarjpeg, will it automatically make you a criminal after you see it (and store it onto your hard drive)?
Breaking internet connectivity is a downside for society as a whole.
Unless, you know, several high-ranked managers collude together. Like it happened with Google and Apple.
It's not true. Remember apple maps fiasco? Or antennagate?
[1] http://antizapret.info/index.php --- see for yourself (108.162.196.104)
On the other hand, if your task is relatively straightforward, you can anticipate the required API and start with tests first.
require "benchmark"
n = 100_000
A = "foo " * 20
B = "bar " * 20
C = "baz " * 20
D = "foobar " * 20
STRINGS = [A, B, C, D]
Benchmark.bm(4) do |x|
x.report("<<") do
n.times do
"" << A << B << C << D
end
end
x.report("join") do
n.times do
STRINGS.join
end
end
end
user system total real
<< 0.090000 0.010000 0.100000 ( 0.102411)
join 0.070000 0.010000 0.080000 ( 0.071142)If you do dive into merb, one of the contributors started a handbook on internals long time ago (https://github.com/michaelklishin/merb-internals-handbook), although, it died with the merb itself.
At least for me it made gmail bearable again.
If you look at the spec page it says "lithium-ion battery pack".
http://antizapret.info/ --- list
Extra complexity cost is insane and probably not worth it. Basically you move all your crazy stubbing and mocking out of test code and into application code. Do not do this unless you really, really need this kind of dependency injection.
FWIW, I felt immediate relief of not having to press cmd+plus several times because it's exactly the font size I read HN at.