gh0zt's comments

gh0zt | 2 years ago | on: Why are most sofas so bad?

in my experience when it comes to sofas the old "buy cheap buy twice" holds true. there are reputable brands such as ligne roset for example. they are pricey bit if you can commit to buying and owning for > 15 years. owning a clam and a togo for more than ten years and the are basically like new. foam & fabric. i understand this might unaffordable to a lot of people but buying second hand can be a great deal on high end sofas.

gh0zt | 5 years ago | on: Netflix increases price

„ We’re updating our prices to bring you more great entertainment. Your monthly price will increase by €2 to €17.99 on 9 March 2021“

gh0zt | 7 years ago | on: Algorithm recovers speech from a potato-chip bag filmed through glass (2014)

“I’m sure there will be applications that nobody will expect. I think the hallmark of good science is when you do something just because it’s cool and then somebody turns around and uses it for something you never imagined. It’s really nice to have this type of creative stuff.”

Thinking atomic bombs :(

gh0zt | 9 years ago | on: Ask HN: What are the best resources to properly learn Scala?

As you are asking for books - Scala for the impatient (http://www.horstmann.com/scala/) - Programming in Scala (https://booksites.artima.com/programming_in_scala_3ed)

I found those books very good resources. The Scala website lists a few others (https://www.scala-lang.org/documentation/books.html)

Aprt from that I found Daniel Westheides blog a very good starting point (http://danielwestheide.com/scala/neophytes.html)

gh0zt | 12 years ago | on: Introducing Syngr, my attempt at an Standard Library for PHP

Well, if you need the atan function you probably know what it should do and apart from that why does the Number:tan method take an array of arguments when only one is ever used? So at least it should be usable like tan(Number::Number::TRIG_ARC).

gh0zt | 12 years ago | on: Introducing Syngr, my attempt at an Standard Library for PHP

I like the idea but i don't like the actual implementation. For example: Number::tan takes an array of flags as an argument but only one flag is ever used to determine which kind of tangent method is eventually executed. For me as a user this does not only complicate the usage but it is also potentially (microoptimizationwise) slower because of the necessary condition check.

So instead of

  $number = new Number(4.2);
  $number->tan(array(Number::TRIG_ARC))
why not just implementing it as a separate method?

  $number->atan();

gh0zt | 13 years ago | on: Ask HN: What would I gain from using Rails over Codeigniter?

I also started using CodeIgniter and i also had, at some point , the feeling that it "just doesn't feel right". If you want to learn a new language i'd probably go with RoR otherwise take your existing PHP skills and use Symfony 2 (http://symfony.com/). It definitly has a steeper learning curve than CodeIgniter but i couldn't think of a single point why i would prefer CodeIgniter over Symfony 2 now.
page 1