Hacker News new | past | comments | ask | show | jobs | submit | bradfordw's comments login

You don't get big by writing a lot of tests (or checks). You get big by getting stuff done with competent people that pay attention to the changes they apply. YMMV


When you reach a certain size, no amount of due diligence on your part can ensure that your changes aren't going to break something in some other part of the code base without automated tests. Do you think Google or Amazon gets by without unit tests?


I'm not saying they're not useful, pinterest is hardly a giant in my opinion, they do one thing and clearly do it well. I'm sure their position on unit tests will change, hopefully before they are burned.


It is not impossible to have a large code base without unit tests. I'm sure my employer's code base is in the millions of LOC. At least 99% is not covered by unit tests. Probably 99.9%.


That might work for you, but is a bad idea in 99% of cases (I am not implying that most code has tests in place). I guess your code changes very rarely. If you have to change something in core part of application with a lot of dependencies, good luck. Also, when several programmers are working on the same part of code (perhaps in a span of 5-6 years), they will need some time to understand code to be changed, then think more where something might break if they change it. At the end, they will lose a lot time and still not catch all the interactions with other code. It took me a lot of time to understand why people want to write tests first, then code. It was more natural for me to make optimal code, then test expected/unexpected inputs and edge cases. The answer turned out to be that code ends up much cleaner and all code paths end up tested properly because you never write a single line of code which isn't explicitly there to satisfy a test.


Yeah the Pinterest engineer (Tracy Chou) said they were in the process of reviewing their approach to unit testing.


You are talking about integration tests, not unit tests.


She said unit test, and I'm pretty sure she meant they have no tests what so ever.


Yes. This will be the most productive day of the week.


Yo dawg, I heard you like drones...


Brogrammer? No. If someone referred to a female co-worker as a Hogrammer, then yes.


Fairly certain they have a few people already doing this. Lots of happy customers over there from the sounds of it and not just fly-by-night operations either.


Definitely not fly by night. This is why I was surprised.


When it's ajar?


Science!


They spent all that money on Skype and now this is all they can afford. It's the thought that counts.


Erlang deployment (IMHO) has never been easier: see rebar. It's trivial for a layperson to not only deploy/distribute Erlang applications, but also deploy the hot code upgrades. See: https://github.com/basho/rebar


So he's like that orb thing in Heavy Metal?


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

Search: