HNHacker News
TopNewBestAskShowJobs

bratsche

1,429 karma · joined December 1, 2011

[ my public key: https://keybase.io/bratsche; my proof: https://keybase.io/bratsche/sigs/dWi4JNbW1KLWTq2Q3VNOsAA4xNtieKHhGsXaTBfsTjQ ]

https://github.com/bratsche

submissionscomments
bratsche··on Hacking Google
Are you ready? [Y/N]

Only the Y seems to work. I guess they didn't consider that someone might hit N. :)

bratsche··on Why adults still dream about school
Me too. Overall I had a pretty good experience in college and grad school and I kind of miss those days. It was easier to make friends, it was easier to get exercise without even trying just from all the walking I did everywhere, and I guess I just always had this optimistic view of the future back then. :)
bratsche··on The Architecture of Musical Instruments
I wish I could get this guy to take a great photo inside my viola for me!
bratsche··on “No convincing evidence” that depression is caused by low serotonin levels
I’ve tried a number of antidepressant drugs and so far not been able to notice much difference with any of them.
bratsche··on Ask HN: Do you read books regularly? Fiction or nonfiction?
I read a little of both. Incidentally, I'm reading Rhythm of War (from the Stormlight Archives) right now. :)
bratsche··on Bullfrog After Populous
I really loved Powermonger when I was a kid. I'm surprised it didn't take off to be more popular than it was.
bratsche··on Viola Web Browser (2009)
I just love the domain name. :)
bratsche··on Jeff Bezos has returned to day-to-day management of Amazon
I agree. I stupidly ordered a copy of Bach's Well-Tempered Klavier from Amazon and it just arrived yesterday, and the back cover was all bent along the edge because they did a terrible job of packing it.
bratsche··on Is Fry’s Electronics in trouble?
I wondered if that Fry’s was some kind of dumping ground for returned shit from all the other Fry’s or something. It is so bad.
bratsche··on Is Fry’s Electronics in trouble?
I was at Fry’s on Garland Rd in Dallas a few years ago and it was horrible. I wanted to pick up a hard drive that day rather than order one, but (and I am not exaggerating) literally every single hard drive on their shelves had one of those “this product had been opened/returned” stickers on it. Ridiculous! Fry’s is such a dump.
bratsche··on CRDT: Conflict-free replicated data type
I wasn't familiar with CRDTs until Chris McCord started talking about them wrt Phoenix Channels. Really cool and interesting stuff.
bratsche··on How to write fast code in Ruby on Rails
> Doesn't Elixir on Phoenix[1] provide the elegance of Ruby on Rails without its drawbacks?

I'm not sure I would say elegance is the main feature of Rails, but I think productivity is. IMO nothing out there beats Rails in terms of productivity on a new project. Phoenix is clearly inspired by Rails, but if you'll permit me to pull a semi-random number out of my ass I don't think Phoenix will ever be able to do better than about 80% of Rails's productivity. Some things are just not as simple (for example, just due to the nature of things Ecto is not as simple to write with as ActiveRecord is).

That said, I've totally moved away from Ruby on Rails and over to Elixir/Phoenix for my stuff. I absolutely love Elixir. So far in my experience I'm finding it more performant, easier to maintain, but a little less productive to write in. But still plenty productive enough.

bratsche··on Dying Alone in Japan: The Industry Devoted to What’s Left Behind
I don't understand these things. I've gone to a few estate sales thinking maybe I can get some cool stuff for a decent price. But no, every one I've gone to they were asking insane prices for everything.
bratsche··on ReasonML – React as first intended
I commented before reading the article, just going by memory of reading about this before. Perhaps I was wrong about it not making sense in the language, but more that it isn't necessary when using ReactReason because the concept is built into that binding.
bratsche··on ReasonML – React as first intended
You wouldn't necessarily use ReasonML instead of React, you can use them together. You would use ReasonML instead of whatever Babel/es6/es7/typescript/whatever.

Here is the official React binding (or whatever you call it) for ReasonML: https://reasonml.github.io/reason-react/

Using this you would still be using React, just in a different language. But my understanding is that you would not be using redux (if you are now) because it doesn't make sense in a language like ReasonML.

bratsche··on AT&T updates firmware to block access to 1.1.1.1
I was using 1.1.1.1 with AT&T Fiber and it stopped working. I didn't really question it, I figured maybe something went down at Cloudflare so I just switched my Mac back to using the defaults again. It never even occurred to me that AT&T might be blocking it.

Maybe stupid question, but why would AT&T block it?

bratsche··on Retro Review: 2009 Mac Pro in 2018
Absolutely. I have a 5k iMac and I love everything about it except I made the mistake of getting the 512GB SSD and I already need more space. But I'm fucking stuck with it. So now every few weeks I have to go hunting for things to clean off of my disk.
bratsche··on Can any composer equal Bach?
Oh, interesting! Perhaps Bach wrote it for lute in g minor and Williams plays it in a minor on guitar? I didn't think of that.

Wikipedia seems to agree with you on the key: https://en.wikipedia.org/wiki/Suite_in_G_minor,_BWV_995

bratsche··on Can any composer equal Bach?
> Besides, that shit sounds beyond awesome on viola.

I agree. There's a fantastic recording of one of my favorite violists today, Antoine Tamestit, playing Bach's second partita. It's his appropriately named album "Chaconne", and it also includes the Ligeti viola sonata, which is probably one of the hardest things I've seen written for viola. Ugh, it's one piece that I just don't even know how to begin practicing. :)

bratsche··on Can any composer equal Bach?
I found the one I'm talking about on Apple Music, John Williams playing them on guitar. It's BWV 995 for lute, and it is in a minor.

fwiw on cello it's BWV 1011.

bratsche··on Can any composer equal Bach?
Incidentally one of his lute suites is the same as the c minor cello suite. Except I think on lute it's in either a or e minor, I forget now. I don't know whether the cello suite came first or the lute suite though.

But as a violist I found this interesting. I like to play his violin sonatas and partitas but on viola but people have discouraged me from this because it means changing the key and everyone insists that Bach is very deliberate in his choice of key and it's almost blasphemy to think about playing his music in a different key. But the lute/cello suite is a direct contradiction to this.

bratsche··on Can any composer equal Bach?
Beethoven string quartets are some of my favorite music ever written. Pretty much starting with Op.59.
bratsche··on Convert React JavaScript Code to TypeScript with Proper Typing
Since you mentioned F# above, have you seen Fable?

http://fable.io/

bratsche··on Skia: an open source 2D graphics library
There are some examples in the source tree here: https://github.com/mono/SkiaSharp/tree/master/samples
bratsche··on Skia: an open source 2D graphics library
There is also a .NET binding for Windows and Xamarin: https://www.nuget.org/packages/SkiaSharp/
bratsche··on FCC plan would give Internet providers power to choose the sites customers see
I think that's the point. That quote is not from Chairman Pai, it's from former FCC chairman Wheeler.
bratsche··on Phoenix 1.3.0 Released
I wouldn't say I like things over C#/.NET (I love C# and use it for mobile/desktop devel, but I've never used it for web).. but I'll list some things I like about Elixir:

Erlang's concurrency model is amazing. It's like having micro-microservices running inside your virtual machine. And you can distribute across nodes. Nothing else really has this kind of thing.

Pattern matching is beautiful and it's easy to use. Other languages have this too, so it's not like this is unique. This is one of my favorite things though; you can destructure things, you can pattern match inside a function using case, and you can pattern match on functions themselves like:

    def say("Hi"), do: IO.puts("Hello")
    def say("Bye"), do: IO.puts("Goodbye")
    def say(_msg), do: IO.puts("Where am I?")
That's basically the equivalent of having a single say() function that then does a switch/case on the input.

And a more recent addition to the language is "with". This is fantastic, it's one of my favorite things now. Usually you might have code that sets a variable from something, checks to make sure it's valid, sets another variable, checks to make sure it's valid, etc, etc... until finally you're function is ready to actually perform its purpose. Any of those checks might cause it to exit early or to switch paths. So Elixir has this "with" feature that looks sort of like this:

    def create(conn, %{"id" => group_id, "friend_id" => friend_id}) do
      with {:ok, user} <- current_user(conn, groups: [memberships: [:user, :group]]),
           {:ok, group} <- Groups.fetch_for_user(user, group_id),
           {:ok, friend} <- Friendship.fetch_friend(user, friend_id),
           {:ok, member} <- Groups.add_member(group, friend)
      do
        render(conn, "success.json", msg: msg)
      else
        {:error, msg} ->
          conn
          |> put_status(:unprocessable_entity)
          |> render("failure.json", msg: msg)
      end
    end
I love this feature. It makes code so much more readable and maintainable in my opinion.
bratsche··on Phoenix 1.3.0 Released
I love contexts!

But if you don't, that's cool too. There are mix tasks for using the older style generators and mix tasks for the newer context style generators. Use whichever you prefer.

bratsche··on Ask HN: What language/framework do you plan to use in your next project?
Elixir/Phoenix.
bratsche··on Net Neutrality Day of Action: Help Preserve the Open Internet
Then maybe they, or Chairman Pai or someone, can talk about how to protect net neutrality in some way other than Title II.

Title II was instituted basically as a last resort. And nobody has been coming forward saying, "Okay.. we have a plan here to undo the Title II but still preserve net neutrality."

← PreviousPage 2 of 13Next →