Recent submissions

Comment · 10 years ago
First of all, great project. I noticed under Features in the readme:

* Written 100% in Go.

Is Go so great that it becomes a feature of the final product?

Comment · 10 years ago
Don't forget the LMAO ones.
Comment · 10 years ago
I'm always very careful when placing code supporting the test outside of the test itself. Setup and teardown functions are fine, but I prefer to be safe because, well, you can't test the test.

-- I'm not saying this is the case in the blog post. Just some thoughts.

Comment · 10 years ago

  if x.in? my_set   # very ugly
I guess we disagree there. This is arguably more readable than most languages with `in?` being still just a method.
Comment · 10 years ago
C was the first official language I learned in school. It was very hard at first, mainly because I couldn't see how everything (memory management, pointers, references, data structures, etc.) would fit in a real world scenario. We didn't learn about Make and building automation until 3 months in the course. `gcc myfile.c -o myfile` was all we did, one concept at a time.

Maybe programming 101 should start with a higher level language and dive slowly on "how does that work?".

Comment · 11 years ago
I don't have time right now to fully read the paper, but a quick glance at the abstract: "Our evaluations use NYC taxi trace data and an 80-server cluster. Results show that Pyro reduces the response time by 60X on 1km×1km rectangle geometries compared to the state-of-the-art solutions".

Congratulations to the authors.

Comment · 11 years ago
Comment · 11 years ago
That's true. What I meant was that this tool is good to support testing the same way factories work: generating random valid emails, phones, addresses, etc., for each record.
Comment · 11 years ago
According to the readme:

"Regular expressions are used in every language, every programmer is familiar with them. Regex can be used to easily express complex strings. What better way to generate a random string than with a tool you can easily use to express the string any way you want?"

An example where this is useful (I guess) is generating data for tests. You can easily define an email regexp to generate random "valid" values for each model.

Comment · 11 years ago
"Dropping support for IE8 means we can take advantage of the best parts of CSS without being held back with CSS hacks or fallbacks".

This sure contributed to reducing the size.

Comment · 13 years ago
Combinations with insufficient material to checkmate are:

king versus king; king and bishop versus king; king and knight versus king; king and bishop versus king and bishop with the bishops on the same colour. - wikipedia

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton