HNHacker News
TopNewBestAskShowJobs

xentronium

2,418 karma · joined April 11, 2010

Rubyist from Russia.

email: me@markabramov.me

submissionscomments
xentronium··on Malaysia B772 has crashed near Donetsk
"Rebels" have BUK mobile SAMs.
xentronium··on Malaysia B772 has crashed near Donetsk
It does have that feature (hover over post date).
xentronium··on Standings in 38th Annual World Finals of the ACM International Collegiate
These standings are pre-freeze, so not final, right?
xentronium··on Dear Google, it's not me. It's definitely you.
I believe that's ligatures, not diacritics right there.

http://en.wikipedia.org/wiki/Typographic_ligature

xentronium··on A Comparison of Popular Ruby Application Servers
> Rails 4 is. It turns on thread safe mode by default

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)

xentronium··on A Comparison of Popular Ruby Application Servers
Well put.

Also, rainbows! (http://rainbows.bogomips.org/) is a unicorn-based server for slow clients.

xentronium··on This png encrypts to the same image
To be honest, rarjpegs (rars attached after jpeg file contents, properly unarchives by any software) have been used in the imageboards for a long time and are super-simple to create (cat file.jpg file.rar > file.jpg).

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)?

xentronium··on Google is Breaking the Internet
> Even if Google isn't penalising you for that today, they may well tomorrow. So using nofollow seems like quite a rational thing to do for any individual site as there isn't any downside as far as I know, only potential benefits.

Breaking internet connectivity is a downside for society as a whole.

xentronium··on Rappers, Sorted by Size of Vocabulary
I always thought eminem was famous for his clever wordplay, not his vocabulary diversity. FWIW, as a non-native speaker I can gather most of his verses. Aesop Rock, on the other hand, is totally indecipherable for me without printed lyrics.
xentronium··on Programming Is a Dead End Job
> The market mostly sets the wages

Unless, you know, several high-ranked managers collude together. Like it happened with Google and Apple.

xentronium··on With IPO Hopes Fading, Square and Box Face Reality Of Commodity Products
> They can do no wrong

It's not true. Remember apple maps fiasco? Or antennagate?

xentronium··on The origin of “log in” (2011)
Actually, some people like consistency of sign up / sign in / sign out actions.
xentronium··on Ask HN: Do you have a side project you want to sell?
These idiots banned a/the cloudflare endpoint.

[1] http://antizapret.info/index.php --- see for yourself (108.162.196.104)

xentronium··on TDD is dead. Long live testing.
Nothing. DHH is famous for being opinionated. Things DHH dislikes include RSpec, factories, haml and service objects layers.
xentronium··on TDD is dead. Long live testing.
IMHO, it all depends on how complex your task is and how experienced you are in solving that particular task class. Even the most ardent proponents of TDD suggest that you do spikes (write some throwaway code) in order to see what design is applicable to your problem.

On the other hand, if your task is relatively straightforward, you can anticipate the required API and start with tests first.

xentronium··on Ruby Tips, Part 5

    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)
xentronium··on Improve developer habits by showing time cost of DB queries
Peek looks awesome. Hopefully, will use it for my next rails project.
xentronium··on Ask HN: What source code is worth studying?
> Ruby -> Merb

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.

xentronium··on Ask HN: What source code is worth studying?
It frightens me how my future replacement is probably going to think "gee, that guy was horrible" unless he knows all the historic context and reasons why the code was written the way it was written.
xentronium··on Whatever goes up, that’s what we do
You might also like other advice from this article: http://jasoncrawford.org/2012/04/how-to-cope-with-the-gmail-...

At least for me it made gmail bearable again.

xentronium··on Show HN: Trontium Reactor, the first USB Power Delivery battery
trontium is not a name of a chemical.

If you look at the spec page it says "lithium-ion battery pack".

xentronium··on Why I like Java
Have you submitted your story to thedailywtf?
xentronium··on Russia Blocks Access to Major Independent News Sites
Nope. It's kinda sad, really, how the crudest opinion-forming tools still work in 2014.
xentronium··on Russia Blocks Access to Major Independent News Sites
There's an unofficial site that lists exact urls and ip addresses that are blocked. Since most providers don't bother with deep packet inspections, they ban resources wholesale.

http://antizapret.info/ --- list

xentronium··on Russia Blocks Access to Major Independent News Sites
Language barrier. Nobody would even bother.
xentronium··on Speed Up Your Rails Specs
That's a straw man. I see how you made it up for a joke, but it's still confusing. "Don't overengineer" is not the same as "stuff all your code into button click handlers".
xentronium··on Speed Up Your Rails Specs
RE: Developing Decoupled Code

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.

xentronium··on Grids From Typography
> Ironically enough, I was reading the article on my iPad and I immediately moved the display to an arms-distance to ease the reading of such a futilely big font. Ok, hipster typography.

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.

xentronium··on Linus Torvalds: “I'm happily hacking on a new save format using ‘libgit2’”
That's unfair. Lots of infrastructural projects are done in java. E.g. my personal favorite: lucene (+ solr, elasticsearch).
xentronium··on Putin's Crimea Grab Shows He Misunderstands 21st Century Power
Nah, even the Kremlin inhabitants called Victor Yanukovitch a political corpse having "negligible authority" (Medvedev) in their own country.
← PreviousPage 5 of 29Next →