Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I can't remember the exact DSL, unfortunately. But as an example, consider the following pseudo-code:

  for($i = 0; i < 100; $i++) {
    $product = mysql_query("query_string");
    // do something with product
  }
or the far more readable:

  Products.find_all.each do |product|
    product.do_something
  end
Of course, this is only the difference between an ORM and database code, but I think you can imagine the difference if you also encode your clients' vocabulary in your models.


The "fun" bits of client work are when do_something has a non-obvious but critically necessary side effect for products with even-numbered SKUs issued in 1997 from the Chilean subsidiary, and this fact is either a) known to one guy who retired last year or b) so blindingly obvious that it never needed to get written down anywhere.




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: