HNHacker News
TopNewBestAskShowJobs

fantasticsid

210 karma · joined February 21, 2011

submissionscomments
fantasticsid··on Apple just kicked Fortnite off the App Store
As an iPhone user I much prefer any payment to go through apple payment UI, it’s just safer and hassle free, I don’t need to worry about scammy payment traps.

As a developer I can see the financial reasoning behind implementing third party payment methods.

fantasticsid··on Yukihiro Matsumoto: “Ruby is designed for humans, not machines”
Yeah, sorry for the abbreviation. I meant 'Convention over Configuration'
fantasticsid··on Yukihiro Matsumoto: “Ruby is designed for humans, not machines”
yeah, esoteric is bad, whether Rails or others. But that's just my impression with Rails, and I'm much more comfortable using other less magical libraries. I guess Ruby is just too good at making abstractions, and I tend to believe that 'making and using abstractions feel great and productive, unless it's made by others'
fantasticsid··on Yukihiro Matsumoto: “Ruby is designed for humans, not machines”
I think focusing on the syntax level is a bit superficial. While Ruby (especially in the context of RoR) lends itself very well to making DSLs and making abstractions, and thus writing superficially good looking, concise, easy to follow (on a syntax level) application code, it really breaks down when the abstraction does not work perfectly the way you want it.

If you have debugged a Rails app and tried to find where in the 10 level call stack a side effect is introduced, knowing that at each level a 'method_missing' could've changed things, and thus you're really looking at a non-linear call stack since each function call can branch out, you'll know the beautiful looking syntax is not free and in fact very costly.

And don't get me started on poorly documented (if any) CoC (black magic)..

fantasticsid··on Apple Watch Series 5
I wish someday Apple Watch can charge itself by harnessing the power of arm swing. I know some mechanical watches do that. Not sure though if it can gather enough power to sustain indefinitely.
fantasticsid··on Amazon Quits China Market
They failed because they were not able to adapt to the Chinese market/have any competitive advantage against alibaba or JD which is the point the article is trying to make. None of what you mentioned is alluded in the article.
fantasticsid··on Rideshare boycott sparked by murders in China
Yeah, that’s what companies do : look at the stats. And as long as stats say it’s rare enough, it’s not that bad.

People are boycotting not because there’s a higher chance of being murdered/kidnapped with Didi, but that the company was unresponsive, did not have proper procedure/policy for vetting drivers, and took way too long to get even basic info about the suspect driver.

What the stats say here, higher or lower, is moot. Because the issue is that Didi does not give a shit about passenger safety.

fantasticsid··on AI winter is well on its way
> Does anyone check every video afterwards to ensure that all the blocked content was indeed terrorist content?

They might not, but they could sample them to be statistically confident?

fantasticsid··on Autonomous braking: 'The most significant development since the safety belt'
That’s called a phantom jam, happens right now on 101 with humans;) Won’t happen if only people don’t tailgate.
fantasticsid··on Autonomous braking: 'The most significant development since the safety belt'
I’ve thought about this and and I think the best thing to do here is to relentlessly keep a long, safe distance from vehicles ahead. There are just things you can’t possibly see that the driver before you can.(a puppy/squirrel/whatever that he wants to avoid killing, you can’t possibly know). You can’t anticipate what a human will do here.

You also give yourself a buffer when vehicle ahead have an emergency stop - imagine there’s a truck behind you.

I guess what I’m saying is these ‘brake checks’ are welcome, even if they only serve to educate people.

fantasticsid··on iOS 11.3 is available today
Thanks. I'll wait till 11.3.3 :)
fantasticsid··on Warren Buffett: Bitcoin Is Pure FOMO
He has none but he could be shorting it?
fantasticsid··on Microsoft Adds an OpenSSH Client to Windows 10
Last I checked bash on windows is still segregated from the windows system proper. So you cannot call any windows utility/compilers from windows bash. You cannot write to existing files/directories either, based on WSL docs. Hopefully these limitations will be removed.
fantasticsid··on Programming with a love of the implicit
You can still make good abstractions with explicit code, and remove most of boilerplates. But please at least be explicit about the fact you are using that abstraction.

One problem with Rails is that these abstractions are applied implicitly and burried deep in the framework. For DHH it's easy to know what it's doing behind the scene. Not for people who did not create these implicitly applied abstractions.

So.. Either you will have to learn ALL the Rails conventions, or you can create your own abstractions and use them explicitly. Also, it will be easy to put a breakpoint on the call site to your abstraction. Try that with Rails, you don't know what/where to put that breakpoint.

fantasticsid··on OOP vs. FP
I think the difference becomes easier to see when you need to add new data types vs new functions

http://wiki.c2.com/?ExpressionProblem

fantasticsid··on Rooby: a Ruby-like object oriented language written in Go
> How are you better?

It's a valid question to ask but I don't think anyone has to think that through and really have a good answer before creating!

fantasticsid··on A man wouldn’t leave an overbooked United flight, so he was dragged off
This post has over 470 comments and was posted 14 hours ago, yet I wasn't able to find it on HN from the first 3 pages.

On the third page I see lots of posts with lower number of comments and an earlier post time.

I had to use the search at the bottom to find this story.

Why?

fantasticsid··on Lock-Free Bugs
I really enjoyed reading it! System programming is hard :)
fantasticsid··on DeepMind and Blizzard to release StarCraft II as an AI research environment
I believe the same thing could be said about Go :)
fantasticsid··on iPhone, iPad and Mac sales are down, but Apple only cares about services now
Maybe Apple has stopped innovating, but Windows is just not there for developers, not even close to what Mac has been ~3 years ago.

Saying this from recent personal experience.

fantasticsid··on Rails 5.0: Action Cable, API mode, and more
I never learned 'all conventions'. There are countless cases where I had to dig into source code to find out how a certain feature is working/how it works with another feature/when the abstraction does not work the way I want

I guess being implicit just makes it harder to find out which part of abstraction is leaking when it happens..

But again I'm not a good rails programmer. I was just never a fan of how conventions play such a big part, and was not well documented.

fantasticsid··on Rails 5.0: Action Cable, API mode, and more
I actually don't like rails' convention over configuration school of thoughts. It makes everything implicit. For any large rails app it's difficult to reason about how things are working, unless you learn all the conventions by heart (by the way, these conventions don't seem to be documented well)
fantasticsid··on Why Erlang Matters
I'm interested. How does the preemptive scheduling work with blocking system calls? So if an Erlang process tries to read from standard input using the read syscall (suppose we haven't set non blocking mode on the fd), why does it not block the scheduler that it runs on? Or does Erlang implements its own set of syscall wrappers that uses epoll under the hood?
fantasticsid··on Detecting Code Indentation
Tabs are for making TABles. Spaces are for reserving spaces. It's that simple. I would use Excel if I want to make a table. I also wouldn't put tables in my source code normally.
fantasticsid··on Why Zuckerberg’s Critics Are Wrong
Guys, be grateful! Whatever you say he's probably still doing much better than you or me. And certainly better than thousands of bankers out there.
fantasticsid··on Early exit is a tail call optimization of procedural languages
I would rather see more articles like this on hacker news!
fantasticsid··on A letter to our daughter
Reading some of the comments make me sad. This has happened so often lately..
fantasticsid··on Emacs and Vim
I usually rest my palm naturally on the control key when using emacs (yes I use my palm to press the control key), so ctrl-n becomes just n for e.g.

Yes it's hard to get started, but once you get the hang of it navigation in emacs just becomes so painless.

Also it's hard or even impossible at first to do it on laptops but trust me you will be able to do it.

fantasticsid··on Strikingly (W13) Launches Its Super Easy ‘One-Click’ Site Builder
Always wanted to have my own website, this makes it so easy!